Skip to content

Commit 2e91b85

Browse files
authored
updating olm kustomize to remove default values from env (#315)
Issue #, if available: - Fixes: aws-controllers-k8s/community#1238 Description of changes: Updating the olm kustomize file to go back to previous state before default values were added into the `env` section of the `deployment.yaml.tpl`. Ideally it would be best to be able to keep these defaults, but even moving everything into the `env` and away from the `envFrom` did not work properly in a cluster, so I feel this is the best option that we have. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. Signed-off-by: Adam D. Cornett <[email protected]>
1 parent c6b852a commit 2e91b85

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed
Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
{{ template "controller_kustomization" . }}
22

3+
patchesJson6902:
4+
- target:
5+
group: apps
6+
version: v1
7+
kind: Deployment
8+
name: ack-{{ .ServicePackageName }}-controller
9+
patch: |-
10+
- op: replace
11+
path: '/spec/template/spec/containers/0/env'
12+
value: []
13+
- op: add
14+
path: '/spec/template/spec/containers/0/env/0'
15+
value:
16+
name: ACK_SYSTEM_NAMESPACE
17+
valueFrom:
18+
fieldRef:
19+
fieldPath: metadata.namespace
20+
321
patchesStrategicMerge:
4-
- user-env.yaml
22+
- user-env.yaml

0 commit comments

Comments
 (0)