diff --git a/charts/bucket-simple-server/templates/extraresources.yaml b/charts/bucket-simple-server/templates/extraresources.yaml new file mode 100644 index 0000000..bd90b7a --- /dev/null +++ b/charts/bucket-simple-server/templates/extraresources.yaml @@ -0,0 +1,16 @@ +{{- if .Values.extraResources }} +{{- range .Values.extraResources }} +--- +{{- $resource := . | deepCopy }} + +{{- $objectLabels := include "bucketSimpleServer.labels" $ | fromYaml }} + +{{- if $resource.metadata.labels }} +{{- $objectLabels = merge $objectLabels $resource.metadata.labels }} +{{- end }} + +{{ $_ := set $resource.metadata "labels" $objectLabels -}} + +{{ toYaml $resource | nindent 0 }} +{{- end }} +{{- end }} diff --git a/charts/bucket-simple-server/values.yaml b/charts/bucket-simple-server/values.yaml index 319f62a..d615789 100644 --- a/charts/bucket-simple-server/values.yaml +++ b/charts/bucket-simple-server/values.yaml @@ -3,26 +3,6 @@ nameOverride: "" fullnameOverride: "" -# Following custom ClusterRole is a place where to add the type of resources -# allowed to be treated by PG Selector. -customClusterRole: - # Specifies whether a custom clusterRole should be created - create: true - - # Annotations to add to the clusterRole - annotations: {} - - # A set of rules as documented here : https://kubernetes.io/docs/reference/access-authn-authz/rbac/ - rules: - - apiGroups: ['*'] - resources: ['*'] - verbs: ['*'] - - clusterRoleBinding: - # Annotations to add to the clusterRoleBinding - annotations: {} - -# TODO agent: # Specify the configuration @@ -105,3 +85,16 @@ agent: tolerations: [] affinity: {} + +# Define some extra resources to be created +# This section is useful when you need ExternalResource or Secrets, etc. +extraResources: [] + # - apiVersion: v1 + # kind: Secret + # metadata: + # name: example-secret + # labels: {} + # type: Opaque + # stringData: + # username: admin + # password: mypassword \ No newline at end of file