Skip to content

Commit fba22f6

Browse files
committed
WIP: use a list of feature-gates
Signed-off-by: Todd Short <[email protected]>
1 parent 68d89de commit fba22f6

5 files changed

+41
-56
lines changed

helm/experimental.yaml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
# This is a YAML-formatted file.
33
# Declare variables to be passed into your templates.
44

5-
features:
6-
apiV1MetasHandler:
7-
enabled: true
8-
webhookProviderCertManager:
9-
enabled: true
10-
singleOwnNamespaceInstallSupport:
11-
enabled: true
12-
preflightPermissions:
13-
enabled: true
14-
helmChartSupport:
15-
enabled: true
5+
# List of enabled experimental features for operator-controller
6+
# Use with {{- if has "FeatureGate" .Value.operatorControllerFeatures }}
7+
# to pull in resources or additions
8+
operatorControllerFeatures:
9+
- WebhookProviderCertManager
10+
- SingleOwnNamespaceInstallSupport
11+
- PreflightPermissions
12+
- HelmChartSupport
13+
14+
# List of enabled experimental features for catalogd
15+
# Use with {{- if has "FeatureGate" .Value.catalogdFeatures }}
16+
# to pull in resources or additions
17+
catalogdFeatures:
18+
- APIV1MetasHandler
1619

1720
# This can be one of: standard or experimental
1821
featureSet: experimental

helm/olmv1/templates/29-deployment-olmv1-system-catalogd-controller-manager.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ spec:
3535
spec:
3636
containers:
3737
- args:
38-
{{- if not .Values.features.tilt.enabled }}
38+
{{- if not .Values.tilt.enabled }}
3939
- --leader-elect
4040
{{- end }}
4141
- --metrics-bind-address=:7443
4242
- --external-address=catalogd-service.{{ .Values.namespaces.olmv1.name }}.svc
43-
{{- if .Values.features.apiV1MetasHandler.enabled }}
44-
- --feature-gates=APIV1MetasHandler=true
43+
{{- range .Values.catalogdFeatures }}
44+
- --feature-gates={{- . -}}=true
4545
{{- end }}
4646
{{- if .Values.components.certManager.enabled }}
4747
- --tls-cert=/var/certs/tls.crt
@@ -64,7 +64,7 @@ spec:
6464
{{- toYamlPretty . | nindent 12 }}
6565
{{- end }}
6666
image: "{{ .Values.components.catalogd.deployment.image }}"
67-
{{- if not .Values.features.tilt.enabled }}
67+
{{- if not .Values.tilt.enabled }}
6868
livenessProbe:
6969
httpGet:
7070
path: /healthz
@@ -73,7 +73,7 @@ spec:
7373
periodSeconds: 20
7474
{{- end }}
7575
name: manager
76-
{{- if not .Values.features.tilt.enabled }}
76+
{{- if not .Values.tilt.enabled }}
7777
readinessProbe:
7878
httpGet:
7979
path: /readyz

helm/olmv1/templates/30-deployment-olmv1-system-operator-controller-controller-manager.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,11 @@ spec:
3636
- args:
3737
- --health-probe-bind-address=:8081
3838
- --metrics-bind-address=:8443
39-
{{- if not .Values.features.tilt.enabled }}
39+
{{- if not .Values.tilt.enabled }}
4040
- --leader-elect
4141
{{- end }}
42-
{{- if .Values.features.apiV1MetasHandler.enabled }}
43-
- --feature-gates=WebhookProviderCertManager=true
44-
{{- end }}
45-
{{- if .Values.features.singleOwnNamespaceInstallSupport.enabled }}
46-
- --feature-gates=SingleOwnNamespaceInstallSupport=true
47-
{{- end }}
48-
{{- if .Values.features.preflightPermissions.enabled }}
49-
- --feature-gates=PreflightPermissions=true
50-
{{- end }}
51-
{{- if .Values.features.helmChartSupport.enabled }}
52-
- --feature-gates=HelmChartSupport=true
42+
{{- range .Values.operatorControllerFeatures }}
43+
- --feature-gates={{- . -}}=true
5344
{{- end }}
5445
{{- if .Values.components.certManager.enabled }}
5546
- --catalogd-cas-dir=/var/ca-certs
@@ -73,7 +64,7 @@ spec:
7364
{{- toYamlPretty . | nindent 12 }}
7465
{{- end }}
7566
image: "{{ .Values.components.operatorController.deployment.image }}"
76-
{{- if not .Values.features.tilt.enabled }}
67+
{{- if not .Values.tilt.enabled }}
7768
livenessProbe:
7869
httpGet:
7970
path: /healthz
@@ -82,7 +73,7 @@ spec:
8273
periodSeconds: 20
8374
{{- end }}
8475
name: manager
85-
{{- if not .Values.features.tilt.enabled }}
76+
{{- if not .Values.tilt.enabled }}
8677
readinessProbe:
8778
httpGet:
8879
path: /readyz

helm/olmv1/values.yaml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,12 @@ components:
4141
e2e:
4242
enabled: false
4343

44-
features:
45-
tilt:
46-
enabled: false
47-
apiV1MetasHandler:
48-
enabled: false
49-
webhookProviderCertManager:
50-
enabled: false
51-
singleOwnNamespaceInstallSupport:
52-
enabled: false
53-
preflightPermissions:
54-
enabled: false
55-
helmChartSupport:
56-
enabled: false
44+
45+
tilt:
46+
enabled: false
47+
48+
operatorControllerFeatures: []
49+
catalogdFeatures: []
5750

5851
# This can be one of: standard or experimental
5952
featureSet: standard

helm/tilt.yaml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@
22
# This is a YAML-formatted file.
33
# Declare variables to be passed into your templates.
44

5-
features:
6-
tilt:
7-
enabled: true
8-
apiV1MetasHandler:
9-
enabled: true
10-
webhookProviderCertManager:
11-
enabled: true
12-
singleOwnNamespaceInstallSupport:
13-
enabled: true
14-
preflightPermissions:
15-
enabled: true
16-
helmChartSupport:
17-
enabled: true
5+
tilt:
6+
enabled: true
7+
8+
operatorControllerFeatures:
9+
- WebhookProviderCertManager
10+
- SingleOwnNamespaceInstallSupport
11+
- PreflightPermissions
12+
- HelmChartSupport
13+
14+
catalogdFeatures:
15+
- APIV1MetasHandler
1816

1917
# This can be one of: standard or experimental
2018
featureSet: experimental

0 commit comments

Comments
 (0)