Commit e4f3cda
authored
helm chart: add log and accountid (#69)
Issue #, if available: aws-controllers-k8s/community#787
Tested using sagemaker-controller
```
k get pods -n ack-system -ojson
"spec": {
"containers": [
{
"args": [
"--aws-account-id",
"$(AWS_ACCOUNT_ID)",
"--aws-region",
"$(AWS_REGION)",
"--enable-development-logging",
"$(ACK_ENABLE_DEVELOPMENT_LOGGING)",
"--log-level",
"$(ACK_LOG_LEVEL)",
"--resource-tags",
"$(ACK_RESOURCE_TAGS)",
"--watch-namespace",
"$(ACK_WATCH_NAMESPACE)"
],
"command": [
"./bin/controller"
],
"env": [
{
"name": "K8S_NAMESPACE",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.namespace"
}
}
},
{
"name": "AWS_ACCOUNT_ID",
"value": "xxx"
},
{
"name": "AWS_REGION",
"value": "us-west-2"
},
{
"name": "ACK_WATCH_NAMESPACE"
},
{
"name": "ACK_ENABLE_DEVELOPMENT_LOGGING",
"value": "true"
},
{
"name": "ACK_LOG_LEVEL",
"value": "INFO"
},
{
"name": "ACK_RESOURCE_TAGS",
"value": "services.k8s.aws/managed=true,services.k8s.aws/created=%UTCNOW%,services.k8s.aws/namespace=%KUBERNETES_NAMESPACE%"
},
{
"name": "AWS_ROLE_ARN",
"value": "arn:aws:iam::xxx:role/ack-sage-role-ack-bug-bash-may18"
},
{
"name": "AWS_WEB_IDENTITY_TOKEN_FILE",
"value": "/var/run/secrets/eks.amazonaws.com/serviceaccount/token"
}
],
```
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent ad3bd3d commit e4f3cda
File tree
4 files changed
+14
-3
lines changed- templates/helm
- templates
4 files changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
0 commit comments