1
0
Fork 0
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:
Eric Chan 2022-03-29 10:22:50 +10:00
parent efb75527e0
commit e132edf0d4
3 changed files with 9 additions and 11 deletions

View file

@ -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" && \

View file

@ -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 | `{}` | |

View file

@ -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: ""