Browse Source

Merge pull request #817 from kinyat/feat/control-enables

Add `create` flags to control weather deployments should be created
paul-the-alien[bot] 4 years ago
parent
commit
9c7fdbbac1

+ 3 - 0
deploy/charts/external-secrets/README.md

@@ -36,6 +36,7 @@ The command removes all the Kubernetes components associated with the chart and
 |-----|------|---------|-------------|
 | affinity | object | `{}` |  |
 | certController.affinity | object | `{}` |  |
+| certController.create | bool | `true` | Specifies whether a certificate controller deployment be created. |
 | certController.deploymentAnnotations | object | `{}` | Annotations to add to Deployment |
 | certController.extraArgs | object | `{}` |  |
 | certController.extraEnv | list | `[]` |  |
@@ -62,6 +63,7 @@ The command removes all the Kubernetes components associated with the chart and
 | certController.tolerations | list | `[]` |  |
 | concurrent | int | `1` | Specifies the number of concurrent ExternalSecret Reconciles external-secret executes at a time. |
 | controllerClass | string | `""` | If set external secrets will filter matching Secret Stores with the appropriate controller values. |
+| createOperator | bool | `true` | Specifies whether an external secret operator deployment be created. |
 | deploymentAnnotations | object | `{}` | Annotations to add to Deployment |
 | extraArgs | object | `{}` |  |
 | extraEnv | list | `[]` |  |
@@ -92,6 +94,7 @@ The command removes all the Kubernetes components associated with the chart and
 | webhook.affinity | object | `{}` |  |
 | webhook.certCheckInterval | string | `"5m"` |  |
 | webhook.certDir | string | `"/tmp/certs"` |  |
+| webhook.create | bool | `true` | Specifies whether a webhook deployment be created. |
 | webhook.deploymentAnnotations | object | `{}` | Annotations to add to Deployment |
 | webhook.extraArgs | object | `{}` |  |
 | webhook.extraEnv | list | `[]` |  |

+ 2 - 0
deploy/charts/external-secrets/templates/cert-controller-deployment.yaml

@@ -1,3 +1,4 @@
+{{- if .Values.certController.create }}
 apiVersion: apps/v1
 kind: Deployment
 metadata:
@@ -90,3 +91,4 @@ spec:
       {{- if .Values.certController.priorityClassName }}
       priorityClassName: {{ .Values.certController.priorityClassName }}
       {{- end }}
+{{- end }}

+ 2 - 0
deploy/charts/external-secrets/templates/deployment.yaml

@@ -1,3 +1,4 @@
+{{- if .Values.createOperator }}
 apiVersion: apps/v1
 kind: Deployment
 metadata:
@@ -92,3 +93,4 @@ spec:
       {{- if .Values.priorityClassName }}
       priorityClassName: {{ .Values.priorityClassName }}
       {{- end }}
+{{- end }}

+ 2 - 0
deploy/charts/external-secrets/templates/webhook-deployment.yaml

@@ -1,3 +1,4 @@
+{{- if .Values.webhook.create }}
 apiVersion: apps/v1
 kind: Deployment
 metadata:
@@ -99,3 +100,4 @@ spec:
       {{- if .Values.webhook.priorityClassName }}
       priorityClassName: {{ .Values.webhook.priorityClassName }}
       {{- end }}
+{{- end }}

+ 7 - 0
deploy/charts/external-secrets/values.yaml

@@ -25,6 +25,9 @@ controllerClass: ""
 # provided namespace
 scopedNamespace: ""
 
+# -- Specifies whether an external secret operator deployment be created.
+createOperator: true
+
 # -- Specifies the number of concurrent ExternalSecret Reconciles external-secret executes at
 # a time.
 concurrent: 1
@@ -88,6 +91,8 @@ affinity: {}
 priorityClassName: ""
 
 webhook:
+  # -- Specifies whether a webhook deployment be created.
+  create: true
   certCheckInterval: "5m"
   replicaCount: 1
   certDir: /tmp/certs
@@ -154,6 +159,8 @@ webhook:
       #   memory: 32Mi
 
 certController:
+  # -- Specifies whether a certificate controller deployment be created.
+  create: true
   requeueInterval: "5m"
   image:
     repository: ghcr.io/external-secrets/external-secrets