From 1c06448201926c15d940b75ec23d47f27c757000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Liebau?= Date: Wed, 24 Nov 2021 14:51:42 +0000 Subject: [PATCH] Generated commit to update templated files based on rev 2ce5e08 in stackabletech/operator-templating repo. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message: Add actions to build Helm charts to the operators and retire os package building. (#7) * First version - mostly working * Replace operator version placeholder in Helm chart. * Fix ansible equality test with older jinja version and make Makefile a j2 template. * Reenable all repos * Bugfix: indentation and Makefile. * Update template/.github/workflows/publish_dev_artifacts.yml.j2 Co-authored-by: Teo Klestrup Röijezon * Update repositories.yaml Co-authored-by: Teo Klestrup Röijezon * Update template/.github/workflows/publish_dev_artifacts.yml.j2 Co-authored-by: Teo Klestrup Röijezon * Update template/.github/workflows/publish_dev_artifacts.yml.j2 Co-authored-by: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> * Update template/.github/workflows/publish_release_artifacts.yml.j2 Co-authored-by: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> * Update template/.github/workflows/publish_release_artifacts.yml.j2 Co-authored-by: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> * Moved crd.yaml to crds directory. * Update template/deploy/helm/[[product]]-operator/README.md.j2 Co-authored-by: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> * Update template/deploy/helm/[[product]]-operator/templates/serviceaccount.yaml.j2 Co-authored-by: Siegfried Weber * Removed kind action from Makefile. Added chart linting config back in. * Text fix * Addressed review comments * Added note to Readme about potentielly missing details. * Fix yp call and indentation in Makefile.j2 * Install roles.yaml when compiling the Helm chart * Added wildcard cluster role for all operators. * WIP: testing hive and druid. * WIP: testing with Trino fails. * Make roles.yaml a Jinja template. * More templating of the roles.yaml.j2 * Add update verb to configmaps resource. Co-authored-by: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> Co-authored-by: Teo Klestrup Röijezon Co-authored-by: Siegfried Weber --- .github/workflows/publish_dev_artifacts.yml | 66 +++++----------- .../workflows/publish_release_artifacts.yml | 71 +++++------------ deploy/helm/chart_testing.yaml | 5 ++ deploy/helm/hdfs-operator/Chart.yaml | 33 ++++++++ deploy/helm/hdfs-operator/README.md | 42 ++++++++++ .../helm/hdfs-operator/templates/_helpers.tpl | 76 ++++++++++++++++++ .../hdfs-operator/templates/configmap.yaml | 12 +++ .../hdfs-operator/templates/deployment.yaml | 61 +++++++++++++++ .../helm/hdfs-operator/templates/roles.yaml | 77 +++++++++++++++++++ .../templates/serviceaccount.yaml | 32 ++++++++ deploy/helm/hdfs-operator/values.yaml | 55 +++++++++++++ 11 files changed, 433 insertions(+), 97 deletions(-) create mode 100644 deploy/helm/chart_testing.yaml create mode 100644 deploy/helm/hdfs-operator/Chart.yaml create mode 100644 deploy/helm/hdfs-operator/README.md create mode 100644 deploy/helm/hdfs-operator/templates/_helpers.tpl create mode 100644 deploy/helm/hdfs-operator/templates/configmap.yaml create mode 100644 deploy/helm/hdfs-operator/templates/deployment.yaml create mode 100644 deploy/helm/hdfs-operator/templates/roles.yaml create mode 100644 deploy/helm/hdfs-operator/templates/serviceaccount.yaml create mode 100644 deploy/helm/hdfs-operator/values.yaml diff --git a/.github/workflows/publish_dev_artifacts.yml b/.github/workflows/publish_dev_artifacts.yml index 7a1aefc7..7afa9b36 100644 --- a/.github/workflows/publish_dev_artifacts.yml +++ b/.github/workflows/publish_dev_artifacts.yml @@ -16,25 +16,33 @@ env: CARGO_INCREMENTAL: '0' CARGO_PROFILE_DEV_DEBUG: '0' RUSTFLAGS: "-D warnings -W rust-2021-compatibility" - REPO_APT_DEV_URL: https://repo.stackable.tech/repository/deb-dev - REPO_RPM_DEV_URL: https://repo.stackable.tech/repository/rpm-dev + REPO_HELM_DEV_URL: https://repo.stackable.tech/repository/helm-dev + CHART_TESTING_CONFIG: deploy/helm/chart-testing.yaml jobs: - debian10: - runs-on: debian10 + helm: + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.4.0 + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Set up Helm + uses: azure/setup-helm@v1 + with: + version: v3.6.2 + - name: Compile chart + run: make compile-chart - name: Change version if is PR if: ${{ github.event_name == 'pull_request' }} # We use "mr" instead of "pr" to denote pull request builds, as this prefix comes before "nightly" when lexically # sorting packages by version. This means that when installing the package without specifying a version the # nighly version is considered more current than mr versions and installed by default - run: sed -i -e 's/^version = "\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/version = "\1-mr${{ github.event.number }}"/' rust/operator-binary/Cargo.toml - - name: Build - run: ~/.cargo/bin/cargo +nightly build --verbose --release - - name: Build apt package - run: ~/.cargo/bin/cargo deb --manifest-path rust/operator-binary/Cargo.toml --no-build - - name: Publish apt package + run: | + sed -i -e 's/^version: \([0-9]\+\.[0-9]\+\.[0-9]\+\).*/version: \1+mr${{ github.event.number }}/' deploy/helm/${{ env.PRODUCT_NAME }}-operator/Chart.yaml + - name: Package Chart + run: mkdir -p target/helm && helm package --destination target/helm deploy/helm/${{ env.PRODUCT_NAME }}-operator + - name: Publish Chart env: NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} if: env.NEXUS_PASSWORD != null @@ -42,38 +50,6 @@ jobs: /usr/bin/curl --fail -u 'github:${{ secrets.NEXUS_PASSWORD }}' - -H "Content-Type: multipart/form-data" - --data-binary "@./$(find target/debian/ -name *.deb)" - "${{ env.REPO_APT_DEV_URL }}/" - - name: Clean - run: ~/.cargo/bin/cargo clean + --upload-file "./$(find target/helm/ -name *.tgz)" + "${{ env.REPO_HELM_DEV_URL }}/" - centos: - runs-on: centos${{ matrix.node }} - strategy: - matrix: - node: [ 7, 8 ] - steps: - - uses: actions/checkout@v2.4.0 - - name: Change version if is PR - if: ${{ github.event_name == 'pull_request' }} - # We use "mr" instead of "pr" to denote pull request builds, as this prefix comes before "nightly" when lexically - # sorting packages by version. This means that when installing the package without specifying a version the - # nighly version is considered more current than mr versions and installed by default - run: sed -i -e 's/^version = "\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/version = "\1-mr${{ github.event.number }}"/' rust/operator-binary/Cargo.toml - - name: Build - run: ~/.cargo/bin/cargo +nightly build --verbose --release - - name: Build RPM package - run: packaging/buildrpm.sh stackable-${{ env.PRODUCT_NAME }}-operator-binary stackable-${{ env.PRODUCT_NAME }}-operator - - name: Publish RPM package - env: - NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} - if: env.NEXUS_PASSWORD != null - run: >- - /usr/bin/curl - --fail - -u 'github:${{ secrets.NEXUS_PASSWORD }}' - --upload-file "./$(find target/rpm/RPMS/x86_64/ -name *.rpm)" - "${{ env.REPO_RPM_DEV_URL }}/el${{ matrix.node }}/" - - name: Clean - run: ~/.cargo/bin/cargo clean diff --git a/.github/workflows/publish_release_artifacts.yml b/.github/workflows/publish_release_artifacts.yml index 6ac61284..87ddfa15 100644 --- a/.github/workflows/publish_release_artifacts.yml +++ b/.github/workflows/publish_release_artifacts.yml @@ -15,64 +15,31 @@ env: CARGO_INCREMENTAL: '0' CARGO_PROFILE_DEV_DEBUG: '0' RUSTFLAGS: "-D warnings -W rust-2021-compatibility" - REPO_APT_RELEASE_URL: https://repo.stackable.tech/repository/deb-release - REPO_RPM_RELEASE_URL: https://repo.stackable.tech/repository/rpm-release + REPO_HELM_STABLE_URL: https://repo.stackable.tech/repository/helm-stable + CT_CONFIG: deploy/helm/ct.yaml jobs: - debian10: - runs-on: debian10 + helm: + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.4.0 - - name: Change version if is PR - if: ${{ github.event_name == 'pull_request' }} - # We use "mr" instead of "pr" to denote pull request builds, as this prefix comes before "nightly" when lexically - # sorting packages by version. This means that when installing the package without specifying a version the - # nighly version is considered more current than mr versions and installed by default - run: sed -i -e 's/^version = "\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/version = "\1-mr${{ github.event.number }}"/' rust/operator-binary/Cargo.toml - - name: Build - run: ~/.cargo/bin/cargo +nightly build --verbose --release - - name: Build apt package - run: ~/.cargo/bin/cargo deb --manifest-path rust/operator-binary/Cargo.toml --no-build - - name: Publish apt package + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Set up Helm + uses: azure/setup-helm@v1 + with: + version: v3.6.2 + - name: Compile chart + run: make compile-chart + - name: Package Chart + run: mkdir -p target/helm && helm package --destination target/helm deploy/helm/${{ env.PRODUCT_NAME }}-operator + - name: Publish Chart env: NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} - if: env.NEXUS_PASSWORD != null run: >- /usr/bin/curl --fail -u 'github:${{ secrets.NEXUS_PASSWORD }}' - -H "Content-Type: multipart/form-data" - --data-binary "@./$(find target/debian/ -name *.deb)" - "${{ env.REPO_APT_RELEASE_URL }}/" - - name: Clean - run: ~/.cargo/bin/cargo clean - - centos: - runs-on: centos${{ matrix.node }} - strategy: - matrix: - node: [ 7, 8 ] - steps: - - uses: actions/checkout@v2.4.0 - - name: Change version if is PR - if: ${{ github.event_name == 'pull_request' }} - # We use "mr" instead of "pr" to denote pull request builds, as this prefix comes before "nightly" when lexically - # sorting packages by version. This means that when installing the package without specifying a version the - # nighly version is considered more current than mr versions and installed by default - run: sed -i -e 's/^version = "\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/version = "\1-mr${{ github.event.number }}"/' rust/operator-binary/Cargo.toml - - name: Build - run: ~/.cargo/bin/cargo +nightly build --verbose --release - - name: Build RPM package - run: packaging/buildrpm.sh stackable-${{ env.PRODUCT_NAME }}-operator-binary stackable-${{ env.PRODUCT_NAME }}-operator - - name: Publish RPM package - env: - NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} - if: env.NEXUS_PASSWORD != null - run: >- - /usr/bin/curl - --fail - -u 'github:${{ secrets.NEXUS_PASSWORD }}' - --upload-file "./$(find target/rpm/RPMS/x86_64/ -name *.rpm)" - "${{ env.REPO_RPM_RELEASE_URL }}/el${{ matrix.node }}/" - - name: Clean - run: ~/.cargo/bin/cargo clean + --upload-file "./$(find target/helm/ -name *.tgz)" + "${{ env.REPO_HELM_STABLE_URL }}/" \ No newline at end of file diff --git a/deploy/helm/chart_testing.yaml b/deploy/helm/chart_testing.yaml new file mode 100644 index 00000000..82b39c26 --- /dev/null +++ b/deploy/helm/chart_testing.yaml @@ -0,0 +1,5 @@ +remote: origin +target-branch: main +chart-dirs: + - deploy/helm +all: true diff --git a/deploy/helm/hdfs-operator/Chart.yaml b/deploy/helm/hdfs-operator/Chart.yaml new file mode 100644 index 00000000..06c87e7d --- /dev/null +++ b/deploy/helm/hdfs-operator/Chart.yaml @@ -0,0 +1,33 @@ +# ============= +# This file is automatically generated from the templates in stackabletech/operator-templating +# DON'T MANUALLY EDIT THIS FILE +# ============= + +apiVersion: v2 +name: hdfs-operator +description: The Stackable Operator for Apache HDFS + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +maintainers: + - name: stackable + url: github.com/stackabletech + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: diff --git a/deploy/helm/hdfs-operator/README.md b/deploy/helm/hdfs-operator/README.md new file mode 100644 index 00000000..cd8f93ba --- /dev/null +++ b/deploy/helm/hdfs-operator/README.md @@ -0,0 +1,42 @@ +[]: # ============= +[]: # This file is automatically generated from the templates in stackabletech/operator-templating +[]: # DON'T MANUALLY EDIT THIS FILE +[]: # ============= + +# Helm Chart for Stackable Operator for Apache HDFS + +This Helm Chart can be used to install Custom Resource Definitions and the Operator for Apache HDFS provided by Stackable. + + +## Requirements + +- Create a [Kubernetes Cluster](../Readme.md) +- Install [Helm](https://helm.sh/docs/intro/install/) + + +## Install the Stackble Operator for Apache HDFS + +```bash +# From the root of the operator repository +make compile-chart + +helm install hdfs-operator deploy/helm/hdfs-operator +``` + + + + +## Create a Apache HDFS Cluster + +as described [here](https://docs.stackable.tech/hdfs/index.html) + + + +The operator has example requests included in the [`/examples`](https://github.com/stackabletech/hdfs/operator/tree/main/examples) directory that can be used to spin up a cluster. + + +## Links + +https://github.com/stackabletech/hdfs-operator + + diff --git a/deploy/helm/hdfs-operator/templates/_helpers.tpl b/deploy/helm/hdfs-operator/templates/_helpers.tpl new file mode 100644 index 00000000..840391ac --- /dev/null +++ b/deploy/helm/hdfs-operator/templates/_helpers.tpl @@ -0,0 +1,76 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "operator.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-operator" }} +{{- end }} + +{{/* +Expand the name of the chart. +*/}} +{{- define "operator.appname" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "operator.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "operator.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "operator.labels" -}} +helm.sh/chart: {{ include "operator.chart" . }} +{{ include "operator.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "operator.selectorLabels" -}} +app.kubernetes.io/name: {{ include "operator.appname" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "operator.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "operator.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} + +{{/* +Labels for Kubernetes objects created by helm test +*/}} +{{- define "operator.testLabels" -}} +helm.sh/test: {{ include "operator.chart" . }} +{{- end }} \ No newline at end of file diff --git a/deploy/helm/hdfs-operator/templates/configmap.yaml b/deploy/helm/hdfs-operator/templates/configmap.yaml new file mode 100644 index 00000000..ae2f493c --- /dev/null +++ b/deploy/helm/hdfs-operator/templates/configmap.yaml @@ -0,0 +1,12 @@ +# ============= +# This file is automatically generated from the templates in stackabletech/operator-templating +# DON'T MANUALLY EDIT THIS FILE +# ============= +apiVersion: v1 +data: +{{ (.Files.Glob "configs/*").AsConfig | indent 2 }} +kind: ConfigMap +metadata: + name: {{ include "operator.fullname" . }}-configspec + labels: + {{- include "operator.labels" . | nindent 4 }} diff --git a/deploy/helm/hdfs-operator/templates/deployment.yaml b/deploy/helm/hdfs-operator/templates/deployment.yaml new file mode 100644 index 00000000..40759d1f --- /dev/null +++ b/deploy/helm/hdfs-operator/templates/deployment.yaml @@ -0,0 +1,61 @@ +# ============= +# This file is automatically generated from the templates in stackabletech/operator-templating +# DON'T MANUALLY EDIT THIS FILE +# ============= +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "operator.fullname" . }} + labels: + {{- include "operator.labels" . | nindent 4 }} +spec: + replicas: 1 + strategy: + type: Recreate + selector: + matchLabels: + {{- include "operator.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "operator.selectorLabels" . | nindent 8 }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "operator.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ include "operator.appname" . }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + resources: + {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + - mountPath: /etc/stackable/{{ include "operator.appname" . }}/config-spec + name: config-spec + volumes: + - name: config-spec + configMap: + name: {{ include "operator.fullname" . }}-configspec + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/deploy/helm/hdfs-operator/templates/roles.yaml b/deploy/helm/hdfs-operator/templates/roles.yaml new file mode 100644 index 00000000..8ec5163f --- /dev/null +++ b/deploy/helm/hdfs-operator/templates/roles.yaml @@ -0,0 +1,77 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ include "operator.name" . }}-operator +rules: + - apiGroups: + - hive.stackable.tech + resources: + - hiveclusters + verbs: + - get + - list + - apiGroups: + - "" + resources: + - nodes + verbs: + - list + - apiGroups: + - "" + resources: + - pods + - configmaps + verbs: + - create + - delete + - list + - update + - apiGroups: + - batch + resources: + - jobs + verbs: + - create + - get + - list + - watch + - apiGroups: + - apiextensions.k8s.io + resources: + - customresourcedefinitions + verbs: + - get + - apiGroups: + - command.{{ include "operator.name" . }}.stackable.tech + resources: + - inits + - restarts + - starts + - stops + - formats + verbs: + - get + - list + - patch + - watch + - apiGroups: + - command.{{ include "operator.name" . }}.stackable.tech + resources: + - inits/status + verbs: + - patch + - apiGroups: + - {{ include "operator.name" . }}.stackable.tech + resources: + - {{ include "operator.name" . }}clusters + verbs: + - get + - list + - patch + - watch + - apiGroups: + - {{ include "operator.name" . }}.stackable.tech + resources: + - {{ include "operator.name" . }}clusters/status + verbs: + - patch diff --git a/deploy/helm/hdfs-operator/templates/serviceaccount.yaml b/deploy/helm/hdfs-operator/templates/serviceaccount.yaml new file mode 100644 index 00000000..03d45e3e --- /dev/null +++ b/deploy/helm/hdfs-operator/templates/serviceaccount.yaml @@ -0,0 +1,32 @@ +# ============= +# This file is automatically generated from the templates in stackabletech/operator-templating +# DON'T MANUALLY EDIT THIS FILE +# ============= +{{ if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "operator.serviceAccountName" . }} + labels: + {{- include "operator.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +# This cluster role binding allows anyone in the "manager" group to read secrets in any namespace. +kind: ClusterRoleBinding +metadata: + name: {{ include "operator.serviceAccountName" . }}-rolebinding + labels: + {{- include "operator.labels" . | nindent 4 }} +subjects: + - kind: ServiceAccount + name: {{ include "operator.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} +roleRef: + kind: ClusterRole + name: {{ include "operator.serviceAccountName" . }} + apiGroup: rbac.authorization.k8s.io +{{- end }} \ No newline at end of file diff --git a/deploy/helm/hdfs-operator/values.yaml b/deploy/helm/hdfs-operator/values.yaml new file mode 100644 index 00000000..2be3efeb --- /dev/null +++ b/deploy/helm/hdfs-operator/values.yaml @@ -0,0 +1,55 @@ +# ============= +# This file is automatically generated from the templates in stackabletech/operator-templating +# DON'T MANUALLY EDIT THIS FILE +# ============= + +# Default values for hdfs-operator. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. +image: + repository: docker.stackable.tech/stackable/hdfs-operator + pullPolicy: IfNotPresent + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "" + +serviceAccount: + # Specifies whether a service account should be created + create: true + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" + +podAnnotations: {} + +podSecurityContext: {} + # fsGroup: 2000 + +securityContext: {} + # capabilities: + # drop: + # - ALL + # readOnlyRootFilesystem: true + # runAsNonRoot: true + # runAsUser: 1000 + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +nodeSelector: {} + +tolerations: [] + +affinity: {}