Skip to content

Commit 1205f2d

Browse files
committed
fixup! Consolidate configuration
Signed-off-by: Todd Short <[email protected]>
1 parent 6c88ef2 commit 1205f2d

File tree

5 files changed

+36
-8
lines changed

5 files changed

+36
-8
lines changed

Tiltfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load('.tilt-support', 'deploy_repo')
22

33
operator_controller = {
44
'image': 'quay.io/operator-framework/operator-controller',
5-
'yaml': 'config/overlays/tilt-local-dev',
5+
'yaml': 'config/overlays/tilt-local-dev/operator-controller',
66
'binaries': {
77
'./cmd/operator-controller': 'operator-controller-controller-manager',
88
},
@@ -13,7 +13,7 @@ deploy_repo('operator-controller', operator_controller, '-tags containers_image_
1313

1414
catalogd = {
1515
'image': 'quay.io/operator-framework/catalogd',
16-
'yaml': 'catalogd/config/overlays/cert-manager',
16+
'yaml': 'config/overlays/tilt-local-dev/catalogd',
1717
'binaries': {
1818
'./catalogd/cmd/catalogd': 'catalogd-controller-manager',
1919
},

config/overlays/tilt-local-dev/kustomization.yaml renamed to config/overlays/tilt-local-dev/catalogd/kustomization.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@
33
apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
55
resources:
6-
- ../../base/catalogd
7-
- ../../base/operator-controller
8-
- ../../base/common
6+
- ../../../base/catalogd
7+
- ../../../base/common
98
components:
10-
- ../../components/tls/catalogd
11-
- ../../components/tls/operator-controller
9+
- ../../../components/tls/catalogd
1210
# ca must be last or other components will overwrite the namespaces
1311
- ../../components/tls/ca
1412

1513
patches:
1614
- target:
1715
kind: Deployment
18-
name: controller-manager
16+
name: catalogd-controller-manager
1917
path: patches/dev-deployment.yaml
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# kustomization file for secure operator-controller
2+
# DO NOT ADD A NAMESPACE HERE
3+
apiVersion: kustomize.config.k8s.io/v1beta1
4+
kind: Kustomization
5+
resources:
6+
- ../../../base/operator-controller
7+
- ../../../base/common
8+
components:
9+
- ../../../components/tls/operator-controller
10+
# ca must be last or other components will overwrite the namespaces
11+
- ../../components/tls/ca
12+
13+
patches:
14+
- target:
15+
kind: Deployment
16+
name: operator-controller-controller-manager
17+
path: patches/dev-deployment.yaml
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# remove livenessProbe and readinessProbe so container doesn't restart during breakpoints
2+
- op: replace
3+
path: /spec/template/spec/containers/0/livenessProbe
4+
value: null
5+
- op: replace
6+
path: /spec/template/spec/containers/0/readinessProbe
7+
value: null
8+
- op: remove
9+
# remove --leader-elect so container doesn't restart during breakpoints
10+
path: /spec/template/spec/containers/0/args/2
11+
- op: add
12+
path: /spec/template/spec/containers/0/args/-
13+
value: --feature-gates=PreflightPermissions=true

0 commit comments

Comments
 (0)