mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
Only generate create flags for cluster scoped crds
This commit is contained in:
parent
efb75527e0
commit
e132edf0d4
3 changed files with 9 additions and 11 deletions
10
Makefile
10
Makefile
|
@ -181,9 +181,13 @@ helm.generate:
|
|||
done
|
||||
# Add helm if statement for controlling the install of CRDs
|
||||
@for i in $(HELM_DIR)/templates/crds/*.yml; do \
|
||||
CRDS_FLAG_NAME="create$$(yq '.spec.names.kind' $$i)" && \
|
||||
cp "$$i" "$$i.bkp" && \
|
||||
echo "{{- if and (.Values.installCRDs) (.Values.crds.$$CRDS_FLAG_NAME) }}" > "$$i" && \
|
||||
export CRDS_FLAG_NAME="create$$(yq '.spec.names.kind' $$i)"; \
|
||||
cp "$$i" "$$i.bkp"; \
|
||||
if [[ "$$CRDS_FLAG_NAME" == *"Cluster"* ]]; then \
|
||||
echo "{{- if and (.Values.installCRDs) (.Values.crds.$$CRDS_FLAG_NAME) }}" > "$$i"; \
|
||||
else \
|
||||
echo "{{- if .Values.installCRDs }}" > "$$i"; \
|
||||
fi; \
|
||||
cat "$$i.bkp" >> "$$i" && \
|
||||
echo "{{- end }}" >> "$$i" && \
|
||||
rm "$$i.bkp" && \
|
||||
|
|
|
@ -64,9 +64,7 @@ The command removes all the Kubernetes components associated with the chart and
|
|||
| 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. |
|
||||
| crds.createClusterExternalSecret | bool | `true` | If true, create CRDs for Cluster External Secret. |
|
||||
| crds.createClusterSecretStore | bool | `true` | If true, create CRDs for Secret Store. |
|
||||
| crds.createExternalSecret | bool | `true` | If true, create CRDs for External Secret. |
|
||||
| crds.createSecretStore | bool | `true` | If true, create CRDs for Secret Store. |
|
||||
| crds.createClusterSecretStore | bool | `true` | If true, create CRDs for Cluster Secret Store. |
|
||||
| createOperator | bool | `true` | Specifies whether an external secret operator deployment be created. |
|
||||
| deploymentAnnotations | object | `{}` | Annotations to add to Deployment |
|
||||
| extraArgs | object | `{}` | |
|
||||
|
|
|
@ -12,12 +12,8 @@ installCRDs: true
|
|||
crds:
|
||||
# -- If true, create CRDs for Cluster External Secret.
|
||||
createClusterExternalSecret: true
|
||||
# -- If true, create CRDs for Secret Store.
|
||||
# -- If true, create CRDs for Cluster Secret Store.
|
||||
createClusterSecretStore: true
|
||||
# -- If true, create CRDs for External Secret.
|
||||
createExternalSecret: true
|
||||
# -- If true, create CRDs for Secret Store.
|
||||
createSecretStore: true
|
||||
|
||||
imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
|
|
Loading…
Reference in a new issue