From cb334b2bd4ae4e8da28ccb373200142753421dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20J=2E=20Salmer=C3=B3n=20Garc=C3=ADa?= Date: Wed, 26 Feb 2025 12:05:08 +0100 Subject: [PATCH] [bitnami/kube-arangodb] feat: :tada: Add chart (#32153) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [bitnami/kube-arangodb] feat: :tada: Add chart Signed-off-by: Javier J. Salmerón García * Update CHANGELOG.md Signed-off-by: Bitnami Containers * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers * fix: :rotating_light: Add missing license header Signed-off-by: Javier J. Salmerón García * docs: :memo: Update notes Signed-off-by: Javier J. Salmerón García * fix: :bug: Set proper kube-arangodb path Signed-off-by: Javier J. Salmerón García * chore: :wrench: Temporarily disable cypress tests Signed-off-by: Javier J. Salmerón García * test: :white_check_mark: Improve test Signed-off-by: Javier J. Salmerón García * test: :white_check_mark: Ensure that the state_color is green Signed-off-by: Javier J. Salmerón García * test: :white_check_mark: Ensure that the state_color is green Signed-off-by: Javier J. Salmerón García * chore: :bulb: Improve comment Signed-off-by: Javier J. Salmerón García * Update tests Signed-off-by: Javier J. Salmerón García * chore: :recycle: Apply suggestions from code review Signed-off-by: Javier J. Salmerón García * chore: :rewind: Revert change Signed-off-by: Javier J. Salmerón García * Apply suggestions from code review Co-authored-by: Juan Ariza Toledano Signed-off-by: Javier J. Salmerón García * Update CHANGELOG.md Signed-off-by: Bitnami Containers * chore: :recycle: Apply suggestions from code review Co-authored-by: Juan Ariza Toledano Signed-off-by: Javier J. Salmerón García * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers --------- Signed-off-by: Javier J. Salmerón García Signed-off-by: Bitnami Containers Co-authored-by: Bitnami Containers Co-authored-by: Juan Ariza Toledano --- .vib/kube-arangodb/cypress/cypress.config.js | 11 + .../cypress/cypress/e2e/kube-arangodb.cy.js | 48 + .../cypress/cypress/fixtures/deployments.json | 6 + .../cypress/cypress/support/commands.js | 29 + .../cypress/cypress/support/e2e.js | 25 + .vib/kube-arangodb/goss/goss.yaml | 43 + .vib/kube-arangodb/runtime-parameters.yaml | 45 + .vib/kube-arangodb/vib-publish.json | 47 + .vib/kube-arangodb/vib-verify.json | 80 ++ bitnami/kube-arangodb/.helmignore | 25 + bitnami/kube-arangodb/CHANGELOG.md | 5 + bitnami/kube-arangodb/Chart.lock | 6 + bitnami/kube-arangodb/Chart.yaml | 34 + bitnami/kube-arangodb/README.md | 516 +++++++++ .../crds/analytics-graphanalyticsengine.yaml | 24 + bitnami/kube-arangodb/crds/apps-job.yaml | 31 + .../kube-arangodb/crds/backups-backup.yaml | 105 ++ .../crds/backups-backuppolicy.yaml | 64 ++ .../crds/database-clustersynchronization.yaml | 35 + .../crds/database-deployment.yaml | 41 + .../kube-arangodb/crds/database-member.yaml | 35 + bitnami/kube-arangodb/crds/database-task.yaml | 38 + bitnami/kube-arangodb/crds/local-storage.yaml | 24 + bitnami/kube-arangodb/crds/ml-extension.yaml | 33 + bitnami/kube-arangodb/crds/ml-job-batch.yaml | 24 + bitnami/kube-arangodb/crds/ml-job-cron.yaml | 24 + bitnami/kube-arangodb/crds/ml-storage.yaml | 33 + .../kube-arangodb/crds/networking-route.yaml | 24 + .../kube-arangodb/crds/platform-chart.yaml | 27 + .../kube-arangodb/crds/platform-storage.yaml | 24 + .../replication-deploymentreplication.yaml | 40 + .../crds/scheduler-batchjob.yaml | 24 + .../kube-arangodb/crds/scheduler-cronjob.yaml | 24 + .../crds/scheduler-deployment.yaml | 27 + bitnami/kube-arangodb/crds/scheduler-pod.yaml | 24 + .../kube-arangodb/crds/scheduler-profile.yaml | 33 + bitnami/kube-arangodb/templates/NOTES.txt | 103 ++ bitnami/kube-arangodb/templates/_helpers.tpl | 80 ++ .../kube-arangodb/templates/deployment.yaml | 341 ++++++ .../kube-arangodb/templates/extra-list.yaml | 9 + bitnami/kube-arangodb/templates/hpa.yaml | 48 + .../templates/ingress-tls-secret.yaml | 49 + bitnami/kube-arangodb/templates/ingress.yaml | 61 + .../templates/networkpolicy.yaml | 95 ++ bitnami/kube-arangodb/templates/pdb.yaml | 30 + .../cluster-role-binding.yaml | 22 + .../rbac/analytics-operator/cluster-role.yaml | 18 + .../rbac/analytics-operator/role-binding.yaml | 23 + .../rbac/analytics-operator/role.yaml | 40 + .../apps-operator/cluster-role-binding.yaml | 22 + .../rbac/apps-operator/cluster-role.yaml | 18 + .../rbac/apps-operator/role-binding.yaml | 40 + .../templates/rbac/apps-operator/role.yaml | 50 + .../apps-operator/service-account-job.yaml | 22 + .../backup-operator/cluster-role-binding.yaml | 22 + .../rbac/backup-operator/cluster-role.yaml | 18 + .../rbac/backup-operator/role-binding.yaml | 23 + .../templates/rbac/backup-operator/role.yaml | 34 + .../rbac/crd/cluster-role-binding.yaml | 22 + .../templates/rbac/crd/cluster-role.yaml | 90 ++ .../cluster-role-binding.yaml | 22 + .../deployment-operator/cluster-role.yaml | 21 + .../default-role-binding.yaml | 23 + .../deployment-operator/default-role.yaml | 19 + .../deployment-operator/role-binding.yaml | 23 + .../rbac/deployment-operator/role.yaml | 60 + .../cluster-role-binding.yaml | 22 + .../cluster-role.yaml | 21 + .../role-binding.yaml | 23 + .../role.yaml | 28 + .../cluster-role-binding.yaml | 22 + .../cluster-role.yaml | 18 + .../role-binding.yaml | 23 + .../rbac/k2k-cluster-sync-operator/role.yaml | 31 + .../ml-operator/cluster-role-binding.yaml | 22 + .../rbac/ml-operator/cluster-role.yaml | 18 + .../rbac/ml-operator/role-binding.yaml | 23 + .../templates/rbac/ml-operator/role.yaml | 67 ++ .../cluster-role-binding.yaml | 22 + .../networking-operator/cluster-role.yaml | 18 + .../networking-operator/role-binding.yaml | 23 + .../rbac/networking-operator/role.yaml | 22 + .../cluster-role-binding.yaml | 22 + .../rbac/platform-operator/cluster-role.yaml | 18 + .../rbac/platform-operator/role-binding.yaml | 23 + .../rbac/platform-operator/role.yaml | 23 + .../cluster-role-binding.yaml | 22 + .../rbac/scheduler-operator/cluster-role.yaml | 18 + .../rbac/scheduler-operator/role-binding.yaml | 23 + .../rbac/scheduler-operator/role.yaml | 62 + .../cluster-role-binding.yaml | 22 + .../rbac/storage-operator/cluster-role.yaml | 30 + .../rbac/storage-operator/role-binding.yaml | 23 + .../templates/rbac/storage-operator/role.yaml | 28 + bitnami/kube-arangodb/templates/secret.yaml | 22 + .../templates/service-account.yaml | 20 + bitnami/kube-arangodb/templates/service.yaml | 79 ++ .../templates/servicemonitor.yaml | 50 + bitnami/kube-arangodb/templates/vpa.yaml | 45 + .../templates/webhook/mutation.yaml | 70 ++ .../templates/webhook/service.yaml | 37 + .../templates/webhook/validation.yaml | 18 + bitnami/kube-arangodb/values.yaml | 1002 +++++++++++++++++ 103 files changed, 5186 insertions(+) create mode 100644 .vib/kube-arangodb/cypress/cypress.config.js create mode 100644 .vib/kube-arangodb/cypress/cypress/e2e/kube-arangodb.cy.js create mode 100644 .vib/kube-arangodb/cypress/cypress/fixtures/deployments.json create mode 100644 .vib/kube-arangodb/cypress/cypress/support/commands.js create mode 100644 .vib/kube-arangodb/cypress/cypress/support/e2e.js create mode 100644 .vib/kube-arangodb/goss/goss.yaml create mode 100644 .vib/kube-arangodb/runtime-parameters.yaml create mode 100644 .vib/kube-arangodb/vib-publish.json create mode 100644 .vib/kube-arangodb/vib-verify.json create mode 100644 bitnami/kube-arangodb/.helmignore create mode 100644 bitnami/kube-arangodb/CHANGELOG.md create mode 100644 bitnami/kube-arangodb/Chart.lock create mode 100644 bitnami/kube-arangodb/Chart.yaml create mode 100644 bitnami/kube-arangodb/README.md create mode 100644 bitnami/kube-arangodb/crds/analytics-graphanalyticsengine.yaml create mode 100644 bitnami/kube-arangodb/crds/apps-job.yaml create mode 100644 bitnami/kube-arangodb/crds/backups-backup.yaml create mode 100644 bitnami/kube-arangodb/crds/backups-backuppolicy.yaml create mode 100644 bitnami/kube-arangodb/crds/database-clustersynchronization.yaml create mode 100644 bitnami/kube-arangodb/crds/database-deployment.yaml create mode 100644 bitnami/kube-arangodb/crds/database-member.yaml create mode 100644 bitnami/kube-arangodb/crds/database-task.yaml create mode 100644 bitnami/kube-arangodb/crds/local-storage.yaml create mode 100644 bitnami/kube-arangodb/crds/ml-extension.yaml create mode 100644 bitnami/kube-arangodb/crds/ml-job-batch.yaml create mode 100644 bitnami/kube-arangodb/crds/ml-job-cron.yaml create mode 100644 bitnami/kube-arangodb/crds/ml-storage.yaml create mode 100644 bitnami/kube-arangodb/crds/networking-route.yaml create mode 100644 bitnami/kube-arangodb/crds/platform-chart.yaml create mode 100644 bitnami/kube-arangodb/crds/platform-storage.yaml create mode 100644 bitnami/kube-arangodb/crds/replication-deploymentreplication.yaml create mode 100644 bitnami/kube-arangodb/crds/scheduler-batchjob.yaml create mode 100644 bitnami/kube-arangodb/crds/scheduler-cronjob.yaml create mode 100644 bitnami/kube-arangodb/crds/scheduler-deployment.yaml create mode 100644 bitnami/kube-arangodb/crds/scheduler-pod.yaml create mode 100644 bitnami/kube-arangodb/crds/scheduler-profile.yaml create mode 100644 bitnami/kube-arangodb/templates/NOTES.txt create mode 100644 bitnami/kube-arangodb/templates/_helpers.tpl create mode 100644 bitnami/kube-arangodb/templates/deployment.yaml create mode 100644 bitnami/kube-arangodb/templates/extra-list.yaml create mode 100644 bitnami/kube-arangodb/templates/hpa.yaml create mode 100644 bitnami/kube-arangodb/templates/ingress-tls-secret.yaml create mode 100644 bitnami/kube-arangodb/templates/ingress.yaml create mode 100644 bitnami/kube-arangodb/templates/networkpolicy.yaml create mode 100644 bitnami/kube-arangodb/templates/pdb.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/analytics-operator/cluster-role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/analytics-operator/cluster-role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/analytics-operator/role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/analytics-operator/role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/apps-operator/cluster-role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/apps-operator/cluster-role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/apps-operator/role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/apps-operator/role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/apps-operator/service-account-job.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/backup-operator/cluster-role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/backup-operator/cluster-role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/backup-operator/role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/backup-operator/role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/crd/cluster-role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/crd/cluster-role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/deployment-operator/cluster-role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/deployment-operator/cluster-role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/deployment-operator/default-role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/deployment-operator/default-role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/deployment-operator/role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/deployment-operator/role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/cluster-role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/cluster-role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/cluster-role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/cluster-role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/ml-operator/cluster-role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/ml-operator/cluster-role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/ml-operator/role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/ml-operator/role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/networking-operator/cluster-role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/networking-operator/cluster-role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/networking-operator/role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/networking-operator/role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/platform-operator/cluster-role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/platform-operator/cluster-role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/platform-operator/role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/platform-operator/role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/scheduler-operator/cluster-role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/scheduler-operator/cluster-role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/scheduler-operator/role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/scheduler-operator/role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/storage-operator/cluster-role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/storage-operator/cluster-role.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/storage-operator/role-binding.yaml create mode 100644 bitnami/kube-arangodb/templates/rbac/storage-operator/role.yaml create mode 100644 bitnami/kube-arangodb/templates/secret.yaml create mode 100644 bitnami/kube-arangodb/templates/service-account.yaml create mode 100644 bitnami/kube-arangodb/templates/service.yaml create mode 100644 bitnami/kube-arangodb/templates/servicemonitor.yaml create mode 100644 bitnami/kube-arangodb/templates/vpa.yaml create mode 100644 bitnami/kube-arangodb/templates/webhook/mutation.yaml create mode 100644 bitnami/kube-arangodb/templates/webhook/service.yaml create mode 100644 bitnami/kube-arangodb/templates/webhook/validation.yaml create mode 100644 bitnami/kube-arangodb/values.yaml diff --git a/.vib/kube-arangodb/cypress/cypress.config.js b/.vib/kube-arangodb/cypress/cypress.config.js new file mode 100644 index 00000000000000..6a6fdc3b3afe97 --- /dev/null +++ b/.vib/kube-arangodb/cypress/cypress.config.js @@ -0,0 +1,11 @@ +module.exports = { + env: { + username: 'vib-user', + password: 'ComplicatedPassword123!4', + }, + defaultCommandTimeout: 30000, + e2e: { + setupNodeEvents(on, config) {}, + baseUrl: 'https://localhost', + }, +} diff --git a/.vib/kube-arangodb/cypress/cypress/e2e/kube-arangodb.cy.js b/.vib/kube-arangodb/cypress/cypress/e2e/kube-arangodb.cy.js new file mode 100644 index 00000000000000..27f14d44eb4550 --- /dev/null +++ b/.vib/kube-arangodb/cypress/cypress/e2e/kube-arangodb.cy.js @@ -0,0 +1,48 @@ +/* + * Copyright Broadcom, Inc. All Rights Reserved. + * SPDX-License-Identifier: APACHE-2.0 + */ + +/// + +it('Can access the API and get the deployed Arango Database status', () => { + let token; + // /login returns an API token so we can access + // other API endpoints + cy.request({ + method: 'POST', + url: '/login', + body: { + username: Cypress.env('username'), + password: Cypress.env('password'), + }, + }).then((response) => { + expect(response.status).to.eq(200); + token = response.body.token; + }).then(() => { + // In order to avoid a race condition, we wait 60 seconds to ensure that the + // Arango database is fully deployed and available + cy.wait(60000); + cy.request({ + method: 'GET', + url: '/api/deployment', + headers: { + 'Authorization': `Bearer ${token}`, + }, + }).then((apiResponse) => { + expect(apiResponse.status).to.eq(200); + if (apiResponse.body.deployments[0]) { + cy.fixture('deployments').then((d) => { + // This is a sample output of /api/deployment + // {"deployments":[{"name":"vib-arangodb","namespace":"test","mode":"Single","environment":"Development", + // "state_color":"green","pod_count":1,"ready_pod_count":1,"volume_count":1,"ready_volume_count":1, + // "storage_classes":[""],"database_url":"","database_version":"3.11.13","database_license":"community"}]} + // + // We will check that the name is correct and the status is green + expect(apiResponse.body.deployments[0].name).to.eq(d.deployment.name); + expect(apiResponse.body.deployments[0].state_color).to.eq(d.deployment.status); + }); + } + }); + }); +}); diff --git a/.vib/kube-arangodb/cypress/cypress/fixtures/deployments.json b/.vib/kube-arangodb/cypress/cypress/fixtures/deployments.json new file mode 100644 index 00000000000000..8753467120b862 --- /dev/null +++ b/.vib/kube-arangodb/cypress/cypress/fixtures/deployments.json @@ -0,0 +1,6 @@ +{ + "deployment": { + "name": "vib-arangodb", + "status": "green" + } +} diff --git a/.vib/kube-arangodb/cypress/cypress/support/commands.js b/.vib/kube-arangodb/cypress/cypress/support/commands.js new file mode 100644 index 00000000000000..6feb22c4456c54 --- /dev/null +++ b/.vib/kube-arangodb/cypress/cypress/support/commands.js @@ -0,0 +1,29 @@ +/* + * Copyright Broadcom, Inc. All Rights Reserved. + * SPDX-License-Identifier: APACHE-2.0 + */ + +const COMMAND_DELAY = 2000; + +for (const command of ['click']) { + Cypress.Commands.overwrite(command, (originalFn, ...args) => { + const origVal = originalFn(...args); + + return new Promise((resolve) => { + setTimeout(() => { + resolve(origVal); + }, COMMAND_DELAY); + }); + }); +} + +Cypress.on('uncaught:exception', (err, runnable, promise) => { + // when the exception originated from an unhandled promise + // rejection, the promise is provided as a third argument + // you can turn off failing the test in this case + if (promise) { + return false + } + // we still want to ensure there are no other unexpected + // errors, so we let them fail the test +}) diff --git a/.vib/kube-arangodb/cypress/cypress/support/e2e.js b/.vib/kube-arangodb/cypress/cypress/support/e2e.js new file mode 100644 index 00000000000000..56c00209c02b5c --- /dev/null +++ b/.vib/kube-arangodb/cypress/cypress/support/e2e.js @@ -0,0 +1,25 @@ +/* + * Copyright Broadcom, Inc. All Rights Reserved. + * SPDX-License-Identifier: APACHE-2.0 + */ + +// *********************************************************** +// This example support/index.js is processed and +// loaded automatically before your test files. +// +// This is a great place to put global configuration and +// behavior that modifies Cypress. +// +// You can change the location of this file or turn off +// automatically serving support files with the +// 'supportFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/configuration +// *********************************************************** + +// Import commands.js using ES2015 syntax: +import './commands'; + +// Alternatively you can use CommonJS syntax: +// require('./commands') diff --git a/.vib/kube-arangodb/goss/goss.yaml b/.vib/kube-arangodb/goss/goss.yaml new file mode 100644 index 00000000000000..8237fc977d8e2d --- /dev/null +++ b/.vib/kube-arangodb/goss/goss.yaml @@ -0,0 +1,43 @@ +# Copyright Broadcom, Inc. All Rights Reserved. +# SPDX-License-Identifier: APACHE-2.0 + +http: + https://kube-arangodb:{{ .Vars.service.ports.apiHttp }}/health: + status: 200 + allow-insecure: true + https://127.0.0.1:{{ .Vars.containerPorts.apiHttp }}/health: + status: 200 + allow-insecure: true + https://kube-arangodb-webhook:{{ .Vars.webhooks.service.ports.webhook }}/health: + status: 200 + allow-insecure: true + https://127.0.0.1:{{ .Vars.webhooks.containerPorts.webhook }}/health: + status: 200 + allow-insecure: true + https://kube-arangodb:{{ .Vars.service.ports.server }}/metrics: + status: 200 + allow-insecure: true + body: + - /arangodb_operator_kubernetes_client_requests/ + https://127.0.0.1:{{ .Vars.containerPorts.server }}/metrics: + status: 200 + allow-insecure: true + body: + - /arangodb_operator_kubernetes_client_requests/ +addr: + # Container ports + tcp://kube-arangodb:{{ .Vars.service.ports.apiGrpc }}: + reachable: true + timeout: 180000 + tcp://127.0.0.1:{{ .Vars.containerPorts.apiGrpc }}: + reachable: true + timeout: 180000 + +command: + {{- $uid := .Vars.containerSecurityContext.runAsUser }} + {{- $gid := .Vars.podSecurityContext.fsGroup }} + check-user-info: + # The UID and GID should always be either the one specified as vars (always a bigger number that the default) + # or the one randomly defined by openshift (larger values). Otherwise, the chart is still using the default value. + exec: if [ $(id -u) -lt {{ $uid }} ] || [ $(id -G | awk '{print $2}') -lt {{ $gid }} ]; then exit 1; fi + exit-status: 0 diff --git a/.vib/kube-arangodb/runtime-parameters.yaml b/.vib/kube-arangodb/runtime-parameters.yaml new file mode 100644 index 00000000000000..323845c110b4e6 --- /dev/null +++ b/.vib/kube-arangodb/runtime-parameters.yaml @@ -0,0 +1,45 @@ +containerPorts: + server: 9023 + apiHttp: 9024 + apiGrpc: 9025 +service: + type: LoadBalancer + ports: + server: 443 + apiHttp: 9628 + apiGrpc: 9728 +auth: + username: vib-user + password: "ComplicatedPassword123!4" +serviceAccount: + create: true +automountServiceAccountToken: true +containerSecurityContext: + enabled: true + runAsUser: 1002 + runAsGroup: 1002 +podSecurityContext: + fsGroup: 1002 +metrics: + enabled: true +extraVolumes: + - name: empty-dir + emptyDir: {} +extraVolumeMounts: + - name: empty-dir + mountPath: /tmp +webhooks: + containerPorts: + webhook: 9999 + service: + ports: + webhook: 4443 +extraDeploy: +- | + apiVersion: "database.arangodb.com/v1" + kind: "ArangoDeployment" + metadata: + name: "vib-arangodb" + spec: + {{- include "kube-arangodb.imagePullSecrets" . | nindent 2 }} + mode: Single diff --git a/.vib/kube-arangodb/vib-publish.json b/.vib/kube-arangodb/vib-publish.json new file mode 100644 index 00000000000000..d23fb4cdc8bd76 --- /dev/null +++ b/.vib/kube-arangodb/vib-publish.json @@ -0,0 +1,47 @@ +{ + "phases": { + "package": { + "context": { + "credentials": [ + { + "url": "{VIB_ENV_CHARTS_REGISTRY}", + "authn": { + "username": "{VIB_ENV_CHARTS_REGISTRY_USERNAME}", + "password": "{VIB_ENV_CHARTS_REGISTRY_PASSWORD}" + } + } + ], + "resources": { + "url": "{SHA_ARCHIVE}", + "path": "/bitnami/kube-arangodb" + } + }, + "actions": [ + { + "action_id": "helm-package" + }, + { + "action_id": "helm-lint" + } + ] + }, + "publish": { + "actions": [ + { + "action_id": "helm-publish", + "params": { + "repository": { + "kind": "S3", + "url": "{VIB_ENV_S3_URL}", + "authn": { + "access_key_id": "{VIB_ENV_S3_ACCESS_KEY_ID}", + "secret_access_key": "{VIB_ENV_S3_SECRET_ACCESS_KEY}", + "role": "{VIB_ENV_S3_ROLE_ARN}" + } + } + } + } + ] + } + } +} diff --git a/.vib/kube-arangodb/vib-verify.json b/.vib/kube-arangodb/vib-verify.json new file mode 100644 index 00000000000000..be4211e3e243c2 --- /dev/null +++ b/.vib/kube-arangodb/vib-verify.json @@ -0,0 +1,80 @@ +{ + "phases": { + "package": { + "context": { + "credentials": [ + { + "url": "{VIB_ENV_CHARTS_REGISTRY}", + "authn": { + "username": "{VIB_ENV_CHARTS_REGISTRY_USERNAME}", + "password": "{VIB_ENV_CHARTS_REGISTRY_PASSWORD}" + } + } + ], + "resources": { + "url": "{SHA_ARCHIVE}", + "path": "/bitnami/kube-arangodb" + } + }, + "actions": [ + { + "action_id": "helm-package" + }, + { + "action_id": "helm-lint" + } + ] + }, + "verify": { + "context": { + "resources": { + "url": "{SHA_ARCHIVE}", + "path": "/bitnami/kube-arangodb" + }, + "target_platform": { + "target_platform_id": "{VIB_ENV_TARGET_PLATFORM}", + "size": { + "name": "M4" + } + } + }, + "actions": [ + { + "action_id": "goss", + "params": { + "resources": { + "path": "/.vib" + }, + "tests_file": "kube-arangodb/goss/goss.yaml", + "vars_file": "kube-arangodb/runtime-parameters.yaml", + "remote": { + "pod": { + "workload": "deploy-kube-arangodb" + } + } + } + }, + { + "action_id": "cypress", + "params": { + "resources": { + "path": "/.vib/kube-arangodb/cypress" + }, + "env": { + "username": "vib-user", + "password": "ComplicatedPassword123!4" + }, + "endpoint": "lb-kube-arangodb-https-server", + "app_protocol": "HTTPS" + } + }, + { + "action_id": "kubescape", + "params": { + "threshold": {VIB_ENV_KUBESCAPE_SCORE_THRESHOLD} + } + } + ] + } + } +} diff --git a/bitnami/kube-arangodb/.helmignore b/bitnami/kube-arangodb/.helmignore new file mode 100644 index 00000000000000..207983f36871b5 --- /dev/null +++ b/bitnami/kube-arangodb/.helmignore @@ -0,0 +1,25 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +# img folder +img/ +# Changelog +CHANGELOG.md diff --git a/bitnami/kube-arangodb/CHANGELOG.md b/bitnami/kube-arangodb/CHANGELOG.md new file mode 100644 index 00000000000000..f43c905b3d6b68 --- /dev/null +++ b/bitnami/kube-arangodb/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## 0.1.0 (2025-02-26) + +* [bitnami/kube-arangodb] feat: :tada: Add chart ([#32153](https://github.com/bitnami/charts/pull/32153)) diff --git a/bitnami/kube-arangodb/Chart.lock b/bitnami/kube-arangodb/Chart.lock new file mode 100644 index 00000000000000..8c0012b3e18598 --- /dev/null +++ b/bitnami/kube-arangodb/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: oci://registry-1.docker.io/bitnamicharts + version: 2.30.0 +digest: sha256:46afdf79eae69065904d430f03f7e5b79a148afed20aa45ee83ba88adc036169 +generated: "2025-02-20T12:51:46.893084713+01:00" diff --git a/bitnami/kube-arangodb/Chart.yaml b/bitnami/kube-arangodb/Chart.yaml new file mode 100644 index 00000000000000..07552e57f0bea1 --- /dev/null +++ b/bitnami/kube-arangodb/Chart.yaml @@ -0,0 +1,34 @@ +# Copyright Broadcom, Inc. All Rights Reserved. +# SPDX-License-Identifier: APACHE-2.0 + +annotations: + category: Infrastructure + licenses: Apache-2.0 + images: | + - name: kube-arangodb + image: docker.io/bitnami/kube-arangodb:1.2.46-debian-12-r0 + - name: arangodb + image: docker.io/bitnami/arangodb:3.11.13-debian-12-r2 +apiVersion: v2 +appVersion: 1.2.46 +dependencies: +- name: common + repository: oci://registry-1.docker.io/bitnamicharts + tags: + - bitnami-common + version: 2.x.x +description: kube-arangodb is the ArangoDB Kubernetes Operator. It simplifies the deployment and management of ArangoDB in a Kubernetes environment. It handles tasks such as creating and managing ArangoDB deployments, backups, persistent storage, and datacenter replication, ensuring optimal performance and scalability. +home: https://bitnami.com +icon: https://bitnami.com/assets/stacks/kube-arangodb/img/kube-arangodb-stack-220x234.png +keywords: +- kube-arangodb +- operator +- arangodb +- database +maintainers: +- name: Broadcom, Inc. All Rights Reserved. + url: https://github.com/bitnami/charts +name: kube-arangodb +sources: +- https://github.com/bitnami/charts/tree/main/bitnami/kube-arangodb +version: 0.1.0 diff --git a/bitnami/kube-arangodb/README.md b/bitnami/kube-arangodb/README.md new file mode 100644 index 00000000000000..1bde5064a5e5d9 --- /dev/null +++ b/bitnami/kube-arangodb/README.md @@ -0,0 +1,516 @@ + + +# Bitnami package for ArangoDB Kubernetes Operator + +kube-arangodb is the ArangoDB Kubernetes Operator. It simplifies the deployment and management of ArangoDB in a Kubernetes environment. It handles tasks such as creating and managing ArangoDB deployments, backups, persistent storage, and datacenter replication, ensuring optimal performance and scalability. + +[Overview of kube-arangodb](https://arangodb.com/) + +Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement. + +## TL;DR + +```console +helm install my-release oci://registry-1.docker.io/bitnamicharts/kube-arangodb +``` + +Looking to use ArangoDB Kubernetes Operator in production? Try [VMware Tanzu Application Catalog](https://bitnami.com/enterprise), the commercial edition of the Bitnami catalog. + +## Introduction + +This chart bootstraps a [ArangoDB Kubernetes Operator](https://github.com/bitnami/containers/tree/main/bitnami/kube-arangodb) deployment on a [Kubernetes](https://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. + +Bitnami charts can be used with [Kubeapps](https://kubeapps.dev/) for deployment and management of Helm Charts in clusters. + +## Prerequisites + +- Kubernetes 1.23+ +- Helm 3.8.0+ +- PV provisioner support in the underlying infrastructure + +## Installing the Chart + +To install the chart with the release name `my-release`: + +```console +helm install my-release REGISTRY_NAME/REPOSITORY_NAME/kube-arangodb +``` + +> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`. + +The command deploys ArangoDB Kubernetes Operator on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation. + +> **Tip**: List all releases using `helm list` + +## Configuration and installation details + +### Enable kube-arangodb operators + +kube-arangodb allows setting multiple operators, managing different areas of the ArangoDB database lyfecycle. This is configured under the `features` section. The following is an example of enabling different operators inside kube-arangodb. + +```yaml +features: + deployment: true + deploymentReplications: true + storage: false + backup: false + apps: false + k8sToK8sClusterSync: false + ml: false + analytics: false + networking: true + scheduler: true + platform: true +``` + +Check the [official kube-arangodb documentation](https://arangodb.github.io/kube-arangodb/docs/features/README.html) for the detailed settings of each feature. + +### Update credentials + +The Bitnami ArangoDB Kubernetes Operator chart, when upgrading, reuses the secret previously rendered by the chart or the one specified in `auth.existingSecret`. To update credentials, use one of the following: + +- Run `helm upgrade` specifying a new password in `auth.password` +- Run `helm upgrade` specifying a new secret in `auth.existingSecret` + +### Resource requests and limits + +Bitnami charts allow setting resource requests and limits for all containers inside the chart deployment. These are inside the `resources` value (check parameter table). Setting requests is essential for production workloads and these should be adapted to your specific use case. + +To make this process easier, the chart contains the `resourcesPreset` values, which automatically sets the `resources` section according to different presets. Check these presets in [the bitnami/common chart](https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15). However, in production workloads using `resourcesPreset` is discouraged as it may not fully adapt to your specific needs. Find more information on container resource management in the [official Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/). + +### Backup and restore + +To back up and restore Helm chart deployments on Kubernetes, you need to back up the persistent volumes from the source deployment and attach them to a new deployment using [Velero](https://velero.io/), a Kubernetes backup/restore tool. Find the instructions for using Velero in [this guide](https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-backup-restore-deployments-velero-index.html). + +### Prometheus metrics + +This chart can be integrated with Prometheus by setting `metrics.enabled` to true. This will expose the kube-arangodb native Prometheus endpoint in both the containers and services. The services will also have the necessary annotations to be automatically scraped by Prometheus. + +#### Prometheus requirements + +It is necessary to have a working installation of Prometheus or Prometheus Operator for the integration to work. Install the [Bitnami Prometheus helm chart](https://github.com/bitnami/charts/tree/main/bitnami/prometheus) or the [Bitnami Kube Prometheus helm chart](https://github.com/bitnami/charts/tree/main/bitnami/kube-prometheus) to easily have a working Prometheus in your cluster. + +#### Integration with Prometheus Operator + +The chart can deploy `ServiceMonitor` objects for integration with Prometheus Operator installations. To do so, set the value `metrics.serviceMonitor.enabled=true`. Ensure that the Prometheus Operator `CustomResourceDefinitions` are installed in the cluster or it will fail with the following error: + +```text +no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1" +``` + +Install the [Bitnami Kube Prometheus helm chart](https://github.com/bitnami/charts/tree/main/bitnami/kube-prometheus) for having the necessary CRDs and the Prometheus Operator. + +### [Rolling VS Immutable tags](https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-understand-rolling-tags-containers-index.html) + +It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image. + +Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist. + +### Additional environment variables + +In case you want to add extra environment variables (useful for advanced operations like custom init scripts), you can use the `extraEnvVars` property: + +```yaml +extraEnvVars: + - name: LOG_LEVEL + value: error +``` + +Alternatively, you can use a ConfigMap or a Secret with the environment variables. To do so, use the `extraEnvVarsCM` or the `extraEnvVarsSecret` values (also the one inside the `webhooks` section). + +### Sidecars + +If additional containers are needed in the same pod as kube-arangodb (such as additional metrics or logging exporters), they can be defined using the `sidecars` parameter: + +```yaml +sidecars: +- name: your-image-name + image: your-image + imagePullPolicy: Always + ports: + - name: portname + containerPort: 1234 +``` + +If these sidecars export extra ports, extra port definitions can be added using the `service.extraPorts` parameter (where available), as shown in the example below: + +```yaml +service: + extraPorts: + - name: extraPort + port: 11311 + targetPort: 11311 +``` + +If additional init containers are needed in the same pod, they can be defined using the `initContainers` parameter. Here is an example: + +```yaml +initContainers: + - name: your-image-name + image: your-image + imagePullPolicy: Always + ports: + - name: portname + containerPort: 1234 +``` + +Learn more about [sidecar containers](https://kubernetes.io/docs/concepts/workloads/pods/) and [init containers](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/). + +### Ingress + +This chart provides support for Ingress resources. If you have an ingress controller installed on your cluster, such as [nginx-ingress-controller](https://github.com/bitnami/charts/tree/main/bitnami/nginx-ingress-controller) or [contour](https://github.com/bitnami/charts/tree/main/bitnami/contour) you can utilize the ingress controller to serve your application.To enable Ingress integration, set `ingress.enabled` to `true`. + +The most common scenario is to have one host name mapped to the deployment. In this case, the `ingress.hostname` property can be used to set the host name. The `ingress.tls` parameter can be used to add the TLS configuration for this host. + +However, it is also possible to have more than one host. To facilitate this, the `ingress.extraHosts` parameter (if available) can be set with the host names specified as an array. The `ingress.extraTLS` parameter (if available) can also be used to add the TLS configuration for extra hosts. + +> NOTE: For each host specified in the `ingress.extraHosts` parameter, it is necessary to set a name, path, and any annotations that the Ingress controller should know about. Not all annotations are supported by all Ingress controllers, but [this annotation reference document](https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md) lists the annotations supported by many popular Ingress controllers. + +Adding the TLS parameter (where available) will cause the chart to generate HTTPS URLs, and the application will be available on port 443. The actual TLS secrets do not have to be generated by this chart. However, if TLS is enabled, the Ingress record will not work until the TLS secret exists. + +[Learn more about Ingress controllers](https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/). + +### Deploying extra resources + +Apart from the Operator, you may want to deploy ArangoDeployment objects. For covering this case, the chart allows adding the full specification of other objects using the `extraDeploy` parameter. The following example would creates an ArangoDB Cluster: + +```yaml +extraDeploy: +- apiVersion: "database.arangodb.com/v1" + kind: "ArangoDeployment" + metadata: + name: "example-arangodb-cluster" + spec: + mode: Cluster +``` + +Check the [ArangoDB Kubernetes Operator official documentation](https://arangodb.github.io/kube-arangodb/) for the list of available objects. + +### Pod affinity + +This chart allows you to set your custom affinity using the `affinity` parameter. Find more information about Pod affinity in the [kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity). + +As an alternative, use one of the preset configurations for pod affinity, pod anti-affinity, and node affinity available at the [bitnami/common](https://github.com/bitnami/charts/tree/main/bitnami/common#affinities) chart. To do so, set the `podAffinityPreset`, `podAntiAffinityPreset`, or `nodeAffinityPreset` parameters (also the one inside the `webhooks` section). + +## Parameters + +### Global parameters + +| Name | Description | Value | +| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | +| `global.imageRegistry` | Global Docker image registry | `""` | +| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` | +| `global.defaultStorageClass` | Global default StorageClass for Persistent Volume(s) | `""` | +| `global.security.allowInsecureImages` | Allows skipping image verification | `false` | +| `global.compatibility.openshift.adaptSecurityContext` | Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation) | `auto` | + +### Common parameters + +| Name | Description | Value | +| --------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- | +| `kubeVersion` | Override Kubernetes version | `""` | +| `apiVersions` | Override Kubernetes API versions reported by .Capabilities | `[]` | +| `nameOverride` | String to partially override common.names.name | `""` | +| `fullnameOverride` | String to fully override common.names.fullname | `""` | +| `namespaceOverride` | String to fully override common.names.namespace | `""` | +| `commonLabels` | Labels to add to all deployed objects | `{}` | +| `commonAnnotations` | Annotations to add to all deployed objects | `{}` | +| `clusterDomain` | Kubernetes cluster domain name | `cluster.local` | +| `extraDeploy` | Array of extra objects to deploy with the release | `[]` | +| `diagnosticMode.enabled` | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | `false` | +| `diagnosticMode.command` | Command to override all containers in the deployment | `["sleep"]` | +| `diagnosticMode.args` | Args to override all containers in the deployment | `["infinity"]` | +| `image.registry` | kube-arangodb Operator image registry | `REGISTRY_NAME` | +| `image.repository` | kube-arangodb Operator image repository | `REPOSITORY_NAME/kube-arangodb` | +| `image.digest` | kube-arangodb Operator image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag image tag (immutable tags are recommended) | `""` | +| `image.pullPolicy` | kube-arangodb Operator image pull policy | `IfNotPresent` | +| `image.pullSecrets` | kube-arangodb Operator image pull secrets | `[]` | +| `image.debug` | Enable kube-arangodb Operator image debug mode | `false` | +| `arangodbImage.registry` | ArangoDB image registry | `REGISTRY_NAME` | +| `arangodbImage.repository` | ArangoDB image repository | `REPOSITORY_NAME/arangodb` | +| `arangodbImage.digest` | ArangoDB image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` | +| `replicaCount` | Number of kube-arangodb Operator replicas to deploy | `1` | +| `containerPorts.server` | kube-arangodb Operator server container port | `8528` | +| `containerPorts.apiHttp` | kube-arangodb Operator API HTTP container port | `8628` | +| `containerPorts.apiGrpc` | kube-arangodb Operator API GRPC container port | `8728` | +| `livenessProbe.enabled` | Enable livenessProbe on kube-arangodb Operator containers | `true` | +| `livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `5` | +| `livenessProbe.periodSeconds` | Period seconds for livenessProbe | `10` | +| `livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `5` | +| `livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `5` | +| `livenessProbe.successThreshold` | Success threshold for livenessProbe | `1` | +| `readinessProbe.enabled` | Enable readinessProbe on kube-arangodb Operator containers | `true` | +| `readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `5` | +| `readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | +| `readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `5` | +| `readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `5` | +| `readinessProbe.successThreshold` | Success threshold for readinessProbe | `1` | +| `startupProbe.enabled` | Enable startupProbe on kube-arangodb Operator containers | `false` | +| `startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `5` | +| `startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | +| `startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `5` | +| `startupProbe.failureThreshold` | Failure threshold for startupProbe | `5` | +| `startupProbe.successThreshold` | Success threshold for startupProbe | `1` | +| `customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | +| `customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | +| `customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | +| `scope` | Define namespace scope: Allowed values: legacy, namespaced | `legacy` | +| `allowChaos` | Allow chaows in deployments | `false` | +| `enableAPI` | Enable operator API endpoints | `true` | +| `enableCRDManagement` | Enable CRD Management by the operator | `true` | +| `extraArgs` | Add extra arguments to the default command | `[]` | +| `auth.username` | Server admin username | `user` | +| `auth.password` | Server admin password (auto-generated if not set) | `""` | +| `auth.existingSecret` | Name of a secret containing the admin credentials | `""` | +| `features.deployment` | Enable deployment operator | `true` | +| `features.deploymentReplications` | Enable deployment-replicator operator | `true` | +| `features.storage` | Enable storage operator | `false` | +| `features.backup` | Enable backup operator | `false` | +| `features.apps` | Enable apps operator | `false` | +| `features.k8sToK8sClusterSync` | Enable Kubernetes to Kubernetes Sync operator | `false` | +| `features.ml` | Enable ML operator | `false` | +| `features.analytics` | Enable analytics operator | `false` | +| `features.networking` | Enable networking operator | `true` | +| `features.scheduler` | Enable scheduler operator | `true` | +| `features.platform` | Enable platform operator | `true` | +| `deploymentFeatures.ephemeralVolumes` | Allow readOnlyRootFilesystem in the ArangoDB deployments | `true` | +| `deploymentFeatures.securedContainers` | Deploy ArangoDB as non root | `true` | +| `resourcesPreset` | Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if `resources` is set (`resources` is recommended for production). | `nano` | +| `resources` | Set container requests and limits for different resources like CPU or memory (essential for production workloads) | `{}` | +| `podSecurityContext.enabled` | Enabled kube-arangodb Operator pods' Security Context | `true` | +| `podSecurityContext.fsGroupChangePolicy` | Set filesystem group change policy | `Always` | +| `podSecurityContext.sysctls` | Set kernel settings using the sysctl interface | `[]` | +| `podSecurityContext.supplementalGroups` | Set filesystem extra groups | `[]` | +| `podSecurityContext.fsGroup` | Set kube-arangodb Operator pod's Security Context fsGroup | `1001` | +| `containerSecurityContext.enabled` | Enabled containers' Security Context | `true` | +| `containerSecurityContext.seLinuxOptions` | Set SELinux options in container | `{}` | +| `containerSecurityContext.runAsUser` | Set containers' Security Context runAsUser | `1001` | +| `containerSecurityContext.runAsGroup` | Set containers' Security Context runAsGroup | `1001` | +| `containerSecurityContext.runAsNonRoot` | Set container's Security Context runAsNonRoot | `true` | +| `containerSecurityContext.privileged` | Set container's Security Context privileged | `false` | +| `containerSecurityContext.readOnlyRootFilesystem` | Set container's Security Context readOnlyRootFilesystem | `true` | +| `containerSecurityContext.allowPrivilegeEscalation` | Set container's Security Context allowPrivilegeEscalation | `false` | +| `containerSecurityContext.capabilities.drop` | List of capabilities to be dropped | `["ALL"]` | +| `containerSecurityContext.seccompProfile.type` | Set container's Security Context seccomp profile | `RuntimeDefault` | +| `command` | Override default container command (useful when using custom images) | `[]` | +| `args` | Override default container args (useful when using custom images) | `[]` | +| `automountServiceAccountToken` | Mount Service Account token in pod | `true` | +| `hostAliases` | kube-arangodb Operator pods host aliases | `[]` | +| `podLabels` | Extra labels for kube-arangodb Operator pods | `{}` | +| `podAnnotations` | Annotations for kube-arangodb Operator pods | `{}` | +| `podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` | +| `podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `soft` | +| `pdb.create` | Enable/disable a Pod Disruption Budget creation | `true` | +| `pdb.minAvailable` | Minimum number/percentage of pods that should remain scheduled | `""` | +| `pdb.maxUnavailable` | Maximum number/percentage of pods that may be made unavailable | `""` | +| `nodeAffinityPreset.type` | Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` | +| `nodeAffinityPreset.key` | Node label key to match. Ignored if `affinity` is set | `""` | +| `nodeAffinityPreset.values` | Node label values to match. Ignored if `affinity` is set | `[]` | +| `affinity` | Affinity for kube-arangodb Operator pods assignment | `{}` | +| `nodeSelector` | Node labels for kube-arangodb Operator pods assignment | `{}` | +| `tolerations` | Tolerations for kube-arangodb Operator pods assignment | `[]` | +| `updateStrategy.type` | kube-arangodb Operator statefulset strategy type | `RollingUpdate` | +| `priorityClassName` | kube-arangodb Operator pods' priorityClassName | `""` | +| `topologySpreadConstraints` | Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template | `[]` | +| `schedulerName` | Name of the k8s scheduler (other than default) for kube-arangodb Operator pods | `""` | +| `terminationGracePeriodSeconds` | Seconds Redmine pod needs to terminate gracefully | `""` | +| `lifecycleHooks` | for the kube-arangodb Operator container(s) to automate configuration before or after startup | `{}` | +| `extraEnvVars` | Array with extra environment variables to add to kube-arangodb Operator nodes | `[]` | +| `extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for kube-arangodb Operator nodes | `""` | +| `extraEnvVarsSecret` | Name of existing Secret containing extra env vars for kube-arangodb Operator nodes | `""` | +| `extraVolumes` | Optionally specify extra list of additional volumes for the kube-arangodb Operator pod(s) | `[]` | +| `extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the kube-arangodb Operator container(s) | `[]` | +| `sidecars` | Add additional sidecar containers to the kube-arangodb Operator pod(s) | `[]` | +| `initContainers` | Add additional init containers to the kube-arangodb Operator pod(s) | `[]` | +| `autoscaling.vpa.enabled` | Enable VPA | `false` | +| `autoscaling.vpa.annotations` | Annotations for VPA resource | `{}` | +| `autoscaling.vpa.controlledResources` | VPA List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory | `[]` | +| `autoscaling.vpa.maxAllowed` | VPA Max allowed resources for the pod | `{}` | +| `autoscaling.vpa.minAllowed` | VPA Min allowed resources for the pod | `{}` | +| `autoscaling.vpa.updatePolicy.updateMode` | Autoscaling update policy Specifies whether recommended updates are applied when a Pod is started and whether recommended updates are applied during the life of a Pod | `Auto` | +| `autoscaling.hpa.enabled` | Enable autoscaling for operator | `false` | +| `autoscaling.hpa.minReplicas` | Minimum number of operator replicas | `""` | +| `autoscaling.hpa.maxReplicas` | Maximum number of operator replicas | `""` | +| `autoscaling.hpa.targetCPU` | Target CPU utilization percentage | `""` | +| `autoscaling.hpa.targetMemory` | Target Memory utilization percentage | `""` | + +### Traffic Exposure Parameters + +| Name | Description | Value | +| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | +| `service.type` | kube-arangodb Operator service type | `LoadBalancer` | +| `service.ports.server` | kube-arangodb Operator service server port | `443` | +| `service.ports.apiHttp` | kube-arangodb Operator service API HTTP port | `8628` | +| `service.ports.apiGrpc` | kube-arangodb Operator service API GRPC port | `8728` | +| `service.nodePorts.server` | Node port for the server | `""` | +| `service.nodePorts.apiHttp` | Node port for the API HTTP | `""` | +| `service.nodePorts.apiGrpc` | Node port for the API GRPC | `""` | +| `service.clusterIP` | kube-arangodb Operator service Cluster IP | `""` | +| `service.loadBalancerIP` | kube-arangodb Operator service Load Balancer IP | `""` | +| `service.loadBalancerSourceRanges` | kube-arangodb Operator service Load Balancer sources | `[]` | +| `service.externalTrafficPolicy` | kube-arangodb Operator service external traffic policy | `Cluster` | +| `service.labels` | Labels for the service | `{}` | +| `service.annotations` | Additional custom annotations for kube-arangodb Operator service | `{}` | +| `service.extraPorts` | Extra ports to expose in kube-arangodb Operator service (normally used with the `sidecars` value) | `[]` | +| `service.sessionAffinity` | Control where web requests go, to the same pod or round-robin | `None` | +| `service.sessionAffinityConfig` | Additional settings for the sessionAffinity | `{}` | +| `ingress.enabled` | Enable ingress record generation for neo4j | `false` | +| `ingress.pathType` | Ingress path type | `ImplementationSpecific` | +| `ingress.apiVersion` | Force Ingress API version (automatically detected if not set) | `""` | +| `ingress.hostname` | Default host for the ingress record | `kube-arangodb.local` | +| `ingress.ingressClassName` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `""` | +| `ingress.path` | Default path for the ingress record | `/` | +| `ingress.annotations` | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}` | +| `ingress.tls` | Enable TLS configuration for the host defined at `ingress.hostname` parameter | `false` | +| `ingress.selfSigned` | Create a TLS secret for this ingress record using self-signed certificates generated by Helm | `false` | +| `ingress.extraHosts` | An array with additional hostname(s) to be covered with the ingress record | `[]` | +| `ingress.extraPaths` | An array with additional arbitrary paths that may need to be added to the ingress under the main host | `[]` | +| `ingress.extraTls` | TLS configuration for additional hostname(s) to be covered with this ingress record | `[]` | +| `ingress.secrets` | Custom TLS certificates as secrets | `[]` | +| `ingress.extraRules` | Additional rules to be covered with this ingress record | `[]` | +| `networkPolicy.enabled` | Specifies whether a NetworkPolicy should be created | `true` | +| `networkPolicy.kubeAPIServerPorts` | List of possible endpoints to kube-apiserver (limit to your cluster settings to increase security) | `[]` | +| `networkPolicy.allowExternal` | Don't require server label for connections | `true` | +| `networkPolicy.allowExternalEgress` | Allow the pod to access any range of port and all destinations. | `true` | +| `networkPolicy.extraIngress` | Add extra ingress rules to the NetworkPolicy | `[]` | +| `networkPolicy.extraEgress` | Add extra ingress rules to the NetworkPolicy | `[]` | +| `networkPolicy.ingressNSMatchLabels` | Labels to match to allow traffic from other namespaces | `{}` | +| `networkPolicy.ingressNSPodMatchLabels` | Pod labels to match to allow traffic from other namespaces | `{}` | + +### Webhook parameters + +| Name | Description | Value | +| ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | +| `webhooks.enabled` | Add the webhook sidecar to the operator deployment | `true` | +| `webhooks.validating.create` | Create ValidatingWebhookConfiguration | `true` | +| `webhooks.mutating.create` | Create MutatingWebhookConfiguration | `true` | +| `webhooks.command` | Override default webhook container command (useful when using custom images) | `[]` | +| `webhooks.args` | Override default webhook container args (useful when using custom images) | `[]` | +| `webhooks.extraArgs` | Add extra arguments to the default command | `[]` | +| `webhooks.lifecycleHooks` | for the webhook container(s) to automate configuration before or after startup | `{}` | +| `webhooks.extraEnvVars` | Array with extra environment variables to add to webhook nodes | `[]` | +| `webhooks.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for webhook nodes | `""` | +| `webhooks.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for webhook nodes | `""` | +| `webhooks.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the webhook container(s) | `[]` | +| `webhooks.containerPorts.webhook` | webhook container port | `8828` | +| `webhooks.containerSecurityContext.enabled` | Enabled containers' Security Context | `true` | +| `webhooks.containerSecurityContext.seLinuxOptions` | Set SELinux options in container | `{}` | +| `webhooks.containerSecurityContext.runAsUser` | Set containers' Security Context runAsUser | `1001` | +| `webhooks.containerSecurityContext.runAsGroup` | Set containers' Security Context runAsGroup | `1001` | +| `webhooks.containerSecurityContext.runAsNonRoot` | Set container's Security Context runAsNonRoot | `true` | +| `webhooks.containerSecurityContext.privileged` | Set container's Security Context privileged | `false` | +| `webhooks.containerSecurityContext.readOnlyRootFilesystem` | Set container's Security Context readOnlyRootFilesystem | `true` | +| `webhooks.containerSecurityContext.allowPrivilegeEscalation` | Set container's Security Context allowPrivilegeEscalation | `false` | +| `webhooks.containerSecurityContext.capabilities.drop` | List of capabilities to be dropped | `["ALL"]` | +| `webhooks.containerSecurityContext.seccompProfile.type` | Set container's Security Context seccomp profile | `RuntimeDefault` | +| `webhooks.livenessProbe.enabled` | Enable livenessProbe on webhook containers | `true` | +| `webhooks.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `5` | +| `webhooks.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `10` | +| `webhooks.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `5` | +| `webhooks.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `5` | +| `webhooks.livenessProbe.successThreshold` | Success threshold for livenessProbe | `1` | +| `webhooks.readinessProbe.enabled` | Enable readinessProbe on webhook containers | `true` | +| `webhooks.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `5` | +| `webhooks.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | +| `webhooks.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `5` | +| `webhooks.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `5` | +| `webhooks.readinessProbe.successThreshold` | Success threshold for readinessProbe | `1` | +| `webhooks.startupProbe.enabled` | Enable startupProbe on webhook containers | `false` | +| `webhooks.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `5` | +| `webhooks.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | +| `webhooks.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `5` | +| `webhooks.startupProbe.failureThreshold` | Failure threshold for startupProbe | `5` | +| `webhooks.startupProbe.successThreshold` | Success threshold for startupProbe | `1` | +| `webhooks.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | +| `webhooks.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | +| `webhooks.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | +| `webhooks.resourcesPreset` | Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if `webhooks.resources` is set (`webhooks.resources` is recommended for production). | `nano` | +| `webhooks.resources` | Set container requests and limits for different resources like CPU or memory (essential for production workloads) | `{}` | + +### Webhook Traffic Exposure Parameters + +| Name | Description | Value | +| -------------------------------- | ---------------------------------------------------------------- | ----- | +| `webhooks.service.ports.webhook` | kube-arangodb Operator service server port | `443` | +| `webhooks.service.clusterIP` | kube-arangodb Operator service Cluster IP | `""` | +| `webhooks.service.labels` | Labels for the service | `{}` | +| `webhooks.service.annotations` | Additional custom annotations for kube-arangodb Operator service | `{}` | + +### RBAC Parameters + +| Name | Description | Value | +| ------------------------------------------------------ | ------------------------------------------------------------------- | ------- | +| `rbac.create` | Specifies whether RBAC resources should be created | `true` | +| `rbac.extensions.acs` | Enable additional RBAC settings for Arango Cluster Synchronizations | `true` | +| `rbac.extensions.at` | Enable additional RBAC settings for Arango Tasks | `true` | +| `rbac.extensions.debug` | Enable additional RBAC settings for Debugging | `false` | +| `rbac.extensions.monitoring` | Enable additional RBAC settings for ServiceMonitors | `true` | +| `serviceAccount.operator.create` | Specifies whether a ServiceAccount should be created | `true` | +| `serviceAccount.operator.name` | The name of the ServiceAccount to use. | `""` | +| `serviceAccount.operator.annotations` | Additional Service Account annotations (evaluated as a template) | `{}` | +| `serviceAccount.operator.automountServiceAccountToken` | Automount service account token for the server service account | `false` | +| `serviceAccount.job.create` | Specifies whether a ServiceAccount should be created | `true` | +| `serviceAccount.job.name` | The name of the ServiceAccount to use. | `""` | +| `serviceAccount.job.annotations` | Additional Service Account annotations (evaluated as a template) | `{}` | +| `serviceAccount.job.automountServiceAccountToken` | Automount service account token for the server service account | `false` | + +### Metrics Parameters + +| Name | Description | Value | +| ------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------- | +| `metrics.enabled` | Enable the export of Prometheus metrics | `false` | +| `metrics.annotations` | Annotations for the service | `{}` | +| `metrics.serviceMonitor.enabled` | if `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`) | `false` | +| `metrics.serviceMonitor.namespace` | Namespace in which Prometheus is running | `""` | +| `metrics.serviceMonitor.annotations` | Additional custom annotations for the ServiceMonitor | `{}` | +| `metrics.serviceMonitor.labels` | Extra labels for the ServiceMonitor | `{}` | +| `metrics.serviceMonitor.jobLabel` | The name of the label on the target service to use as the job name in Prometheus | `""` | +| `metrics.serviceMonitor.honorLabels` | honorLabels chooses the metric's labels on collisions with target labels | `false` | +| `metrics.serviceMonitor.interval` | Interval at which metrics should be scraped. | `""` | +| `metrics.serviceMonitor.scrapeTimeout` | Timeout after which the scrape is ended | `""` | +| `metrics.serviceMonitor.metricRelabelings` | Specify additional relabeling of metrics | `[]` | +| `metrics.serviceMonitor.relabelings` | Specify general relabeling | `[]` | +| `metrics.serviceMonitor.selector` | Prometheus instance selector labels | `{}` | + +The above parameters map to the env variables defined in [bitnami/kube-arangodb](https://github.com/bitnami/containers/tree/main/bitnami/kube-arangodb). For more information please refer to the [bitnami/kube-arangodb](https://github.com/bitnami/containers/tree/main/bitnami/kube-arangodb) image documentation. + +Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, + +```console +helm install my-release \ + --set enableAPI=true \ + REGISTRY_NAME/REPOSITORY_NAME/kube-arangodb +``` + +The above command enables the kube-arangodb API Server. + +> NOTE: Once this chart is deployed, it is not possible to change the application's access credentials, such as usernames or passwords, using Helm. To change these application credentials after deployment, delete any persistent volumes (PVs) used by the chart and re-deploy it, or use the application's built-in administrative tools if available. + +Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example, + +```console +helm install my-release -f values.yaml REGISTRY_NAME/REPOSITORY_NAME/kube-arangodb +``` + +> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`. +> **Tip**: You can use the default [values.yaml](https://github.com/bitnami/charts/tree/main/bitnami/kube-arangodb/values.yaml) + +## Troubleshooting + +Find more information about how to deal with common errors related to Bitnami's Helm charts in [this troubleshooting guide](https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues). + +## License + +Copyright © 2025 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/bitnami/kube-arangodb/crds/analytics-graphanalyticsengine.yaml b/bitnami/kube-arangodb/crds/analytics-graphanalyticsengine.yaml new file mode 100644 index 00000000000000..f0644d94c347f6 --- /dev/null +++ b/bitnami/kube-arangodb/crds/analytics-graphanalyticsengine.yaml @@ -0,0 +1,24 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/analytics-graphanalyticsengine.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: graphanalyticsengines.analytics.arangodb.com +spec: + group: analytics.arangodb.com + names: + kind: GraphAnalyticsEngine + listKind: GraphAnalyticsEngineList + plural: graphanalyticsengines + singular: graphanalyticsengine + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/apps-job.yaml b/bitnami/kube-arangodb/crds/apps-job.yaml new file mode 100644 index 00000000000000..f0fd85fd4b328d --- /dev/null +++ b/bitnami/kube-arangodb/crds/apps-job.yaml @@ -0,0 +1,31 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/apps-job.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangojobs.apps.arangodb.com +spec: + group: apps.arangodb.com + names: + kind: ArangoJob + listKind: ArangoJobList + plural: arangojobs + singular: arangojob + shortNames: + - arangojob + scope: Namespaced + versions: + - name: v1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + additionalPrinterColumns: + - jsonPath: .spec.arangoDeploymentName + description: Deployment name + name: ArangoDeploymentName + type: string + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/backups-backup.yaml b/bitnami/kube-arangodb/crds/backups-backup.yaml new file mode 100644 index 00000000000000..f6bc88f232b37a --- /dev/null +++ b/bitnami/kube-arangodb/crds/backups-backup.yaml @@ -0,0 +1,105 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/backups-backup.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangobackups.backup.arangodb.com +spec: + group: backup.arangodb.com + names: + kind: ArangoBackup + listKind: ArangoBackupList + plural: arangobackups + shortNames: + - arangobackup + singular: arangobackup + scope: Namespaced + versions: + - name: v1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + additionalPrinterColumns: + - jsonPath: .spec.policyName + description: Policy name + name: Policy + type: string + - jsonPath: .spec.deployment.name + description: Deployment name + name: Deployment + type: string + - jsonPath: .status.backup.version + description: Backup Version + name: Version + type: string + - jsonPath: .status.backup.createdAt + description: Backup Creation Timestamp + name: Created + type: string + - jsonPath: .status.backup.sizeInBytes + description: Backup Size in Bytes + name: Size + type: integer + format: byte + - jsonPath: .status.backup.numberOfDBServers + description: Backup Number of the DB Servers + name: DBServers + type: integer + - jsonPath: .status.state + description: The actual state of the ArangoBackup + name: State + type: string + - jsonPath: .status.message + priority: 1 + description: Message of the ArangoBackup object + name: Message + type: string + subresources: + status: {} + - name: v1alpha + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: false + storage: false + additionalPrinterColumns: + - jsonPath: .spec.policyName + description: Policy name + name: Policy + type: string + - jsonPath: .spec.deployment.name + description: Deployment name + name: Deployment + type: string + - jsonPath: .status.backup.version + description: Backup Version + name: Version + type: string + - jsonPath: .status.backup.createdAt + description: Backup Creation Timestamp + name: Created + type: string + - jsonPath: .status.backup.sizeInBytes + description: Backup Size in Bytes + name: Size + type: integer + format: byte + - jsonPath: .status.backup.numberOfDBServers + description: Backup Number of the DB Servers + name: DBServers + type: integer + - jsonPath: .status.state + description: The actual state of the ArangoBackup + name: State + type: string + - jsonPath: .status.message + priority: 1 + description: Message of the ArangoBackup object + name: Message + type: string + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/backups-backuppolicy.yaml b/bitnami/kube-arangodb/crds/backups-backuppolicy.yaml new file mode 100644 index 00000000000000..64495b45210148 --- /dev/null +++ b/bitnami/kube-arangodb/crds/backups-backuppolicy.yaml @@ -0,0 +1,64 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/backups-backuppolicy.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangobackuppolicies.backup.arangodb.com +spec: + group: backup.arangodb.com + names: + kind: ArangoBackupPolicy + listKind: ArangoBackupPolicyList + plural: arangobackuppolicies + shortNames: + - arangobackuppolicy + - arangobp + singular: arangobackuppolicy + scope: Namespaced + versions: + - name: v1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + additionalPrinterColumns: + - jsonPath: .spec.schedule + description: Schedule + name: Schedule + type: string + - jsonPath: .status.scheduled + description: Scheduled + name: Scheduled + type: string + - jsonPath: .status.message + priority: 1 + description: Message of the ArangoBackupPolicy object + name: Message + type: string + subresources: + status: {} + - name: v1alpha + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: false + storage: false + additionalPrinterColumns: + - jsonPath: .spec.schedule + description: Schedule + name: Schedule + type: string + - jsonPath: .status.scheduled + description: Scheduled + name: Scheduled + type: string + - jsonPath: .status.message + priority: 1 + description: Message of the ArangoBackupPolicy object + name: Message + type: string + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/database-clustersynchronization.yaml b/bitnami/kube-arangodb/crds/database-clustersynchronization.yaml new file mode 100644 index 00000000000000..431a3137470bd2 --- /dev/null +++ b/bitnami/kube-arangodb/crds/database-clustersynchronization.yaml @@ -0,0 +1,35 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/database-clustersynchronization.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangoclustersynchronizations.database.arangodb.com +spec: + group: database.arangodb.com + names: + kind: ArangoClusterSynchronization + listKind: ArangoClusterSynchronizationList + plural: arangoclustersynchronizations + singular: arangoclustersynchronization + shortNames: + - arangoclustersync + scope: Namespaced + versions: + - name: v1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} + - name: v2alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: false + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/database-deployment.yaml b/bitnami/kube-arangodb/crds/database-deployment.yaml new file mode 100644 index 00000000000000..f4dedaf2c4cae0 --- /dev/null +++ b/bitnami/kube-arangodb/crds/database-deployment.yaml @@ -0,0 +1,41 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/database-deployment.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangodeployments.database.arangodb.com +spec: + group: database.arangodb.com + names: + kind: ArangoDeployment + listKind: ArangoDeploymentList + plural: arangodeployments + shortNames: + - arangodb + - arango + singular: arangodeployment + scope: Namespaced + versions: + - name: v1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + - name: v1alpha + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: false + storage: false + - name: v2alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: false + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/database-member.yaml b/bitnami/kube-arangodb/crds/database-member.yaml new file mode 100644 index 00000000000000..b4030ec3e791a0 --- /dev/null +++ b/bitnami/kube-arangodb/crds/database-member.yaml @@ -0,0 +1,35 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/database-member.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangomembers.database.arangodb.com +spec: + group: database.arangodb.com + names: + kind: ArangoMember + listKind: ArangoMemberList + plural: arangomembers + shortNames: + - arangomembers + singular: arangomember + scope: Namespaced + versions: + - name: v1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} + - name: v2alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: false + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/database-task.yaml b/bitnami/kube-arangodb/crds/database-task.yaml new file mode 100644 index 00000000000000..43970ac5f6892c --- /dev/null +++ b/bitnami/kube-arangodb/crds/database-task.yaml @@ -0,0 +1,38 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/database-task.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangotasks.database.arangodb.com +spec: + group: database.arangodb.com + names: + kind: ArangoTask + listKind: ArangoTaskList + plural: arangotasks + singular: arangotask + scope: Namespaced + versions: + - name: v1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + - name: v1alpha + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: false + storage: false + - name: v2alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: false + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/local-storage.yaml b/bitnami/kube-arangodb/crds/local-storage.yaml new file mode 100644 index 00000000000000..a02c0be2254603 --- /dev/null +++ b/bitnami/kube-arangodb/crds/local-storage.yaml @@ -0,0 +1,24 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/local-storage.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangolocalstorages.storage.arangodb.com +spec: + group: storage.arangodb.com + names: + kind: ArangoLocalStorage + listKind: ArangoLocalStorageList + plural: arangolocalstorages + shortNames: + - arangostorage + singular: arangolocalstorage + scope: Cluster + versions: + - name: v1alpha + served: true + storage: true + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true diff --git a/bitnami/kube-arangodb/crds/ml-extension.yaml b/bitnami/kube-arangodb/crds/ml-extension.yaml new file mode 100644 index 00000000000000..4f6e510bebbec5 --- /dev/null +++ b/bitnami/kube-arangodb/crds/ml-extension.yaml @@ -0,0 +1,33 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/ml-extension.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangomlextensions.ml.arangodb.com +spec: + group: ml.arangodb.com + names: + kind: ArangoMLExtension + listKind: ArangoMLExtensionList + plural: arangomlextensions + singular: arangomlextension + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: false + subresources: + status: {} + - name: v1beta1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/ml-job-batch.yaml b/bitnami/kube-arangodb/crds/ml-job-batch.yaml new file mode 100644 index 00000000000000..e1bb2c3c08f7a9 --- /dev/null +++ b/bitnami/kube-arangodb/crds/ml-job-batch.yaml @@ -0,0 +1,24 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/ml-job-batch.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangomlbatchjobs.ml.arangodb.com +spec: + group: ml.arangodb.com + names: + kind: ArangoMLBatchJob + listKind: ArangoMLBatchJobList + plural: arangomlbatchjobs + singular: arangomlbatchjob + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/ml-job-cron.yaml b/bitnami/kube-arangodb/crds/ml-job-cron.yaml new file mode 100644 index 00000000000000..671f21a16b694d --- /dev/null +++ b/bitnami/kube-arangodb/crds/ml-job-cron.yaml @@ -0,0 +1,24 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/ml-job-cron.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangomlcronjobs.ml.arangodb.com +spec: + group: ml.arangodb.com + names: + kind: ArangoMLCronJob + listKind: ArangoMLCronJobList + plural: arangomlcronjobs + singular: arangomlcronjob + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/ml-storage.yaml b/bitnami/kube-arangodb/crds/ml-storage.yaml new file mode 100644 index 00000000000000..8fc55c8449925d --- /dev/null +++ b/bitnami/kube-arangodb/crds/ml-storage.yaml @@ -0,0 +1,33 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/ml-storage.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangomlstorages.ml.arangodb.com +spec: + group: ml.arangodb.com + names: + kind: ArangoMLStorage + listKind: ArangoMLStorageList + plural: arangomlstorages + singular: arangomlstorage + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: false + subresources: + status: {} + - name: v1beta1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/networking-route.yaml b/bitnami/kube-arangodb/crds/networking-route.yaml new file mode 100644 index 00000000000000..1032d772b09f37 --- /dev/null +++ b/bitnami/kube-arangodb/crds/networking-route.yaml @@ -0,0 +1,24 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/networking-route.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangoroutes.networking.arangodb.com +spec: + group: networking.arangodb.com + names: + kind: ArangoRoute + listKind: ArangoRouteList + plural: arangoroutes + singular: arangoroute + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/platform-chart.yaml b/bitnami/kube-arangodb/crds/platform-chart.yaml new file mode 100644 index 00000000000000..2cba83d481df63 --- /dev/null +++ b/bitnami/kube-arangodb/crds/platform-chart.yaml @@ -0,0 +1,27 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/platform-chart.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangoplatformcharts.platform.arangodb.com +spec: + group: platform.arangodb.com + names: + kind: ArangoPlatformChart + listKind: ArangoPlatformChartList + plural: arangoplatformcharts + singular: arangoplatformchart + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} + scale: + specReplicasPath: .spec.replicas + statusReplicasPath: .status.replicas diff --git a/bitnami/kube-arangodb/crds/platform-storage.yaml b/bitnami/kube-arangodb/crds/platform-storage.yaml new file mode 100644 index 00000000000000..7a699eb145c79d --- /dev/null +++ b/bitnami/kube-arangodb/crds/platform-storage.yaml @@ -0,0 +1,24 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/platform-storage.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangoplatformstorages.platform.arangodb.com +spec: + group: platform.arangodb.com + names: + kind: ArangoPlatformStorage + listKind: ArangoPlatformStorageList + plural: arangoplatformstorages + singular: arangoplatformstorage + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/replication-deploymentreplication.yaml b/bitnami/kube-arangodb/crds/replication-deploymentreplication.yaml new file mode 100644 index 00000000000000..700754a4d4cc80 --- /dev/null +++ b/bitnami/kube-arangodb/crds/replication-deploymentreplication.yaml @@ -0,0 +1,40 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/replication-deploymentreplication.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangodeploymentreplications.replication.database.arangodb.com +spec: + group: replication.database.arangodb.com + names: + kind: ArangoDeploymentReplication + listKind: ArangoDeploymentReplicationList + plural: arangodeploymentreplications + shortNames: + - arangorepl + singular: arangodeploymentreplication + scope: Namespaced + versions: + - name: v1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + - name: v1alpha + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: false + storage: false + - name: v2alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: false + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/scheduler-batchjob.yaml b/bitnami/kube-arangodb/crds/scheduler-batchjob.yaml new file mode 100644 index 00000000000000..2df74cb3dfb994 --- /dev/null +++ b/bitnami/kube-arangodb/crds/scheduler-batchjob.yaml @@ -0,0 +1,24 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/scheduler-batchjob.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangoschedulerbatchjobs.scheduler.arangodb.com +spec: + group: scheduler.arangodb.com + names: + kind: ArangoSchedulerBatchJob + listKind: ArangoSchedulerBatchJobList + plural: arangoschedulerbatchjobs + singular: arangoschedulerbatchjob + scope: Namespaced + versions: + - name: v1beta1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/scheduler-cronjob.yaml b/bitnami/kube-arangodb/crds/scheduler-cronjob.yaml new file mode 100644 index 00000000000000..f90bb80cc32592 --- /dev/null +++ b/bitnami/kube-arangodb/crds/scheduler-cronjob.yaml @@ -0,0 +1,24 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/scheduler-cronjob.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangoschedulercronjobs.scheduler.arangodb.com +spec: + group: scheduler.arangodb.com + names: + kind: ArangoSchedulerCronJob + listKind: ArangoSchedulerCronJobList + plural: arangoschedulercronjobs + singular: arangoschedulercronjob + scope: Namespaced + versions: + - name: v1beta1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/scheduler-deployment.yaml b/bitnami/kube-arangodb/crds/scheduler-deployment.yaml new file mode 100644 index 00000000000000..0849ffa58ba2b5 --- /dev/null +++ b/bitnami/kube-arangodb/crds/scheduler-deployment.yaml @@ -0,0 +1,27 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/scheduler-deployment.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangoschedulerdeployments.scheduler.arangodb.com +spec: + group: scheduler.arangodb.com + names: + kind: ArangoSchedulerDeployment + listKind: ArangoSchedulerDeploymentList + plural: arangoschedulerdeployments + singular: arangoschedulerdeployment + scope: Namespaced + versions: + - name: v1beta1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} + scale: + specReplicasPath: .spec.replicas + statusReplicasPath: .status.replicas diff --git a/bitnami/kube-arangodb/crds/scheduler-pod.yaml b/bitnami/kube-arangodb/crds/scheduler-pod.yaml new file mode 100644 index 00000000000000..98e4faeb344734 --- /dev/null +++ b/bitnami/kube-arangodb/crds/scheduler-pod.yaml @@ -0,0 +1,24 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/scheduler-pod.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangoschedulerpods.scheduler.arangodb.com +spec: + group: scheduler.arangodb.com + names: + kind: ArangoSchedulerPod + listKind: ArangoSchedulerPodList + plural: arangoschedulerpods + singular: arangoschedulerpod + scope: Namespaced + versions: + - name: v1beta1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} diff --git a/bitnami/kube-arangodb/crds/scheduler-profile.yaml b/bitnami/kube-arangodb/crds/scheduler-profile.yaml new file mode 100644 index 00000000000000..580ebc1ab91f78 --- /dev/null +++ b/bitnami/kube-arangodb/crds/scheduler-profile.yaml @@ -0,0 +1,33 @@ +# Source: https://github.com/arangodb/kube-arangodb/blob/{version}/chart/kube-arangodb/crds/scheduler-profile.yaml +# Version: 1.2.46 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: arangoprofiles.scheduler.arangodb.com +spec: + group: scheduler.arangodb.com + names: + kind: ArangoProfile + listKind: ArangoProfileList + plural: arangoprofiles + singular: arangoprofile + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: false + subresources: + status: {} + - name: v1beta1 + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + served: true + storage: true + subresources: + status: {} diff --git a/bitnami/kube-arangodb/templates/NOTES.txt b/bitnami/kube-arangodb/templates/NOTES.txt new file mode 100644 index 00000000000000..07c9b3f6118832 --- /dev/null +++ b/bitnami/kube-arangodb/templates/NOTES.txt @@ -0,0 +1,103 @@ +CHART NAME: {{ .Chart.Name }} +CHART VERSION: {{ .Chart.Version }} +APP VERSION: {{ .Chart.AppVersion }} + +Did you know there are enterprise versions of the Bitnami catalog? For enhanced secure software supply chain features, unlimited pulls from Docker, LTS support, or application customization, see Bitnami Premium or Tanzu Application Catalog. See https://www.arrow.com/globalecs/na/vendors/bitnami for more information. + +** Please be patient while the chart is being deployed ** + +{{- if .Values.diagnosticMode.enabled }} + +The chart has been deployed in diagnostic mode. All probes have been disabled and the command has been overwritten with: + + command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 4 }} + args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 4 }} + +Get the list of pods by executing: + + kubectl get pods --namespace {{ include "common.names.namespace" . }} -l app.kubernetes.io/instance={{ .Release.Name }} + +Access the pod you want to debug by executing + + kubectl exec --namespace {{ include "common.names.namespace" . }} -ti -- bash + +{{- else }} + +Check the status of the pods by running this command: + + kubectl get pods --namespace {{ include "common.names.namespace" . | quote }} -l app.kubernetes.io/instance={{ .Release.Name }} + +Check the kube-arangodb documentation for instructions on how to deploy ArangoDeployments and other *.arangodb.com objects: + +https://arangodb.github.io/kube-arangodb/ + +{{- if .Values.rbac.create }} +{{- if (eq .Values.scope "legacy") }} +WARNING: ArangoDB Kubernetes Operator can access all secrets in the cluster. This could pose a security risk if the application gets compromised. + +You can limit allowed namespaces by setting scope = "namespaced" +{{- else }} + +ArangoDB Kubernetes Operator can ONLY access resources in the {{ include "common.names.namespace" . }} namespace: + +ArangoDB Kubernetes Operator won't be able to access resources in other namespaces. You can configure this behavior by setting scope = "legacy" + +{{- end }} +{{- end }} + +The ArangoDB Kubernetes Operator dashboard can be accessed through the following DNS name from within your cluster: + + {{ include "common.names.fullname" . }}.{{ include "common.names.namespace" . }}.svc.{{ .Values.clusterDomain }} (port {{ .Values.service.ports.server }}) + +To access the dashboard site from outside the cluster follow the steps below: + +{{- if .Values.ingress.enabled }} + +1. Get the dashboard URL and associate its hostname to your cluster external IP: + + export CLUSTER_IP=$(minikube ip) # On Minikube. Use: `kubectl cluster-info` on others K8s clusters + echo "Dashboard URL: http{{ if .Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.hostname }}/" + echo "$CLUSTER_IP {{ .Values.ingress.hostname }}" | sudo tee -a /etc/hosts + +{{- else }} +{{- $port := .Values.service.ports.server | toString }} + +1. Get the dashboard URL by running these commands: + +{{- if contains "NodePort" .Values.service.type }} + + export NODE_PORT=$(kubectl get --namespace {{ include "common.names.namespace" . }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "common.names.fullname" . }}) + export NODE_IP=$(kubectl get nodes --namespace {{ include "common.names.namespace" . }} -o jsonpath="{.items[0].status.addresses[0].address}") + echo "Dashboard URL: https://$NODE_IP:$NODE_PORT/" + +{{- else if contains "LoadBalancer" .Values.service.type }} + + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + Watch the status with: 'kubectl get svc --namespace {{ include "common.names.namespace" . }} -w {{ include "common.names.fullname" . }}' + + export SERVICE_IP=$(kubectl get svc --namespace {{ include "common.names.namespace" . }} {{ include "common.names.fullname" . }} --include "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}") + echo "Dashboard URL: https://$SERVICE_IP{{- if ne $port "443" }}:{{ .Values.service.ports.server }}{{ end }}/" + +{{- else if contains "ClusterIP" .Values.service.type }} + + kubectl port-forward --namespace {{ include "common.names.namespace" . }} svc/{{ include "common.names.fullname" . }} {{ .Values.service.ports.server }}:{{ .Values.service.ports.server }} & + echo "Dashboard URL: https://127.0.0.1{{- if ne $port "443" }}:{{ .Values.service.ports.server }}{{ end }}//" + +{{- end }} +{{- end }} + +2. Open a browser and access ArangoDB Kubernetes Operator Dashboard using the obtained URL. + +3. Login with the following credentials below: + + echo Username: {{ .Values.auth.username }} + echo Password: $(kubectl get secret --namespace {{ include "common.names.namespace" . }} {{ include "kube-arangodb.secretName" . }} -o jsonpath="{.data.password}" | base64 -d) + +{{- end }} + +{{- include "common.warnings.rollingTag" .Values.image }} +{{- include "common.warnings.rollingTag" .Values.arangodbImage }} +{{- include "kube-arangodb.validateValues" . }} +{{- include "common.warnings.resources" (dict "sections" (list "" "webhooks") "context" $) }} +{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.arangodbImage .Values.image) "context" $) }} +{{- include "common.errors.insecureImages" (dict "images" (list .Values.arangodbImage .Values.image) "context" $) }} diff --git a/bitnami/kube-arangodb/templates/_helpers.tpl b/bitnami/kube-arangodb/templates/_helpers.tpl new file mode 100644 index 00000000000000..83914c9e6ce734 --- /dev/null +++ b/bitnami/kube-arangodb/templates/_helpers.tpl @@ -0,0 +1,80 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* +Return the proper Docker Image Registry Secret Names +*/}} +{{- define "kube-arangodb.imagePullSecrets" -}} +{{- include "common.images.pullSecrets" (dict "images" (list .Values.image .Values.arangodbImage ) "global" .Values.global) -}} +{{- end -}} + +{{/* +Return the proper kube-arangodb Operator image name +*/}} +{{- define "kube-arangodb.operator.image" -}} +{{ include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global) }} +{{- end -}} + +{{/* +Return the proper ArangoDB image name +*/}} +{{- define "kube-arangodb.arangodb.image" -}} +{{ include "common.images.image" (dict "imageRoot" .Values.arangodbImage "global" .Values.global) }} +{{- end -}} + +{{/* +Create the name of the service account to use (kube-arangodb Operator) +*/}} +{{- define "kube-arangodb.serviceAccountName" -}} +{{- if .Values.serviceAccount.operator.create -}} + {{ default (include "common.names.fullname" .) .Values.serviceAccount.operator.name }} +{{- else -}} + {{ default "default" .Values.serviceAccount.operator.name }} +{{- end -}} +{{- end -}} + +{{/* +Get the admin credentials secret. +*/}} +{{- define "kube-arangodb.secretName" -}} +{{- if .Values.auth.existingSecret -}} + {{- tpl .Values.auth.existingSecret $ -}} +{{- else }} + {{- include "common.names.fullname" . -}} +{{- end -}} +{{- end -}} + +{{/* +Create the name of the service account to use (kube-arangodb Operator) +*/}} +{{- define "kube-arangodb.job.serviceAccountName" -}} +{{- if .Values.serviceAccount.job.create -}} + {{ default (printf "%s-job" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-") .Values.serviceAccount.job.name }} +{{- else -}} + {{ default "default" .Values.serviceAccount.job.name }} +{{- end -}} +{{- end -}} + +{{/* +Validate values for kube-arangodb. +*/}} +{{- define "kube-arangodb.validateValues" -}} +{{- $messages := list -}} +{{- $messages := append $messages (include "kube-arangodb.validateValues.scope" .) -}} +{{- $messages := without $messages "" -}} +{{- $message := join "\n" $messages -}} +{{- if $message -}} +{{- printf "\nVALUES VALIDATION:\n%s" $message -}} +{{- end -}} +{{- end -}} + +{{/* Validate values of kube-arangodb - Scope is correct */}} +{{- define "kube-arangodb.validateValues.scope" -}} +{{- $allowedValues := list "legacy" "namespaced" -}} +{{- if not (has .Values.scope $allowedValues) -}} +kube-arangodb: scope + Allowed values for `scope` are {{ join "," $allowedValues }}. +{{- end -}} +{{- end -}} diff --git a/bitnami/kube-arangodb/templates/deployment.yaml b/bitnami/kube-arangodb/templates/deployment.yaml new file mode 100644 index 00000000000000..0a737b6012f6db --- /dev/null +++ b/bitnami/kube-arangodb/templates/deployment.yaml @@ -0,0 +1,341 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} +kind: Deployment +metadata: + name: {{ template "common.names.fullname" . }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +spec: + {{- if not .Values.autoscaling.hpa.enabled }} + replicas: {{ .Values.replicaCount }} + {{- end }} + {{- if .Values.updateStrategy }} + strategy: {{- toYaml .Values.updateStrategy | nindent 4 }} + {{- end }} + {{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels) "context" . ) }} + selector: + matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator + template: + metadata: + {{- if or .Values.podAnnotations (not .Values.auth.existingSecret) }} + annotations: + {{- if .Values.podAnnotations }} + {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} + {{- end }} + {{- if not .Values.auth.existingSecret }} + checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} + {{- end }} + {{- end }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator + spec: + serviceAccountName: {{ template "kube-arangodb.serviceAccountName" . }} + {{- include "kube-arangodb.imagePullSecrets" . | nindent 6 }} + automountServiceAccountToken: {{ .Values.automountServiceAccountToken }} + {{- if .Values.hostAliases }} + hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.affinity }} + affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.affinity "context" $) | nindent 8 }} + {{- else }} + affinity: + podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAffinityPreset "component" "operator" "customLabels" $podLabels "context" $) | nindent 10 }} + podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "operator" "customLabels" $podLabels "context" $) | nindent 10 }} + nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.nodeAffinityPreset.type "key" .Values.nodeAffinityPreset.key "values" .Values.nodeAffinityPreset.values) | nindent 10 }} + {{- end }} + {{- if .Values.nodeSelector }} + nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.nodeSelector "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.tolerations "context" .) | nindent 8 }} + {{- end }} + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName | quote }} + {{- end }} + {{- if .Values.schedulerName }} + schedulerName: {{ .Values.schedulerName | quote }} + {{- end }} + {{- if .Values.topologySpreadConstraints }} + topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" .) | nindent 8 }} + {{- end }} + {{- if .Values.podSecurityContext.enabled }} + securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.podSecurityContext "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.terminationGracePeriodSeconds }} + terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} + {{- end }} + {{- if .Values.initContainers }} + initContainers: {{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }} + {{- end }} + containers: + - name: operator + image: {{ template "kube-arangodb.operator.image" . }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- if .Values.containerSecurityContext.enabled }} + securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.containerSecurityContext "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.diagnosticMode.enabled }} + command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} + {{- else if .Values.command }} + command: {{- include "common.tplvalues.render" (dict "value" .Values.command "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.diagnosticMode.enabled }} + args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} + {{- else if .Values.args }} + args: {{- include "common.tplvalues.render" (dict "value" .Values.args "context" $) | nindent 12 }} + {{- else }} + args: + - --scope={{ .Values.scope }} + - --server.admin-secret-name={{ include "kube-arangodb.secretName" . }} + - --server.port={{ .Values.containerPorts.server }} + - --api.enabled={{ .Values.enableAPI }} + {{- if .Values.deploymentFeatures.ephemeralVolumes }} + - --deployment.feature.ephemeral-volumes + {{- end }} + {{- if .Values.deploymentFeatures.securedContainers }} + - --deployment.feature.secured-containers + {{- end }} + {{- if .Values.enableAPI }} + - --api.http-port={{ .Values.containerPorts.apiHttp }} + - --api.grpc-port={{ .Values.containerPorts.apiGrpc }} + {{- end }} + {{- if .Values.features.deployment }} + - --operator.deployment + {{- end -}} + {{ if .Values.features.deploymentReplications }} + - --operator.deployment-replication + {{- end -}} + {{ if .Values.features.storage }} + - --operator.storage + {{- end }} + {{ if .Values.features.backup }} + - --operator.backup + {{- end }} + {{- if (eq (int .Values.replicaCount) 1) }} + - --mode.single + {{- end }} + {{ if .Values.features.apps }} + - --operator.apps + {{- end }} + {{ if .Values.features.ml }} + - --operator.ml + {{- end }} + {{ if .Values.features.analytics }} + - --operator.analytics + {{- end }} + {{ if .Values.features.networking }} + - --operator.networking + {{- end }} + {{ if .Values.features.scheduler }} + - --operator.scheduler + {{- end }} + {{ if .Values.features.platform }} + - --operator.platform + {{- end }} + {{ if .Values.features.k8sToK8sClusterSync }} + - --operator.k2k-cluster-sync + {{- end }} + - --chaos.allowed={{ .Values.allowChaos }} + {{- if .Values.extraArgs }} + {{- range .Values.extraArgs }} + - {{ . | quote }} + {{- end }} + {{- end }} + {{- end }} + env: + - name: MY_POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + - name: MY_POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + - name: MY_POD_NAME + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: MY_CONTAINER_NAME + value: "operator" + - name: RELATED_IMAGE_DATABASE + value: {{ include "kube-arangodb.arangodb.image" . }} + {{- if .Values.features.apps }} + - name: ARANGOJOB_SA_NAME + value: {{ include "kube-arangodb.job.serviceAccountName" . | quote }} + {{- end }} + {{- if .Values.extraEnvVars }} + {{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }} + {{- end }} + envFrom: + {{- if .Values.extraEnvVarsCM }} + - configMapRef: + name: {{ include "common.tplvalues.render" (dict "value" .Values.extraEnvVarsCM "context" $) }} + {{- end }} + {{- if .Values.extraEnvVarsSecret }} + - secretRef: + name: {{ include "common.tplvalues.render" (dict "value" .Values.extraEnvVarsSecret "context" $) }} + {{- end }} + {{- if .Values.resources }} + resources: {{- toYaml .Values.resources | nindent 12 }} + {{- else if ne .Values.resourcesPreset "none" }} + resources: {{- include "common.resources.preset" (dict "type" .Values.resourcesPreset) | nindent 12 }} + {{- end }} + ports: + - name: https-server + containerPort: {{ .Values.containerPorts.server }} + {{- if .Values.enableAPI }} + - name: http-api + containerPort: {{ .Values.containerPorts.apiHttp }} + - name: grpc-api + containerPort: {{ .Values.containerPorts.apiGrpc }} + {{- end }} + {{- if not .Values.diagnosticMode.enabled }} + {{- if .Values.customLivenessProbe }} + livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }} + {{- else if .Values.livenessProbe.enabled }} + livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.livenessProbe "enabled") "context" $) | nindent 12 }} + httpGet: + path: /health + port: https-server + scheme: HTTPS + {{- end }} + {{- if .Values.customReadinessProbe }} + readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }} + {{- else if .Values.readinessProbe.enabled }} + readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.readinessProbe "enabled") "context" $) | nindent 12 }} + httpGet: + path: /ready + port: https-server + scheme: HTTPS + {{- end }} + {{- if .Values.customStartupProbe }} + startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customStartupProbe "context" $) | nindent 12 }} + {{- else if .Values.startupProbe.enabled }} + startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.startupProbe "enabled") "context" $) | nindent 12 }} + httpGet: + path: /ready + port: https-server + scheme: HTTPS + {{- end }} + {{- end }} + {{- if .Values.lifecycleHooks }} + lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleHooks "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.extraVolumeMounts }} + volumeMounts: {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.webhooks.enabled }} + - name: webhooks + image: {{ template "kube-arangodb.operator.image" . }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- if .Values.webhooks.containerSecurityContext.enabled }} + securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.webhooks.containerSecurityContext "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.diagnosticMode.enabled }} + command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} + {{- else if .Values.webhooks.command }} + command: {{- include "common.tplvalues.render" (dict "value" .Values.webhooks.command "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.diagnosticMode.enabled }} + args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} + {{- else if .Values.webhooks.args }} + args: {{- include "common.tplvalues.render" (dict "value" .Values.webhooks.args "context" $) | nindent 12 }} + {{- else }} + args: + - webhook + - --server.address=0.0.0.0:{{ .Values.webhooks.containerPorts.webhook }} + {{- if .Values.webhooks.extraArgs }} + {{- range .Values.webhooks.extraArgs }} + - {{ . | quote }} + {{- end }} + {{- end }} + {{- end }} + env: + - name: MY_POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + - name: MY_POD_NAME + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: MY_CONTAINER_NAME + value: "webhooks" + - name: MY_POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + {{- if .Values.webhooks.extraEnvVars }} + {{- include "common.tplvalues.render" (dict "value" .Values.webhooks.extraEnvVars "context" $) | nindent 12 }} + {{- end }} + envFrom: + {{- if .Values.webhooks.extraEnvVarsCM }} + - configMapRef: + name: {{ include "common.tplvalues.render" (dict "value" .Values.webhooks.extraEnvVarsCM "context" $) }} + {{- end }} + {{- if .Values.webhooks.extraEnvVarsSecret }} + - secretRef: + name: {{ include "common.tplvalues.render" (dict "value" .Values.webhooks.extraEnvVarsSecret "context" $) }} + {{- end }} + {{- if .Values.webhooks.resources }} + resources: {{- toYaml .Values.webhooks.resources | nindent 12 }} + {{- else if ne .Values.webhooks.resourcesPreset "none" }} + resources: {{- include "common.resources.preset" (dict "type" .Values.webhooks.resourcesPreset) | nindent 12 }} + {{- end }} + ports: + - name: http-webhook + containerPort: {{ .Values.webhooks.containerPorts.webhook }} + {{- if not .Values.diagnosticMode.enabled }} + {{- if .Values.webhooks.customLivenessProbe }} + livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.webhooks.customLivenessProbe "context" $) | nindent 12 }} + {{- else if .Values.webhooks.livenessProbe.enabled }} + livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.webhooks.livenessProbe "enabled") "context" $) | nindent 12 }} + httpGet: + path: /health + port: http-webhook + scheme: HTTPS + {{- end }} + {{- if .Values.webhooks.customReadinessProbe }} + readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.webhooks.customReadinessProbe "context" $) | nindent 12 }} + {{- else if .Values.webhooks.readinessProbe.enabled }} + readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.webhooks.readinessProbe "enabled") "context" $) | nindent 12 }} + httpGet: + path: /ready + port: http-webhook + scheme: HTTPS + {{- end }} + {{- if .Values.webhooks.customStartupProbe }} + startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.webhooks.customStartupProbe "context" $) | nindent 12 }} + {{- else if .Values.webhooks.startupProbe.enabled }} + startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.webhooks.startupProbe "enabled") "context" $) | nindent 12 }} + httpGet: + path: /ready + port: http-webhook + scheme: HTTPS + {{- end }} + {{- end }} + {{- if .Values.webhooks.lifecycleHooks }} + lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.webhooks.lifecycleHooks "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.webhooks.extraVolumeMounts }} + volumeMounts: {{- include "common.tplvalues.render" (dict "value" .Values.webhooks.extraVolumeMounts "context" $) | nindent 12 }} + {{- end }} + {{- end }} + {{- if .Values.sidecars }} + {{- include "common.tplvalues.render" ( dict "value" .Values.sidecars "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.extraVolumes }} + volumes: {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/extra-list.yaml b/bitnami/kube-arangodb/templates/extra-list.yaml new file mode 100644 index 00000000000000..329f5c653a440f --- /dev/null +++ b/bitnami/kube-arangodb/templates/extra-list.yaml @@ -0,0 +1,9 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- range .Values.extraDeploy }} +--- +{{ include "common.tplvalues.render" (dict "value" . "context" $) }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/hpa.yaml b/bitnami/kube-arangodb/templates/hpa.yaml new file mode 100644 index 00000000000000..ce5e15cf3c19a7 --- /dev/null +++ b/bitnami/kube-arangodb/templates/hpa.yaml @@ -0,0 +1,48 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if .Values.autoscaling.hpa.enabled }} +apiVersion: {{ include "common.capabilities.hpa.apiVersion" ( dict "context" $ ) }} +kind: HorizontalPodAutoscaler +metadata: + namespace: {{ include "common.names.namespace" . | quote }} + namespace: {{ .Release.Namespace | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +spec: + scaleTargetRef: + apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} + kind: Deployment + name: {{ template "common.names.fullname" . }} + minReplicas: {{ .Values.autoscaling.hpa.minReplicas }} + maxReplicas: {{ .Values.autoscaling.hpa.maxReplicas }} + metrics: + {{- if .Values.autoscaling.hpa.targetCPU }} + - type: Resource + resource: + name: cpu + {{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }} + targetAverageUtilization: {{ .Values.autoscaling.hpa.targetCPU }} + {{- else }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.hpa.targetCPU }} + {{- end }} + {{- end }} + {{- if .Values.autoscaling.hpa.targetMemory }} + - type: Resource + resource: + name: memory + {{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }} + targetAverageUtilization: {{ .Values.autoscaling.hpa.targetMemory }} + {{- else }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.hpa.targetMemory }} + {{- end }} + {{- end }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/ingress-tls-secret.yaml b/bitnami/kube-arangodb/templates/ingress-tls-secret.yaml new file mode 100644 index 00000000000000..03f045edeff97e --- /dev/null +++ b/bitnami/kube-arangodb/templates/ingress-tls-secret.yaml @@ -0,0 +1,49 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if .Values.ingress.enabled }} +{{- if .Values.ingress.secrets }} +{{- range .Values.ingress.secrets }} +apiVersion: v1 +kind: Secret +metadata: + name: {{ .name }} + namespace: {{ include "common.names.namespace" $ | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $.Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/component: operator + app.kubernetes.io/part-of: kube-arangodb + {{- if $.Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" $.Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +type: kubernetes.io/tls +data: + tls.crt: {{ .certificate | b64enc }} + tls.key: {{ .key | b64enc }} +--- +{{- end }} +{{- end }} +{{- if and .Values.ingress.tls .Values.ingress.selfSigned }} +{{- $secretName := printf "%s-tls" .Values.ingress.hostname }} +{{- $ca := genCA "kube-arangodb-ca" 365 }} +{{- $cert := genSignedCert .Values.ingress.hostname nil (list .Values.ingress.hostname) 365 $ca }} +apiVersion: v1 +kind: Secret +metadata: + name: {{ $secretName }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/component: operator + app.kubernetes.io/part-of: kube-arangodb + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +type: kubernetes.io/tls +data: + tls.crt: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "tls.crt" "defaultValue" $cert.Cert "context" $) }} + tls.key: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "tls.key" "defaultValue" $cert.Key "context" $) }} + ca.crt: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "ca.crt" "defaultValue" $ca.Cert "context" $) }} +--- +{{- end }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/ingress.yaml b/bitnami/kube-arangodb/templates/ingress.yaml new file mode 100644 index 00000000000000..493e875b7c8c99 --- /dev/null +++ b/bitnami/kube-arangodb/templates/ingress.yaml @@ -0,0 +1,61 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if .Values.ingress.enabled }} +apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }} +kind: Ingress +metadata: + name: {{ template "common.names.fullname" . }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/component: operator + app.kubernetes.io/part-of: kube-arangodb + {{- if or .Values.ingress.annotations .Values.commonAnnotations }} + {{- $annotations := include "common.tplvalues.merge" (dict "values" (list .Values.ingress.annotations .Values.commonAnnotations) "context" .) }} + annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $ ) | nindent 4 }} + {{- end }} +spec: + {{- if and .Values.ingress.ingressClassName (eq "true" (include "common.ingress.supportsIngressClassname" .)) }} + ingressClassName: {{ .Values.ingress.ingressClassName | quote }} + {{- end }} + rules: + {{- if .Values.ingress.hostname }} + - host: {{ .Values.ingress.hostname }} + http: + paths: + {{- if .Values.ingress.extraPaths }} + {{- toYaml .Values.ingress.extraPaths | nindent 10 }} + {{- end }} + - path: {{ .Values.ingress.path }} + {{- if eq "true" (include "common.ingress.supportsPathType" .) }} + pathType: {{ .Values.ingress.pathType }} + {{- end }} + backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" .) "servicePort" "https-server" "context" $) | nindent 14 }} + {{- end }} + {{- range .Values.ingress.extraHosts }} + - host: {{ .name | quote }} + http: + paths: + - path: {{ default "/" .path }} + {{- if eq "true" (include "common.ingress.supportsPathType" $) }} + pathType: {{ default "ImplementationSpecific" .pathType }} + {{- end }} + backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "https-server" "context" $) | nindent 14 }} + {{- end }} + {{- if .Values.ingress.extraRules }} + {{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraRules "context" $) | nindent 4 }} + {{- end }} + {{- if or (and .Values.ingress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" .Values.ingress.annotations )) .Values.ingress.selfSigned)) .Values.ingress.extraTls }} + tls: + {{- if and .Values.ingress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" .Values.ingress.annotations )) .Values.ingress.selfSigned) }} + - hosts: + - {{ .Values.ingress.hostname | quote }} + secretName: {{ printf "%s-tls" .Values.ingress.hostname }} + {{- end }} + {{- if .Values.ingress.extraTls }} + {{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraTls "context" $) | nindent 4 }} + {{- end }} + {{- end }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/networkpolicy.yaml b/bitnami/kube-arangodb/templates/networkpolicy.yaml new file mode 100644 index 00000000000000..6db3877d50b811 --- /dev/null +++ b/bitnami/kube-arangodb/templates/networkpolicy.yaml @@ -0,0 +1,95 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if .Values.networkPolicy.enabled }} +kind: NetworkPolicy +apiVersion: {{ include "common.capabilities.networkPolicy.apiVersion" . }} +metadata: + name: {{ template "common.names.fullname" . }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/component: operator + app.kubernetes.io/part-of: kube-arangodb + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +spec: + {{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }} + podSelector: + matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator + policyTypes: + - Ingress + - Egress + {{- if .Values.networkPolicy.allowExternalEgress }} + egress: + - {} + {{- else }} + egress: + - ports: + # Allow dns resolution + - port: 53 + protocol: UDP + - port: 53 + protocol: TCP + # Allow access to kube-apiserver + {{- range $port := .Values.networkPolicy.kubeAPIServerPorts }} + - port: {{ $port }} + {{- end }} + # ArangoDB instances have the label deployment.arangodb.com/active: "true" + - to: + - podSelector: + matchLabels: + deployment.arangodb.com/active: "true" + {{- if (eq .Values.scope "namespaced") }} + namespaceSelector: + matchExpressions: + - key: namespace + operator: In + values: + - {{ include "common.names.namespace" | quote }} + {{- end }} + {{- if .Values.networkPolicy.extraEgress }} + {{- include "common.tplvalues.render" ( dict "value" .Values.networkPolicy.extraEgress "context" $ ) | nindent 4 }} + {{- end }} + {{- end }} + ingress: + - ports: + - port: {{ .Values.containerPorts.server }} + {{- if .Values.enableAPI }} + - port: {{ .Values.containerPorts.apiHttp }} + - port: {{ .Values.containerPorts.apiGrpc }} + {{- end }} + {{- if .Values.webhooks.enabled }} + - port: {{ .Values.webhooks.containerPorts.webhook }} + {{- end }} + {{- if not .Values.networkPolicy.allowExternal }} + from: + - podSelector: + matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 14 }} + app.kubernetes.io/part-of: kube-arangodb + - podSelector: + matchLabels: + {{ template "common.names.fullname" . }}-client: "true" + {{- if .Values.networkPolicy.ingressNSMatchLabels }} + - namespaceSelector: + matchLabels: + {{- range $key, $value := .Values.networkPolicy.ingressNSMatchLabels }} + {{ $key | quote }}: {{ $value | quote }} + {{- end }} + {{- if .Values.networkPolicy.ingressNSPodMatchLabels }} + podSelector: + matchLabels: + {{- range $key, $value := .Values.networkPolicy.ingressNSPodMatchLabels }} + {{ $key | quote }}: {{ $value | quote }} + {{- end }} + {{- end }} + {{- end }} + {{- end }} + {{- if .Values.networkPolicy.extraIngress }} + {{- include "common.tplvalues.render" ( dict "value" .Values.networkPolicy.extraIngress "context" $ ) | nindent 4 }} + {{- end }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/pdb.yaml b/bitnami/kube-arangodb/templates/pdb.yaml new file mode 100644 index 00000000000000..e6bd06d852637a --- /dev/null +++ b/bitnami/kube-arangodb/templates/pdb.yaml @@ -0,0 +1,30 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if .Values.pdb.create }} +apiVersion: {{ include "common.capabilities.policy.apiVersion" . }} +kind: PodDisruptionBudget +metadata: + name: {{ template "common.names.fullname" . }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +spec: + {{- if .Values.pdb.minAvailable }} + minAvailable: {{ .Values.pdb.minAvailable }} + {{- end }} + {{- if or .Values.pdb.maxUnavailable ( not .Values.pdb.minAvailable ) }} + maxUnavailable: {{ .Values.pdb.maxUnavailable | default 1 }} + {{- end }} + {{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }} + selector: + matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +{{- end }} diff --git a/bitnami/kube-arangodb/templates/rbac/analytics-operator/cluster-role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/analytics-operator/cluster-role-binding.yaml new file mode 100644 index 00000000000000..ddef843354caac --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/analytics-operator/cluster-role-binding.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.analytics }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRoleBinding +metadata: + name: {{ printf "%s-analytics" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ printf "%s-analytics" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/analytics-operator/cluster-role.yaml b/bitnami/kube-arangodb/templates/rbac/analytics-operator/cluster-role.yaml new file mode 100644 index 00000000000000..30bbb34c6ae003 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/analytics-operator/cluster-role.yaml @@ -0,0 +1,18 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.analytics }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRole +metadata: + name: {{ printf "%s-analytics" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/analytics-operator/role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/analytics-operator/role-binding.yaml new file mode 100644 index 00000000000000..24e6a5c0a938fa --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/analytics-operator/role-binding.yaml @@ -0,0 +1,23 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.analytics }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: RoleBinding +metadata: + name: {{ printf "%s-analytics" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ printf "%s-analytics" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/analytics-operator/role.yaml b/bitnami/kube-arangodb/templates/rbac/analytics-operator/role.yaml new file mode 100644 index 00000000000000..810533e6e7f1d7 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/analytics-operator/role.yaml @@ -0,0 +1,40 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.analytics }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: Role +metadata: + name: {{ printf "%s-analytics" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: + - "analytics.arangodb.com" + resources: + - "graphanalyticsengines" + - "graphanalyticsengines/status" + verbs: + - "*" + - apiGroups: + - "database.arangodb.com" + resources: + - "arangodeployments" + verbs: + - "get" + - "list" + - "watch" + - apiGroups: ["apps"] + resources: + - "statefulsets" + verbs: ["*"] + - apiGroups: [ "" ] + resources: + - "secrets" + - "services" + verbs: [ "*" ] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/apps-operator/cluster-role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/apps-operator/cluster-role-binding.yaml new file mode 100644 index 00000000000000..abb6a1eb5c833e --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/apps-operator/cluster-role-binding.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.apps }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRoleBinding +metadata: + name: {{ printf "%s-apps" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ printf "%s-apps" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/rbac/apps-operator/cluster-role.yaml b/bitnami/kube-arangodb/templates/rbac/apps-operator/cluster-role.yaml new file mode 100644 index 00000000000000..ddf61a9b32af6e --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/apps-operator/cluster-role.yaml @@ -0,0 +1,18 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.apps }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRole +metadata: + name: {{ printf "%s-apps" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/apps-operator/role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/apps-operator/role-binding.yaml new file mode 100644 index 00000000000000..35fbbdb5a3d69e --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/apps-operator/role-binding.yaml @@ -0,0 +1,40 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.apps }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: RoleBinding +metadata: + name: {{ printf "%s-apps" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ printf "%s-apps" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +--- +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: RoleBinding +metadata: + name: {{ printf "%s-job" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ printf "%s-job" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }}-job + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/apps-operator/role.yaml b/bitnami/kube-arangodb/templates/rbac/apps-operator/role.yaml new file mode 100644 index 00000000000000..fabcd070d73066 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/apps-operator/role.yaml @@ -0,0 +1,50 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.apps }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: Role +metadata: + name: {{ printf "%s-apps" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: [""] + resources: ["pods", "services", "endpoints"] + verbs: ["get", "update"] + - apiGroups: [""] + resources: ["events"] + verbs: ["*"] + - apiGroups: [""] + resources: ["secrets"] + verbs: ["get"] + - apiGroups: ["apps"] + resources: ["deployments", "replicasets"] + verbs: ["get"] + - apiGroups: ["batch"] + resources: ["jobs"] + verbs: ["*"] + - apiGroups: ["database.arangodb.com"] + resources: ["arangodeployments"] + verbs: ["get", "list", "watch"] + - apiGroups: ["apps.arangodb.com"] + resources: ["arangojobs","arangojobs/status"] + verbs: ["*"] +--- +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: Role +metadata: + name: {{ printf "%s-job" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["database.arangodb.com"] + resources: ["arangodeployments"] + verbs: ["get", "list", "watch"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/apps-operator/service-account-job.yaml b/bitnami/kube-arangodb/templates/rbac/apps-operator/service-account-job.yaml new file mode 100644 index 00000000000000..74c7df3a3ac9c7 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/apps-operator/service-account-job.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.features.apps .Values.serviceAccount.job.create }} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "kube-arangodb.serviceAccountName" . }}-job + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator + {{- if or .Values.serviceAccount.job.annotations .Values.commonAnnotations }} + {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.serviceAccount.job.annotations .Values.commonAnnotations ) "context" . ) }} + annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }} + {{- end }} +{{- /* As the operator will create the job objects, it needs to have a SA that contains the image pull secrets */}} +{{- include "kube-arangodb.imagePullSecrets" . | nindent 2 }} +automountServiceAccountToken: {{ .Values.serviceAccount.job.automountServiceAccountToken }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/rbac/backup-operator/cluster-role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/backup-operator/cluster-role-binding.yaml new file mode 100644 index 00000000000000..13f30879ae6cac --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/backup-operator/cluster-role-binding.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.backup -}} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRoleBinding +metadata: + name: {{ printf "%s-backup" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ printf "%s-backup" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/backup-operator/cluster-role.yaml b/bitnami/kube-arangodb/templates/rbac/backup-operator/cluster-role.yaml new file mode 100644 index 00000000000000..d26daef5db6505 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/backup-operator/cluster-role.yaml @@ -0,0 +1,18 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.backup -}} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRole +metadata: + name: {{ printf "%s-backup" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/backup-operator/role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/backup-operator/role-binding.yaml new file mode 100644 index 00000000000000..1168c1ed3d75da --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/backup-operator/role-binding.yaml @@ -0,0 +1,23 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.backup }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: RoleBinding +metadata: + name: {{ printf "%s-backup" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ printf "%s-backup" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/backup-operator/role.yaml b/bitnami/kube-arangodb/templates/rbac/backup-operator/role.yaml new file mode 100644 index 00000000000000..e26772a44e289a --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/backup-operator/role.yaml @@ -0,0 +1,34 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.backup }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: Role +metadata: + name: {{ printf "%s-backup" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: [""] + resources: ["pods", "services", "endpoints"] + verbs: ["get", "update"] + - apiGroups: [""] + resources: ["events"] + verbs: ["*"] + - apiGroups: [""] + resources: ["secrets"] + verbs: ["get"] + - apiGroups: ["apps"] + resources: ["deployments", "replicasets"] + verbs: ["get"] + - apiGroups: ["backup.arangodb.com"] + resources: ["arangobackuppolicies", "arangobackuppolicies/status", "arangobackups", "arangobackups/status"] + verbs: ["*"] + - apiGroups: ["database.arangodb.com"] + resources: ["arangodeployments"] + verbs: ["get", "list", "watch"] +{{- end }} diff --git a/bitnami/kube-arangodb/templates/rbac/crd/cluster-role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/crd/cluster-role-binding.yaml new file mode 100644 index 00000000000000..d43709659ac6f6 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/crd/cluster-role-binding.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.enableCRDManagement -}} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRoleBinding +metadata: + name: {{ printf "%s-crd" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ printf "%s-crd" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/rbac/crd/cluster-role.yaml b/bitnami/kube-arangodb/templates/rbac/crd/cluster-role.yaml new file mode 100644 index 00000000000000..5597118e883249 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/crd/cluster-role.yaml @@ -0,0 +1,90 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.enableCRDManagement }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRole +metadata: + name: {{ printf "%s-crd" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + {{ if .Values.features.analytics -}} + # analytics.arangodb.com + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch", "update", "delete"] + resourceNames: + - "graphanalyticsengines.analytics.arangodb.com" + {{- end }} + {{ if .Values.features.apps -}} + # apps.arangodb.com + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch", "update", "delete"] + resourceNames: + - "arangojobs.apps.arangodb.com" + {{- end }} + {{ if .Values.features.backup -}} + # backup.arangodb.com + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch", "update", "delete"] + resourceNames: + - "arangobackuppolicies.backup.arangodb.com" + - "arangobackups.backup.arangodb.com" + {{- end }} + {{ if .Values.features.deployment -}} + # database.arangodb.com + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch", "update", "delete"] + resourceNames: + - "arangoclustersynchronizations.database.arangodb.com" + - "arangodeployments.database.arangodb.com" + - "arangomembers.database.arangodb.com" + - "arangotasks.database.arangodb.com" + {{- end }} + {{ if .Values.features.ml -}} + # ml.arangodb.com + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch", "update", "delete"] + resourceNames: + - "arangomlbatchjobs.ml.arangodb.com" + - "arangomlcronjobs.ml.arangodb.com" + - "arangomlextensions.ml.arangodb.com" + - "arangomlstorages.ml.arangodb.com" + {{- end }} + {{ if .Values.features.networking -}} + # networking.arangodb.com + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch", "update", "delete"] + resourceNames: + - "arangoroutes.networking.arangodb.com" + {{- end }} + {{ if .Values.features.deploymentReplications -}} + # replication.database.arangodb.com + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch", "update", "delete"] + resourceNames: + - "arangodeploymentreplications.replication.database.arangodb.com" + {{- end }} + {{ if .Values.features.scheduler }} + # scheduler.arangodb.com + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch", "update", "delete"] + resourceNames: + - "arangoprofiles.scheduler.arangodb.com" + - "arangoschedulerpods.scheduler.arangodb.com" + - "arangoschedulerdeploymets.scheduler.arangodb.com" + - "arangoschedulerbatchjobs.scheduler.arangodb.com" + - "arangoschedulercronjobs.scheduler.arangodb.com" + {{- end }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/deployment-operator/cluster-role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/deployment-operator/cluster-role-binding.yaml new file mode 100644 index 00000000000000..ab511722f2fd36 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/deployment-operator/cluster-role-binding.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.deployment -}} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRoleBinding +metadata: + name: {{ printf "%s-deployment" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ printf "%s-deployment" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/deployment-operator/cluster-role.yaml b/bitnami/kube-arangodb/templates/rbac/deployment-operator/cluster-role.yaml new file mode 100644 index 00000000000000..b6d1e34cf2d2dc --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/deployment-operator/cluster-role.yaml @@ -0,0 +1,21 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.deployment }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRole +metadata: + name: {{ printf "%s-deployment" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch"] + - apiGroups: [""] + resources: ["namespaces", "nodes", "persistentvolumes"] + verbs: ["get", "list"] +{{- end }} diff --git a/bitnami/kube-arangodb/templates/rbac/deployment-operator/default-role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/deployment-operator/default-role-binding.yaml new file mode 100644 index 00000000000000..ab9ca2c31f8f26 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/deployment-operator/default-role-binding.yaml @@ -0,0 +1,23 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.deployment }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: RoleBinding +metadata: + name: {{ printf "%s-default" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ printf "%s-default" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: default + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/deployment-operator/default-role.yaml b/bitnami/kube-arangodb/templates/rbac/deployment-operator/default-role.yaml new file mode 100644 index 00000000000000..36cbbe3bfcce29 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/deployment-operator/default-role.yaml @@ -0,0 +1,19 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.deployment }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: Role +metadata: + name: {{ printf "%s-default" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: [""] + resources: ["pods"] + verbs: ["get"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/deployment-operator/role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/deployment-operator/role-binding.yaml new file mode 100644 index 00000000000000..7c9875e983e325 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/deployment-operator/role-binding.yaml @@ -0,0 +1,23 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.deployment }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: RoleBinding +metadata: + name: {{ printf "%s-deployment" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ printf "%s-deployment" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/deployment-operator/role.yaml b/bitnami/kube-arangodb/templates/rbac/deployment-operator/role.yaml new file mode 100644 index 00000000000000..afeabf0e2d8a76 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/deployment-operator/role.yaml @@ -0,0 +1,60 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.deployment }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: Role +metadata: + name: {{ printf "%s-deployment" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["database.arangodb.com"] + resources: ["arangodeployments", "arangodeployments/status","arangomembers", "arangomembers/status"] + verbs: ["*"] + {{- if .Values.rbac.extensions.acs }} + - apiGroups: ["database.arangodb.com"] + resources: ["arangoclustersynchronizations", "arangoclustersynchronizations/status"] + verbs: ["*"] + {{- end }} + {{- if .Values.rbac.extensions.at }} + - apiGroups: ["database.arangodb.com"] + resources: ["arangotasks", "arangotasks/status"] + verbs: ["*"] + {{- end }} + - apiGroups: [""] + resources: ["pods", "services", "endpoints", "persistentvolumeclaims", "events", "secrets", "serviceaccounts", "configmaps"] + verbs: ["*"] + - apiGroups: ["apps"] + resources: ["deployments", "replicasets"] + verbs: ["get"] + - apiGroups: ["policy"] + resources: ["poddisruptionbudgets"] + verbs: ["*"] + - apiGroups: ["coordination.k8s.io"] + resources: ["leases"] + verbs: ["*"] + - apiGroups: ["platform.arangodb.com"] + resources: ["arangoplatformstorages", "arangoplatformstorages/status"] + verbs: ["get", "list", "watch"] + - apiGroups: ["backup.arangodb.com"] + resources: ["arangobackuppolicies", "arangobackups"] + verbs: ["get", "list", "watch"] + {{- if .Values.rbac.extensions.debug }} + - apiGroups: ["events.k8s.io"] + resources: ["pods/log"] + verbs: ["list"] + - apiGroups: [""] + resources: ["pods/log"] + verbs: ["get", "list"] + {{- end }} + {{- if .Values.rbac.extensions.monitoring }} + - apiGroups: ["monitoring.coreos.com"] + resources: ["servicemonitors"] + verbs: ["get", "create", "delete", "update", "list", "watch", "patch"] + {{- end }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/cluster-role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/cluster-role-binding.yaml new file mode 100644 index 00000000000000..c945b3d6c5cb34 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/cluster-role-binding.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.deploymentReplications }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRoleBinding +metadata: + name: {{ printf "%s-deployment-replication" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ printf "%s-deployment-replication" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/cluster-role.yaml b/bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/cluster-role.yaml new file mode 100644 index 00000000000000..b9148d6454ef65 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/cluster-role.yaml @@ -0,0 +1,21 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.deploymentReplications -}} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRole +metadata: + name: {{ printf "%s-deployment-replication" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch"] + - apiGroups: [""] + resources: ["namespaces", "nodes"] + verbs: ["get", "list"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/role-binding.yaml new file mode 100644 index 00000000000000..8c56c2e6d87227 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/role-binding.yaml @@ -0,0 +1,23 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.deploymentReplications }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: RoleBinding +metadata: + name: {{ printf "%s-deployment-replication" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ printf "%s-deployment-replication" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/role.yaml b/bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/role.yaml new file mode 100644 index 00000000000000..06a3f55cad8f72 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/deployment-replications-operator/role.yaml @@ -0,0 +1,28 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.deploymentReplications }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: Role +metadata: + name: {{ printf "%s-deployment-replication" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["replication.database.arangodb.com"] + resources: ["arangodeploymentreplications", "arangodeploymentreplications/status"] + verbs: ["*"] + - apiGroups: ["database.arangodb.com"] + resources: ["arangodeployments"] + verbs: ["get"] + - apiGroups: [""] + resources: ["pods", "services", "endpoints", "persistentvolumeclaims", "events", "secrets"] + verbs: ["*"] + - apiGroups: ["apps"] + resources: ["deployments", "replicasets"] + verbs: ["get"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/cluster-role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/cluster-role-binding.yaml new file mode 100644 index 00000000000000..8f0dcf7d2eb959 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/cluster-role-binding.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.k8sToK8sClusterSync }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRoleBinding +metadata: + name: {{ printf "%s-k2kclustersync" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ printf "%s-k2kclustersync" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/cluster-role.yaml b/bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/cluster-role.yaml new file mode 100644 index 00000000000000..39eb58b543f3f2 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/cluster-role.yaml @@ -0,0 +1,18 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.k8sToK8sClusterSync }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRole +metadata: + name: {{ printf "%s-k2kclustersync" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch"] +{{- end }} diff --git a/bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/role-binding.yaml new file mode 100644 index 00000000000000..e0982c2e11a70d --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/role-binding.yaml @@ -0,0 +1,23 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.k8sToK8sClusterSync }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: RoleBinding +metadata: + name: {{ printf "%s-k2kclustersync" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ printf "%s-k2kclustersync" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/role.yaml b/bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/role.yaml new file mode 100644 index 00000000000000..b5c129008d9b30 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/k2k-cluster-sync-operator/role.yaml @@ -0,0 +1,31 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.k8sToK8sClusterSync }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: Role +metadata: + name: {{ printf "%s-k2kclustersync" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: [""] + resources: ["pods", "services", "endpoints"] + verbs: ["get", "update"] + - apiGroups: [""] + resources: ["events"] + verbs: ["*"] + - apiGroups: [""] + resources: ["secrets"] + verbs: ["get"] + - apiGroups: ["apps"] + resources: ["deployments", "replicasets"] + verbs: ["get"] + - apiGroups: ["database.arangodb.com"] + resources: ["arangodeployments", "arangoclustersynchronizations"] + verbs: ["get", "list", "watch"] +{{- end }} diff --git a/bitnami/kube-arangodb/templates/rbac/ml-operator/cluster-role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/ml-operator/cluster-role-binding.yaml new file mode 100644 index 00000000000000..e141f923d165c6 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/ml-operator/cluster-role-binding.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.ml }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRoleBinding +metadata: + name: {{ printf "%s-ml" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ printf "%s-ml" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/ml-operator/cluster-role.yaml b/bitnami/kube-arangodb/templates/rbac/ml-operator/cluster-role.yaml new file mode 100644 index 00000000000000..fe5fdcd01abfcd --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/ml-operator/cluster-role.yaml @@ -0,0 +1,18 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.ml }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRole +metadata: + name: {{ printf "%s-ml" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/ml-operator/role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/ml-operator/role-binding.yaml new file mode 100644 index 00000000000000..b6944bcba0b3bc --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/ml-operator/role-binding.yaml @@ -0,0 +1,23 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.ml }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: RoleBinding +metadata: + name: {{ printf "%s-ml" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ printf "%s-ml" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/ml-operator/role.yaml b/bitnami/kube-arangodb/templates/rbac/ml-operator/role.yaml new file mode 100644 index 00000000000000..916842d1c0990f --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/ml-operator/role.yaml @@ -0,0 +1,67 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.ml }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: Role +metadata: + name: {{ printf "%s-ml" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: + - "ml.arangodb.com" + resources: + - "arangomlextensions" + - "arangomlextensions/status" + - "arangomlbatchjobs" + - "arangomlbatchjobs/status" + - "arangomlcronjobs" + - "arangomlcronjobs/status" + - "arangomlstorages" + - "arangomlstorages/status" + verbs: + - "*" + - apiGroups: + - "scheduler.arangodb.com" + resources: + - "arangoprofiles" + - "arangoprofiles/status" + verbs: + - "*" + - apiGroups: + - "database.arangodb.com" + resources: + - "arangodeployments" + verbs: + - "get" + - "list" + - "watch" + - apiGroups: + - "rbac.authorization.k8s.io" + resources: + - "roles" + - "rolebindings" + verbs: ["*"] + - apiGroups: + - "batch" + resources: + - "cronjobs" + - "jobs" + verbs: ["*"] + - apiGroups: ["apps"] + resources: + - "statefulsets" + verbs: ["*"] + - apiGroups: [""] + resources: + - "pods" + - "secrets" + - "services" + - "serviceaccounts" + verbs: ["*"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/networking-operator/cluster-role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/networking-operator/cluster-role-binding.yaml new file mode 100644 index 00000000000000..660bc4490c4686 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/networking-operator/cluster-role-binding.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.networking }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRoleBinding +metadata: + name: {{ printf "%s-networking" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ printf "%s-networking" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/networking-operator/cluster-role.yaml b/bitnami/kube-arangodb/templates/rbac/networking-operator/cluster-role.yaml new file mode 100644 index 00000000000000..cb2df16e2ab74e --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/networking-operator/cluster-role.yaml @@ -0,0 +1,18 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.networking }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRole +metadata: + name: {{ printf "%s-networking" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/networking-operator/role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/networking-operator/role-binding.yaml new file mode 100644 index 00000000000000..9b178fa270d920 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/networking-operator/role-binding.yaml @@ -0,0 +1,23 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.networking }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: RoleBinding +metadata: + name: {{ printf "%s-networking" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ printf "%s-networking" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/networking-operator/role.yaml b/bitnami/kube-arangodb/templates/rbac/networking-operator/role.yaml new file mode 100644 index 00000000000000..51b4646be57881 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/networking-operator/role.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.networking }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: Role +metadata: + name: {{ printf "%s-networking" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["networking.arangodb.com"] + resources: ["arangoroutes", "arangoroutes/status"] + verbs: ["*"] + - apiGroups: [""] + resources: ["pods", "services", "endpoints"] + verbs: ["get", "list", "watch"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/platform-operator/cluster-role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/platform-operator/cluster-role-binding.yaml new file mode 100644 index 00000000000000..beb38a2c749dc1 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/platform-operator/cluster-role-binding.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.platform }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRoleBinding +metadata: + name: {{ printf "%s-platform" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ printf "%s-platform" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/platform-operator/cluster-role.yaml b/bitnami/kube-arangodb/templates/rbac/platform-operator/cluster-role.yaml new file mode 100644 index 00000000000000..ce9b4802c8d511 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/platform-operator/cluster-role.yaml @@ -0,0 +1,18 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.platform }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRole +metadata: + name: {{ printf "%s-platform" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/platform-operator/role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/platform-operator/role-binding.yaml new file mode 100644 index 00000000000000..19c538f698c17e --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/platform-operator/role-binding.yaml @@ -0,0 +1,23 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.platform }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: RoleBinding +metadata: + name: {{ printf "%s-platform" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ printf "%s-platform" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/platform-operator/role.yaml b/bitnami/kube-arangodb/templates/rbac/platform-operator/role.yaml new file mode 100644 index 00000000000000..6c72db86ffe51b --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/platform-operator/role.yaml @@ -0,0 +1,23 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.platform }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: Role +metadata: + name: {{ printf "%s-platform" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["platform.arangodb.com"] + resources: + - "arangoplatformstorages" + - "arangoplatformstorages/status" + - "arangoplatformcharts" + - "arangoplatformcharts/status" + verbs: ["*"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/scheduler-operator/cluster-role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/scheduler-operator/cluster-role-binding.yaml new file mode 100644 index 00000000000000..b858073e24f16b --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/scheduler-operator/cluster-role-binding.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.scheduler }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRoleBinding +metadata: + name: {{ printf "%s-scheduler" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ printf "%s-scheduler" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/scheduler-operator/cluster-role.yaml b/bitnami/kube-arangodb/templates/rbac/scheduler-operator/cluster-role.yaml new file mode 100644 index 00000000000000..aa299528bbdd4c --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/scheduler-operator/cluster-role.yaml @@ -0,0 +1,18 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create (ne .Values.scope "namespaced") .Values.features.scheduler }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRole +metadata: + name: {{ printf "%s-scheduler" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/scheduler-operator/role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/scheduler-operator/role-binding.yaml new file mode 100644 index 00000000000000..687a9365d61341 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/scheduler-operator/role-binding.yaml @@ -0,0 +1,23 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.scheduler }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: RoleBinding +metadata: + name: {{ printf "%s-scheduler" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ printf "%s-scheduler" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/scheduler-operator/role.yaml b/bitnami/kube-arangodb/templates/rbac/scheduler-operator/role.yaml new file mode 100644 index 00000000000000..640aab62266f5b --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/scheduler-operator/role.yaml @@ -0,0 +1,62 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.scheduler }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: Role +metadata: + name: {{ printf "%s-scheduler" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: + - "scheduler.arangodb.com" + resources: + - "arangoprofiles" + - "arangoprofiles/status" + - "arangoschedulerpods" + - "arangoschedulerpods/status" + - "arangoschedulerdeployments" + - "arangoschedulerdeployments/status" + - "arangoschedulerbatchjobs" + - "arangoschedulerbatchjobs/status" + - "arangoschedulercronjobs" + - "arangoschedulercronjobs/status" + verbs: + - "*" + - apiGroups: + - "" + resources: + - "pods" + - "pods/status" + verbs: + - "*" + - apiGroups: + - "apps" + resources: + - "deployments" + - "deployments/status" + verbs: + - "*" + - apiGroups: + - "batch" + resources: + - "jobs" + - "jobs/status" + - "cronjobs" + - "cronjobs/status" + verbs: + - "*" + - apiGroups: + - "database.arangodb.com" + resources: + - "arangodeployments" + verbs: + - "get" + - "list" + - "watch" +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/storage-operator/cluster-role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/storage-operator/cluster-role-binding.yaml new file mode 100644 index 00000000000000..f01bb66ebb8c7b --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/storage-operator/cluster-role-binding.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.storage }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRoleBinding +metadata: + name: {{ printf "%s-storage" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ printf "%s-storage" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/storage-operator/cluster-role.yaml b/bitnami/kube-arangodb/templates/rbac/storage-operator/cluster-role.yaml new file mode 100644 index 00000000000000..20c47b0c3db711 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/storage-operator/cluster-role.yaml @@ -0,0 +1,30 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.storage }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: ClusterRole +metadata: + name: {{ printf "%s-storage" (include "common.names.fullname.namespace" .) | trunc 63 | trimSuffix "-" }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: [""] + resources: ["persistentvolumes", "persistentvolumeclaims", "endpoints", "events", "services"] + verbs: ["*"] + - apiGroups: ["apiextensions.k8s.io"] + resources: ["customresourcedefinitions"] + verbs: ["get", "list", "watch"] + - apiGroups: [""] + resources: ["namespaces", "nodes"] + verbs: ["get", "list", "watch"] + - apiGroups: ["storage.k8s.io"] + resources: ["storageclasses"] + verbs: ["*"] + - apiGroups: ["storage.arangodb.com"] + resources: ["arangolocalstorages"] + verbs: ["*"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/storage-operator/role-binding.yaml b/bitnami/kube-arangodb/templates/rbac/storage-operator/role-binding.yaml new file mode 100644 index 00000000000000..65a0e895b10960 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/storage-operator/role-binding.yaml @@ -0,0 +1,23 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.storage }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: RoleBinding +metadata: + name: {{ printf "%s-storage" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ printf "%s-storage" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} +subjects: + - kind: ServiceAccount + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/rbac/storage-operator/role.yaml b/bitnami/kube-arangodb/templates/rbac/storage-operator/role.yaml new file mode 100644 index 00000000000000..8514e2d784d9c9 --- /dev/null +++ b/bitnami/kube-arangodb/templates/rbac/storage-operator/role.yaml @@ -0,0 +1,28 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.rbac.create .Values.features.storage }} +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} +kind: Role +metadata: + name: {{ printf "%s-storage" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +rules: + - apiGroups: [""] + resources: ["pods"] + verbs: ["get", "update", "watch", "list"] + - apiGroups: [""] + resources: ["secrets"] + verbs: ["get"] + - apiGroups: ["apps"] + resources: ["daemonsets"] + verbs: ["*"] + - apiGroups: ["apps"] + resources: ["deployments", "replicasets"] + verbs: ["get"] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/secret.yaml b/bitnami/kube-arangodb/templates/secret.yaml new file mode 100644 index 00000000000000..b09d15a4c884b0 --- /dev/null +++ b/bitnami/kube-arangodb/templates/secret.yaml @@ -0,0 +1,22 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if (not .Values.auth.existingSecret) }} +apiVersion: v1 +kind: Secret +metadata: + name: {{ include "common.names.fullname" . }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +type: kubernetes.io/basic-auth +data: + username: {{ include "common.secrets.passwords.manage" (dict "secret" (include "common.names.fullname" .) "key" "username" "providedValues" (list "auth.username") "honorProvidedValues" true "context" $) }} + password: {{ include "common.secrets.passwords.manage" (dict "secret" (include "common.names.fullname" .) "key" "password" "providedValues" (list "auth.password") "honorProvidedValues" true "context" $) }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/service-account.yaml b/bitnami/kube-arangodb/templates/service-account.yaml new file mode 100644 index 00000000000000..f387f17750d72a --- /dev/null +++ b/bitnami/kube-arangodb/templates/service-account.yaml @@ -0,0 +1,20 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if .Values.serviceAccount.operator.create }} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "kube-arangodb.serviceAccountName" . }} + namespace: {{ .Release.Namespace | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator + {{- if or .Values.serviceAccount.operator.annotations .Values.commonAnnotations }} + {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.serviceAccount.operator.annotations .Values.commonAnnotations ) "context" . ) }} + annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }} + {{- end }} +automountServiceAccountToken: {{ .Values.serviceAccount.operator.automountServiceAccountToken }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/service.yaml b/bitnami/kube-arangodb/templates/service.yaml new file mode 100644 index 00000000000000..b92ae178ca34cc --- /dev/null +++ b/bitnami/kube-arangodb/templates/service.yaml @@ -0,0 +1,79 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +apiVersion: v1 +kind: Service +metadata: + name: {{ include "common.names.fullname" . | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.commonLabels .Values.service.labels) "context" . ) }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator + {{- $defaultAnnotations := dict }} + {{- if .Values.metrics.enabled }} + {{- $defaultAnnotations = dict "prometheus.io/scrape" "true" "prometheus.io/port" (.Values.service.ports.server | quote) "prometheus.io/path" "/metrics" }} + {{- $defaultAnnotations = include "common.tplvalues.merge" (dict "values" (list $defaultAnnotations .Values.metrics.annotations) "context" .) }} + {{- end }} + {{- $annotations := include "common.tplvalues.merge" (dict "values" (list $defaultAnnotations .Values.service.annotations .Values.commonAnnotations) "context" .) }} + {{- if $annotations }} + annotations: {{- include "common.tplvalues.render" (dict "value" $annotations "context" $) | nindent 4 }} + {{- end }} +spec: + type: {{ .Values.service.type }} + {{- if and .Values.service.clusterIP (eq .Values.service.type "ClusterIP") }} + clusterIP: {{ .Values.service.clusterIP }} + {{- end }} + {{- if .Values.service.sessionAffinity }} + sessionAffinity: {{ .Values.service.sessionAffinity }} + {{- end }} + {{- if .Values.service.sessionAffinityConfig }} + sessionAffinityConfig: {{- include "common.tplvalues.render" (dict "value" .Values.service.sessionAffinityConfig "context" $) | nindent 4 }} + {{- end }} + {{- if or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort") }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} + {{- end }} + {{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerSourceRanges)) }} + loadBalancerSourceRanges: {{ .Values.service.loadBalancerSourceRanges }} + {{- end }} + {{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP)) }} + loadBalancerIP: {{ .Values.service.loadBalancerIP }} + {{- end }} + ports: + - name: https-server + port: {{ .Values.service.ports.server }} + protocol: TCP + targetPort: https-server + {{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.server)) }} + nodePort: {{ .Values.service.nodePorts.server }} + {{- else if eq .Values.service.type "ClusterIP" }} + nodePort: null + {{- end }} + {{- if .Values.enableAPI }} + - name: http-api + port: {{ .Values.service.ports.apiHttp }} + protocol: TCP + targetPort: http-api + {{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.apiHttp)) }} + nodePort: {{ .Values.service.nodePorts.apiHttp }} + {{- else if eq .Values.service.type "ClusterIP" }} + nodePort: null + {{- end }} + - name: grpc-api + port: {{ .Values.service.ports.apiGrpc }} + protocol: TCP + targetPort: grpc-api + {{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.apiGrpc)) }} + nodePort: {{ .Values.service.nodePorts.apiGrpc }} + {{- else if eq .Values.service.type "ClusterIP" }} + nodePort: null + {{- end }} + {{- end }} + {{- if .Values.service.extraPorts }} + {{- include "common.tplvalues.render" (dict "value" .Values.service.extraPorts "context" $) | nindent 4 }} + {{- end }} + selector: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator diff --git a/bitnami/kube-arangodb/templates/servicemonitor.yaml b/bitnami/kube-arangodb/templates/servicemonitor.yaml new file mode 100644 index 00000000000000..e42acf437b5e00 --- /dev/null +++ b/bitnami/kube-arangodb/templates/servicemonitor.yaml @@ -0,0 +1,50 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }} +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: {{ template "common.names.fullname" . }} + namespace: {{ default (include "common.names.namespace" .) .Values.metrics.serviceMonitor.namespace | quote }} + {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.metrics.serviceMonitor.labels .Values.commonLabels ) "context" . ) }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: metrics + {{- if or .Values.metrics.serviceMonitor.annotations .Values.commonAnnotations }} + {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.metrics.serviceMonitor.annotations .Values.commonAnnotations ) "context" . ) }} + annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }} + {{- end }} +spec: + jobLabel: {{ .Values.metrics.serviceMonitor.jobLabel | quote }} + selector: + matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 6 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: metrics + {{- if .Values.metrics.serviceMonitor.selector }} + {{- include "common.tplvalues.render" (dict "value" .Values.metrics.serviceMonitor.selector "context" $) | nindent 6 }} + {{- end }} + endpoints: + - port: https-server + path: "/metrics" + {{- if .Values.metrics.serviceMonitor.interval }} + interval: {{ .Values.metrics.serviceMonitor.interval }} + {{- end }} + {{- if .Values.metrics.serviceMonitor.scrapeTimeout }} + scrapeTimeout: {{ .Values.metrics.serviceMonitor.scrapeTimeout }} + {{- end }} + {{- if .Values.metrics.serviceMonitor.honorLabels }} + honorLabels: {{ .Values.metrics.serviceMonitor.honorLabels }} + {{- end }} + {{- if .Values.metrics.serviceMonitor.metricRelabelings }} + metricRelabelings: {{- include "common.tplvalues.render" ( dict "value" .Values.metrics.serviceMonitor.metricRelabelings "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.metrics.serviceMonitor.relabelings }} + relabelings: {{- include "common.tplvalues.render" ( dict "value" .Values.metrics.serviceMonitor.relabelings "context" $) | nindent 8 }} + {{- end }} + namespaceSelector: + matchNames: + - {{ include "common.names.namespace" . | quote }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/vpa.yaml b/bitnami/kube-arangodb/templates/vpa.yaml new file mode 100644 index 00000000000000..8b811c082711f2 --- /dev/null +++ b/bitnami/kube-arangodb/templates/vpa.yaml @@ -0,0 +1,45 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if and (include "common.capabilities.apiVersions.has" (dict "version" "autoscaling.k8s.io/v1/VerticalPodAutoscaler" "context" .)) .Values.autoscaling.vpa.enabled }} +apiVersion: {{ include "common.capabilities.vpa.apiVersion" . }} +kind: VerticalPodAutoscaler +metadata: + name: {{ include "common.names.fullname" . }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator + {{- if or .Values.autoscaling.vpa.annotations .Values.commonAnnotations }} + {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.autoscaling.vpa.annotations .Values.commonAnnotations ) "context" . ) }} + annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }} + {{- end }} +spec: + resourcePolicy: + containerPolicies: + - containerName: kube-arangodb + {{- with .Values.autoscaling.vpa.controlledResources }} + controlledResources: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.autoscaling.vpa.maxAllowed }} + maxAllowed: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.autoscaling.vpa.minAllowed }} + minAllowed: + {{- toYaml . | nindent 8 }} + {{- end }} + targetRef: + apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} + kind: Deployment + name: {{ include "common.names.fullname" . }} + {{- if .Values.autoscaling.vpa.updatePolicy }} + updatePolicy: + {{- with .Values.autoscaling.vpa.updatePolicy.updateMode }} + updateMode: {{ . }} + {{- end }} + {{- end }} +{{- end }} diff --git a/bitnami/kube-arangodb/templates/webhook/mutation.yaml b/bitnami/kube-arangodb/templates/webhook/mutation.yaml new file mode 100644 index 00000000000000..5c1d2ea8549134 --- /dev/null +++ b/bitnami/kube-arangodb/templates/webhook/mutation.yaml @@ -0,0 +1,70 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.webhooks.enabled .Values.webhooks.mutating.create }} +apiVersion: admissionregistration.k8s.io/v1 +kind: MutatingWebhookConfiguration +metadata: + name: {{ include "common.names.fullname.namespace" . }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +webhooks: + - name: "pods.policies.scheduler.arangodb.com" + namespaceSelector: + matchExpressions: + - key: kubernetes.io/metadata.name + operator: In + values: + - {{ include "common.names.namespace" . | quote }} + objectSelector: + matchExpressions: + - key: profiles.arangodb.com/deployment + operator: Exists + rules: + - apiGroups: [""] + apiVersions: ["v1"] + operations: ["CREATE"] + resources: ["pods"] + scope: "Namespaced" + clientConfig: + service: + namespace: {{ include "common.names.namespace" . | quote }} + name: {{ printf "%s-webhook" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + path: /webhook/core/v1/pods/policies/mutate + port: {{ .Values.webhooks.service.ports.webhook }} + admissionReviewVersions: ["v1"] + sideEffects: None + timeoutSeconds: 5 + - name: "generic.pod.policies.scheduler.arangodb.com" + namespaceSelector: + matchExpressions: + - key: kubernetes.io/metadata.name + operator: In + values: + - {{ include "common.names.namespace" . | quote }} + objectSelector: + matchExpressions: + - key: profiles.arangodb.com/apply + operator: Exists + rules: + - apiGroups: [""] + apiVersions: ["v1"] + operations: ["CREATE"] + resources: ["pods"] + scope: "Namespaced" + clientConfig: + service: + namespace: {{ include "common.names.namespace" . | quote }} + name: {{ printf "%s-webhook" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + path: /webhook/core/v1/pods/policies/mutate + port: {{ .Values.webhooks.service.ports.webhook }} + admissionReviewVersions: ["v1"] + sideEffects: None + timeoutSeconds: 5 +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/webhook/service.yaml b/bitnami/kube-arangodb/templates/webhook/service.yaml new file mode 100644 index 00000000000000..c6350ffe943c68 --- /dev/null +++ b/bitnami/kube-arangodb/templates/webhook/service.yaml @@ -0,0 +1,37 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if .Values.webhooks.enabled }} +apiVersion: v1 +kind: Service +metadata: + name: {{ printf "%s-webhook" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + namespace: {{ include "common.names.namespace" . | quote }} + {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.commonLabels .Values.webhooks.service.labels) "context" . ) }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator + {{- if or .Values.webhooks.service.annotations .Values.commonAnnotations }} + {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.webhooks.service.annotations .Values.commonAnnotations ) "context" . ) }} + annotations: + {{- if or .Values.webhooks.service.annotations .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }} + {{- end }} + {{- end }} +spec: + type: ClusterIP + {{- if .Values.webhooks.service.clusterIP }} + clusterIP: {{ .Values.webhooks.service.clusterIP }} + {{- end }} + ports: + - name: http-webhook + port: {{ .Values.webhooks.service.ports.webhook }} + protocol: TCP + targetPort: http-webhook + {{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }} + selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/templates/webhook/validation.yaml b/bitnami/kube-arangodb/templates/webhook/validation.yaml new file mode 100644 index 00000000000000..5eb35dee569776 --- /dev/null +++ b/bitnami/kube-arangodb/templates/webhook/validation.yaml @@ -0,0 +1,18 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{ if and .Values.webhooks.enabled .Values.webhooks.validating.create }} +apiVersion: admissionregistration.k8s.io/v1 +kind: ValidatingWebhookConfiguration +metadata: + name: {{ include "common.names.fullname.namespace" . }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/part-of: kube-arangodb + app.kubernetes.io/component: operator + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +webhooks: [] +{{- end }} \ No newline at end of file diff --git a/bitnami/kube-arangodb/values.yaml b/bitnami/kube-arangodb/values.yaml new file mode 100644 index 00000000000000..7a4c258730bc7c --- /dev/null +++ b/bitnami/kube-arangodb/values.yaml @@ -0,0 +1,1002 @@ +# Copyright Broadcom, Inc. All Rights Reserved. +# SPDX-License-Identifier: APACHE-2.0 + +## @section Global parameters +## Global Docker image parameters +## Please, note that this will override the image parameters, including dependencies, configured to use the global value +## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass +## + +## @param global.imageRegistry Global Docker image registry +## @param global.imagePullSecrets Global Docker registry secret names as an array +## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s) +## +global: + imageRegistry: "" + ## E.g. + ## imagePullSecrets: + ## - myRegistryKeySecretName + ## + imagePullSecrets: [] + defaultStorageClass: "" + ## Security parameters + ## + security: + ## @param global.security.allowInsecureImages Allows skipping image verification + allowInsecureImages: false + ## Compatibility adaptations for Kubernetes platforms + ## + compatibility: + ## Compatibility adaptations for Openshift + ## + openshift: + ## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation) + ## + adaptSecurityContext: auto +## @section Common parameters +## + +## @param kubeVersion Override Kubernetes version +## +kubeVersion: "" +## @param apiVersions Override Kubernetes API versions reported by .Capabilities +## +apiVersions: [] +## @param nameOverride String to partially override common.names.name +## +nameOverride: "" +## @param fullnameOverride String to fully override common.names.fullname +## +fullnameOverride: "" +## @param namespaceOverride String to fully override common.names.namespace +## +namespaceOverride: "" +## @param commonLabels Labels to add to all deployed objects +## +commonLabels: {} +## @param commonAnnotations Annotations to add to all deployed objects +## +commonAnnotations: {} +## @param clusterDomain Kubernetes cluster domain name +## +clusterDomain: cluster.local +## @param extraDeploy Array of extra objects to deploy with the release +## +extraDeploy: [] + +## Enable diagnostic mode in the deployment +## +diagnosticMode: + ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden) + ## + enabled: false + ## @param diagnosticMode.command Command to override all containers in the deployment + ## + command: + - sleep + ## @param diagnosticMode.args Args to override all containers in the deployment + ## + args: + - infinity + +## Bitnami kube-arangodb Operator image +## ref: https://hub.docker.com/r/bitnami/kube-arangodb/tags/ +## @param image.registry [default: REGISTRY_NAME] kube-arangodb Operator image registry +## @param image.repository [default: REPOSITORY_NAME/kube-arangodb] kube-arangodb Operator image repository +## @skip image.tag kube-arangodb Operator image tag (immutable tags are recommended) +## @param image.digest kube-arangodb Operator image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag image tag (immutable tags are recommended) +## @param image.pullPolicy kube-arangodb Operator image pull policy +## @param image.pullSecrets kube-arangodb Operator image pull secrets +## @param image.debug Enable kube-arangodb Operator image debug mode +## +image: + registry: docker.io + repository: bitnami/kube-arangodb + tag: 1.2.46-debian-12-r0 + digest: "" + ## Specify a imagePullPolicy + ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images + ## + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## e.g: + ## pullSecrets: + ## - myRegistryKeySecretName + ## + pullSecrets: [] + ## Enable debug mode + ## + debug: false +## Bitnami ArangoDB image version +## ref: https://hub.docker.com/r/bitnami/arangodb/tags/ +## @param arangodbImage.registry [default: REGISTRY_NAME] ArangoDB image registry +## @param arangodbImage.repository [default: REPOSITORY_NAME/arangodb] ArangoDB image repository +## @skip arangodbImage.tag ArangoDB image tag (immutable tags are recommended) +## @param arangodbImage.digest ArangoDB image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag +## +arangodbImage: + registry: docker.io + repository: bitnami/arangodb + tag: 3.11.13-debian-12-r2 + digest: "" +## @param replicaCount Number of kube-arangodb Operator replicas to deploy +## +replicaCount: 1 +## @param containerPorts.server kube-arangodb Operator server container port +## @param containerPorts.apiHttp kube-arangodb Operator API HTTP container port +## @param containerPorts.apiGrpc kube-arangodb Operator API GRPC container port +## +containerPorts: + server: 8528 + apiHttp: 8628 + apiGrpc: 8728 +## Configure extra options for kube-arangodb Operator containers' liveness and readiness probes +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes +## @param livenessProbe.enabled Enable livenessProbe on kube-arangodb Operator containers +## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe +## @param livenessProbe.periodSeconds Period seconds for livenessProbe +## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe +## @param livenessProbe.failureThreshold Failure threshold for livenessProbe +## @param livenessProbe.successThreshold Success threshold for livenessProbe +## +livenessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 5 + successThreshold: 1 +## @param readinessProbe.enabled Enable readinessProbe on kube-arangodb Operator containers +## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe +## @param readinessProbe.periodSeconds Period seconds for readinessProbe +## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe +## @param readinessProbe.failureThreshold Failure threshold for readinessProbe +## @param readinessProbe.successThreshold Success threshold for readinessProbe +## +readinessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 5 + successThreshold: 1 +## @param startupProbe.enabled Enable startupProbe on kube-arangodb Operator containers +## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe +## @param startupProbe.periodSeconds Period seconds for startupProbe +## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe +## @param startupProbe.failureThreshold Failure threshold for startupProbe +## @param startupProbe.successThreshold Success threshold for startupProbe +## +startupProbe: + enabled: false + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 5 + successThreshold: 1 +## @param customLivenessProbe Custom livenessProbe that overrides the default one +## +customLivenessProbe: {} +## @param customReadinessProbe Custom readinessProbe that overrides the default one +## +customReadinessProbe: {} +## @param customStartupProbe Custom startupProbe that overrides the default one +## +customStartupProbe: {} +## @param scope Define namespace scope: Allowed values: legacy, namespaced +## +scope: legacy +## @param allowChaos Allow chaows in deployments +## +allowChaos: false +## @param enableAPI Enable operator API endpoints +## +enableAPI: true +## @param enableCRDManagement Enable CRD Management by the operator +## +enableCRDManagement: true +## @param extraArgs Add extra arguments to the default command +## +extraArgs: [] +## Authentication +## +auth: + ## @param auth.username Server admin username + ## + username: user + ## @param auth.password Server admin password (auto-generated if not set) + ## + password: "" + ## @param auth.existingSecret Name of a secret containing the admin credentials + ## + existingSecret: "" +## Operator features +## +features: + ## @param features.deployment Enable deployment operator + ## + deployment: true + ## @param features.deploymentReplications Enable deployment-replicator operator + ## + deploymentReplications: true + ## @param features.storage Enable storage operator + ## + storage: false + ## @param features.backup Enable backup operator + ## + backup: false + ## @param features.apps Enable apps operator + ## + apps: false + ## @param features.k8sToK8sClusterSync Enable Kubernetes to Kubernetes Sync operator + ## + k8sToK8sClusterSync: false + ## @param features.ml Enable ML operator + ## + ml: false + ## @param features.analytics Enable analytics operator + ## + analytics: false + ## @param features.networking Enable networking operator + ## + networking: true + ## @param features.scheduler Enable scheduler operator + ## + scheduler: true + ## @param features.platform Enable platform operator + ## + platform: true + +## Deployment features +## +deploymentFeatures: + ## @param deploymentFeatures.ephemeralVolumes Allow readOnlyRootFilesystem in the ArangoDB deployments + ## + ephemeralVolumes: true + ## @param deploymentFeatures.securedContainers Deploy ArangoDB as non root + ## + securedContainers: true +## kube-arangodb Operator resource requests and limits +## ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +## @param resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if `resources` is set (`resources` is recommended for production). +## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15 +## +resourcesPreset: "nano" +## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads) +## Example: +## resources: +## requests: +## cpu: 2 +## memory: 512Mi +## limits: +## cpu: 3 +## memory: 1024Mi +## +resources: {} +## Configure Pods Security Context +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod +## @param podSecurityContext.enabled Enabled kube-arangodb Operator pods' Security Context +## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy +## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface +## @param podSecurityContext.supplementalGroups Set filesystem extra groups +## @param podSecurityContext.fsGroup Set kube-arangodb Operator pod's Security Context fsGroup +## +podSecurityContext: + enabled: true + fsGroupChangePolicy: Always + sysctls: [] + supplementalGroups: [] + fsGroup: 1001 +## Configure Container Security Context +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container +## @param containerSecurityContext.enabled Enabled containers' Security Context +## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container +## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser +## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup +## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot +## @param containerSecurityContext.privileged Set container's Security Context privileged +## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem +## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation +## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped +## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile +## +containerSecurityContext: + enabled: true + seLinuxOptions: {} + runAsUser: 1001 + runAsGroup: 1001 + runAsNonRoot: true + privileged: false + readOnlyRootFilesystem: true + allowPrivilegeEscalation: false + capabilities: + drop: ["ALL"] + seccompProfile: + type: "RuntimeDefault" +## @param command Override default container command (useful when using custom images) +## +command: [] +## @param args Override default container args (useful when using custom images) +## +args: [] +## @param automountServiceAccountToken Mount Service Account token in pod +## +automountServiceAccountToken: true +## @param hostAliases kube-arangodb Operator pods host aliases +## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ +## +hostAliases: [] +## @param podLabels Extra labels for kube-arangodb Operator pods +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +## +podLabels: {} +## @param podAnnotations Annotations for kube-arangodb Operator pods +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` +## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity +## +podAffinityPreset: "" +## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` +## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity +## +podAntiAffinityPreset: soft +## Pod Disruption Budget configuration +## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb +## @param pdb.create Enable/disable a Pod Disruption Budget creation +## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled +## @param pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable +## +pdb: + create: true + minAvailable: "" + maxUnavailable: "" +## Node affinity preset +## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity +## +nodeAffinityPreset: + ## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` + ## + type: "" + ## @param nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set + ## + key: "" + ## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set + ## E.g. + ## values: + ## - e2e-az1 + ## - e2e-az2 + ## + values: [] +## @param affinity Affinity for kube-arangodb Operator pods assignment +## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity +## NOTE: `podAffinityPreset`, `podAntiAffinityPreset`, and `nodeAffinityPreset` will be ignored when it's set +## +affinity: {} +## @param nodeSelector Node labels for kube-arangodb Operator pods assignment +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes/ +## +nodeSelector: {} +## @param tolerations Tolerations for kube-arangodb Operator pods assignment +## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +## +tolerations: [] +## @param updateStrategy.type kube-arangodb Operator statefulset strategy type +## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies +## +updateStrategy: + ## StrategyType + ## Can be set to RollingUpdate or OnDelete + ## + type: RollingUpdate +## @param priorityClassName kube-arangodb Operator pods' priorityClassName +## +priorityClassName: "" +## @param topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template +## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods +## +topologySpreadConstraints: [] +## @param schedulerName Name of the k8s scheduler (other than default) for kube-arangodb Operator pods +## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ +## +schedulerName: "" +## @param terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully +## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods +## +terminationGracePeriodSeconds: "" +## @param lifecycleHooks for the kube-arangodb Operator container(s) to automate configuration before or after startup +## +lifecycleHooks: {} +## @param extraEnvVars Array with extra environment variables to add to kube-arangodb Operator nodes +## e.g: +## extraEnvVars: +## - name: FOO +## value: "bar" +## +extraEnvVars: [] +## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars for kube-arangodb Operator nodes +## +extraEnvVarsCM: "" +## @param extraEnvVarsSecret Name of existing Secret containing extra env vars for kube-arangodb Operator nodes +## +extraEnvVarsSecret: "" +## @param extraVolumes Optionally specify extra list of additional volumes for the kube-arangodb Operator pod(s) +## +extraVolumes: [] +## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for the kube-arangodb Operator container(s) +## +extraVolumeMounts: [] +## @param sidecars Add additional sidecar containers to the kube-arangodb Operator pod(s) +## e.g: +## sidecars: +## - name: your-image-name +## image: your-image +## imagePullPolicy: Always +## ports: +## - name: portname +## containerPort: 1234 +## +sidecars: [] +## @param initContainers Add additional init containers to the kube-arangodb Operator pod(s) +## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ +## e.g: +## initContainers: +## - name: your-image-name +## image: your-image +## imagePullPolicy: Always +## command: ['sh', '-c', 'echo "hello world"'] +## +initContainers: [] + +## Autoscaling configuration +## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ +## +autoscaling: + vpa: + ## @param autoscaling.vpa.enabled Enable VPA + ## + enabled: false + ## @param autoscaling.vpa.annotations Annotations for VPA resource + ## + annotations: {} + ## @param autoscaling.vpa.controlledResources VPA List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory + ## + controlledResources: [] + ## @param autoscaling.vpa.maxAllowed VPA Max allowed resources for the pod + ## cpu: 200m + ## memory: 100Mi + maxAllowed: {} + ## @param autoscaling.vpa.minAllowed VPA Min allowed resources for the pod + ## cpu: 200m + ## memory: 100Mi + minAllowed: {} + updatePolicy: + ## @param autoscaling.vpa.updatePolicy.updateMode Autoscaling update policy Specifies whether recommended updates are applied when a Pod is started and whether recommended updates are applied during the life of a Pod + ## Possible values are "Off", "Initial", "Recreate", and "Auto". + ## + updateMode: Auto + hpa: + ## @param autoscaling.hpa.enabled Enable autoscaling for operator + ## + enabled: false + ## @param autoscaling.hpa.minReplicas Minimum number of operator replicas + ## + minReplicas: "" + ## @param autoscaling.hpa.maxReplicas Maximum number of operator replicas + ## + maxReplicas: "" + ## @param autoscaling.hpa.targetCPU Target CPU utilization percentage + ## + targetCPU: "" + ## @param autoscaling.hpa.targetMemory Target Memory utilization percentage + ## + targetMemory: "" +## @section Traffic Exposure Parameters +## +service: + ## @param service.type kube-arangodb Operator service type + ## + type: LoadBalancer + ## @param service.ports.server kube-arangodb Operator service server port + ## @param service.ports.apiHttp kube-arangodb Operator service API HTTP port + ## @param service.ports.apiGrpc kube-arangodb Operator service API GRPC port + ## + ports: + server: 443 + apiHttp: 8628 + apiGrpc: 8728 + ## Node ports to expose + ## @param service.nodePorts.server Node port for the server + ## @param service.nodePorts.apiHttp Node port for the API HTTP + ## @param service.nodePorts.apiGrpc Node port for the API GRPC + ## NOTE: choose port between <30000-32767> + ## + nodePorts: + server: "" + apiHttp: "" + apiGrpc: "" + ## @param service.clusterIP kube-arangodb Operator service Cluster IP + ## e.g.: + ## clusterIP: None + ## + clusterIP: "" + ## @param service.loadBalancerIP kube-arangodb Operator service Load Balancer IP + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer + ## + loadBalancerIP: "" + ## @param service.loadBalancerSourceRanges kube-arangodb Operator service Load Balancer sources + ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service + ## e.g: + ## loadBalancerSourceRanges: + ## - 10.10.10.0/24 + ## + loadBalancerSourceRanges: [] + ## @param service.externalTrafficPolicy kube-arangodb Operator service external traffic policy + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-web-source-ip + ## + externalTrafficPolicy: Cluster + ## @param service.labels [object] Labels for the service + ## + labels: {} + ## @param service.annotations Additional custom annotations for kube-arangodb Operator service + ## + annotations: {} + ## @param service.extraPorts Extra ports to expose in kube-arangodb Operator service (normally used with the `sidecars` value) + ## + extraPorts: [] + ## @param service.sessionAffinity Control where web requests go, to the same pod or round-robin + ## Values: WebIP or None + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/ + ## + sessionAffinity: None + ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity + ## sessionAffinityConfig: + ## webIP: + ## timeoutSeconds: 300 + ## + sessionAffinityConfig: {} + +## Ingress parameters +## ref: http://kubernetes.io/docs/concepts/services-networking/ingress/ +## +ingress: + ## @param ingress.enabled Enable ingress record generation for neo4j + ## + enabled: false + ## @param ingress.pathType Ingress path type + ## + pathType: ImplementationSpecific + ## @param ingress.apiVersion Force Ingress API version (automatically detected if not set) + ## + apiVersion: "" + ## @param ingress.hostname Default host for the ingress record + ## + hostname: kube-arangodb.local + ## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) + ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster . + ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/ + ## + ingressClassName: "" + ## @param ingress.path Default path for the ingress record + ## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers + ## + path: / + ## @param ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. + ## Use this parameter to set the required annotations for cert-manager, see + ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations + ## e.g: + ## annotations: + ## kubernetes.io/ingress.class: nginx + ## cert-manager.io/cluster-issuer: cluster-issuer-name + ## + annotations: {} + ## @param ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter + ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}` + ## You can: + ## - Use the `ingress.secrets` parameter to create this TLS secret + ## - Rely on cert-manager to create it by setting the corresponding annotations + ## - Rely on Helm to create self-signed certificates by setting `ingress.selfSigned=true` + ## + tls: false + ## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm + ## + selfSigned: false + ## @param ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record + ## e.g: + ## extraHosts: + ## - name: kube-arangodb.local + ## path: / + ## + extraHosts: [] + ## @param ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host + ## e.g: + ## extraPaths: + ## - path: /* + ## backend: + ## serviceName: ssl-redirect + ## servicePort: use-annotation + ## + extraPaths: [] + ## @param ingress.extraTls TLS configuration for additional hostname(s) to be covered with this ingress record + ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls + ## e.g: + ## extraTls: + ## - hosts: + ## - neo4j.local + ## secretName: kube-arangodb.local-tls + ## + extraTls: [] + ## @param ingress.secrets Custom TLS certificates as secrets + ## NOTE: 'key' and 'certificate' are expected in PEM format + ## NOTE: 'name' should line up with a 'secretName' set further up + ## If it is not set and you're using cert-manager, this is unneeded, as it will create a secret for you with valid certificates + ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days + ## It is also possible to create and manage the certificates outside of this helm chart + ## Please see README.md for more information + ## e.g: + ## secrets: + ## - name: kube-arangodb.local-tls + ## key: |- + ## -----BEGIN RSA PRIVATE KEY----- + ## ... + ## -----END RSA PRIVATE KEY----- + ## certificate: |- + ## -----BEGIN CERTIFICATE----- + ## ... + ## -----END CERTIFICATE----- + ## + secrets: [] + ## @param ingress.extraRules Additional rules to be covered with this ingress record + ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules + ## e.g: + ## extraRules: + ## - host: example.local + ## http: + ## path: / + ## backend: + ## service: + ## name: example-svc + ## port: + ## name: http + ## + extraRules: [] +## Network Policies +## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/ +## +networkPolicy: + ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created + ## + enabled: true + ## @param networkPolicy.kubeAPIServerPorts [array] List of possible endpoints to kube-apiserver (limit to your cluster settings to increase security) + ## + kubeAPIServerPorts: [443, 6443, 8443] + ## @param networkPolicy.allowExternal Don't require server label for connections + ## The Policy model to apply. When set to false, only pods with the correct + ## server label will have network access to the ports server is listening + ## on. When true, server will accept connections from any source + ## (with the correct destination port). + ## + allowExternal: true + ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations. + ## + allowExternalEgress: true + ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy + ## e.g: + ## extraIngress: + ## - ports: + ## - port: 1234 + ## from: + ## - podSelector: + ## - matchLabels: + ## - role: frontend + ## - podSelector: + ## - matchExpressions: + ## - key: role + ## operator: In + ## values: + ## - frontend + extraIngress: [] + ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy + ## e.g: + ## extraEgress: + ## - ports: + ## - port: 1234 + ## to: + ## - podSelector: + ## - matchLabels: + ## - role: frontend + ## - podSelector: + ## - matchExpressions: + ## - key: role + ## operator: In + ## values: + ## - frontend + ## + extraEgress: [] + ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces + ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces + ## + ingressNSMatchLabels: {} + ingressNSPodMatchLabels: {} + +## Webhooks configuration +## @section Webhook parameters +## +webhooks: + ## @param webhooks.enabled Add the webhook sidecar to the operator deployment + ## + enabled: true + ## @param webhooks.validating.create Create ValidatingWebhookConfiguration + ## + validating: + create: true + ## @param webhooks.mutating.create Create MutatingWebhookConfiguration + ## + mutating: + create: true + ## @param webhooks.command Override default webhook container command (useful when using custom images) + ## + command: [] + ## @param webhooks.args Override default webhook container args (useful when using custom images) + ## + args: [] + ## @param webhooks.extraArgs Add extra arguments to the default command + ## + extraArgs: [] + ## @param webhooks.lifecycleHooks for the webhook container(s) to automate configuration before or after startup + ## + lifecycleHooks: {} + ## @param webhooks.extraEnvVars Array with extra environment variables to add to webhook nodes + ## e.g: + ## extraEnvVars: + ## - name: FOO + ## value: "bar" + ## + extraEnvVars: [] + ## @param webhooks.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for webhook nodes + ## + extraEnvVarsCM: "" + ## @param webhooks.extraEnvVarsSecret Name of existing Secret containing extra env vars for webhook nodes + ## + extraEnvVarsSecret: "" + ## @param webhooks.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the webhook container(s) + ## + extraVolumeMounts: [] + ## @param webhooks.containerPorts.webhook webhook container port + ## + containerPorts: + webhook: 8828 + ## Configure Container Security Context + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container + ## @param webhooks.containerSecurityContext.enabled Enabled containers' Security Context + ## @param webhooks.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container + ## @param webhooks.containerSecurityContext.runAsUser Set containers' Security Context runAsUser + ## @param webhooks.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup + ## @param webhooks.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot + ## @param webhooks.containerSecurityContext.privileged Set container's Security Context privileged + ## @param webhooks.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem + ## @param webhooks.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation + ## @param webhooks.containerSecurityContext.capabilities.drop List of capabilities to be dropped + ## @param webhooks.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile + ## + containerSecurityContext: + enabled: true + seLinuxOptions: {} + runAsUser: 1001 + runAsGroup: 1001 + runAsNonRoot: true + privileged: false + readOnlyRootFilesystem: true + allowPrivilegeEscalation: false + capabilities: + drop: ["ALL"] + seccompProfile: + type: "RuntimeDefault" + ## Configure extra options for webhook containers' liveness and readiness probes + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes + ## @param webhooks.livenessProbe.enabled Enable livenessProbe on webhook containers + ## @param webhooks.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe + ## @param webhooks.livenessProbe.periodSeconds Period seconds for livenessProbe + ## @param webhooks.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe + ## @param webhooks.livenessProbe.failureThreshold Failure threshold for livenessProbe + ## @param webhooks.livenessProbe.successThreshold Success threshold for livenessProbe + ## + livenessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 5 + successThreshold: 1 + ## @param webhooks.readinessProbe.enabled Enable readinessProbe on webhook containers + ## @param webhooks.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe + ## @param webhooks.readinessProbe.periodSeconds Period seconds for readinessProbe + ## @param webhooks.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe + ## @param webhooks.readinessProbe.failureThreshold Failure threshold for readinessProbe + ## @param webhooks.readinessProbe.successThreshold Success threshold for readinessProbe + ## + readinessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 5 + successThreshold: 1 + ## @param webhooks.startupProbe.enabled Enable startupProbe on webhook containers + ## @param webhooks.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe + ## @param webhooks.startupProbe.periodSeconds Period seconds for startupProbe + ## @param webhooks.startupProbe.timeoutSeconds Timeout seconds for startupProbe + ## @param webhooks.startupProbe.failureThreshold Failure threshold for startupProbe + ## @param webhooks.startupProbe.successThreshold Success threshold for startupProbe + ## + startupProbe: + enabled: false + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 5 + successThreshold: 1 + ## @param webhooks.customLivenessProbe Custom livenessProbe that overrides the default one + ## + customLivenessProbe: {} + ## @param webhooks.customReadinessProbe Custom readinessProbe that overrides the default one + ## + customReadinessProbe: {} + ## @param webhooks.customStartupProbe Custom startupProbe that overrides the default one + ## + customStartupProbe: {} + ## webhook resource requests and limits + ## ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + ## @param webhooks.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if `webhooks.resources` is set (`webhooks.resources` is recommended for production). + ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15 + ## + resourcesPreset: "nano" + ## @param webhooks.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads) + ## Example: + ## resources: + ## requests: + ## cpu: 2 + ## memory: 512Mi + ## limits: + ## cpu: 3 + ## memory: 1024Mi + ## + resources: {} + ## @section Webhook Traffic Exposure Parameters + ## + service: + ## @param webhooks.service.ports.webhook kube-arangodb Operator service server port + ## + ports: + webhook: 443 + ## @param webhooks.service.clusterIP kube-arangodb Operator service Cluster IP + ## e.g.: + ## clusterIP: None + ## + clusterIP: "" + ## @param webhooks.service.labels [object] Labels for the service + ## + labels: {} + ## @param webhooks.service.annotations Additional custom annotations for kube-arangodb Operator service + ## + annotations: {} + +## @section RBAC Parameters +## + +## RBAC configuration +## +rbac: + ## @param rbac.create Specifies whether RBAC resources should be created + ## + create: true + ## Additional RBAC extensions + ## + extensions: + ## @param rbac.extensions.acs Enable additional RBAC settings for Arango Cluster Synchronizations + ## + acs: true + ## @param rbac.extensions.at Enable additional RBAC settings for Arango Tasks + ## + at: true + ## @param rbac.extensions.debug Enable additional RBAC settings for Debugging + ## + debug: false + ## @param rbac.extensions.monitoring Enable additional RBAC settings for ServiceMonitors + ## + monitoring: true +## ServiceAccounts configuration +## +serviceAccount: + ## Operator service account + ## + operator: + ## @param serviceAccount.operator.create Specifies whether a ServiceAccount should be created + ## + create: true + ## @param serviceAccount.operator.name The name of the ServiceAccount to use. + ## If not set and create is true, a name is generated using the common.names.fullname template + ## + name: "" + ## @param serviceAccount.operator.annotations Additional Service Account annotations (evaluated as a template) + ## + annotations: {} + ## @param serviceAccount.operator.automountServiceAccountToken Automount service account token for the server service account + ## + automountServiceAccountToken: false + ## Job service account + ## + job: + ## @param serviceAccount.job.create Specifies whether a ServiceAccount should be created + ## + create: true + ## @param serviceAccount.job.name The name of the ServiceAccount to use. + ## If not set and create is true, a name is generated using the common.names.fullname template + ## + name: "" + ## @param serviceAccount.job.annotations Additional Service Account annotations (evaluated as a template) + ## + annotations: {} + ## @param serviceAccount.job.automountServiceAccountToken Automount service account token for the server service account + ## + automountServiceAccountToken: false +## @section Metrics Parameters +## + +## Prometheus metrics +## +metrics: + ## @param metrics.enabled Enable the export of Prometheus metrics + ## + enabled: false + ## @param metrics.annotations [object] Annotations for the service + ## + annotations: {} + ## Prometheus Operator ServiceMonitor configuration + ## + serviceMonitor: + ## @param metrics.serviceMonitor.enabled if `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`) + ## + enabled: false + ## @param metrics.serviceMonitor.namespace Namespace in which Prometheus is running + ## + namespace: "" + ## @param metrics.serviceMonitor.annotations Additional custom annotations for the ServiceMonitor + ## + annotations: {} + ## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor + ## + labels: {} + ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in Prometheus + ## + jobLabel: "" + ## @param metrics.serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels + ## + honorLabels: false + ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped. + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint + ## e.g: + ## interval: 10s + ## + interval: "" + ## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint + ## e.g: + ## scrapeTimeout: 10s + ## + scrapeTimeout: "" + ## @param metrics.serviceMonitor.metricRelabelings Specify additional relabeling of metrics + ## + metricRelabelings: [] + ## @param metrics.serviceMonitor.relabelings Specify general relabeling + ## + relabelings: [] + ## @param metrics.serviceMonitor.selector Prometheus instance selector labels + ## ref: https://github.com/bitnami/charts/tree/main/bitnami/prometheus-operator#prometheus-configuration + ## selector: + ## prometheus: my-prometheus + ## + selector: {}