File tree 11 files changed +19
-11
lines changed
11 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 1
-
1
+ {{- if .Values.enabled }}
2
2
---
3
3
apiVersion : v1
4
4
data :
@@ -18,3 +18,4 @@ kind: ConfigMap
18
18
metadata :
19
19
name : testkube-operator-manager-config
20
20
namespace : {{ include "testkube-operator.namespace" . }}
21
+ {{- end }}
Original file line number Diff line number Diff line change
1
+ {{- if .Values.enabled }}
1
2
apiVersion : {{ include "global.capabilities.deployment.apiVersion" . }}
2
3
kind : Deployment
3
4
metadata :
@@ -143,3 +144,4 @@ spec:
143
144
nodeSelector :
144
145
{{- toYaml .Values.global.nodeSelector | nindent 8 }}
145
146
{{- end }}
147
+ {{- end }}
Original file line number Diff line number Diff line change 1
- {{ if .Values.rbac.create }}
1
+ {{ if and .Values.enabled .Values.rbac.create }}
2
2
---
3
3
4
4
apiVersion : {{ include "global.capabilities.rbac.apiVersion" . }}
@@ -493,7 +493,7 @@ rules:
493
493
- watch
494
494
- deletecollection
495
495
496
- {{- if and .Values.webhook.enabled .Values.webhook.patch.enabled }}
496
+ {{- if and .Values.enabled (and .Values. webhook.enabled .Values.webhook.patch.enabled) }}
497
497
---
498
498
apiVersion : {{ include "global.capabilities.rbac.apiVersion" . }}
499
499
kind : ClusterRole
Original file line number Diff line number Diff line change 1
- {{ if .Values.rbac.create }}
1
+ {{ if and .Values.enabled .Values.rbac.create }}
2
2
---
3
3
4
4
apiVersion : {{ include "global.capabilities.rbac.apiVersion" . }}
@@ -114,7 +114,7 @@ subjects:
114
114
name : {{ include "testkube-operator.serviceAccountName" . }}
115
115
namespace : {{ include "testkube-operator.namespace" . }}
116
116
117
- {{- if and .Values.webhook.enabled .Values.webhook.patch.enabled }}
117
+ {{- if and .Values.enabled (and .Values. webhook.enabled .Values.webhook.patch.enabled) }}
118
118
---
119
119
apiVersion : {{ include "global.capabilities.rbac.apiVersion" . }}
120
120
kind : ClusterRoleBinding
Original file line number Diff line number Diff line change
1
+ {{- if .Values.enabled }}
1
2
apiVersion : v1
2
3
kind : Service
3
4
metadata :
43
44
targetPort : 9443
44
45
selector :
45
46
control-plane : controller-manager
47
+ {{- end }}
Original file line number Diff line number Diff line change 1
- {{- if .Values.serviceAccount.create -}}
1
+ {{- if and .Values.enabled .Values.serviceAccount.create -}}
2
2
apiVersion : v1
3
3
kind : ServiceAccount
4
4
metadata :
@@ -18,7 +18,7 @@ metadata:
18
18
{{- end }}
19
19
{{- end }}
20
20
21
- {{- if and .Values.webhook.enabled .Values.webhook.patch.enabled }}
21
+ {{- if and .Values.enabled (and .Values. webhook.enabled .Values.webhook.patch.enabled) }}
22
22
---
23
23
apiVersion : v1
24
24
kind : ServiceAccount
Original file line number Diff line number Diff line change 1
- {{- if .Values.testConnection.enabled }}
1
+ {{- if and .Values.enabled .Values.testConnection.enabled }}
2
2
apiVersion : v1
3
3
kind : Pod
4
4
metadata :
Original file line number Diff line number Diff line change 1
- {{- if and .Values.webhook.enabled .Values.webhook.patch.enabled }}
1
+ {{- if and .Values.enabled (and .Values. webhook.enabled .Values.webhook.patch.enabled) }}
2
2
apiVersion : batch/v1
3
3
kind : Job
4
4
metadata :
Original file line number Diff line number Diff line change 1
- {{- if and .Values.webhook.enabled .Values.webhook.patch.enabled }}
1
+ {{- if and .Values.enabled (and .Values. webhook.enabled .Values.webhook.patch.enabled) }}
2
2
apiVersion : batch/v1
3
3
kind : Job
4
4
metadata :
Original file line number Diff line number Diff line change 1
- {{- if .Values.webhook.enabled }}
1
+ {{- if and .Values.enabled .Values.webhook.enabled }}
2
2
apiVersion : admissionregistration.k8s.io/v1
3
3
kind : ValidatingWebhookConfiguration
4
4
metadata :
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ global:
25
25
# # Kubernetes version (using Helm capabilities if not set)
26
26
kubeVersion : " "
27
27
28
+ # # Should install the Operator
29
+ enabled : true
30
+
28
31
# # Should we install CRDS - when they can be installed from other Testkube instance
29
32
installCRD : true
30
33
You can’t perform that action at this time.
0 commit comments