Skip to content

Commit 8549748

Browse files
authored
updating olm kustomize files, due to kuztomize deprecations (#456)
Issue #, if available: N/A Description of changes: Updating olm kustomize files using `kustomize edit fix` since some of the methods we were using were marked for deprecation. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 5e27da3 commit 8549748

File tree

2 files changed

+23
-24
lines changed

2 files changed

+23
-24
lines changed
Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
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-
21-
patchesStrategicMerge:
22-
- user-env.yaml
3+
patches:
4+
- patch: |-
5+
- op: replace
6+
path: '/spec/template/spec/containers/0/env'
7+
value: []
8+
- op: add
9+
path: '/spec/template/spec/containers/0/env/0'
10+
value:
11+
name: ACK_SYSTEM_NAMESPACE
12+
valueFrom:
13+
fieldRef:
14+
fieldPath: metadata.namespace
15+
target:
16+
group: apps
17+
kind: Deployment
18+
name: ack-{{ .ServicePackageName }}-controller
19+
version: v1
20+
- path: user-env.yaml
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
resources:
22
- bases/config.yaml
3-
patchesJson6902:
3+
apiVersion: kustomize.config.k8s.io/v1beta1
4+
kind: Kustomization
5+
patches:
46
- path: patches/basic.config.yaml
57
target:
68
group: scorecard.operatorframework.io
7-
version: v1alpha3
89
kind: Configuration
910
name: config
11+
version: v1alpha3
1012
- path: patches/olm.config.yaml
1113
target:
1214
group: scorecard.operatorframework.io
13-
version: v1alpha3
1415
kind: Configuration
1516
name: config
16-
# +kubebuilder:scaffold:patchesJson6902
17+
version: v1alpha3

0 commit comments

Comments
 (0)