Skip to content

Commit c39dce2

Browse files
author
Per Goncalves da Silva
committed
Add BoxcutterRuntime featuregate
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 9bc7bbc commit c39dce2

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# DO NOT ADD A NAMESPACE HERE
2+
---
3+
apiVersion: kustomize.config.k8s.io/v1alpha1
4+
kind: Component
5+
patches:
6+
- target:
7+
kind: Deployment
8+
name: operator-controller-controller-manager
9+
path: patches/enable-featuregate.yaml
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# enable Boxcutter runtime feature gate
2+
- op: add
3+
path: /spec/template/spec/containers/0/args/-
4+
value: "--feature-gates=BoxcutterRuntime=true"

internal/operator-controller/features/features.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const (
1717
WebhookProviderCertManager featuregate.Feature = "WebhookProviderCertManager"
1818
WebhookProviderOpenshiftServiceCA featuregate.Feature = "WebhookProviderOpenshiftServiceCA"
1919
HelmChartSupport featuregate.Feature = "HelmChartSupport"
20+
BoxcutterRuntime featuregate.Feature = "BoxcutterRuntime"
2021
)
2122

2223
var operatorControllerFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{
@@ -72,6 +73,13 @@ var operatorControllerFeatureGates = map[featuregate.Feature]featuregate.Feature
7273
PreRelease: featuregate.Alpha,
7374
LockToDefault: false,
7475
},
76+
77+
// BoxcutterRuntime configures OLM to use the Boxcutter runtime for extension lifecycling
78+
BoxcutterRuntime: {
79+
Default: false,
80+
PreRelease: featuregate.Alpha,
81+
LockToDefault: false,
82+
},
7583
}
7684

7785
var OperatorControllerFeatureGate featuregate.MutableFeatureGate = featuregate.NewFeatureGate()

0 commit comments

Comments
 (0)