You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by ad...@apache.org on 2026/06/14 19:02:02 UTC
(druid-operator) branch gh-pages updated: Clean gh-pages Helm repository (#27)
This is an automated email from the ASF dual-hosted git repository.
AdheipSingh pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/druid-operator.git
The following commit(s) were added to refs/heads/gh-pages by this push:
new bcc100a Clean gh-pages Helm repository (#27)
bcc100a is described below
commit bcc100a7391c6bbb7597de55a87e4c1da119b136
Author: Razin Bouzar <bo...@gmail.com>
AuthorDate: Sun Jun 14 15:01:57 2026 -0400
Clean gh-pages Helm repository (#27)
---
.asf.yaml | 36 -
.dockerignore | 21 -
.github/pull_request_template.md | 46 -
.github/stale.yml | 63 -
.github/workflows/docker-image.yml | 53 -
.github/workflows/helm-chart.yml | 106 -
.gitignore | 80 -
AGENTS.md | 82 -
Dockerfile | 53 -
LICENSE | 201 -
Makefile | 347 -
NOTICE | 7 -
PROJECT | 30 -
README.md | 20 -
apis/druid/v1alpha1/doc.go | 21 -
apis/druid/v1alpha1/druid_types.go | 611 -
apis/druid/v1alpha1/druidingestion_types.go | 104 -
apis/druid/v1alpha1/groupversion_info.go | 42 -
apis/druid/v1alpha1/zz_generated.deepcopy.go | 790 --
chart/.helmignore | 40 -
chart/Chart.yaml | 43 -
chart/crds/druid.apache.org_druidingestions.yaml | 168 -
chart/crds/druid.apache.org_druids.yaml | 11907 -------------------
chart/templates/NOTES.txt | 20 -
chart/templates/_helpers.tpl | 70 -
chart/templates/deployment.yaml | 130 -
chart/templates/rbac_leader_election.yaml | 80 -
chart/templates/rbac_manager.yaml | 430 -
chart/templates/rbac_metrics.yaml | 35 -
chart/templates/rbac_proxy.yaml | 61 -
chart/templates/service.yaml | 38 -
chart/templates/service_account.yaml | 33 -
chart/values.yaml | 125 -
.../bases/druid.apache.org_druidingestions.yaml | 168 -
config/crd/bases/druid.apache.org_druids.yaml | 11907 -------------------
config/crd/kustomization.yaml | 42 -
config/crd/kustomizeconfig.yaml | 37 -
.../cainjection_in_druid_druidingestions.yaml | 25 -
config/crd/patches/cainjection_in_druids.yaml | 25 -
.../patches/webhook_in_druid_druidingestions.yaml | 34 -
config/crd/patches/webhook_in_druids.yaml | 34 -
config/default/kustomization.yaml | 90 -
config/default/manager_auth_proxy_patch.yaml | 73 -
config/default/manager_config_patch.yaml | 28 -
config/druid.apache.org_druids.yaml | 11578 ------------------
config/manager/kustomization.yaml | 26 -
config/manager/manager.yaml | 120 -
config/prometheus/kustomization.yaml | 20 -
config/prometheus/monitor.yaml | 44 -
config/rbac/auth_proxy_client_clusterrole.yaml | 34 -
config/rbac/auth_proxy_role.yaml | 42 -
config/rbac/auth_proxy_role_binding.yaml | 37 -
config/rbac/auth_proxy_service.yaml | 39 -
config/rbac/druid_druidingestion_editor_role.yaml | 49 -
config/rbac/druid_druidingestion_viewer_role.yaml | 45 -
config/rbac/druid_editor_role.yaml | 49 -
config/rbac/druid_viewer_role.yaml | 45 -
config/rbac/kustomization.yaml | 36 -
config/rbac/leader_election_role.yaml | 62 -
config/rbac/leader_election_role_binding.yaml | 37 -
config/rbac/role.yaml | 126 -
config/rbac/role_binding.yaml | 37 -
config/rbac/service_account.yaml | 30 -
config/samples/druid_v1alpha1_druid.yaml | 30 -
config/samples/druid_v1alpha1_druidingestion.yaml | 93 -
controllers/druid/additional_containers.go | 88 -
controllers/druid/additional_containers_test.go | 83 -
controllers/druid/configuration.go | 142 -
controllers/druid/deep_storage_dep_mgmt.go | 53 -
controllers/druid/druid_controller.go | 140 -
controllers/druid/druid_controller_test.go | 350 -
controllers/druid/dynamic_config.go | 176 -
controllers/druid/ext/deep_storage_default_ext.go | 27 -
.../druid/ext/metadata_store_default_ext.go | 27 -
controllers/druid/ext/zookeeper_default_ext.go | 27 -
controllers/druid/finalizers.go | 148 -
controllers/druid/finalizers_test.go | 159 -
controllers/druid/handler.go | 1428 ---
controllers/druid/handler_test.go | 371 -
controllers/druid/interface.go | 307 -
controllers/druid/metadata_store_dep_mgmt.go | 53 -
controllers/druid/ordering.go | 53 -
controllers/druid/ordering_test.go | 71 -
controllers/druid/predicates.go | 64 -
controllers/druid/status.go | 103 -
controllers/druid/suite_test.go | 135 -
.../druid/testdata/additional-containers.yaml | 93 -
controllers/druid/testdata/broker-config-map.yaml | 69 -
controllers/druid/testdata/broker-deployment.yaml | 114 -
.../druid/testdata/broker-headless-service.yaml | 45 -
.../testdata/broker-load-balancer-service.yaml | 42 -
.../testdata/broker-pod-disruption-budget.yaml | 38 -
.../druid/testdata/broker-statefulset-noprobe.yaml | 106 -
.../druid/testdata/broker-statefulset-sidecar.yaml | 146 -
controllers/druid/testdata/broker-statefulset.yaml | 123 -
controllers/druid/testdata/common-config-map.yaml | 85 -
.../druid/testdata/druid-smoke-test-cluster.yaml | 271 -
.../druid/testdata/druid-test-cr-noprobe.yaml | 365 -
.../druid/testdata/druid-test-cr-sidecar.yaml | 396 -
controllers/druid/testdata/druid-test-cr.yaml | 381 -
controllers/druid/testdata/finalizers.yaml | 88 -
controllers/druid/testdata/ordering.yaml | 137 -
controllers/druid/testdata/volume-expansion.yaml | 102 -
controllers/druid/types.go | 31 -
controllers/druid/util.go | 147 -
controllers/druid/util_test.go | 86 -
controllers/druid/volume_expansion.go | 202 -
controllers/druid/volume_expansion_test.go | 83 -
controllers/druid/zookeeper_dep_mgmt.go | 53 -
controllers/druid/zookeeper_dep_mgmt_test.go | 47 -
controllers/ingestion/ingestion_controller.go | 99 -
controllers/ingestion/reconciler.go | 704 --
controllers/ingestion/reconciler_test.go | 632 -
docs/README.md | 59 -
docs/api_specifications/druid.md | 2941 -----
docs/dev_doc.md | 79 -
docs/druid_cr.md | 135 -
docs/examples.md | 364 -
docs/features.md | 458 -
docs/getting_started.md | 100 -
docs/images/druid-operator.png | Bin 6337735 -> 0 bytes
docs/kubebuilder_v3_migration.md | 165 -
e2e/Dockerfile-testpod | 26 -
e2e/configs/druid-cr.yaml | 322 -
e2e/configs/druid-ingestion-cr.yaml | 91 -
e2e/configs/druid-mmless.yaml | 380 -
e2e/configs/extra-common-config.yaml | 302 -
e2e/configs/kafka-ingestion-native.yaml | 86 -
e2e/configs/kafka-ingestion.yaml | 107 -
e2e/configs/minio-operator-override.yaml | 25 -
e2e/configs/minio-tenant-override.yaml | 27 -
e2e/druid-ingestion-test.sh | 58 -
e2e/e2e.sh | 122 -
e2e/kind.sh | 63 -
e2e/monitor-task.sh | 44 -
e2e/test-extra-common-config.sh | 53 -
e2e/wikipedia-test.sh | 62 -
examples/aws/eks.yaml | 450 -
examples/ingestion.yaml | 93 -
examples/kafka-ingestion-native.yaml | 86 -
examples/kafka-ingestion.yaml | 107 -
examples/tiny-cluster-hpa.yaml | 237 -
examples/tiny-cluster-mmless.yaml | 388 -
examples/tiny-cluster-zk.yaml | 89 -
examples/tiny-cluster.yaml | 394 -
go.mod | 92 -
go.sum | 288 -
hack/api-docs/config.json | 29 -
hack/api-docs/template/members.tpl | 65 -
hack/api-docs/template/pkg.tpl | 65 -
hack/api-docs/template/type.tpl | 79 -
hack/boilerplate.go.txt | 18 -
index.yaml | 3 +
main.go | 148 -
pkg/druidapi/druidapi.go | 179 -
pkg/druidapi/druidapi_test.go | 184 -
pkg/http/http.go | 91 -
pkg/util/util.go | 97 -
pkg/util/util_test.go | 183 -
tutorials/druid-on-kind/README.md | 78 -
tutorials/druid-on-kind/druid-mmless.yaml | 380 -
161 files changed, 3 insertions(+), 59514 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
deleted file mode 100644
index f9c9507..0000000
--- a/.asf.yaml
+++ /dev/null
@@ -1,36 +0,0 @@
-# note: documentation can be found here https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features
-
-github:
- description: 'Apache Druid Operator: a Kubernetes operator for Apache Druid.'
- homepage: https://druid.apache.org/
- ghp_branch: gh-pages
- ghp_path: /
-
- # Attempt to make the auto-generated github emails more easily readable in email clients.
- # Configuration adapted from https://github.com/apache/plc4x/blob/develop/.asf.yaml.
- custom_subjects:
- new_pr: "[PR] {title} ({repository})"
- close_pr: "Re: [PR] {title} ({repository})"
- comment_pr: "Re: [PR] {title} ({repository})"
- diffcomment: "Re: [PR] {title} ({repository})"
- merge_pr: "Re: [PR] {title} ({repository})"
- new_issue: "[I] {title} ({repository})"
- comment_issue: "Re: [I] {title} ({repository})"
- close_issue: "Re: [I] {title} ({repository})"
- catchall: "[GH] {title} ({repository})"
- new_discussion: "[D] {title} ({repository})"
- edit_discussion: "Re: [D] {title} ({repository})"
- close_discussion: "Re: [D] {title} ({repository})"
- close_discussion_with_comment: "Re: [D] {title} ({repository})"
- reopen_discussion: "Re: [D] {title} ({repository})"
- new_comment_discussion: "Re: [D] {title} ({repository})"
- edit_comment_discussion: "Re: [D] {title} ({repository})"
- delete_comment_discussion: "Re: [D] {title} ({repository})"
-
-notifications:
- commits: commits@druid.apache.org
- issues: commits@druid.apache.org
- discussions: commits@druid.apache.org
- pullrequests_status: commits@druid.apache.org
- pullrequests_comment: commits@druid.apache.org
- pullrequests_bot_dependabot: commits@druid.apache.org
diff --git a/.dockerignore b/.dockerignore
deleted file mode 100644
index 97a57a6..0000000
--- a/.dockerignore
+++ /dev/null
@@ -1,21 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# 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.
-
-# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
-# Ignore build and test binaries.
-bin/
-testbin/
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
deleted file mode 100644
index 718b841..0000000
--- a/.github/pull_request_template.md
+++ /dev/null
@@ -1,46 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-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.
--->
-<!-- Thanks for trying to help us make Druid Operator be the best it can be! Please fill out as much of the following information as is possible (where relevant, and remove it when irrelevant) to help make the intention and scope of this PR clear in order to ease review. -->
-
-Fixes #XXXX.
-
-<!-- Replace XXXX with the id of the issue fixed in this PR. Remove this section if there is no corresponding issue. Don't reference the issue in the title of this pull-request. -->
-
-### Description
-
-<!-- Describe the goal of this PR and the problem you encoutered while managing Druid clusters. Something like, "I have a Druid cluster managed with this operator and wanted to change XX on the cluster to enable YY usecase that I needed due to ZZ requirement.". If there is a corresponding issue (referenced above), it's not necessary to repeat the description here, however, you may choose to keep one summary sentence. -->
-
-<!-- Describe the possible solutions and chosen one with the rationale. -->
-
-<!-- Describe key changes made in the patch. -->
-
-<hr>
-
-This PR has:
-- [ ] been tested on a real K8S cluster to ensure creation of a brand new Druid cluster works.
-- [ ] been tested for backward compatibility on a real K*S cluster by applying the changes introduced here on an existing Druid cluster. If there are any backward incompatible changes then they have been noted in the PR description.
-- [ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
-- [ ] added documentation for new or modified features or behaviors.
-
-<hr>
-
-##### Key changed/added files in this PR
- * `MyFoo`
- * `OurBar`
- * `TheirBaz`
diff --git a/.github/stale.yml b/.github/stale.yml
deleted file mode 100644
index 58f9cf5..0000000
--- a/.github/stale.yml
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# 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.
-#
-
-# Configuration for probot-stale - https://github.com/probot/stale
-
-exemptMilestones: true
-exemptProjects: true
-exemptAssignees: true
-
-# Label applied when closing
-staleLabel: stale
-
-# Configuration settings that are specific to just 'issues' or 'pulls':
-pulls:
- daysUntilStale: 60
- daysUntilClose: 28
- markComment: >
- This pull request has been marked as stale due to 60 days of inactivity.
- It will be closed in 4 weeks if no further activity occurs. If you think
- that's incorrect or this pull request should instead be reviewed, please simply
- write any comment. Even if closed, you can still revive the PR at any time or
- discuss it.
- Thank you for your contributions.
- unmarkComment: >
- This pull request/issue is no longer marked as stale.
- closeComment: >
- This pull request/issue has been closed due to lack of activity. If you think that
- is incorrect, or the pull request requires review, you can revive the PR at any time.
-
- # Unlike for issues, there are no exempt labels for PRs, apart from "Evergreen". This is
- # to foster PR authors to complete their work.
-
-issues:
- daysUntilStale: 60
- daysUntilClose: 28
- markComment: >
- This issue has been marked as stale due to 60 days of inactivity.
- It will be closed in 4 weeks if no further activity occurs. If this issue is still
- relevant, please simply write any comment. Even if closed, you can still revive the
- issue at any time or discuss it.
- Thank you for your contributions.
- unmarkComment: >
- This issue is no longer marked as stale.
- closeComment: >
- This issue has been closed due to lack of activity. If you think that
- is incorrect, or the issue requires additional review, you can revive the issue at
- any time.
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
deleted file mode 100644
index 4f51773..0000000
--- a/.github/workflows/docker-image.yml
+++ /dev/null
@@ -1,53 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# 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.
-#
-
-name: Druid Operator
-
-on:
- push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
-
-jobs:
-
- rat:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - name: Set up Java
- uses: actions/setup-java@v4
- with:
- distribution: temurin
- java-version: '11'
- - name: Run Apache RAT license audit
- run: make rat
-
- tests:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - name: Run Kubebuilder smoke and unit tests
- run: make test
- - name: Run helm lint
- run: make helm-lint
- - name: Run helm template
- run: make helm-template
- - name: Run e2e tests
- run: make e2e
diff --git a/.github/workflows/helm-chart.yml b/.github/workflows/helm-chart.yml
deleted file mode 100644
index 99b8305..0000000
--- a/.github/workflows/helm-chart.yml
+++ /dev/null
@@ -1,106 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# 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.
-#
-
-name: Helm Chart
-
-on:
- push:
- branches: [ master ]
- paths:
- - chart/**
- - .github/workflows/helm-chart.yml
- workflow_dispatch:
-
-permissions:
- contents: write
-
-concurrency:
- group: helm-chart-${{ github.ref }}
- cancel-in-progress: false
-
-env:
- CHART_REPO_URL: https://apache.github.io/druid-operator
- CHART_RELEASE_DIR: helm-releases
-
-jobs:
- publish:
- if: github.repository == 'apache/druid-operator'
- runs-on: ubuntu-latest
- steps:
- - name: Checkout source
- uses: actions/checkout@v4
- with:
- path: source
-
- - name: Checkout gh-pages
- uses: actions/checkout@v4
- with:
- ref: gh-pages
- path: gh-pages
-
- - name: Set up Helm
- uses: azure/setup-helm@v4
-
- - name: Package chart
- run: |
- mkdir -p source/.chart-packages
- helm lint source/chart
- helm package source/chart --destination source/.chart-packages
-
- - name: Update Helm repository index
- run: |
- package_path="$(find source/.chart-packages -name '*.tgz' -print -quit)"
- package_name="$(basename "${package_path}")"
- release_dir="gh-pages/${CHART_RELEASE_DIR}"
-
- mkdir -p "${release_dir}"
-
- if [[ -f "${release_dir}/${package_name}" ]] && \
- [[ -f gh-pages/index.yaml ]] && \
- grep -q "${CHART_RELEASE_DIR}/${package_name}" gh-pages/index.yaml; then
- echo "Chart package ${package_name} already exists on gh-pages."
- exit 0
- fi
-
- if [[ ! -f "${release_dir}/${package_name}" ]]; then
- cp "${package_path}" "${release_dir}/"
- fi
-
- if [[ -f gh-pages/index.yaml ]]; then
- helm repo index gh-pages --url "${CHART_REPO_URL}" --merge gh-pages/index.yaml
- else
- helm repo index gh-pages --url "${CHART_REPO_URL}"
- fi
-
- - name: Publish chart
- run: |
- chart_version="$(helm show chart source/chart | awk '/^version:/ { print $2 }')"
-
- cd gh-pages
- git config user.name "github-actions[bot]"
- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- git add .
-
- if git diff --cached --quiet; then
- echo "No chart changes to publish."
- exit 0
- fi
-
- git commit -m "Publish druid-operator chart ${chart_version}"
- git push origin HEAD:gh-pages
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index fac4336..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,80 +0,0 @@
-# Temporary Build Files
-build/_output
-build/_test
-bin
-# Created by https://www.gitignore.io/api/go,vim,emacs,visualstudiocode
-### Emacs ###
-# -*- mode: gitignore; -*-
-*~
-\#*\#
-/.emacs.desktop
-/.emacs.desktop.lock
-*.elc
-auto-save-list
-tramp
-.\#*
-# Org-mode
-.org-id-locations
-*_archive
-# flymake-mode
-*_flymake.*
-# eshell files
-/eshell/history
-/eshell/lastdir
-# elpa packages
-/elpa/
-# reftex files
-*.rel
-# AUCTeX auto folder
-/auto/
-# cask packages
-.cask/
-dist/
-# Flycheck
-flycheck_*.el
-# server auth directory
-/server/
-# projectiles files
-.projectile
-projectile-bookmarks.eld
-# directory configuration
-.dir-locals.el
-# saveplace
-places
-# url cache
-url/cache/
-# cedet
-ede-projects.el
-# smex
-smex-items
-# company-statistics
-company-statistics-cache.el
-# anaconda-mode
-anaconda-mode/
-### Go ###
-# Binaries for programs and plugins
-*.exe
-*.exe~
-*.dll
-*.so
-*.dylib
-# Test binary, build with 'go test -c'
-*.test
-# Output of the go coverage tool, specifically when used with LiteIDE
-*.out
-### Vim ###
-# swap
-.sw[a-p]
-.*.sw[a-p]
-# session
-Session.vim
-# temporary
-.netrwhist
-# auto-generated tag files
-tags
-### VisualStudioCode ###
-.vscode/*
-.history
-.idea*
-.idea/*
-# End of https://www.gitignore.io/api/go,vim,emacs,visualstudiocode
diff --git a/AGENTS.md b/AGENTS.md
deleted file mode 100644
index 9b38de7..0000000
--- a/AGENTS.md
+++ /dev/null
@@ -1,82 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-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.
--->
-
-# Druid Operator Agent Guide
-
-Operational guidance for AI agents working in the druid-operator repository.
-
-## Project Structure
-
-| Path | Purpose |
-|------|---------|
-| `apis/druid/v1alpha1/` | API types for `Druid` and `DruidIngestion`. |
-| `controllers/druid/` | Reconciler logic for the `Druid` custom resource. |
-| `controllers/ingestion/` | Reconciler logic for the `DruidIngestion` custom resource. |
-| `pkg/` | Shared libraries such as the Druid API client, HTTP helpers, and utilities. |
-| `config/` | Kustomize config for CRDs, RBAC, manager, samples, and deployment manifests. |
-| `chart/` | Helm chart for the operator, including generated CRDs under `chart/crds/`. |
-| `e2e/` | End-to-end test scripts and manifests. |
-| `docs/` | Project docs, including generated API reference docs. |
-| `hack/` | Boilerplate, templates, and tooling support files. |
-
-## Working Rules
-
-- Hand-written source, docs, and config files generally need the Apache 2.0 header.
-- Do not infer header requirements from file extension alone. `make rat` excludes some paths, including shell scripts, `zz_generated.*.go`, `PROJECT`, `.asf.yaml`, and some binary or checksum artifacts.
-- Never hand-edit generated files. Regenerate them with the owning Make target.
-- Follow standard Go conventions. Run `make fmt` and `make vet` when validating code changes.
-
-## Generated Artifacts
-
-- After editing `*_types.go`, run both `make manifests` and `make generate`.
-- `apis/druid/v1alpha1/zz_generated.deepcopy.go` is generated by `make generate`.
-- `config/crd/bases/*.yaml` and `config/rbac/role.yaml` are generated by `make manifests`.
-- `chart/crds/*.yaml` is generated output and must not be edited by hand.
-- `make manifests` prepends Apache headers to the generated YAML files it owns. Do not add those headers manually.
-
-## Key Make Targets
-
-- `make help`: list available targets.
-- `make test`: runs `manifests`, `generate`, `fmt`, `vet`, envtest setup, and `go test ./...`.
-- `make build`: lighter local compile path, but still runs `manifests`, `generate`, `fmt`, and `vet` first.
-- `make docker-build`: heavyweight verification plus image build because it depends on `make test`.
-- `make kind`: bootstrap a local kind cluster.
-- `make e2e`: run end-to-end tests; assumes a working kind cluster.
-- `make api-docs`: regenerate `docs/api_specifications/druid.md` after CRD API changes.
-- `make rat`: run the Apache RAT license audit.
-
-## Before Sending a PR
-
-1. If you changed `*_types.go`, run `make manifests` and `make generate`.
-2. Run `make fmt vet`.
-3. Run `make test`.
-4. Run `make rat`.
-5. If you changed the CRD API, run `make api-docs`.
-6. Check `.github/pull_request_template.md` and ensure the change:
- - was tested on a real Kubernetes cluster when applicable,
- - considered backward compatibility or called out breaking changes,
- - adds comments explaining the "why" where intent is not obvious,
- - updates docs for new or changed behavior.
-
-## Common Pitfalls
-
-- Editing `*_types.go` without regenerating manifests and DeepCopy code.
-- Hand-editing generated YAML under `config/crd/bases/`, `config/rbac/role.yaml`, or `chart/crds/`.
-- Adding license headers mechanically to excluded or generated files.
-- Treating `make docker-build` as a cheap local smoke test.
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index a0ee02b..0000000
--- a/Dockerfile
+++ /dev/null
@@ -1,53 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# 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.
-#
-
-# Build the manager binary
-FROM golang:1.21 as builder
-ARG TARGETOS
-ARG TARGETARCH
-
-WORKDIR /workspace
-# Copy the Go Modules manifests
-COPY go.mod go.mod
-COPY go.sum go.sum
-# cache deps before building and copying source so that we don't need to re-download as much
-# and so that source changes don't invalidate our downloaded layer
-RUN go mod download
-
-# Copy the go source
-COPY main.go main.go
-COPY apis/ apis/
-COPY controllers/ controllers/
-COPY pkg/ pkg/
-
-# Build
-# the GOARCH has not a default value to allow the binary be built according to the host where the command
-# was called. For example, if we call make docker-build in a local env which has the Apple Silicon M1 SO
-# the docker BUILDPLATFORM arg will be linux/arm64 when for Apple x86 it will be linux/amd64. Therefore,
-# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
-RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager main.go
-
-# Use distroless as minimal base image to package the manager binary
-# Refer to https://github.com/GoogleContainerTools/distroless for more details
-FROM gcr.io/distroless/static:nonroot
-WORKDIR /
-COPY --from=builder /workspace/manager .
-USER 65532:65532
-
-ENTRYPOINT ["/manager"]
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 261eeb9..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- 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
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- 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.
diff --git a/Makefile b/Makefile
deleted file mode 100644
index f01bf6d..0000000
--- a/Makefile
+++ /dev/null
@@ -1,347 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# 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.
-#
-
-# IMG TAG
-IMG_TAG ?= "latest"
-TEST_IMG_TAG ?= "test"
-# Image URL to use all building/pushing image targets
-IMG ?= "datainfrahq/druid-operator"
-# Local Image URL to be pushed to kind registery
-IMG_KIND ?= "localhost:5001/druid-operator"
-# NAMESPACE for druid operator e2e
-NAMESPACE_DRUID_OPERATOR ?= "druid-operator-system"
-# NAMESPACE for zk operator e2e
-NAMESPACE_ZK_OPERATOR ?= "zk-operator"
-# NAMESPACE for zk operator e2e
-NAMESPACE_MINIO_OPERATOR ?= "minio-operator"
-# MinIO version to install. Specific version is set to avoid breaking changes
-# using latest version. This version is tested with the operator.
-MINIO_VERSION ?= "6.0.4"
-# NAMESPACE for druid app e2e
-NAMESPACE_DRUID ?= "druid"
-# Set to false to skip the Apache RAT license audit
-ENABLE_RAT ?= true
-
-# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
-ENVTEST_K8S_VERSION = 1.26.0
-
-# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
-ifeq (,$(shell go env GOBIN))
-GOBIN=$(shell go env GOPATH)/bin
-else
-GOBIN=$(shell go env GOBIN)
-endif
-
-# Setting SHELL to bash allows bash commands to be executed by recipes.
-# Options are set to exit when a recipe line exits non-zero or a piped command fails.
-SHELL = /usr/bin/env bash -o pipefail
-.SHELLFLAGS = -ec
-
-.PHONY: all
-all: build
-
-##@ General
-
-# The help target prints out all targets with their descriptions organized
-# beneath their categories. The categories are represented by '##@' and the
-# target descriptions by '##'. The awk commands is responsible for reading the
-# entire set of makefiles included in this invocation, looking for lines of the
-# file as xyz: ## something, and then pretty-format the target and help. Then,
-# if there's a line with ##@ something, that gets pretty-printed as a category.
-# More info on the usage of ANSI control characters for terminal formatting:
-# https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters
-# More info on the awk command:
-# http://linuxcommand.org/lc3_adv_awk.php
-
-.PHONY: help
-help: ## Display this help.
- @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
-
-##@ Development
-
-.PHONY: kind
-kind: ## Bootstrap Kind Locally
- sh e2e/kind.sh
-
-define APACHE_YAML_HEADER
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# 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.
-#
-endef
-export APACHE_YAML_HEADER
-
-.PHONY: manifests
-manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
- $(CONTROLLER_GEN) crd:generateEmbeddedObjectMeta=true rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
- $(CONTROLLER_GEN) crd:generateEmbeddedObjectMeta=true paths="./..." output:crd:artifacts:config=chart/crds/
- @for f in config/crd/bases/druid.apache.org_*.yaml chart/crds/druid.apache.org_*.yaml config/rbac/role.yaml; do \
- tmp=$$(mktemp) && \
- { printf '%s\n' "$$APACHE_YAML_HEADER"; cat $$f; } > $$tmp && \
- mv $$tmp $$f; \
- done
-
-.PHONY: generate
-generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
- $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
-
-.PHONY: fmt
-fmt: ## Run go fmt against code.
- go fmt ./...
-
-.PHONY: vet
-vet: ## Run go vet against code.
- go vet ./...
-
-##@ Test
-.PHONY: test
-test: manifests generate fmt vet envtest ## Run tests.
- KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./... -coverprofile cover.out
-
-.PHONY: e2e
-e2e: ## Runs e2e tests
- e2e/e2e.sh
-
-ifeq ($(ENABLE_RAT),true)
-.PHONY: rat
-rat: rat-jar ## Run Apache RAT license audit (set ENABLE_RAT=false to skip).
- java -jar $(RAT_JAR) \
- --input-exclude-std GIT \
- --input-exclude "**/*.png" \
- --input-exclude "**/*.sum" \
- --input-exclude "**/*.sh" \
- --input-exclude "**/zz_generated.*.go" \
- --input-exclude "**/PROJECT" \
- --input-exclude "**/.asf.yaml" \
- -- .
-else
-.PHONY: rat
-rat: ## Run Apache RAT license audit (set ENABLE_RAT=false to skip).
- @echo "Skipping Apache RAT license audit (ENABLE_RAT=false)"
-endif
-
-.PHONY: docker-build-local-test
-docker-build-local-test: ## Build docker image with the manager for test on kind.
- docker build -t ${IMG_KIND}:${TEST_IMG_TAG} -f e2e/Dockerfile-testpod .
-
-.PHONY: docker-push-local-test
-docker-push-local-test: ## Push docker image with the manager to kind registry.
- docker push ${IMG_KIND}:${TEST_IMG_TAG}
-
-.PHONY: kind-load-local-test
-kind-load-local-test: ## Load test docker image into kind cluster directly (no registry mirror needed).
- kind load docker-image ${IMG_KIND}:${TEST_IMG_TAG}
-
-.PHONY: deploy-testjob
-deploy-testjob: ## Run a wikipedia test pod
- kubectl create job wiki-test --image=${IMG_KIND}:${TEST_IMG_TAG} -- sh /wikipedia-test.sh
- JOB_ID="wiki-test" bash e2e/monitor-task.sh
-
-.PHONY: deploy-testingestionjob
-deploy-testingestionjob: ## wait for the druidIngestion to complete and then verify dataset
- kubectl create job ingestion-test --image=${IMG_KIND}:${TEST_IMG_TAG} -- sh /druid-ingestion-test.sh ${TASK_ID}
- JOB_ID="ingestion-test" bash e2e/monitor-task.sh
-
-.PHONY: helm-install-druid-operator
-helm-install-druid-operator: ## Helm install to deploy the druid operator
- helm upgrade --install \
- --namespace ${NAMESPACE_DRUID_OPERATOR} \
- --create-namespace \
- ${NAMESPACE_DRUID_OPERATOR} chart/ \
- --set image.repository=${IMG_KIND} \
- --set image.tag=${IMG_TAG}
-
-.PHONY: helm-minio-install
-helm-minio-install: ## Helm deploy minio operator and minio
- helm repo add minio https://operator.min.io/
- helm repo update minio
- helm upgrade --install \
- --namespace ${NAMESPACE_MINIO_OPERATOR} \
- --create-namespace \
- ${NAMESPACE_MINIO_OPERATOR} minio/operator \
- --version ${MINIO_VERSION} \
- -f e2e/configs/minio-operator-override.yaml
- helm upgrade --install \
- --namespace ${NAMESPACE_DRUID} \
- --version ${MINIO_VERSION} \
- --create-namespace \
- ${NAMESPACE_DRUID}-minio minio/tenant \
- -f e2e/configs/minio-tenant-override.yaml
-
-##@ Build
-
-.PHONY: build
-build: manifests generate fmt vet ## Build manager binary.
- go build -o bin/manager main.go
-
-.PHONY: run
-run: manifests generate fmt vet ## Run a controller from your host.
- go run ./main.go
-
-# If you wish built the manager image targeting other platforms you can use the --platform flag.
-# (i.e. docker build --platform linux/arm64 ). However, you must enable docker buildKit for it.
-# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
-.PHONY: docker-build
-docker-build: test ## Build docker image with the manager.
- docker build -t ${IMG}:${IMG_TAG} .
-
-.PHONY: docker-push
-docker-push: ## Push docker image with the manager.
- docker push ${IMG}:${IMG_TAG}
-
-.PHONY: docker-build-local
-docker-build-local: ## Build docker image with the manager for kind registry.
- docker build -t ${IMG_KIND}:${IMG_TAG} .
-
-.PHONY: docker-push-local
-docker-push-local: ## Push docker image with the manager to kind registry.
- docker push ${IMG_KIND}:${IMG_TAG}
-
-.PHONY: kind-load-local
-kind-load-local: ## Load docker image into kind cluster directly (no registry mirror needed).
- kind load docker-image ${IMG_KIND}:${IMG_TAG}
-
-# PLATFORMS defines the target platforms for the manager image be build to provide support to multiple
-# architectures. (i.e. make docker-buildx IMG=myregistry/mypoperator:0.0.1). To use this option you need to:
-# - able to use docker buildx . More info: https://docs.docker.com/build/buildx/
-# - have enable BuildKit, More info: https://docs.docker.com/develop/develop-images/build_enhancements/
-# - be able to push the image for your registry (i.e. if you do not inform a valid value via IMG=<myregistry/image:<tag>> then the export will fail)
-# To properly provided solutions that supports more than one platform you should use this option.
-PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
-.PHONY: docker-buildx
-docker-buildx: test ## Build and push docker image for the manager for cross-platform support
- # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
- sed -e '1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
- - docker buildx create --name project-v3-builder
- docker buildx use project-v3-builder
- - docker buildx build --push --platform=$(PLATFORMS) --tag ${IMG}:${IMG_TAG} -f Dockerfile.cross .
- - docker buildx rm project-v3-builder
- rm Dockerfile.cross
-
-##@ Deployment
-
-ifndef ignore-not-found
- ignore-not-found = false
-endif
-
-.PHONY: install
-install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
- $(KUSTOMIZE) build config/crd | kubectl apply --server-side -f -
-
-.PHONY: uninstall
-uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
- $(KUSTOMIZE) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found) -f -
-
-.PHONY: deploy
-deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
- cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}:${IMG_TAG}
- $(KUSTOMIZE) build config/default | kubectl apply --server-side -f -
-
-.PHONY: undeploy
-undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
- $(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f -
-
-##@ Helm
-.PHONY: helm-generate
-helm-generate: ## Generate the Helm chart directory
- $(KUSTOMIZE) build config/crd > chart/crds/druid.apache.org_druids.yaml
-
-.PHONY: helm-lint
-helm-lint: ## Lint Helm chart.
- helm lint ./chart
-
-.PHONY: helm-template
-helm-template: ## Run Helm template.
- helm -n druid-operator-system template --create-namespace ${NAMESPACE_DRUID_OPERATOR} ./chart --debug
-
-##@ Documentation
-
-.PHONY: api-docs
-api-docs: gen-crd-api-reference-docs ## Generate API reference documentation
- $(GEN_CRD_API_REFERENCE_DOCS) -api-dir=./apis/druid/v1alpha1 -config=./hack/api-docs/config.json -template-dir=./hack/api-docs/template -out-file=./docs/api_specifications/druid.md
-
-##@ Build Dependencies
-
-## Location to install dependencies to
-LOCALBIN ?= $(shell pwd)/bin
-$(LOCALBIN):
- mkdir -p $(LOCALBIN)
-
-## Tool Binaries
-KUSTOMIZE ?= $(LOCALBIN)/kustomize
-CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
-GEN_CRD_API_REFERENCE_DOCS = $(LOCALBIN)/gen-crd-api-reference-docs
-ENVTEST ?= $(LOCALBIN)/setup-envtest
-RAT_JAR ?= $(LOCALBIN)/apache-rat.jar
-
-## Tool Versions
-KUSTOMIZE_VERSION ?= v3.8.7
-CONTROLLER_TOOLS_VERSION ?= v0.20.1
-GEN_CRD_API_REF_VERSION ?= v0.3.0
-RAT_VERSION ?= 0.17
-
-KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
-.PHONY: kustomize
-kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary. If wrong version is installed, it will be removed before downloading.
-$(KUSTOMIZE): $(LOCALBIN)
- @if test -x $(LOCALBIN)/kustomize && ! $(LOCALBIN)/kustomize version | grep -q $(KUSTOMIZE_VERSION); then \
- echo "$(LOCALBIN)/kustomize version is not expected $(KUSTOMIZE_VERSION). Removing it before installing."; \
- rm -rf $(LOCALBIN)/kustomize; \
- fi
- test -s $(LOCALBIN)/kustomize || { curl -Ss $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) $(LOCALBIN); }
-
-.PHONY: controller-gen
-controller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessary. If wrong version is installed, it will be overwritten.
-$(CONTROLLER_GEN): $(LOCALBIN)
- test -s $(LOCALBIN)/controller-gen && $(LOCALBIN)/controller-gen --version | grep -q $(CONTROLLER_TOOLS_VERSION) || \
- GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION)
-
-.PHONY: envtest
-envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
-$(ENVTEST): $(LOCALBIN)
- test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
-
-.PHONY: gen-crd-api-reference-docs
-gen-crd-api-reference-docs: $(GEN_CRD_API_REFERENCE_DOCS)
-$(GEN_CRD_API_REFERENCE_DOCS): $(LOCALBIN)
- GOBIN=$(LOCALBIN) go install github.com/ahmetb/gen-crd-api-reference-docs@$(GEN_CRD_API_REF_VERSION)
-
-.PHONY: rat-jar
-rat-jar: $(RAT_JAR) ## Download Apache RAT jar locally if necessary.
-$(RAT_JAR): $(LOCALBIN)
- mkdir -p /tmp/rat-download && \
- curl -sSL "https://archive.apache.org/dist/creadur/apache-rat-$(RAT_VERSION)/apache-rat-$(RAT_VERSION)-bin.tar.gz" \
- -o /tmp/rat-download/rat.tar.gz && \
- tar -xzf /tmp/rat-download/rat.tar.gz -C /tmp/rat-download && \
- mv /tmp/rat-download/apache-rat-$(RAT_VERSION)/apache-rat-$(RAT_VERSION).jar $(RAT_JAR) && \
- rm -rf /tmp/rat-download
diff --git a/NOTICE b/NOTICE
deleted file mode 100644
index e872f59..0000000
--- a/NOTICE
+++ /dev/null
@@ -1,7 +0,0 @@
-Apache Druid Operator
-Copyright 2019 Splunk, Inc.
-Copyright 2023 Cloudnatively Services, Pvt Ltd
-Copyright 2025 The Apache Software Foundation
-
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
diff --git a/PROJECT b/PROJECT
deleted file mode 100644
index e5e1c46..0000000
--- a/PROJECT
+++ /dev/null
@@ -1,30 +0,0 @@
-# Code generated by tool. DO NOT EDIT.
-# This file is used to track the info used to scaffold your project
-# and allow the plugins properly work.
-# More info: https://book.kubebuilder.io/reference/project-config.html
-domain: apache.org
-layout:
-- go.kubebuilder.io/v3
-multigroup: true
-projectName: druid-operator
-repo: github.com/apache/druid-operator
-resources:
-- api:
- crdVersion: v1
- namespaced: true
- controller: true
- domain: apache.org
- group: druid
- kind: Druid
- path: github.com/apache/druid-operator/apis/druid/v1alpha1
- version: v1alpha1
-- api:
- crdVersion: v1
- namespaced: true
- controller: true
- domain: apache.org
- group: druid
- kind: DruidIngestion
- path: github.com/apache/druid-operator/apis/druid/v1alpha1
- version: v1alpha1
-version: "3"
diff --git a/README.md b/README.md
deleted file mode 100644
index 1d66b2a..0000000
--- a/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-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.
--->
-
-# Apache Druid Operator
diff --git a/apis/druid/v1alpha1/doc.go b/apis/druid/v1alpha1/doc.go
deleted file mode 100644
index d1cfd71..0000000
--- a/apis/druid/v1alpha1/doc.go
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-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.
-*/
-// +kubebuilder:object:generate=true
-// +groupName=druid.apache.org
-package v1alpha1
diff --git a/apis/druid/v1alpha1/druid_types.go b/apis/druid/v1alpha1/druid_types.go
deleted file mode 100644
index 34c68a1..0000000
--- a/apis/druid/v1alpha1/druid_types.go
+++ /dev/null
@@ -1,611 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-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.
-*/
-package v1alpha1
-
-import (
- "encoding/json"
-
- druidapi "github.com/apache/druid-operator/pkg/druidapi"
- appsv1 "k8s.io/api/apps/v1"
- autoscalev2 "k8s.io/api/autoscaling/v2"
- v1 "k8s.io/api/core/v1"
- networkingv1 "k8s.io/api/networking/v1"
- policyv1 "k8s.io/api/policy/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- "k8s.io/apimachinery/pkg/runtime"
-)
-
-// druid-operator deploys a druid cluster from given spec below, based on the spec it would create following
-// k8s resources
-// - one ConfigMap containing common.runtime.properties
-// - for each item in the "nodes" field in spec
-// - one StatefulSet that manages one or more Druid pods with same config
-// - one ConfigMap containing runtime.properties, jvm.config, log4j.xml contents to be used by above Pods
-// - zero or more Headless/ClusterIP/LoadBalancer etc Service resources backed by above Pods
-// - optional PodDisruptionBudget resource for the StatefulSet
-//
-
-// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
-// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
-
-// AdditionalContainer defines additional sidecar containers to be deployed with the `Druid` pods.
-// (will be part of Kubernetes native in the future:
-// https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/753-sidecar-containers/README.md#summary).
-type AdditionalContainer struct {
- // RunAsInit indicate whether this should be an init container.
- // +optional
- RunAsInit bool `json:"runAsInit"`
-
- // Image Image of the additional container.
- // +required
- Image string `json:"image"`
-
- // ContainerName name of the additional container.
- // +required
- ContainerName string `json:"containerName"`
-
- // Command command for the additional container.
- // +required
- Command []string `json:"command"`
-
- // ImagePullPolicy If not present, will be taken from top level spec.
- // +optional
- ImagePullPolicy v1.PullPolicy `json:"imagePullPolicy,omitempty"`
-
- // Args Arguments to call the command.
- // +optional
- Args []string `json:"args,omitempty"`
-
- // ContainerSecurityContext If not present, will be taken from top level pod.
- // +optional
- ContainerSecurityContext *v1.SecurityContext `json:"securityContext,omitempty"`
-
- // Resources Kubernetes Native `resources` specification.
- // +optional
- Resources v1.ResourceRequirements `json:"resources,omitempty"`
-
- // VolumeMounts Kubernetes Native `VolumeMount` specification.
- // +optional
- VolumeMounts []v1.VolumeMount `json:"volumeMounts,omitempty"`
-
- // Env Environment variables for the additional container.
- // +optional
- Env []v1.EnvVar `json:"env,omitempty"`
-
- // EnvFrom Extra environment variables from remote source (ConfigMaps, Secrets...).
- // +optional
- EnvFrom []v1.EnvFromSource `json:"envFrom,omitempty"`
-}
-
-// DruidSpec defines the desired state of the Druid cluster.
-type DruidSpec struct {
-
- // Ignored is now deprecated API. In order to avoid reconciliation of objects use the
- // `druid.apache.org/ignored: "true"` annotation.
- // +optional
- // +kubebuilder:default:=false
- Ignored bool `json:"ignored,omitempty"`
-
- // CommonRuntimeProperties Content fo the `common.runtime.properties` configuration file.
- // +required
- CommonRuntimeProperties string `json:"common.runtime.properties"`
-
- // ExtraCommonConfig References to ConfigMaps holding more configuration files to mount to the
- // common configuration path.
- // +optional
- ExtraCommonConfig []*v1.ObjectReference `json:"extraCommonConfig"`
-
- // ForceDeleteStsPodOnError Delete the StatefulSet's pods if the StatefulSet is set to ordered ready.
- // issue: https://github.com/kubernetes/kubernetes/issues/67250
- // doc: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#forced-rollback
- // +optional
- // +kubebuilder:default:=true
- ForceDeleteStsPodOnError bool `json:"forceDeleteStsPodOnError,omitempty"`
-
- // ScalePvcSts When enabled, operator will allow volume expansion of StatefulSet's PVCs.
- // +optional
- // +kubebuilder:default:=false
- ScalePvcSts bool `json:"scalePvcSts,omitempty"`
-
- // CommonConfigMountPath In-container directory to mount the Druid common configuration
- // +optional
- // +kubebuilder:default:="/opt/druid/conf/druid/cluster/_common"
- CommonConfigMountPath string `json:"commonConfigMountPath"`
-
- // DisablePVCDeletionFinalizer Whether PVCs shall be deleted on the deletion of the Druid cluster.
- // +optional
- // +kubebuilder:default:=false
- DisablePVCDeletionFinalizer bool `json:"disablePVCDeletionFinalizer,omitempty"`
-
- // DeleteOrphanPvc Orphaned (unmounted PVCs) shall be cleaned up by the operator.
- // +optional
- // +kubebuilder:default:=true
- DeleteOrphanPvc bool `json:"deleteOrphanPvc"`
-
- // StartScript Path to Druid's start script to be run on start.
- // +optional
- // +kubebuilder:default:="/druid.sh"
- StartScript string `json:"startScript"`
-
- // Image Required here or at the NodeSpec level.
- // +optional
- Image string `json:"image,omitempty"`
-
- // ServiceAccount
- // +optional
- ServiceAccount string `json:"serviceAccount,omitempty"`
-
- // ImagePullSecrets
- // +optional
- ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
-
- // ImagePullPolicy
- // +optional
- // +kubebuilder:default:="IfNotPresent"
- ImagePullPolicy v1.PullPolicy `json:"imagePullPolicy,omitempty"`
-
- // Env Environment variables for druid containers.
- // +optional
- Env []v1.EnvVar `json:"env,omitempty"`
-
- // EnvFrom Extra environment variables from remote source (ConfigMaps, Secrets...).
- // +optional
- EnvFrom []v1.EnvFromSource `json:"envFrom,omitempty"`
-
- // JvmOptions Contents of the shared `jvm.options` configuration file for druid JVM processes.
- // +optional
- JvmOptions string `json:"jvm.options,omitempty"`
-
- // Log4jConfig contents `log4j.config` configuration file.
- // +optional
- Log4jConfig string `json:"log4j.config,omitempty"`
-
- // PodSecurityContext
- // +optional
- PodSecurityContext *v1.PodSecurityContext `json:"securityContext,omitempty"`
-
- // ContainerSecurityContext
- // +optional
- ContainerSecurityContext *v1.SecurityContext `json:"containerSecurityContext,omitempty"`
-
- // VolumeClaimTemplates Kubernetes Native `VolumeClaimTemplate` specification.
- // +optional
- VolumeClaimTemplates []v1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"`
-
- // VolumeMounts Kubernetes Native `VolumeMount` specification.
- // +optional
- VolumeMounts []v1.VolumeMount `json:"volumeMounts,omitempty"`
-
- // Volumes Kubernetes Native `Volumes` specification.
- // +optional
- Volumes []v1.Volume `json:"volumes,omitempty"`
-
- // PodAnnotations Custom annotations to be populated in `Druid` pods.
- // +optional
- PodAnnotations map[string]string `json:"podAnnotations,omitempty"`
-
- // WorkloadAnnotations annotations to be populated in StatefulSet or Deployment spec.
- // if the same key is specified at both the DruidNodeSpec level and DruidSpec level, the DruidNodeSpec WorkloadAnnotations will take precedence.
- // +optional
- WorkloadAnnotations map[string]string `json:"workloadAnnotations,omitempty"`
-
- // PodManagementPolicy
- // +optional
- // +kubebuilder:default:="Parallel"
- PodManagementPolicy appsv1.PodManagementPolicyType `json:"podManagementPolicy,omitempty"`
-
- // PodLabels Custom labels to be populated in `Druid` pods.
- // +optional
- PodLabels map[string]string `json:"podLabels,omitempty"`
-
- // PriorityClassName Kubernetes native `priorityClassName` specification.
- // +optional
- PriorityClassName string `json:"priorityClassName,omitempty"`
-
- // UpdateStrategy
- // +optional
- UpdateStrategy *appsv1.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"`
-
- // LivenessProbe
- // Port is set to `druid.port` if not specified with httpGet handler.
- // +optional
- LivenessProbe *v1.Probe `json:"livenessProbe,omitempty"`
-
- // ReadinessProbe
- // Port is set to `druid.port` if not specified with httpGet handler.
- // +optional
- ReadinessProbe *v1.Probe `json:"readinessProbe,omitempty"`
-
- // StartUpProbe
- // +optional
- StartUpProbe *v1.Probe `json:"startUpProbe,omitempty"`
-
- // Services Kubernetes services to be created for each workload.
- // +optional
- Services []v1.Service `json:"services,omitempty"`
-
- // NodeSelector Kubernetes native `nodeSelector` specification.
- // +optional
- NodeSelector map[string]string `json:"nodeSelector,omitempty"`
-
- // Tolerations Kubernetes native `tolerations` specification.
- // +optional
- Tolerations []v1.Toleration `json:"tolerations,omitempty"`
-
- // Affinity Kubernetes native `affinity` specification.
- // +optional
- Affinity *v1.Affinity `json:"affinity,omitempty"`
-
- // Nodes a list of `Druid` Node types and their configurations.
- // `DruidSpec` is used to create Kubernetes workload specs. Many of the fields above can be overridden at the specific
- // `NodeSpec` level.
- // +required
- Nodes map[string]DruidNodeSpec `json:"nodes"`
-
- // AdditionalContainer defines additional sidecar containers to be deployed with the `Druid` pods.
- // +optional
- AdditionalContainer []AdditionalContainer `json:"additionalContainer,omitempty"`
-
- // RollingDeploy Whether to deploy the components in a rolling update as described in the documentation:
- // https://druid.apache.org/docs/latest/operations/rolling-updates.html
- // If set to true then operator checks the rollout status of previous version workloads before updating the next.
- // This will be done only for update actions.
- // +optional
- // +kubebuilder:default:=true
- RollingDeploy bool `json:"rollingDeploy"`
-
- // DefaultProbes If set to true this will add default probes (liveness / readiness / startup) for all druid components
- // but it won't override existing probes
- // +optional
- // +kubebuilder:default:=true
- DefaultProbes bool `json:"defaultProbes"`
-
- // Zookeeper IGNORED (Future API): In order to make Druid dependency setup extensible from within Druid operator.
- // +optional
- Zookeeper *ZookeeperSpec `json:"zookeeper,omitempty"`
-
- // MetadataStore IGNORED (Future API): In order to make Druid dependency setup extensible from within Druid operator.
- // +optional
- MetadataStore *MetadataStoreSpec `json:"metadataStore,omitempty"`
-
- // DeepStorage IGNORED (Future API): In order to make Druid dependency setup extensible from within Druid operator.
- // +optional
- DeepStorage *DeepStorageSpec `json:"deepStorage,omitempty"`
-
- // DimensionsMapPath Custom Dimension Map Path for statsd emitter.
- // stastd documentation is described in the following documentation:
- // https://druid.apache.org/docs/latest/development/extensions-contrib/statsd.html
- // +optional
- DimensionsMapPath string `json:"metricDimensions.json,omitempty"`
-
- // HdfsSite Contents of `hdfs-site.xml`.
- // +optional
- HdfsSite string `json:"hdfs-site.xml,omitempty"`
-
- // CoreSite Contents of `core-site.xml`.
- // +optional
- CoreSite string `json:"core-site.xml,omitempty"`
-
- // Dynamic Configurations for Druid. Applied through the dynamic configuration API.
- // +optional
- DynamicConfig runtime.RawExtension `json:"dynamicConfig,omitempty"`
-
- // +optional
- Auth druidapi.Auth `json:"auth,omitempty"`
-
- // See v1.DNSPolicy for more details.
- // +optional
- DNSPolicy v1.DNSPolicy `json:"dnsPolicy,omitempty" protobuf:"bytes,6,opt,name=dnsPolicy,casttype=DNSPolicy"`
-
- // See v1.PodDNSConfig for more details.
- // +optional
- DNSConfig *v1.PodDNSConfig `json:"dnsConfig,omitempty" protobuf:"bytes,26,opt,name=dnsConfig"`
-}
-
-// DruidNodeSpec Specification of `Druid` Node type and its configurations.
-// The key in following map can be arbitrary string that helps you identify resources for a specific nodeSpec.
-// It is used in the Kubernetes resources' names, so it must be compliant with restrictions
-// placed on Kubernetes resource names:
-// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/
-type DruidNodeSpec struct {
- // NodeDruid `Druid` node type.
- // +required
- // +kubebuilder:validation:Enum:=historical;overlord;middleManager;indexer;broker;coordinator;router
- NodeType string `json:"nodeType"`
-
- // DruidPort Used by the `Druid` process.
- // +required
- DruidPort int32 `json:"druid.port"`
-
- // Kind Can be StatefulSet or Deployment.
- // Note: volumeClaimTemplates are ignored when kind=Deployment
- // +optional
- // +kubebuilder:default:="StatefulSet"
- Kind string `json:"kind,omitempty"`
-
- // Replicas replica of the workload
- // +optional
- // +kubebuilder:validation:Minimum=0
- Replicas int32 `json:"replicas"`
-
- // PodLabels Custom labels to be populated in the workload's pods.
- // +optional
- PodLabels map[string]string `json:"podLabels,omitempty"`
-
- // PodDisruptionBudgetSpec Kubernetes native `podDisruptionBudget` specification.
- // +optional
- PodDisruptionBudgetSpec *policyv1.PodDisruptionBudgetSpec `json:"podDisruptionBudgetSpec,omitempty"`
-
- // PriorityClassName Kubernetes native `priorityClassName` specification.
- // +optional
- PriorityClassName string `json:"priorityClassName,omitempty"`
-
- // RuntimeProperties Additional runtime configuration for the specific workload.
- // +required
- RuntimeProperties string `json:"runtime.properties"`
-
- // JvmOptions overrides `JvmOptions` at top level.
- // +optional
- JvmOptions string `json:"jvm.options,omitempty"`
-
- // ExtraJvmOptions Appends extra jvm options to the `JvmOptions` field.
- // +optional
- ExtraJvmOptions string `json:"extra.jvm.options,omitempty"`
-
- // Log4jConfig Overrides `Log4jConfig` at top level.
- // +optional
- Log4jConfig string `json:"log4j.config,omitempty"`
-
- // NodeConfigMountPath in-container directory to mount with runtime.properties, jvm.config, log4j2.xml files.
- // +required
- NodeConfigMountPath string `json:"nodeConfigMountPath"`
-
- // Services Overrides services at top level.
- // +optional
- Services []v1.Service `json:"services,omitempty"`
-
- // Tolerations Kubernetes native `tolerations` specification.
- // +optional
- Tolerations []v1.Toleration `json:"tolerations,omitempty"`
-
- // Affinity Kubernetes native `affinity` specification.
- // +optional
- Affinity *v1.Affinity `json:"affinity,omitempty"`
-
- // NodeSelector Kubernetes native `nodeSelector` specification.
- // +optional
- NodeSelector map[string]string `json:"nodeSelector,omitempty"`
-
- // TerminationGracePeriodSeconds
- // +optional
- TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"`
-
- // Ports Extra ports to be added to pod spec.
- // +optional
- Ports []v1.ContainerPort `json:"ports,omitempty"`
-
- // Image Overrides image from top level, Required if no image specified at top level.
- // +optional
- Image string `json:"image,omitempty"`
-
- // ImagePullSecrets Overrides `imagePullSecrets` from top level.
- // +optional
- ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
-
- // ImagePullPolicy Overrides `imagePullPolicy` from top level.
- // +optional
- ImagePullPolicy v1.PullPolicy `json:"imagePullPolicy,omitempty"`
-
- // Env Environment variables for druid containers.
- // +optional
- Env []v1.EnvVar `json:"env,omitempty"`
-
- // EnvFrom Extra environment variables from remote source (ConfigMaps, Secrets...).
- // +optional
- EnvFrom []v1.EnvFromSource `json:"envFrom,omitempty"`
-
- // Resources Kubernetes Native `resources` specification.
- // +optional
- Resources v1.ResourceRequirements `json:"resources,omitempty"`
-
- // PodSecurityContext Overrides `securityContext` at top level.
- // +optional
- PodSecurityContext *v1.PodSecurityContext `json:"securityContext,omitempty"`
-
- // ContainerSecurityContext
- // +optional
- ContainerSecurityContext *v1.SecurityContext `json:"containerSecurityContext,omitempty"`
-
- // PodAnnotations Custom annotation to be populated in the workload's pods.
- // +optional
- PodAnnotations map[string]string `json:"podAnnotations,omitempty"`
-
- // PodManagementPolicy
- // +optional
- // +kubebuilder:default:="Parallel"
- PodManagementPolicy appsv1.PodManagementPolicyType `json:"podManagementPolicy,omitempty"`
-
- // MaxSurge For Deployment object only.
- // Set to 25% by default.
- // +optional
- MaxSurge *int32 `json:"maxSurge,omitempty"`
-
- // MaxUnavailable For deployment object only.
- // Set to 25% by default
- // +optional
- MaxUnavailable *int32 `json:"maxUnavailable,omitempty"`
-
- // UpdateStrategy
- // +optional
- UpdateStrategy *appsv1.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"`
-
- // LivenessProbe
- // Port is set to `druid.port` if not specified with httpGet handler.
- // +optional
- LivenessProbe *v1.Probe `json:"livenessProbe,omitempty"`
-
- // ReadinessProbe
- // Port is set to `druid.port` if not specified with httpGet handler.
- // +optional
- ReadinessProbe *v1.Probe `json:"readinessProbe,omitempty"`
-
- // StartUpProbe
- // +optional
- StartUpProbe *v1.Probe `json:"startUpProbe,omitempty"`
-
- // IngressAnnotations `Ingress` annotations to be populated in ingress spec.
- // +optional
- IngressAnnotations map[string]string `json:"ingressAnnotations,omitempty"`
-
- // WorkloadAnnotations annotations to be populated in StatefulSet or Deployment spec.
- // +optional
- WorkloadAnnotations map[string]string `json:"workloadAnnotations,omitempty"`
-
- // Ingress Kubernetes Native `Ingress` specification.
- // +optional
- Ingress *networkingv1.IngressSpec `json:"ingress,omitempty"`
-
- // VolumeClaimTemplates Kubernetes Native `VolumeClaimTemplate` specification.
- // +optional
- PersistentVolumeClaim []v1.PersistentVolumeClaim `json:"persistentVolumeClaim,omitempty"`
-
- // Lifecycle
- // +optional
- Lifecycle *v1.Lifecycle `json:"lifecycle,omitempty"`
-
- // HPAutoScaler Kubernetes Native `HorizontalPodAutoscaler` specification.
- // +optional
- HPAutoScaler *autoscalev2.HorizontalPodAutoscalerSpec `json:"hpAutoscaler,omitempty"`
-
- // TopologySpreadConstraints Kubernetes Native `topologySpreadConstraints` specification.
- // +optional
- TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
-
- // VolumeClaimTemplates Kubernetes Native `volumeClaimTemplates` specification.
- // +optional
- VolumeClaimTemplates []v1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"`
-
- // VolumeMounts Kubernetes Native `volumeMounts` specification.
- // +optional
- VolumeMounts []v1.VolumeMount `json:"volumeMounts,omitempty"`
-
- // Volumes Kubernetes Native `volumes` specification.
- // +optional
- Volumes []v1.Volume `json:"volumes,omitempty"`
-
- // Operator deploys the sidecar container based on these properties.
- // +optional
- AdditionalContainer []AdditionalContainer `json:"additionalContainer,omitempty"`
-
- // ServiceAccountName Kubernetes native `serviceAccountName` specification.
- // +optional
- ServiceAccountName string `json:"serviceAccountName,omitempty"`
-
- // Dynamic Configurations for Druid. Applied through the dynamic configuration API.
- // +optional
- DynamicConfig runtime.RawExtension `json:"dynamicConfig,omitempty"`
-
- // See v1.DNSPolicy for more details.
- // +optional
- DNSPolicy v1.DNSPolicy `json:"dnsPolicy,omitempty" protobuf:"bytes,6,opt,name=dnsPolicy,casttype=DNSPolicy"`
-
- // See v1.PodDNSConfig for more details.
- // +optional
- DNSConfig *v1.PodDNSConfig `json:"dnsConfig,omitempty" protobuf:"bytes,26,opt,name=dnsConfig"`
-}
-
-// ZookeeperSpec IGNORED (Future API): In order to make Druid dependency setup extensible from within Druid operator.
-type ZookeeperSpec struct {
- Type string `json:"type"`
- Spec json.RawMessage `json:"spec"`
-}
-
-// MetadataStoreSpec IGNORED (Future API): In order to make Druid dependency setup extensible from within Druid operator.
-type MetadataStoreSpec struct {
- Type string `json:"type"`
- Spec json.RawMessage `json:"spec"`
-}
-
-// DeepStorageSpec IGNORED (Future API): In order to make Druid dependency setup extensible from within Druid operator.
-type DeepStorageSpec struct {
- Type string `json:"type"`
- Spec json.RawMessage `json:"spec"`
-}
-
-// These are valid conditions of a druid Node.
-const (
- // DruidClusterReady indicates the underlying druid objects is fully deployed.
- // Underlying pods are able to handle requests.
- DruidClusterReady DruidNodeConditionType = "DruidClusterReady"
-
- // DruidNodeRollingUpdate means that Druid Node is rolling update.
- DruidNodeRollingUpdate DruidNodeConditionType = "DruidNodeRollingUpdate"
-
- // DruidNodeErrorState indicates the DruidNode is in an error state.
- DruidNodeErrorState DruidNodeConditionType = "DruidNodeErrorState"
-)
-
-type DruidNodeConditionType string
-
-type DruidNodeTypeStatus struct {
- DruidNode string `json:"druidNode,omitempty"`
- DruidNodeConditionStatus v1.ConditionStatus `json:"druidNodeConditionStatus,omitempty"`
- DruidNodeConditionType DruidNodeConditionType `json:"druidNodeConditionType,omitempty"`
- Reason string `json:"reason,omitempty"`
-}
-
-// DruidClusterStatus Defines the observed state of Druid.
-type DruidClusterStatus struct {
- // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
- // Important: Run "make" to regenerate code after modifying this file
- DruidNodeStatus DruidNodeTypeStatus `json:"druidNodeStatus,omitempty"`
- StatefulSets []string `json:"statefulSets,omitempty"`
- Deployments []string `json:"deployments,omitempty"`
- Services []string `json:"services,omitempty"`
- ConfigMaps []string `json:"configMaps,omitempty"`
- PodDisruptionBudgets []string `json:"podDisruptionBudgets,omitempty"`
- Ingress []string `json:"ingress,omitempty"`
- HPAutoScalers []string `json:"hpAutoscalers,omitempty"`
- Pods []string `json:"pods,omitempty"`
- PersistentVolumeClaims []string `json:"persistentVolumeClaims,omitempty"`
-}
-
-// Druid is the Schema for the druids API.
-// +kubebuilder:object:root=true
-// +kubebuilder:subresource:status
-type Druid struct {
- metav1.TypeMeta `json:",inline"`
- metav1.ObjectMeta `json:"metadata,omitempty"`
-
- Spec DruidSpec `json:"spec"`
- Status DruidClusterStatus `json:"status,omitempty"`
-}
-
-// +kubebuilder:object:root=true
-
-// DruidList contains a list of Druid
-type DruidList struct {
- metav1.TypeMeta `json:",inline"`
- metav1.ListMeta `json:"metadata,omitempty"`
- Items []Druid `json:"items"`
-}
-
-func init() {
- SchemeBuilder.Register(&Druid{}, &DruidList{})
-}
diff --git a/apis/druid/v1alpha1/druidingestion_types.go b/apis/druid/v1alpha1/druidingestion_types.go
deleted file mode 100644
index 72c57e3..0000000
--- a/apis/druid/v1alpha1/druidingestion_types.go
+++ /dev/null
@@ -1,104 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-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.
-*/
-package v1alpha1
-
-import (
- druidapi "github.com/apache/druid-operator/pkg/druidapi"
- v1 "k8s.io/api/core/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- "k8s.io/apimachinery/pkg/runtime"
-)
-
-type DruidIngestionMethod string
-
-const (
- Kafka DruidIngestionMethod = "kafka"
- Kinesis DruidIngestionMethod = "kinesis"
- NativeBatchIndexParallel DruidIngestionMethod = "native-batch"
- QueryControllerSQL DruidIngestionMethod = "sql"
- HadoopIndexHadoop DruidIngestionMethod = "index-hadoop"
-)
-
-type DruidIngestionSpec struct {
- // +optional
- Suspend bool `json:"suspend"`
- // +required
- DruidClusterName string `json:"druidCluster"`
- // +required
- Ingestion IngestionSpec `json:"ingestion"`
- // +optional
- Auth druidapi.Auth `json:"auth"`
-}
-
-type IngestionSpec struct {
- // +required
- Type DruidIngestionMethod `json:"type"`
- // +optional
- // Spec should be passed in as a JSON string.
- // Note: This field is planned for deprecation in favor of nativeSpec.
- Spec string `json:"spec,omitempty"`
- // +optional
- // nativeSpec allows the ingestion specification to be defined in a native Kubernetes format.
- // This is particularly useful for environment-specific configurations and will eventually
- // replace the JSON-based Spec field.
- // Note: Spec will be ignored if nativeSpec is provided.
- NativeSpec runtime.RawExtension `json:"nativeSpec,omitempty"`
- // +optional
- Compaction runtime.RawExtension `json:"compaction,omitempty"`
- // +optional
- Rules []runtime.RawExtension `json:"rules,omitempty"`
-}
-
-type DruidIngestionStatus struct {
- TaskId string `json:"taskId"`
- Type string `json:"type,omitempty"`
- Status v1.ConditionStatus `json:"status,omitempty"`
- Reason string `json:"reason,omitempty"`
- Message string `json:"message,omitempty"`
- LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
- // CurrentIngestionSpec is a string instead of RawExtension to maintain compatibility with existing
- // IngestionSpecs that are stored as JSON strings.
- CurrentIngestionSpec string `json:"currentIngestionSpec.json"`
- CurrentRules []runtime.RawExtension `json:"rules,omitempty"`
-}
-
-// +kubebuilder:object:root=true
-// +kubebuilder:subresource:status
-// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
-// +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.ingestionSpec.type"
-// Ingestion is the Schema for the Ingestion API
-type DruidIngestion struct {
- metav1.TypeMeta `json:",inline"`
- metav1.ObjectMeta `json:"metadata,omitempty"`
-
- Spec DruidIngestionSpec `json:"spec"`
- Status DruidIngestionStatus `json:"status,omitempty"`
-}
-
-// +kubebuilder:object:root=true
-// IngestionList contains a list of Ingestion
-type DruidIngestionList struct {
- metav1.TypeMeta `json:",inline"`
- metav1.ListMeta `json:"metadata,omitempty"`
- Items []DruidIngestion `json:"items"`
-}
-
-func init() {
- SchemeBuilder.Register(&DruidIngestion{}, &DruidIngestionList{})
-}
diff --git a/apis/druid/v1alpha1/groupversion_info.go b/apis/druid/v1alpha1/groupversion_info.go
deleted file mode 100644
index 5e5a401..0000000
--- a/apis/druid/v1alpha1/groupversion_info.go
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-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.
-*/
-/*
-
- */
-
-// Package v1alpha1 contains API Schema definitions for the druid v1alpha1 API group
-// +kubebuilder:object:generate=true
-// +groupName=druid.apache.org
-package v1alpha1
-
-import (
- "k8s.io/apimachinery/pkg/runtime/schema"
- "sigs.k8s.io/controller-runtime/pkg/scheme"
-)
-
-var (
- // GroupVersion is group version used to register these objects
- GroupVersion = schema.GroupVersion{Group: "druid.apache.org", Version: "v1alpha1"}
-
- // SchemeBuilder is used to add go types to the GroupVersionKind scheme
- SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
-
- // AddToScheme adds the types in this group-version to the given scheme.
- AddToScheme = SchemeBuilder.AddToScheme
-)
diff --git a/apis/druid/v1alpha1/zz_generated.deepcopy.go b/apis/druid/v1alpha1/zz_generated.deepcopy.go
deleted file mode 100644
index 93eff59..0000000
--- a/apis/druid/v1alpha1/zz_generated.deepcopy.go
+++ /dev/null
@@ -1,790 +0,0 @@
-//go:build !ignore_autogenerated
-
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you 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
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-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.
-*/
-
-// Code generated by controller-gen. DO NOT EDIT.
-
-package v1alpha1
-
-import (
- "encoding/json"
- appsv1 "k8s.io/api/apps/v1"
- "k8s.io/api/autoscaling/v2"
- "k8s.io/api/core/v1"
- networkingv1 "k8s.io/api/networking/v1"
- policyv1 "k8s.io/api/policy/v1"
- "k8s.io/apimachinery/pkg/runtime"
-)
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *AdditionalContainer) DeepCopyInto(out *AdditionalContainer) {
- *out = *in
- if in.Command != nil {
- in, out := &in.Command, &out.Command
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.Args != nil {
- in, out := &in.Args, &out.Args
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.ContainerSecurityContext != nil {
- in, out := &in.ContainerSecurityContext, &out.ContainerSecurityContext
- *out = new(v1.SecurityContext)
- (*in).DeepCopyInto(*out)
- }
- in.Resources.DeepCopyInto(&out.Resources)
- if in.VolumeMounts != nil {
- in, out := &in.VolumeMounts, &out.VolumeMounts
- *out = make([]v1.VolumeMount, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Env != nil {
- in, out := &in.Env, &out.Env
- *out = make([]v1.EnvVar, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.EnvFrom != nil {
- in, out := &in.EnvFrom, &out.EnvFrom
- *out = make([]v1.EnvFromSource, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdditionalContainer.
-func (in *AdditionalContainer) DeepCopy() *AdditionalContainer {
- if in == nil {
- return nil
- }
- out := new(AdditionalContainer)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *DeepStorageSpec) DeepCopyInto(out *DeepStorageSpec) {
- *out = *in
- if in.Spec != nil {
- in, out := &in.Spec, &out.Spec
- *out = make(json.RawMessage, len(*in))
- copy(*out, *in)
- }
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeepStorageSpec.
-func (in *DeepStorageSpec) DeepCopy() *DeepStorageSpec {
- if in == nil {
- return nil
- }
- out := new(DeepStorageSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *Druid) DeepCopyInto(out *Druid) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- in.Status.DeepCopyInto(&out.Status)
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Druid.
-func (in *Druid) DeepCopy() *Druid {
- if in == nil {
- return nil
- }
- out := new(Druid)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *Druid) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *DruidClusterStatus) DeepCopyInto(out *DruidClusterStatus) {
- *out = *in
- out.DruidNodeStatus = in.DruidNodeStatus
- if in.StatefulSets != nil {
- in, out := &in.StatefulSets, &out.StatefulSets
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.Deployments != nil {
- in, out := &in.Deployments, &out.Deployments
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.Services != nil {
- in, out := &in.Services, &out.Services
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.ConfigMaps != nil {
- in, out := &in.ConfigMaps, &out.ConfigMaps
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.PodDisruptionBudgets != nil {
- in, out := &in.PodDisruptionBudgets, &out.PodDisruptionBudgets
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.Ingress != nil {
- in, out := &in.Ingress, &out.Ingress
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.HPAutoScalers != nil {
- in, out := &in.HPAutoScalers, &out.HPAutoScalers
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.Pods != nil {
- in, out := &in.Pods, &out.Pods
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.PersistentVolumeClaims != nil {
- in, out := &in.PersistentVolumeClaims, &out.PersistentVolumeClaims
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidClusterStatus.
-func (in *DruidClusterStatus) DeepCopy() *DruidClusterStatus {
- if in == nil {
- return nil
- }
- out := new(DruidClusterStatus)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *DruidIngestion) DeepCopyInto(out *DruidIngestion) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- in.Status.DeepCopyInto(&out.Status)
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidIngestion.
-func (in *DruidIngestion) DeepCopy() *DruidIngestion {
- if in == nil {
- return nil
- }
- out := new(DruidIngestion)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *DruidIngestion) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *DruidIngestionList) DeepCopyInto(out *DruidIngestionList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]DruidIngestion, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidIngestionList.
-func (in *DruidIngestionList) DeepCopy() *DruidIngestionList {
- if in == nil {
- return nil
- }
- out := new(DruidIngestionList)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *DruidIngestionList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *DruidIngestionSpec) DeepCopyInto(out *DruidIngestionSpec) {
- *out = *in
- in.Ingestion.DeepCopyInto(&out.Ingestion)
- out.Auth = in.Auth
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidIngestionSpec.
-func (in *DruidIngestionSpec) DeepCopy() *DruidIngestionSpec {
- if in == nil {
- return nil
- }
- out := new(DruidIngestionSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *DruidIngestionStatus) DeepCopyInto(out *DruidIngestionStatus) {
- *out = *in
- in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
- if in.CurrentRules != nil {
- in, out := &in.CurrentRules, &out.CurrentRules
- *out = make([]runtime.RawExtension, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidIngestionStatus.
-func (in *DruidIngestionStatus) DeepCopy() *DruidIngestionStatus {
- if in == nil {
- return nil
- }
- out := new(DruidIngestionStatus)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *DruidList) DeepCopyInto(out *DruidList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]Druid, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidList.
-func (in *DruidList) DeepCopy() *DruidList {
- if in == nil {
- return nil
- }
- out := new(DruidList)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *DruidList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *DruidNodeSpec) DeepCopyInto(out *DruidNodeSpec) {
- *out = *in
- if in.PodLabels != nil {
- in, out := &in.PodLabels, &out.PodLabels
- *out = make(map[string]string, len(*in))
- for key, val := range *in {
- (*out)[key] = val
- }
- }
- if in.PodDisruptionBudgetSpec != nil {
- in, out := &in.PodDisruptionBudgetSpec, &out.PodDisruptionBudgetSpec
- *out = new(policyv1.PodDisruptionBudgetSpec)
- (*in).DeepCopyInto(*out)
- }
- if in.Services != nil {
- in, out := &in.Services, &out.Services
- *out = make([]v1.Service, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Tolerations != nil {
- in, out := &in.Tolerations, &out.Tolerations
- *out = make([]v1.Toleration, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Affinity != nil {
- in, out := &in.Affinity, &out.Affinity
- *out = new(v1.Affinity)
- (*in).DeepCopyInto(*out)
- }
- if in.NodeSelector != nil {
- in, out := &in.NodeSelector, &out.NodeSelector
- *out = make(map[string]string, len(*in))
- for key, val := range *in {
- (*out)[key] = val
- }
- }
- if in.TerminationGracePeriodSeconds != nil {
- in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds
- *out = new(int64)
- **out = **in
- }
- if in.Ports != nil {
- in, out := &in.Ports, &out.Ports
- *out = make([]v1.ContainerPort, len(*in))
- copy(*out, *in)
- }
- if in.ImagePullSecrets != nil {
- in, out := &in.ImagePullSecrets, &out.ImagePullSecrets
- *out = make([]v1.LocalObjectReference, len(*in))
- copy(*out, *in)
- }
- if in.Env != nil {
- in, out := &in.Env, &out.Env
- *out = make([]v1.EnvVar, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.EnvFrom != nil {
- in, out := &in.EnvFrom, &out.EnvFrom
- *out = make([]v1.EnvFromSource, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- in.Resources.DeepCopyInto(&out.Resources)
- if in.PodSecurityContext != nil {
- in, out := &in.PodSecurityContext, &out.PodSecurityContext
- *out = new(v1.PodSecurityContext)
- (*in).DeepCopyInto(*out)
- }
- if in.ContainerSecurityContext != nil {
- in, out := &in.ContainerSecurityContext, &out.ContainerSecurityContext
- *out = new(v1.SecurityContext)
- (*in).DeepCopyInto(*out)
- }
- if in.PodAnnotations != nil {
- in, out := &in.PodAnnotations, &out.PodAnnotations
- *out = make(map[string]string, len(*in))
- for key, val := range *in {
- (*out)[key] = val
- }
- }
- if in.MaxSurge != nil {
- in, out := &in.MaxSurge, &out.MaxSurge
- *out = new(int32)
- **out = **in
- }
- if in.MaxUnavailable != nil {
- in, out := &in.MaxUnavailable, &out.MaxUnavailable
- *out = new(int32)
- **out = **in
- }
- if in.UpdateStrategy != nil {
- in, out := &in.UpdateStrategy, &out.UpdateStrategy
- *out = new(appsv1.StatefulSetUpdateStrategy)
- (*in).DeepCopyInto(*out)
- }
- if in.LivenessProbe != nil {
- in, out := &in.LivenessProbe, &out.LivenessProbe
- *out = new(v1.Probe)
- (*in).DeepCopyInto(*out)
- }
- if in.ReadinessProbe != nil {
- in, out := &in.ReadinessProbe, &out.ReadinessProbe
- *out = new(v1.Probe)
- (*in).DeepCopyInto(*out)
- }
- if in.StartUpProbe != nil {
- in, out := &in.StartUpProbe, &out.StartUpProbe
- *out = new(v1.Probe)
- (*in).DeepCopyInto(*out)
- }
- if in.IngressAnnotations != nil {
- in, out := &in.IngressAnnotations, &out.IngressAnnotations
- *out = make(map[string]string, len(*in))
- for key, val := range *in {
- (*out)[key] = val
- }
- }
- if in.WorkloadAnnotations != nil {
- in, out := &in.WorkloadAnnotations, &out.WorkloadAnnotations
- *out = make(map[string]string, len(*in))
- for key, val := range *in {
- (*out)[key] = val
- }
- }
- if in.Ingress != nil {
- in, out := &in.Ingress, &out.Ingress
- *out = new(networkingv1.IngressSpec)
- (*in).DeepCopyInto(*out)
- }
- if in.PersistentVolumeClaim != nil {
- in, out := &in.PersistentVolumeClaim, &out.PersistentVolumeClaim
- *out = make([]v1.PersistentVolumeClaim, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Lifecycle != nil {
- in, out := &in.Lifecycle, &out.Lifecycle
- *out = new(v1.Lifecycle)
- (*in).DeepCopyInto(*out)
- }
- if in.HPAutoScaler != nil {
- in, out := &in.HPAutoScaler, &out.HPAutoScaler
- *out = new(v2.HorizontalPodAutoscalerSpec)
- (*in).DeepCopyInto(*out)
- }
- if in.TopologySpreadConstraints != nil {
- in, out := &in.TopologySpreadConstraints, &out.TopologySpreadConstraints
- *out = make([]v1.TopologySpreadConstraint, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.VolumeClaimTemplates != nil {
- in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates
- *out = make([]v1.PersistentVolumeClaim, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.VolumeMounts != nil {
- in, out := &in.VolumeMounts, &out.VolumeMounts
- *out = make([]v1.VolumeMount, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Volumes != nil {
- in, out := &in.Volumes, &out.Volumes
- *out = make([]v1.Volume, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.AdditionalContainer != nil {
- in, out := &in.AdditionalContainer, &out.AdditionalContainer
- *out = make([]AdditionalContainer, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- in.DynamicConfig.DeepCopyInto(&out.DynamicConfig)
- if in.DNSConfig != nil {
- in, out := &in.DNSConfig, &out.DNSConfig
- *out = new(v1.PodDNSConfig)
- (*in).DeepCopyInto(*out)
- }
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidNodeSpec.
-func (in *DruidNodeSpec) DeepCopy() *DruidNodeSpec {
- if in == nil {
- return nil
- }
- out := new(DruidNodeSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *DruidNodeTypeStatus) DeepCopyInto(out *DruidNodeTypeStatus) {
- *out = *in
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidNodeTypeStatus.
-func (in *DruidNodeTypeStatus) DeepCopy() *DruidNodeTypeStatus {
- if in == nil {
- return nil
- }
- out := new(DruidNodeTypeStatus)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *DruidSpec) DeepCopyInto(out *DruidSpec) {
- *out = *in
- if in.ExtraCommonConfig != nil {
- in, out := &in.ExtraCommonConfig, &out.ExtraCommonConfig
- *out = make([]*v1.ObjectReference, len(*in))
- for i := range *in {
- if (*in)[i] != nil {
- in, out := &(*in)[i], &(*out)[i]
- *out = new(v1.ObjectReference)
- **out = **in
- }
- }
- }
- if in.ImagePullSecrets != nil {
- in, out := &in.ImagePullSecrets, &out.ImagePullSecrets
- *out = make([]v1.LocalObjectReference, len(*in))
- copy(*out, *in)
- }
- if in.Env != nil {
- in, out := &in.Env, &out.Env
- *out = make([]v1.EnvVar, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.EnvFrom != nil {
- in, out := &in.EnvFrom, &out.EnvFrom
- *out = make([]v1.EnvFromSource, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.PodSecurityContext != nil {
- in, out := &in.PodSecurityContext, &out.PodSecurityContext
- *out = new(v1.PodSecurityContext)
- (*in).DeepCopyInto(*out)
- }
- if in.ContainerSecurityContext != nil {
- in, out := &in.ContainerSecurityContext, &out.ContainerSecurityContext
- *out = new(v1.SecurityContext)
- (*in).DeepCopyInto(*out)
- }
- if in.VolumeClaimTemplates != nil {
- in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates
- *out = make([]v1.PersistentVolumeClaim, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.VolumeMounts != nil {
- in, out := &in.VolumeMounts, &out.VolumeMounts
- *out = make([]v1.VolumeMount, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Volumes != nil {
- in, out := &in.Volumes, &out.Volumes
- *out = make([]v1.Volume, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.PodAnnotations != nil {
- in, out := &in.PodAnnotations, &out.PodAnnotations
- *out = make(map[string]string, len(*in))
- for key, val := range *in {
- (*out)[key] = val
- }
- }
- if in.WorkloadAnnotations != nil {
- in, out := &in.WorkloadAnnotations, &out.WorkloadAnnotations
- *out = make(map[string]string, len(*in))
- for key, val := range *in {
- (*out)[key] = val
- }
- }
- if in.PodLabels != nil {
- in, out := &in.PodLabels, &out.PodLabels
- *out = make(map[string]string, len(*in))
- for key, val := range *in {
- (*out)[key] = val
- }
- }
- if in.UpdateStrategy != nil {
- in, out := &in.UpdateStrategy, &out.UpdateStrategy
- *out = new(appsv1.StatefulSetUpdateStrategy)
- (*in).DeepCopyInto(*out)
- }
- if in.LivenessProbe != nil {
- in, out := &in.LivenessProbe, &out.LivenessProbe
- *out = new(v1.Probe)
- (*in).DeepCopyInto(*out)
- }
- if in.ReadinessProbe != nil {
- in, out := &in.ReadinessProbe, &out.ReadinessProbe
- *out = new(v1.Probe)
- (*in).DeepCopyInto(*out)
- }
- if in.StartUpProbe != nil {
- in, out := &in.StartUpProbe, &out.StartUpProbe
- *out = new(v1.Probe)
- (*in).DeepCopyInto(*out)
- }
- if in.Services != nil {
- in, out := &in.Services, &out.Services
- *out = make([]v1.Service, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.NodeSelector != nil {
- in, out := &in.NodeSelector, &out.NodeSelector
- *out = make(map[string]string, len(*in))
- for key, val := range *in {
- (*out)[key] = val
- }
- }
- if in.Tolerations != nil {
- in, out := &in.Tolerations, &out.Tolerations
- *out = make([]v1.Toleration, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Affinity != nil {
- in, out := &in.Affinity, &out.Affinity
- *out = new(v1.Affinity)
- (*in).DeepCopyInto(*out)
- }
- if in.Nodes != nil {
- in, out := &in.Nodes, &out.Nodes
- *out = make(map[string]DruidNodeSpec, len(*in))
- for key, val := range *in {
- (*out)[key] = *val.DeepCopy()
- }
- }
- if in.AdditionalContainer != nil {
- in, out := &in.AdditionalContainer, &out.AdditionalContainer
- *out = make([]AdditionalContainer, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Zookeeper != nil {
- in, out := &in.Zookeeper, &out.Zookeeper
- *out = new(ZookeeperSpec)
- (*in).DeepCopyInto(*out)
- }
- if in.MetadataStore != nil {
- in, out := &in.MetadataStore, &out.MetadataStore
- *out = new(MetadataStoreSpec)
- (*in).DeepCopyInto(*out)
- }
- if in.DeepStorage != nil {
- in, out := &in.DeepStorage, &out.DeepStorage
- *out = new(DeepStorageSpec)
- (*in).DeepCopyInto(*out)
- }
- in.DynamicConfig.DeepCopyInto(&out.DynamicConfig)
- out.Auth = in.Auth
- if in.DNSConfig != nil {
- in, out := &in.DNSConfig, &out.DNSConfig
- *out = new(v1.PodDNSConfig)
- (*in).DeepCopyInto(*out)
- }
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DruidSpec.
-func (in *DruidSpec) DeepCopy() *DruidSpec {
- if in == nil {
- return nil
- }
- out := new(DruidSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *IngestionSpec) DeepCopyInto(out *IngestionSpec) {
- *out = *in
- in.NativeSpec.DeepCopyInto(&out.NativeSpec)
- in.Compaction.DeepCopyInto(&out.Compaction)
- if in.Rules != nil {
- in, out := &in.Rules, &out.Rules
- *out = make([]runtime.RawExtension, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngestionSpec.
-func (in *IngestionSpec) DeepCopy() *IngestionSpec {
- if in == nil {
- return nil
- }
- out := new(IngestionSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *MetadataStoreSpec) DeepCopyInto(out *MetadataStoreSpec) {
- *out = *in
- if in.Spec != nil {
- in, out := &in.Spec, &out.Spec
- *out = make(json.RawMessage, len(*in))
- copy(*out, *in)
- }
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataStoreSpec.
-func (in *MetadataStoreSpec) DeepCopy() *MetadataStoreSpec {
- if in == nil {
- return nil
- }
- out := new(MetadataStoreSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *ZookeeperSpec) DeepCopyInto(out *ZookeeperSpec) {
- *out = *in
- if in.Spec != nil {
- in, out := &in.Spec, &out.Spec
- *out = make(json.RawMessage, len(*in))
- copy(*out, *in)
- }
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZookeeperSpec.
-func (in *ZookeeperSpec) DeepCopy() *ZookeeperSpec {
- if in == nil {
- return nil
- }
- out := new(ZookeeperSpec)
- in.DeepCopyInto(out)
- return out
-}
diff --git a/chart/.helmignore b/chart/.helmignore
deleted file mode 100644
index fa5198e..0000000
--- a/chart/.helmignore
+++ /dev/null
@@ -1,40 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# 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.
-
-# 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
-*.orig
-*~
-# Various IDEs
-.project
-.idea/
-*.tmproj
-.vscode/
diff --git a/chart/Chart.yaml b/chart/Chart.yaml
deleted file mode 100644
index 9185a0e..0000000
--- a/chart/Chart.yaml
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# 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.
-#
-apiVersion: v2
-name: druid-operator
-description: Druid Kubernetes Operator
-
-# A chart can be either an 'application' or a 'library' chart.
-#
-# Application charts are a collection of templates that can be packaged into versioned archives
-# to be deployed.
-#
-# Library charts provide useful utilities or functions for the chart developer. They're included as
-# a dependency of application charts to inject those utilities and functions into the rendering
-# pipeline. Library charts do not define any templates and therefore cannot be deployed.
-type: application
-
-# This is the chart version. This version number should be incremented each time you make changes
-# to the chart and its templates, including the app version.
-# Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 0.3.9
-
-# This is the version number of the application being deployed. This version number should be
-# incremented each time you make changes to the application. Versions are not expected to
-# follow Semantic Versioning. They should reflect the version the application is using.
-appVersion: v1.3.0
-# icon
-icon: "https://www.apache.org/logos/res/druid/druid-1.png"
diff --git a/chart/crds/druid.apache.org_druidingestions.yaml b/chart/crds/druid.apache.org_druidingestions.yaml
deleted file mode 100644
index bd3e577..0000000
--- a/chart/crds/druid.apache.org_druidingestions.yaml
+++ /dev/null
@@ -1,168 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# 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.
-#
----
-apiVersion: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.20.1
- name: druidingestions.druid.apache.org
-spec:
- group: druid.apache.org
- names:
- kind: DruidIngestion
- listKind: DruidIngestionList
- plural: druidingestions
- singular: druidingestion
- scope: Namespaced
- versions:
- - additionalPrinterColumns:
- - jsonPath: .metadata.creationTimestamp
- name: Age
- type: date
- - jsonPath: .spec.ingestionSpec.type
- name: Type
- type: string
- name: v1alpha1
- schema:
- openAPIV3Schema:
- description: Ingestion is the Schema for the Ingestion API
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation of an object.
- Servers should convert recognized schemas to the latest internal value, and
- may reject unrecognized values.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this object represents.
- Servers may infer this from the endpoint the client submits requests to.
- Cannot be updated.
- In CamelCase.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- metadata:
- type: object
- spec:
- properties:
- auth:
- properties:
- passwordKey:
- description: PasswordKey specifies the key within the Kubernetes
- secret that contains the password for authentication.
- type: string
- secretRef:
- description: |-
- SecretReference represents a Secret Reference. It has enough information to retrieve secret
- in any namespace
- properties:
- name:
- description: name is unique within a namespace to reference
- a secret resource.
- type: string
- namespace:
- description: namespace defines the space within which the
- secret name must be unique.
- type: string
- type: object
- x-kubernetes-map-type: atomic
- type:
- type: string
- usernameKey:
- description: UsernameKey specifies the key within the Kubernetes
- secret that contains the username for authentication.
- type: string
- required:
- - secretRef
- - type
- type: object
- druidCluster:
- type: string
- ingestion:
- properties:
- compaction:
- type: object
- x-kubernetes-preserve-unknown-fields: true
- nativeSpec:
- description: |-
- nativeSpec allows the ingestion specification to be defined in a native Kubernetes format.
- This is particularly useful for environment-specific configurations and will eventually
- replace the JSON-based Spec field.
- Note: Spec will be ignored if nativeSpec is provided.
- type: object
- x-kubernetes-preserve-unknown-fields: true
- rules:
- items:
- type: object
- x-kubernetes-preserve-unknown-fields: true
- type: array
- spec:
- description: |-
- Spec should be passed in as a JSON string.
- Note: This field is planned for deprecation in favor of nativeSpec.
- type: string
- type:
- type: string
- required:
- - type
- type: object
- suspend:
- type: boolean
- required:
- - druidCluster
- - ingestion
- type: object
- status:
- properties:
- currentIngestionSpec.json:
- description: |-
- CurrentIngestionSpec is a string instead of RawExtension to maintain compatibility with existing
- IngestionSpecs that are stored as JSON strings.
- type: string
- lastUpdateTime:
- format: date-time
- type: string
- message:
- type: string
- reason:
- type: string
- rules:
- items:
- type: object
- x-kubernetes-preserve-unknown-fields: true
- type: array
- status:
- type: string
- taskId:
- type: string
- type:
- type: string
- required:
- - currentIngestionSpec.json
- - taskId
- type: object
- required:
- - spec
- type: object
- served: true
- storage: true
- subresources:
- status: {}
diff --git a/chart/crds/druid.apache.org_druids.yaml b/chart/crds/druid.apache.org_druids.yaml
deleted file mode 100644
index e2971b3..0000000
--- a/chart/crds/druid.apache.org_druids.yaml
+++ /dev/null
@@ -1,11907 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# 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.
-#
----
-apiVersion: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.20.1
- name: druids.druid.apache.org
-spec:
- group: druid.apache.org
- names:
- kind: Druid
- listKind: DruidList
- plural: druids
- singular: druid
- scope: Namespaced
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- description: Druid is the Schema for the druids API.
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation of an object.
- Servers should convert recognized schemas to the latest internal value, and
- may reject unrecognized values.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this object represents.
- Servers may infer this from the endpoint the client submits requests to.
- Cannot be updated.
- In CamelCase.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- metadata:
- type: object
- spec:
- description: DruidSpec defines the desired state of the Druid cluster.
- properties:
- additionalContainer:
- description: AdditionalContainer defines additional sidecar containers
- to be deployed with the `Druid` pods.
- items:
- description: |-
- AdditionalContainer defines additional sidecar containers to be deployed with the `Druid` pods.
- (will be part of Kubernetes native in the future:
- https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/753-sidecar-containers/README.md#summary).
- properties:
- args:
- description: Args Arguments to call the command.
- items:
- type: string
- type: array
- command:
- description: Command command for the additional container.
- items:
- type: string
- type: array
- containerName:
- description: ContainerName name of the additional container.
- type: string
- env:
- description: Env Environment variables for the additional container.
- items:
- description: EnvVar represents an environment variable present
- in a Container.
- properties:
- name:
- description: Name of the environment variable. Must be
- a C_IDENTIFIER.
- type: string
- value:
- description: |-
- Variable references $(VAR_NAME) are expanded
- using the previously defined environment variables in the container and
- any service environment variables. If a variable cannot be resolved,
- the reference in the input string will be unchanged. Double $$ are reduced
- to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
- "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
- Escaped references will never be expanded, regardless of whether the variable
- exists or not.
- Defaults to "".
- type: string
- valueFrom:
- description: Source for the environment variable's value.
- Cannot be used if value is not empty.
- properties:
- configMapKeyRef:
- description: Selects a key of a ConfigMap.
- properties:
- key:
- description: The key to select.
- type: string
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the ConfigMap or
- its key must be defined
- type: boolean
- required:
- - key
- type: object
- x-kubernetes-map-type: atomic
- fieldRef:
- description: |-
- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
- spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
- properties:
- apiVersion:
- description: Version of the schema the FieldPath
- is written in terms of, defaults to "v1".
- type: string
- fieldPath:
- description: Path of the field to select in the
- specified API version.
- type: string
- required:
- - fieldPath
- type: object
- x-kubernetes-map-type: atomic
- resourceFieldRef:
- description: |-
- Selects a resource of the container: only resources limits and requests
- (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- properties:
- containerName:
- description: 'Container name: required for volumes,
- optional for env vars'
- type: string
- divisor:
- anyOf:
- - type: integer
- - type: string
- description: Specifies the output format of the
- exposed resources, defaults to "1"
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- resource:
- description: 'Required: resource to select'
- type: string
- required:
- - resource
- type: object
- x-kubernetes-map-type: atomic
- secretKeyRef:
- description: Selects a key of a secret in the pod's
- namespace
- properties:
- key:
- description: The key of the secret to select from. Must
- be a valid secret key.
- type: string
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the Secret or its
- key must be defined
- type: boolean
- required:
- - key
- type: object
- x-kubernetes-map-type: atomic
- type: object
- required:
- - name
- type: object
- type: array
- envFrom:
- description: EnvFrom Extra environment variables from remote
- source (ConfigMaps, Secrets...).
- items:
- description: EnvFromSource represents the source of a set
- of ConfigMaps
- properties:
- configMapRef:
- description: The ConfigMap to select from
- properties:
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the ConfigMap must be
- defined
- type: boolean
- type: object
- x-kubernetes-map-type: atomic
- prefix:
- description: An optional identifier to prepend to each
- key in the ConfigMap. Must be a C_IDENTIFIER.
- type: string
- secretRef:
- description: The Secret to select from
- properties:
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the Secret must be defined
- type: boolean
- type: object
- x-kubernetes-map-type: atomic
- type: object
- type: array
- image:
- description: Image Image of the additional container.
- type: string
- imagePullPolicy:
- description: ImagePullPolicy If not present, will be taken from
- top level spec.
- type: string
- resources:
- description: Resources Kubernetes Native `resources` specification.
- properties:
- claims:
- description: |-
- Claims lists the names of resources, defined in spec.resourceClaims,
- that are used by this container.
-
- This is an alpha field and requires enabling the
- DynamicResourceAllocation feature gate.
-
- This field is immutable. It can only be set for containers.
- items:
- description: ResourceClaim references one entry in PodSpec.ResourceClaims.
- properties:
- name:
- description: |-
- Name must match the name of one entry in pod.spec.resourceClaims of
- the Pod where this field is used. It makes that resource available
- inside a container.
- type: string
- required:
- - name
- type: object
- type: array
- x-kubernetes-list-map-keys:
- - name
- x-kubernetes-list-type: map
- limits:
- additionalProperties:
- anyOf:
- - type: integer
- - type: string
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- description: |-
- Limits describes the maximum amount of compute resources allowed.
- More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- type: object
- requests:
- additionalProperties:
- anyOf:
- - type: integer
- - type: string
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- description: |-
- Requests describes the minimum amount of compute resources required.
- If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
- otherwise to an implementation-defined value. Requests cannot exceed Limits.
- More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- type: object
- type: object
- runAsInit:
- description: RunAsInit indicate whether this should be an init
- container.
- type: boolean
- securityContext:
- description: ContainerSecurityContext If not present, will be
- taken from top level pod.
- properties:
- allowPrivilegeEscalation:
- description: |-
- AllowPrivilegeEscalation controls whether a process can gain more
- privileges than its parent process. This bool directly controls if
- the no_new_privs flag will be set on the container process.
- AllowPrivilegeEscalation is true always when the container is:
- 1) run as Privileged
- 2) has CAP_SYS_ADMIN
- Note that this field cannot be set when spec.os.name is windows.
- type: boolean
- capabilities:
- description: |-
- The capabilities to add/drop when running containers.
- Defaults to the default set of capabilities granted by the container runtime.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- add:
- description: Added capabilities
- items:
- description: Capability represent POSIX capabilities
- type
- type: string
- type: array
- drop:
- description: Removed capabilities
- items:
- description: Capability represent POSIX capabilities
- type
- type: string
- type: array
- type: object
- privileged:
- description: |-
- Run container in privileged mode.
- Processes in privileged containers are essentially equivalent to root on the host.
- Defaults to false.
- Note that this field cannot be set when spec.os.name is windows.
- type: boolean
- procMount:
- description: |-
- procMount denotes the type of proc mount to use for the containers.
- The default is DefaultProcMount which uses the container runtime defaults for
- readonly paths and masked paths.
- This requires the ProcMountType feature flag to be enabled.
- Note that this field cannot be set when spec.os.name is windows.
- type: string
- readOnlyRootFilesystem:
- description: |-
- Whether this container has a read-only root filesystem.
- Default is false.
- Note that this field cannot be set when spec.os.name is windows.
- type: boolean
- runAsGroup:
- description: |-
- The GID to run the entrypoint of the container process.
- Uses runtime default if unset.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is windows.
- format: int64
- type: integer
- runAsNonRoot:
- description: |-
- Indicates that the container must run as a non-root user.
- If true, the Kubelet will validate the image at runtime to ensure that it
- does not run as UID 0 (root) and fail to start the container if it does.
- If unset or false, no such validation will be performed.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- type: boolean
- runAsUser:
- description: |-
- The UID to run the entrypoint of the container process.
- Defaults to user specified in image metadata if unspecified.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is windows.
- format: int64
- type: integer
- seLinuxOptions:
- description: |-
- The SELinux context to be applied to the container.
- If unspecified, the container runtime will allocate a random SELinux context for each
- container. May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- level:
- description: Level is SELinux level label that applies
- to the container.
- type: string
- role:
- description: Role is a SELinux role label that applies
- to the container.
- type: string
- type:
- description: Type is a SELinux type label that applies
- to the container.
- type: string
- user:
- description: User is a SELinux user label that applies
- to the container.
- type: string
- type: object
- seccompProfile:
- description: |-
- The seccomp options to use by this container. If seccomp options are
- provided at both the pod & container level, the container options
- override the pod options.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- localhostProfile:
- description: |-
- localhostProfile indicates a profile defined in a file on the node should be used.
- The profile must be preconfigured on the node to work.
- Must be a descending path, relative to the kubelet's configured seccomp profile location.
- Must only be set if type is "Localhost".
- type: string
- type:
- description: |-
- type indicates which kind of seccomp profile will be applied.
- Valid options are:
-
- Localhost - a profile defined in a file on the node should be used.
- RuntimeDefault - the container runtime default profile should be used.
- Unconfined - no profile should be applied.
- type: string
- required:
- - type
- type: object
- windowsOptions:
- description: |-
- The Windows specific settings applied to all containers.
- If unspecified, the options from the PodSecurityContext will be used.
- If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is linux.
- properties:
- gmsaCredentialSpec:
- description: |-
- GMSACredentialSpec is where the GMSA admission webhook
- (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
- GMSA credential spec named by the GMSACredentialSpecName field.
- type: string
- gmsaCredentialSpecName:
- description: GMSACredentialSpecName is the name of the
- GMSA credential spec to use.
- type: string
- hostProcess:
- description: |-
- HostProcess determines if a container should be run as a 'Host Process' container.
- This field is alpha-level and will only be honored by components that enable the
- WindowsHostProcessContainers feature flag. Setting this field without the feature
- flag will result in errors when validating the Pod. All of a Pod's containers must
- have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
- containers and non-HostProcess containers). In addition, if HostProcess is true
- then HostNetwork must also be set to true.
- type: boolean
- runAsUserName:
- description: |-
- The UserName in Windows to run the entrypoint of the container process.
- Defaults to the user specified in image metadata if unspecified.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- type: string
- type: object
- type: object
- volumeMounts:
- description: VolumeMounts Kubernetes Native `VolumeMount` specification.
- items:
- description: VolumeMount describes a mounting of a Volume
- within a container.
- properties:
- mountPath:
- description: |-
- Path within the container at which the volume should be mounted. Must
- not contain ':'.
- type: string
- mountPropagation:
- description: |-
- mountPropagation determines how mounts are propagated from the host
- to container and the other way around.
- When not set, MountPropagationNone is used.
- This field is beta in 1.10.
- type: string
- name:
- description: This must match the Name of a Volume.
- type: string
- readOnly:
- description: |-
- Mounted read-only if true, read-write otherwise (false or unspecified).
- Defaults to false.
- type: boolean
- subPath:
- description: |-
- Path within the volume from which the container's volume should be mounted.
- Defaults to "" (volume's root).
- type: string
- subPathExpr:
- description: |-
- Expanded path within the volume from which the container's volume should be mounted.
- Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
- Defaults to "" (volume's root).
- SubPathExpr and SubPath are mutually exclusive.
- type: string
- required:
- - mountPath
- - name
- type: object
- type: array
- required:
- - command
- - containerName
- - image
- type: object
- type: array
- affinity:
- description: Affinity Kubernetes native `affinity` specification.
- properties:
- nodeAffinity:
- description: Describes node affinity scheduling rules for the
- pod.
- properties:
- preferredDuringSchedulingIgnoredDuringExecution:
- description: |-
- The scheduler will prefer to schedule pods to nodes that satisfy
- the affinity expressions specified by this field, but it may choose
- a node that violates one or more of the expressions. The node that is
- most preferred is the one with the greatest sum of weights, i.e.
- for each node that meets all of the scheduling requirements (resource
- request, requiredDuringScheduling affinity expressions, etc.),
- compute a sum by iterating through the elements of this field and adding
- "weight" to the sum if the node matches the corresponding matchExpressions; the
- node(s) with the highest sum are the most preferred.
- items:
- description: |-
- An empty preferred scheduling term matches all objects with implicit weight 0
- (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
- properties:
- preference:
- description: A node selector term, associated with the
- corresponding weight.
- properties:
- matchExpressions:
- description: A list of node selector requirements
- by node's labels.
- items:
- description: |-
- A node selector requirement is a selector that contains values, a key, and an operator
- that relates the key and values.
- properties:
- key:
- description: The label key that the selector
- applies to.
- type: string
- operator:
- description: |-
- Represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
- type: string
- values:
- description: |-
- An array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. If the operator is Gt or Lt, the values
- array must have a single element, which will be interpreted as an integer.
- This array is replaced during a strategic merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchFields:
- description: A list of node selector requirements
- by node's fields.
- items:
- description: |-
- A node selector requirement is a selector that contains values, a key, and an operator
- that relates the key and values.
- properties:
- key:
- description: The label key that the selector
- applies to.
- type: string
- operator:
- description: |-
- Represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
- type: string
- values:
- description: |-
- An array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. If the operator is Gt or Lt, the values
- array must have a single element, which will be interpreted as an integer.
- This array is replaced during a strategic merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- type: object
- x-kubernetes-map-type: atomic
- weight:
- description: Weight associated with matching the corresponding
- nodeSelectorTerm, in the range 1-100.
- format: int32
- type: integer
- required:
- - preference
- - weight
- type: object
- type: array
- requiredDuringSchedulingIgnoredDuringExecution:
- description: |-
- If the affinity requirements specified by this field are not met at
- scheduling time, the pod will not be scheduled onto the node.
- If the affinity requirements specified by this field cease to be met
- at some point during pod execution (e.g. due to an update), the system
- may or may not try to eventually evict the pod from its node.
- properties:
- nodeSelectorTerms:
- description: Required. A list of node selector terms.
- The terms are ORed.
- items:
- description: |-
- A null or empty node selector term matches no objects. The requirements of
- them are ANDed.
- The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
- properties:
- matchExpressions:
- description: A list of node selector requirements
- by node's labels.
- items:
- description: |-
- A node selector requirement is a selector that contains values, a key, and an operator
- that relates the key and values.
- properties:
- key:
- description: The label key that the selector
- applies to.
- type: string
- operator:
- description: |-
- Represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
- type: string
- values:
- description: |-
- An array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. If the operator is Gt or Lt, the values
- array must have a single element, which will be interpreted as an integer.
- This array is replaced during a strategic merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchFields:
- description: A list of node selector requirements
- by node's fields.
- items:
- description: |-
- A node selector requirement is a selector that contains values, a key, and an operator
- that relates the key and values.
- properties:
- key:
- description: The label key that the selector
- applies to.
- type: string
- operator:
- description: |-
- Represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
- type: string
- values:
- description: |-
- An array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. If the operator is Gt or Lt, the values
- array must have a single element, which will be interpreted as an integer.
- This array is replaced during a strategic merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- type: object
- x-kubernetes-map-type: atomic
- type: array
- required:
- - nodeSelectorTerms
- type: object
- x-kubernetes-map-type: atomic
- type: object
- podAffinity:
- description: Describes pod affinity scheduling rules (e.g. co-locate
- this pod in the same node, zone, etc. as some other pod(s)).
- properties:
- preferredDuringSchedulingIgnoredDuringExecution:
- description: |-
- The scheduler will prefer to schedule pods to nodes that satisfy
- the affinity expressions specified by this field, but it may choose
- a node that violates one or more of the expressions. The node that is
- most preferred is the one with the greatest sum of weights, i.e.
- for each node that meets all of the scheduling requirements (resource
- request, requiredDuringScheduling affinity expressions, etc.),
- compute a sum by iterating through the elements of this field and adding
- "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
- node(s) with the highest sum are the most preferred.
- items:
- description: The weights of all of the matched WeightedPodAffinityTerm
- fields are added per-node to find the most preferred node(s)
- properties:
- podAffinityTerm:
- description: Required. A pod affinity term, associated
- with the corresponding weight.
- properties:
- labelSelector:
- description: A label query over a set of resources,
- in this case pods.
- properties:
- matchExpressions:
- description: matchExpressions is a list of label
- selector requirements. The requirements are
- ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that
- the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaceSelector:
- description: |-
- A label query over the set of namespaces that the term applies to.
- The term is applied to the union of the namespaces selected by this field
- and the ones listed in the namespaces field.
- null selector and null or empty namespaces list means "this pod's namespace".
- An empty selector ({}) matches all namespaces.
- properties:
- matchExpressions:
- description: matchExpressions is a list of label
- selector requirements. The requirements are
- ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that
- the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaces:
- description: |-
- namespaces specifies a static list of namespace names that the term applies to.
- The term is applied to the union of the namespaces listed in this field
- and the ones selected by namespaceSelector.
- null or empty namespaces list and null namespaceSelector means "this pod's namespace".
- items:
- type: string
- type: array
- topologyKey:
- description: |-
- This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
- the labelSelector in the specified namespaces, where co-located is defined as running on a node
- whose value of the label with key topologyKey matches that of any node on which any of the
- selected pods is running.
- Empty topologyKey is not allowed.
- type: string
- required:
- - topologyKey
- type: object
- weight:
- description: |-
- weight associated with matching the corresponding podAffinityTerm,
- in the range 1-100.
- format: int32
- type: integer
- required:
- - podAffinityTerm
- - weight
- type: object
- type: array
- requiredDuringSchedulingIgnoredDuringExecution:
- description: |-
- If the affinity requirements specified by this field are not met at
- scheduling time, the pod will not be scheduled onto the node.
- If the affinity requirements specified by this field cease to be met
- at some point during pod execution (e.g. due to a pod label update), the
- system may or may not try to eventually evict the pod from its node.
- When there are multiple elements, the lists of nodes corresponding to each
- podAffinityTerm are intersected, i.e. all terms must be satisfied.
- items:
- description: |-
- Defines a set of pods (namely those matching the labelSelector
- relative to the given namespace(s)) that this pod should be
- co-located (affinity) or not co-located (anti-affinity) with,
- where co-located is defined as running on a node whose value of
- the label with key <topologyKey> matches that of any node on which
- a pod of the set of pods is running
- properties:
- labelSelector:
- description: A label query over a set of resources,
- in this case pods.
- properties:
- matchExpressions:
- description: matchExpressions is a list of label
- selector requirements. The requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that the
- selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaceSelector:
- description: |-
- A label query over the set of namespaces that the term applies to.
- The term is applied to the union of the namespaces selected by this field
- and the ones listed in the namespaces field.
- null selector and null or empty namespaces list means "this pod's namespace".
- An empty selector ({}) matches all namespaces.
- properties:
- matchExpressions:
- description: matchExpressions is a list of label
- selector requirements. The requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that the
- selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaces:
- description: |-
- namespaces specifies a static list of namespace names that the term applies to.
- The term is applied to the union of the namespaces listed in this field
- and the ones selected by namespaceSelector.
- null or empty namespaces list and null namespaceSelector means "this pod's namespace".
- items:
- type: string
- type: array
- topologyKey:
- description: |-
- This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
- the labelSelector in the specified namespaces, where co-located is defined as running on a node
- whose value of the label with key topologyKey matches that of any node on which any of the
- selected pods is running.
- Empty topologyKey is not allowed.
- type: string
- required:
- - topologyKey
- type: object
- type: array
- type: object
- podAntiAffinity:
- description: Describes pod anti-affinity scheduling rules (e.g.
- avoid putting this pod in the same node, zone, etc. as some
- other pod(s)).
- properties:
- preferredDuringSchedulingIgnoredDuringExecution:
- description: |-
- The scheduler will prefer to schedule pods to nodes that satisfy
- the anti-affinity expressions specified by this field, but it may choose
- a node that violates one or more of the expressions. The node that is
- most preferred is the one with the greatest sum of weights, i.e.
- for each node that meets all of the scheduling requirements (resource
- request, requiredDuringScheduling anti-affinity expressions, etc.),
- compute a sum by iterating through the elements of this field and adding
- "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
- node(s) with the highest sum are the most preferred.
- items:
- description: The weights of all of the matched WeightedPodAffinityTerm
- fields are added per-node to find the most preferred node(s)
- properties:
- podAffinityTerm:
- description: Required. A pod affinity term, associated
- with the corresponding weight.
- properties:
- labelSelector:
- description: A label query over a set of resources,
- in this case pods.
- properties:
- matchExpressions:
- description: matchExpressions is a list of label
- selector requirements. The requirements are
- ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that
- the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaceSelector:
- description: |-
- A label query over the set of namespaces that the term applies to.
- The term is applied to the union of the namespaces selected by this field
- and the ones listed in the namespaces field.
- null selector and null or empty namespaces list means "this pod's namespace".
- An empty selector ({}) matches all namespaces.
- properties:
- matchExpressions:
- description: matchExpressions is a list of label
- selector requirements. The requirements are
- ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that
- the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaces:
- description: |-
- namespaces specifies a static list of namespace names that the term applies to.
- The term is applied to the union of the namespaces listed in this field
- and the ones selected by namespaceSelector.
- null or empty namespaces list and null namespaceSelector means "this pod's namespace".
- items:
- type: string
- type: array
- topologyKey:
- description: |-
- This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
- the labelSelector in the specified namespaces, where co-located is defined as running on a node
- whose value of the label with key topologyKey matches that of any node on which any of the
- selected pods is running.
- Empty topologyKey is not allowed.
- type: string
- required:
- - topologyKey
- type: object
- weight:
- description: |-
- weight associated with matching the corresponding podAffinityTerm,
- in the range 1-100.
- format: int32
- type: integer
- required:
- - podAffinityTerm
- - weight
- type: object
- type: array
- requiredDuringSchedulingIgnoredDuringExecution:
- description: |-
- If the anti-affinity requirements specified by this field are not met at
- scheduling time, the pod will not be scheduled onto the node.
- If the anti-affinity requirements specified by this field cease to be met
- at some point during pod execution (e.g. due to a pod label update), the
- system may or may not try to eventually evict the pod from its node.
- When there are multiple elements, the lists of nodes corresponding to each
- podAffinityTerm are intersected, i.e. all terms must be satisfied.
- items:
- description: |-
- Defines a set of pods (namely those matching the labelSelector
- relative to the given namespace(s)) that this pod should be
- co-located (affinity) or not co-located (anti-affinity) with,
- where co-located is defined as running on a node whose value of
- the label with key <topologyKey> matches that of any node on which
- a pod of the set of pods is running
- properties:
- labelSelector:
- description: A label query over a set of resources,
- in this case pods.
- properties:
- matchExpressions:
- description: matchExpressions is a list of label
- selector requirements. The requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that the
- selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaceSelector:
- description: |-
- A label query over the set of namespaces that the term applies to.
- The term is applied to the union of the namespaces selected by this field
- and the ones listed in the namespaces field.
- null selector and null or empty namespaces list means "this pod's namespace".
- An empty selector ({}) matches all namespaces.
- properties:
- matchExpressions:
- description: matchExpressions is a list of label
- selector requirements. The requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that the
- selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaces:
- description: |-
- namespaces specifies a static list of namespace names that the term applies to.
- The term is applied to the union of the namespaces listed in this field
- and the ones selected by namespaceSelector.
- null or empty namespaces list and null namespaceSelector means "this pod's namespace".
- items:
- type: string
- type: array
- topologyKey:
- description: |-
- This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
- the labelSelector in the specified namespaces, where co-located is defined as running on a node
- whose value of the label with key topologyKey matches that of any node on which any of the
- selected pods is running.
- Empty topologyKey is not allowed.
- type: string
- required:
- - topologyKey
- type: object
- type: array
- type: object
- type: object
- auth:
- properties:
- passwordKey:
- description: PasswordKey specifies the key within the Kubernetes
- secret that contains the password for authentication.
- type: string
- secretRef:
- description: |-
- SecretReference represents a Secret Reference. It has enough information to retrieve secret
- in any namespace
- properties:
- name:
- description: name is unique within a namespace to reference
- a secret resource.
- type: string
- namespace:
- description: namespace defines the space within which the
- secret name must be unique.
- type: string
- type: object
- x-kubernetes-map-type: atomic
- type:
- type: string
- usernameKey:
- description: UsernameKey specifies the key within the Kubernetes
- secret that contains the username for authentication.
- type: string
- required:
- - secretRef
- - type
- type: object
- common.runtime.properties:
- description: CommonRuntimeProperties Content fo the `common.runtime.properties`
- configuration file.
- type: string
- commonConfigMountPath:
- default: /opt/druid/conf/druid/cluster/_common
- description: CommonConfigMountPath In-container directory to mount
- the Druid common configuration
- type: string
- containerSecurityContext:
- description: ContainerSecurityContext
- properties:
- allowPrivilegeEscalation:
- description: |-
- AllowPrivilegeEscalation controls whether a process can gain more
- privileges than its parent process. This bool directly controls if
- the no_new_privs flag will be set on the container process.
- AllowPrivilegeEscalation is true always when the container is:
- 1) run as Privileged
- 2) has CAP_SYS_ADMIN
- Note that this field cannot be set when spec.os.name is windows.
- type: boolean
- capabilities:
- description: |-
- The capabilities to add/drop when running containers.
- Defaults to the default set of capabilities granted by the container runtime.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- add:
- description: Added capabilities
- items:
- description: Capability represent POSIX capabilities type
- type: string
- type: array
- drop:
- description: Removed capabilities
- items:
- description: Capability represent POSIX capabilities type
- type: string
- type: array
- type: object
- privileged:
- description: |-
- Run container in privileged mode.
- Processes in privileged containers are essentially equivalent to root on the host.
- Defaults to false.
- Note that this field cannot be set when spec.os.name is windows.
- type: boolean
- procMount:
- description: |-
- procMount denotes the type of proc mount to use for the containers.
- The default is DefaultProcMount which uses the container runtime defaults for
- readonly paths and masked paths.
- This requires the ProcMountType feature flag to be enabled.
- Note that this field cannot be set when spec.os.name is windows.
- type: string
- readOnlyRootFilesystem:
- description: |-
- Whether this container has a read-only root filesystem.
- Default is false.
- Note that this field cannot be set when spec.os.name is windows.
- type: boolean
- runAsGroup:
- description: |-
- The GID to run the entrypoint of the container process.
- Uses runtime default if unset.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is windows.
- format: int64
- type: integer
- runAsNonRoot:
- description: |-
- Indicates that the container must run as a non-root user.
- If true, the Kubelet will validate the image at runtime to ensure that it
- does not run as UID 0 (root) and fail to start the container if it does.
- If unset or false, no such validation will be performed.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- type: boolean
- runAsUser:
- description: |-
- The UID to run the entrypoint of the container process.
- Defaults to user specified in image metadata if unspecified.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is windows.
- format: int64
- type: integer
- seLinuxOptions:
- description: |-
- The SELinux context to be applied to the container.
- If unspecified, the container runtime will allocate a random SELinux context for each
- container. May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- level:
- description: Level is SELinux level label that applies to
- the container.
- type: string
- role:
- description: Role is a SELinux role label that applies to
- the container.
- type: string
- type:
- description: Type is a SELinux type label that applies to
- the container.
- type: string
- user:
- description: User is a SELinux user label that applies to
- the container.
- type: string
- type: object
- seccompProfile:
- description: |-
- The seccomp options to use by this container. If seccomp options are
- provided at both the pod & container level, the container options
- override the pod options.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- localhostProfile:
- description: |-
- localhostProfile indicates a profile defined in a file on the node should be used.
- The profile must be preconfigured on the node to work.
- Must be a descending path, relative to the kubelet's configured seccomp profile location.
- Must only be set if type is "Localhost".
- type: string
- type:
- description: |-
- type indicates which kind of seccomp profile will be applied.
- Valid options are:
-
- Localhost - a profile defined in a file on the node should be used.
- RuntimeDefault - the container runtime default profile should be used.
- Unconfined - no profile should be applied.
- type: string
- required:
- - type
- type: object
- windowsOptions:
- description: |-
- The Windows specific settings applied to all containers.
- If unspecified, the options from the PodSecurityContext will be used.
- If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is linux.
- properties:
- gmsaCredentialSpec:
- description: |-
- GMSACredentialSpec is where the GMSA admission webhook
- (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
- GMSA credential spec named by the GMSACredentialSpecName field.
- type: string
- gmsaCredentialSpecName:
- description: GMSACredentialSpecName is the name of the GMSA
- credential spec to use.
- type: string
- hostProcess:
- description: |-
- HostProcess determines if a container should be run as a 'Host Process' container.
- This field is alpha-level and will only be honored by components that enable the
- WindowsHostProcessContainers feature flag. Setting this field without the feature
- flag will result in errors when validating the Pod. All of a Pod's containers must
- have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
- containers and non-HostProcess containers). In addition, if HostProcess is true
- then HostNetwork must also be set to true.
- type: boolean
- runAsUserName:
- description: |-
- The UserName in Windows to run the entrypoint of the container process.
- Defaults to the user specified in image metadata if unspecified.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- type: string
- type: object
- type: object
- core-site.xml:
- description: CoreSite Contents of `core-site.xml`.
- type: string
- deepStorage:
- description: 'DeepStorage IGNORED (Future API): In order to make Druid
- dependency setup extensible from within Druid operator.'
- properties:
- spec:
- description: |-
- RawMessage is a raw encoded JSON value.
- It implements [Marshaler] and [Unmarshaler] and can
- be used to delay JSON decoding or precompute a JSON encoding.
- format: byte
- type: string
- type:
- type: string
- required:
- - spec
- - type
- type: object
- defaultProbes:
- default: true
- description: |-
- DefaultProbes If set to true this will add default probes (liveness / readiness / startup) for all druid components
- but it won't override existing probes
- type: boolean
- deleteOrphanPvc:
- default: true
- description: DeleteOrphanPvc Orphaned (unmounted PVCs) shall be cleaned
- up by the operator.
- type: boolean
- disablePVCDeletionFinalizer:
- default: false
- description: DisablePVCDeletionFinalizer Whether PVCs shall be deleted
- on the deletion of the Druid cluster.
- type: boolean
- dnsConfig:
- description: See v1.PodDNSConfig for more details.
- properties:
- nameservers:
- description: |-
- A list of DNS name server IP addresses.
- This will be appended to the base nameservers generated from DNSPolicy.
- Duplicated nameservers will be removed.
- items:
- type: string
- type: array
- options:
- description: |-
- A list of DNS resolver options.
- This will be merged with the base options generated from DNSPolicy.
- Duplicated entries will be removed. Resolution options given in Options
- will override those that appear in the base DNSPolicy.
- items:
- description: PodDNSConfigOption defines DNS resolver options
- of a pod.
- properties:
- name:
- description: Required.
- type: string
- value:
- type: string
- type: object
- type: array
- searches:
- description: |-
- A list of DNS search domains for host-name lookup.
- This will be appended to the base search paths generated from DNSPolicy.
- Duplicated search paths will be removed.
- items:
- type: string
- type: array
- type: object
- dnsPolicy:
- description: See v1.DNSPolicy for more details.
- type: string
- dynamicConfig:
- description: Dynamic Configurations for Druid. Applied through the
- dynamic configuration API.
- type: object
- x-kubernetes-preserve-unknown-fields: true
- env:
- description: Env Environment variables for druid containers.
- items:
- description: EnvVar represents an environment variable present in
- a Container.
- properties:
- name:
- description: Name of the environment variable. Must be a C_IDENTIFIER.
- type: string
- value:
- description: |-
- Variable references $(VAR_NAME) are expanded
- using the previously defined environment variables in the container and
- any service environment variables. If a variable cannot be resolved,
- the reference in the input string will be unchanged. Double $$ are reduced
- to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
- "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
- Escaped references will never be expanded, regardless of whether the variable
- exists or not.
- Defaults to "".
- type: string
- valueFrom:
- description: Source for the environment variable's value. Cannot
- be used if value is not empty.
- properties:
- configMapKeyRef:
- description: Selects a key of a ConfigMap.
- properties:
- key:
- description: The key to select.
- type: string
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the ConfigMap or its key
- must be defined
- type: boolean
- required:
- - key
- type: object
- x-kubernetes-map-type: atomic
- fieldRef:
- description: |-
- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
- spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
- properties:
- apiVersion:
- description: Version of the schema the FieldPath is
- written in terms of, defaults to "v1".
- type: string
- fieldPath:
- description: Path of the field to select in the specified
- API version.
- type: string
- required:
- - fieldPath
- type: object
- x-kubernetes-map-type: atomic
- resourceFieldRef:
- description: |-
- Selects a resource of the container: only resources limits and requests
- (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- properties:
- containerName:
- description: 'Container name: required for volumes,
- optional for env vars'
- type: string
- divisor:
- anyOf:
- - type: integer
- - type: string
- description: Specifies the output format of the exposed
- resources, defaults to "1"
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- resource:
- description: 'Required: resource to select'
- type: string
- required:
- - resource
- type: object
- x-kubernetes-map-type: atomic
- secretKeyRef:
- description: Selects a key of a secret in the pod's namespace
- properties:
- key:
- description: The key of the secret to select from. Must
- be a valid secret key.
- type: string
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the Secret or its key must
- be defined
- type: boolean
- required:
- - key
- type: object
- x-kubernetes-map-type: atomic
- type: object
- required:
- - name
- type: object
- type: array
- envFrom:
- description: EnvFrom Extra environment variables from remote source
- (ConfigMaps, Secrets...).
- items:
- description: EnvFromSource represents the source of a set of ConfigMaps
- properties:
- configMapRef:
- description: The ConfigMap to select from
- properties:
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the ConfigMap must be defined
- type: boolean
- type: object
- x-kubernetes-map-type: atomic
- prefix:
- description: An optional identifier to prepend to each key in
- the ConfigMap. Must be a C_IDENTIFIER.
- type: string
- secretRef:
- description: The Secret to select from
- properties:
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the Secret must be defined
- type: boolean
- type: object
- x-kubernetes-map-type: atomic
- type: object
- type: array
- extraCommonConfig:
- description: |-
- ExtraCommonConfig References to ConfigMaps holding more configuration files to mount to the
- common configuration path.
- items:
- description: ObjectReference contains enough information to let
- you inspect or modify the referred object.
- properties:
- apiVersion:
- description: API version of the referent.
- type: string
- fieldPath:
- description: |-
- If referring to a piece of an object instead of an entire object, this string
- should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
- For example, if the object reference is to a container within a pod, this would take on a value like:
- "spec.containers{name}" (where "name" refers to the name of the container that triggered
- the event) or if no container name is specified "spec.containers[2]" (container with
- index 2 in this pod). This syntax is chosen only to have some well-defined way of
- referencing a part of an object.
- type: string
- kind:
- description: |-
- Kind of the referent.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- namespace:
- description: |-
- Namespace of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
- type: string
- resourceVersion:
- description: |-
- Specific resourceVersion to which this reference is made, if any.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
- type: string
- uid:
- description: |-
- UID of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
- type: string
- type: object
- x-kubernetes-map-type: atomic
- type: array
- forceDeleteStsPodOnError:
- default: true
- description: |-
- ForceDeleteStsPodOnError Delete the StatefulSet's pods if the StatefulSet is set to ordered ready.
- issue: https://github.com/kubernetes/kubernetes/issues/67250
- doc: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#forced-rollback
- type: boolean
- hdfs-site.xml:
- description: HdfsSite Contents of `hdfs-site.xml`.
- type: string
- ignored:
- default: false
- description: |-
- Ignored is now deprecated API. In order to avoid reconciliation of objects use the
- `druid.apache.org/ignored: "true"` annotation.
- type: boolean
- image:
- description: Image Required here or at the NodeSpec level.
- type: string
- imagePullPolicy:
- default: IfNotPresent
- description: ImagePullPolicy
- type: string
- imagePullSecrets:
- description: ImagePullSecrets
- items:
- description: |-
- LocalObjectReference contains enough information to let you locate the
- referenced object inside the same namespace.
- properties:
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- type: object
- x-kubernetes-map-type: atomic
- type: array
- jvm.options:
- description: JvmOptions Contents of the shared `jvm.options` configuration
- file for druid JVM processes.
- type: string
- livenessProbe:
- description: |-
- LivenessProbe
- Port is set to `druid.port` if not specified with httpGet handler.
- properties:
- exec:
- description: Exec specifies the action to take.
- properties:
- command:
- description: |-
- Command is the command line to execute inside the container, the working directory for the
- command is root ('/') in the container's filesystem. The command is simply exec'd, it is
- not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
- a shell, you need to explicitly call out to that shell.
- Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- items:
- type: string
- type: array
- type: object
- failureThreshold:
- description: |-
- Minimum consecutive failures for the probe to be considered failed after having succeeded.
- Defaults to 3. Minimum value is 1.
- format: int32
- type: integer
- grpc:
- description: GRPC specifies an action involving a GRPC port.
- properties:
- port:
- description: Port number of the gRPC service. Number must
- be in the range 1 to 65535.
- format: int32
- type: integer
- service:
- default: ""
- description: |-
- Service is the name of the service to place in the gRPC HealthCheckRequest
- (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
-
- If this is not specified, the default behavior is defined by gRPC.
- type: string
- required:
- - port
- type: object
- httpGet:
- description: HTTPGet specifies the http request to perform.
- properties:
- host:
- description: |-
- Host name to connect to, defaults to the pod IP. You probably want to set
- "Host" in httpHeaders instead.
- type: string
- httpHeaders:
- description: Custom headers to set in the request. HTTP allows
- repeated headers.
- items:
- description: HTTPHeader describes a custom header to be
- used in HTTP probes
- properties:
- name:
- description: |-
- The header field name.
- This will be canonicalized upon output, so case-variant names will be understood as the same header.
- type: string
- value:
- description: The header field value
- type: string
- required:
- - name
- - value
- type: object
- type: array
- path:
- description: Path to access on the HTTP server.
- type: string
- port:
- anyOf:
- - type: integer
- - type: string
- description: |-
- Name or number of the port to access on the container.
- Number must be in the range 1 to 65535.
- Name must be an IANA_SVC_NAME.
- x-kubernetes-int-or-string: true
- scheme:
- description: |-
- Scheme to use for connecting to the host.
- Defaults to HTTP.
- type: string
- required:
- - port
- type: object
- initialDelaySeconds:
- description: |-
- Number of seconds after the container has started before liveness probes are initiated.
- More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- format: int32
- type: integer
- periodSeconds:
- description: |-
- How often (in seconds) to perform the probe.
- Default to 10 seconds. Minimum value is 1.
- format: int32
- type: integer
- successThreshold:
- description: |-
- Minimum consecutive successes for the probe to be considered successful after having failed.
- Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
- format: int32
- type: integer
- tcpSocket:
- description: TCPSocket specifies an action involving a TCP port.
- properties:
- host:
- description: 'Optional: Host name to connect to, defaults
- to the pod IP.'
- type: string
- port:
- anyOf:
- - type: integer
- - type: string
- description: |-
- Number or name of the port to access on the container.
- Number must be in the range 1 to 65535.
- Name must be an IANA_SVC_NAME.
- x-kubernetes-int-or-string: true
- required:
- - port
- type: object
- terminationGracePeriodSeconds:
- description: |-
- Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
- The grace period is the duration in seconds after the processes running in the pod are sent
- a termination signal and the time when the processes are forcibly halted with a kill signal.
- Set this value longer than the expected cleanup time for your process.
- If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
- value overrides the value provided by the pod spec.
- Value must be non-negative integer. The value zero indicates stop immediately via
- the kill signal (no opportunity to shut down).
- This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
- Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
- format: int64
- type: integer
- timeoutSeconds:
- description: |-
- Number of seconds after which the probe times out.
- Defaults to 1 second. Minimum value is 1.
- More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- format: int32
- type: integer
- type: object
- log4j.config:
- description: Log4jConfig contents `log4j.config` configuration file.
- type: string
- metadataStore:
- description: 'MetadataStore IGNORED (Future API): In order to make
- Druid dependency setup extensible from within Druid operator.'
- properties:
- spec:
- description: |-
- RawMessage is a raw encoded JSON value.
- It implements [Marshaler] and [Unmarshaler] and can
- be used to delay JSON decoding or precompute a JSON encoding.
- format: byte
- type: string
- type:
- type: string
- required:
- - spec
- - type
- type: object
- metricDimensions.json:
- description: |-
- DimensionsMapPath Custom Dimension Map Path for statsd emitter.
- stastd documentation is described in the following documentation:
- https://druid.apache.org/docs/latest/development/extensions-contrib/statsd.html
- type: string
- nodeSelector:
- additionalProperties:
- type: string
- description: NodeSelector Kubernetes native `nodeSelector` specification.
- type: object
- nodes:
- additionalProperties:
- description: |-
- DruidNodeSpec Specification of `Druid` Node type and its configurations.
- The key in following map can be arbitrary string that helps you identify resources for a specific nodeSpec.
- It is used in the Kubernetes resources' names, so it must be compliant with restrictions
- placed on Kubernetes resource names:
- https://kubernetes.io/docs/concepts/overview/working-with-objects/names/
- properties:
- additionalContainer:
- description: Operator deploys the sidecar container based on
- these properties.
- items:
- description: |-
- AdditionalContainer defines additional sidecar containers to be deployed with the `Druid` pods.
- (will be part of Kubernetes native in the future:
- https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/753-sidecar-containers/README.md#summary).
- properties:
- args:
- description: Args Arguments to call the command.
- items:
- type: string
- type: array
- command:
- description: Command command for the additional container.
- items:
- type: string
- type: array
- containerName:
- description: ContainerName name of the additional container.
- type: string
- env:
- description: Env Environment variables for the additional
- container.
- items:
- description: EnvVar represents an environment variable
- present in a Container.
- properties:
- name:
- description: Name of the environment variable. Must
- be a C_IDENTIFIER.
- type: string
- value:
- description: |-
- Variable references $(VAR_NAME) are expanded
- using the previously defined environment variables in the container and
- any service environment variables. If a variable cannot be resolved,
- the reference in the input string will be unchanged. Double $$ are reduced
- to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
- "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
- Escaped references will never be expanded, regardless of whether the variable
- exists or not.
- Defaults to "".
- type: string
- valueFrom:
- description: Source for the environment variable's
- value. Cannot be used if value is not empty.
- properties:
- configMapKeyRef:
- description: Selects a key of a ConfigMap.
- properties:
- key:
- description: The key to select.
- type: string
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the ConfigMap
- or its key must be defined
- type: boolean
- required:
- - key
- type: object
- x-kubernetes-map-type: atomic
- fieldRef:
- description: |-
- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
- spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
- properties:
- apiVersion:
- description: Version of the schema the FieldPath
- is written in terms of, defaults to "v1".
- type: string
- fieldPath:
- description: Path of the field to select
- in the specified API version.
- type: string
- required:
- - fieldPath
- type: object
- x-kubernetes-map-type: atomic
- resourceFieldRef:
- description: |-
- Selects a resource of the container: only resources limits and requests
- (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- properties:
- containerName:
- description: 'Container name: required for
- volumes, optional for env vars'
- type: string
- divisor:
- anyOf:
- - type: integer
- - type: string
- description: Specifies the output format
- of the exposed resources, defaults to
- "1"
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- resource:
- description: 'Required: resource to select'
- type: string
- required:
- - resource
- type: object
- x-kubernetes-map-type: atomic
- secretKeyRef:
- description: Selects a key of a secret in the
- pod's namespace
- properties:
- key:
- description: The key of the secret to select
- from. Must be a valid secret key.
- type: string
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the Secret
- or its key must be defined
- type: boolean
- required:
- - key
- type: object
- x-kubernetes-map-type: atomic
- type: object
- required:
- - name
- type: object
- type: array
- envFrom:
- description: EnvFrom Extra environment variables from
- remote source (ConfigMaps, Secrets...).
- items:
- description: EnvFromSource represents the source of
- a set of ConfigMaps
- properties:
- configMapRef:
- description: The ConfigMap to select from
- properties:
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the ConfigMap must
- be defined
- type: boolean
- type: object
- x-kubernetes-map-type: atomic
- prefix:
- description: An optional identifier to prepend to
- each key in the ConfigMap. Must be a C_IDENTIFIER.
- type: string
- secretRef:
- description: The Secret to select from
- properties:
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the Secret must
- be defined
- type: boolean
- type: object
- x-kubernetes-map-type: atomic
- type: object
- type: array
- image:
- description: Image Image of the additional container.
- type: string
- imagePullPolicy:
- description: ImagePullPolicy If not present, will be taken
- from top level spec.
- type: string
- resources:
- description: Resources Kubernetes Native `resources` specification.
- properties:
- claims:
- description: |-
- Claims lists the names of resources, defined in spec.resourceClaims,
- that are used by this container.
-
- This is an alpha field and requires enabling the
- DynamicResourceAllocation feature gate.
-
- This field is immutable. It can only be set for containers.
- items:
- description: ResourceClaim references one entry
- in PodSpec.ResourceClaims.
- properties:
- name:
- description: |-
- Name must match the name of one entry in pod.spec.resourceClaims of
- the Pod where this field is used. It makes that resource available
- inside a container.
- type: string
- required:
- - name
- type: object
- type: array
- x-kubernetes-list-map-keys:
- - name
- x-kubernetes-list-type: map
- limits:
- additionalProperties:
- anyOf:
- - type: integer
- - type: string
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- description: |-
- Limits describes the maximum amount of compute resources allowed.
- More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- type: object
- requests:
- additionalProperties:
- anyOf:
- - type: integer
- - type: string
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- description: |-
- Requests describes the minimum amount of compute resources required.
- If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
- otherwise to an implementation-defined value. Requests cannot exceed Limits.
- More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- type: object
- type: object
- runAsInit:
- description: RunAsInit indicate whether this should be
- an init container.
- type: boolean
- securityContext:
- description: ContainerSecurityContext If not present,
- will be taken from top level pod.
- properties:
- allowPrivilegeEscalation:
- description: |-
- AllowPrivilegeEscalation controls whether a process can gain more
- privileges than its parent process. This bool directly controls if
- the no_new_privs flag will be set on the container process.
- AllowPrivilegeEscalation is true always when the container is:
- 1) run as Privileged
- 2) has CAP_SYS_ADMIN
- Note that this field cannot be set when spec.os.name is windows.
- type: boolean
- capabilities:
- description: |-
- The capabilities to add/drop when running containers.
- Defaults to the default set of capabilities granted by the container runtime.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- add:
- description: Added capabilities
- items:
- description: Capability represent POSIX capabilities
- type
- type: string
- type: array
- drop:
- description: Removed capabilities
- items:
- description: Capability represent POSIX capabilities
- type
- type: string
- type: array
- type: object
- privileged:
- description: |-
- Run container in privileged mode.
- Processes in privileged containers are essentially equivalent to root on the host.
- Defaults to false.
- Note that this field cannot be set when spec.os.name is windows.
- type: boolean
- procMount:
- description: |-
- procMount denotes the type of proc mount to use for the containers.
- The default is DefaultProcMount which uses the container runtime defaults for
- readonly paths and masked paths.
- This requires the ProcMountType feature flag to be enabled.
- Note that this field cannot be set when spec.os.name is windows.
- type: string
- readOnlyRootFilesystem:
- description: |-
- Whether this container has a read-only root filesystem.
- Default is false.
- Note that this field cannot be set when spec.os.name is windows.
- type: boolean
- runAsGroup:
- description: |-
- The GID to run the entrypoint of the container process.
- Uses runtime default if unset.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is windows.
- format: int64
- type: integer
- runAsNonRoot:
- description: |-
- Indicates that the container must run as a non-root user.
- If true, the Kubelet will validate the image at runtime to ensure that it
- does not run as UID 0 (root) and fail to start the container if it does.
- If unset or false, no such validation will be performed.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- type: boolean
- runAsUser:
- description: |-
- The UID to run the entrypoint of the container process.
- Defaults to user specified in image metadata if unspecified.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is windows.
- format: int64
- type: integer
- seLinuxOptions:
- description: |-
- The SELinux context to be applied to the container.
- If unspecified, the container runtime will allocate a random SELinux context for each
- container. May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- level:
- description: Level is SELinux level label that
- applies to the container.
- type: string
- role:
- description: Role is a SELinux role label that
- applies to the container.
- type: string
- type:
- description: Type is a SELinux type label that
- applies to the container.
- type: string
- user:
- description: User is a SELinux user label that
- applies to the container.
- type: string
- type: object
- seccompProfile:
- description: |-
- The seccomp options to use by this container. If seccomp options are
- provided at both the pod & container level, the container options
- override the pod options.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- localhostProfile:
- description: |-
- localhostProfile indicates a profile defined in a file on the node should be used.
- The profile must be preconfigured on the node to work.
- Must be a descending path, relative to the kubelet's configured seccomp profile location.
- Must only be set if type is "Localhost".
- type: string
- type:
- description: |-
- type indicates which kind of seccomp profile will be applied.
- Valid options are:
-
- Localhost - a profile defined in a file on the node should be used.
- RuntimeDefault - the container runtime default profile should be used.
- Unconfined - no profile should be applied.
- type: string
- required:
- - type
- type: object
- windowsOptions:
- description: |-
- The Windows specific settings applied to all containers.
- If unspecified, the options from the PodSecurityContext will be used.
- If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is linux.
- properties:
- gmsaCredentialSpec:
- description: |-
- GMSACredentialSpec is where the GMSA admission webhook
- (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
- GMSA credential spec named by the GMSACredentialSpecName field.
- type: string
- gmsaCredentialSpecName:
- description: GMSACredentialSpecName is the name
- of the GMSA credential spec to use.
- type: string
- hostProcess:
- description: |-
- HostProcess determines if a container should be run as a 'Host Process' container.
- This field is alpha-level and will only be honored by components that enable the
- WindowsHostProcessContainers feature flag. Setting this field without the feature
- flag will result in errors when validating the Pod. All of a Pod's containers must
- have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
- containers and non-HostProcess containers). In addition, if HostProcess is true
- then HostNetwork must also be set to true.
- type: boolean
- runAsUserName:
- description: |-
- The UserName in Windows to run the entrypoint of the container process.
- Defaults to the user specified in image metadata if unspecified.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- type: string
- type: object
- type: object
- volumeMounts:
- description: VolumeMounts Kubernetes Native `VolumeMount`
- specification.
- items:
- description: VolumeMount describes a mounting of a Volume
- within a container.
- properties:
- mountPath:
- description: |-
- Path within the container at which the volume should be mounted. Must
- not contain ':'.
- type: string
- mountPropagation:
- description: |-
- mountPropagation determines how mounts are propagated from the host
- to container and the other way around.
- When not set, MountPropagationNone is used.
- This field is beta in 1.10.
- type: string
- name:
- description: This must match the Name of a Volume.
- type: string
- readOnly:
- description: |-
- Mounted read-only if true, read-write otherwise (false or unspecified).
- Defaults to false.
- type: boolean
- subPath:
- description: |-
- Path within the volume from which the container's volume should be mounted.
- Defaults to "" (volume's root).
- type: string
- subPathExpr:
- description: |-
- Expanded path within the volume from which the container's volume should be mounted.
- Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
- Defaults to "" (volume's root).
- SubPathExpr and SubPath are mutually exclusive.
- type: string
- required:
- - mountPath
- - name
- type: object
- type: array
- required:
- - command
- - containerName
- - image
- type: object
- type: array
- affinity:
- description: Affinity Kubernetes native `affinity` specification.
- properties:
- nodeAffinity:
- description: Describes node affinity scheduling rules for
- the pod.
- properties:
- preferredDuringSchedulingIgnoredDuringExecution:
- description: |-
- The scheduler will prefer to schedule pods to nodes that satisfy
- the affinity expressions specified by this field, but it may choose
- a node that violates one or more of the expressions. The node that is
- most preferred is the one with the greatest sum of weights, i.e.
- for each node that meets all of the scheduling requirements (resource
- request, requiredDuringScheduling affinity expressions, etc.),
- compute a sum by iterating through the elements of this field and adding
- "weight" to the sum if the node matches the corresponding matchExpressions; the
- node(s) with the highest sum are the most preferred.
- items:
- description: |-
- An empty preferred scheduling term matches all objects with implicit weight 0
- (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
- properties:
- preference:
- description: A node selector term, associated
- with the corresponding weight.
- properties:
- matchExpressions:
- description: A list of node selector requirements
- by node's labels.
- items:
- description: |-
- A node selector requirement is a selector that contains values, a key, and an operator
- that relates the key and values.
- properties:
- key:
- description: The label key that the
- selector applies to.
- type: string
- operator:
- description: |-
- Represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
- type: string
- values:
- description: |-
- An array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. If the operator is Gt or Lt, the values
- array must have a single element, which will be interpreted as an integer.
- This array is replaced during a strategic merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchFields:
- description: A list of node selector requirements
- by node's fields.
- items:
- description: |-
- A node selector requirement is a selector that contains values, a key, and an operator
- that relates the key and values.
- properties:
- key:
- description: The label key that the
- selector applies to.
- type: string
- operator:
- description: |-
- Represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
- type: string
- values:
- description: |-
- An array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. If the operator is Gt or Lt, the values
- array must have a single element, which will be interpreted as an integer.
- This array is replaced during a strategic merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- type: object
- x-kubernetes-map-type: atomic
- weight:
- description: Weight associated with matching the
- corresponding nodeSelectorTerm, in the range
- 1-100.
- format: int32
- type: integer
- required:
- - preference
- - weight
- type: object
- type: array
- requiredDuringSchedulingIgnoredDuringExecution:
- description: |-
- If the affinity requirements specified by this field are not met at
- scheduling time, the pod will not be scheduled onto the node.
- If the affinity requirements specified by this field cease to be met
- at some point during pod execution (e.g. due to an update), the system
- may or may not try to eventually evict the pod from its node.
- properties:
- nodeSelectorTerms:
- description: Required. A list of node selector terms.
- The terms are ORed.
- items:
- description: |-
- A null or empty node selector term matches no objects. The requirements of
- them are ANDed.
- The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
- properties:
- matchExpressions:
- description: A list of node selector requirements
- by node's labels.
- items:
- description: |-
- A node selector requirement is a selector that contains values, a key, and an operator
- that relates the key and values.
- properties:
- key:
- description: The label key that the
- selector applies to.
- type: string
- operator:
- description: |-
- Represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
- type: string
- values:
- description: |-
- An array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. If the operator is Gt or Lt, the values
- array must have a single element, which will be interpreted as an integer.
- This array is replaced during a strategic merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchFields:
- description: A list of node selector requirements
- by node's fields.
- items:
- description: |-
- A node selector requirement is a selector that contains values, a key, and an operator
- that relates the key and values.
- properties:
- key:
- description: The label key that the
- selector applies to.
- type: string
- operator:
- description: |-
- Represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
- type: string
- values:
- description: |-
- An array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. If the operator is Gt or Lt, the values
- array must have a single element, which will be interpreted as an integer.
- This array is replaced during a strategic merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- type: object
- x-kubernetes-map-type: atomic
- type: array
- required:
- - nodeSelectorTerms
- type: object
- x-kubernetes-map-type: atomic
- type: object
- podAffinity:
- description: Describes pod affinity scheduling rules (e.g.
- co-locate this pod in the same node, zone, etc. as some
- other pod(s)).
- properties:
- preferredDuringSchedulingIgnoredDuringExecution:
- description: |-
- The scheduler will prefer to schedule pods to nodes that satisfy
- the affinity expressions specified by this field, but it may choose
- a node that violates one or more of the expressions. The node that is
- most preferred is the one with the greatest sum of weights, i.e.
- for each node that meets all of the scheduling requirements (resource
- request, requiredDuringScheduling affinity expressions, etc.),
- compute a sum by iterating through the elements of this field and adding
- "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
- node(s) with the highest sum are the most preferred.
- items:
- description: The weights of all of the matched WeightedPodAffinityTerm
- fields are added per-node to find the most preferred
- node(s)
- properties:
- podAffinityTerm:
- description: Required. A pod affinity term, associated
- with the corresponding weight.
- properties:
- labelSelector:
- description: A label query over a set of resources,
- in this case pods.
- properties:
- matchExpressions:
- description: matchExpressions is a list
- of label selector requirements. The
- requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key
- that the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaceSelector:
- description: |-
- A label query over the set of namespaces that the term applies to.
- The term is applied to the union of the namespaces selected by this field
- and the ones listed in the namespaces field.
- null selector and null or empty namespaces list means "this pod's namespace".
- An empty selector ({}) matches all namespaces.
- properties:
- matchExpressions:
- description: matchExpressions is a list
- of label selector requirements. The
- requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key
- that the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaces:
- description: |-
- namespaces specifies a static list of namespace names that the term applies to.
- The term is applied to the union of the namespaces listed in this field
- and the ones selected by namespaceSelector.
- null or empty namespaces list and null namespaceSelector means "this pod's namespace".
- items:
- type: string
- type: array
- topologyKey:
- description: |-
- This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
- the labelSelector in the specified namespaces, where co-located is defined as running on a node
- whose value of the label with key topologyKey matches that of any node on which any of the
- selected pods is running.
- Empty topologyKey is not allowed.
- type: string
- required:
- - topologyKey
- type: object
- weight:
- description: |-
- weight associated with matching the corresponding podAffinityTerm,
- in the range 1-100.
- format: int32
- type: integer
- required:
- - podAffinityTerm
- - weight
- type: object
- type: array
- requiredDuringSchedulingIgnoredDuringExecution:
- description: |-
- If the affinity requirements specified by this field are not met at
- scheduling time, the pod will not be scheduled onto the node.
- If the affinity requirements specified by this field cease to be met
- at some point during pod execution (e.g. due to a pod label update), the
- system may or may not try to eventually evict the pod from its node.
- When there are multiple elements, the lists of nodes corresponding to each
- podAffinityTerm are intersected, i.e. all terms must be satisfied.
- items:
- description: |-
- Defines a set of pods (namely those matching the labelSelector
- relative to the given namespace(s)) that this pod should be
- co-located (affinity) or not co-located (anti-affinity) with,
- where co-located is defined as running on a node whose value of
- the label with key <topologyKey> matches that of any node on which
- a pod of the set of pods is running
- properties:
- labelSelector:
- description: A label query over a set of resources,
- in this case pods.
- properties:
- matchExpressions:
- description: matchExpressions is a list of
- label selector requirements. The requirements
- are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that
- the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaceSelector:
- description: |-
- A label query over the set of namespaces that the term applies to.
- The term is applied to the union of the namespaces selected by this field
- and the ones listed in the namespaces field.
- null selector and null or empty namespaces list means "this pod's namespace".
- An empty selector ({}) matches all namespaces.
- properties:
- matchExpressions:
- description: matchExpressions is a list of
- label selector requirements. The requirements
- are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that
- the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaces:
- description: |-
- namespaces specifies a static list of namespace names that the term applies to.
- The term is applied to the union of the namespaces listed in this field
- and the ones selected by namespaceSelector.
- null or empty namespaces list and null namespaceSelector means "this pod's namespace".
- items:
- type: string
- type: array
- topologyKey:
- description: |-
- This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
- the labelSelector in the specified namespaces, where co-located is defined as running on a node
- whose value of the label with key topologyKey matches that of any node on which any of the
- selected pods is running.
- Empty topologyKey is not allowed.
- type: string
- required:
- - topologyKey
- type: object
- type: array
- type: object
- podAntiAffinity:
- description: Describes pod anti-affinity scheduling rules
- (e.g. avoid putting this pod in the same node, zone, etc.
- as some other pod(s)).
- properties:
- preferredDuringSchedulingIgnoredDuringExecution:
- description: |-
- The scheduler will prefer to schedule pods to nodes that satisfy
- the anti-affinity expressions specified by this field, but it may choose
- a node that violates one or more of the expressions. The node that is
- most preferred is the one with the greatest sum of weights, i.e.
- for each node that meets all of the scheduling requirements (resource
- request, requiredDuringScheduling anti-affinity expressions, etc.),
- compute a sum by iterating through the elements of this field and adding
- "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
- node(s) with the highest sum are the most preferred.
- items:
- description: The weights of all of the matched WeightedPodAffinityTerm
- fields are added per-node to find the most preferred
- node(s)
- properties:
- podAffinityTerm:
- description: Required. A pod affinity term, associated
- with the corresponding weight.
- properties:
- labelSelector:
- description: A label query over a set of resources,
- in this case pods.
- properties:
- matchExpressions:
- description: matchExpressions is a list
- of label selector requirements. The
- requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key
- that the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaceSelector:
- description: |-
- A label query over the set of namespaces that the term applies to.
- The term is applied to the union of the namespaces selected by this field
- and the ones listed in the namespaces field.
- null selector and null or empty namespaces list means "this pod's namespace".
- An empty selector ({}) matches all namespaces.
- properties:
- matchExpressions:
- description: matchExpressions is a list
- of label selector requirements. The
- requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key
- that the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaces:
- description: |-
- namespaces specifies a static list of namespace names that the term applies to.
- The term is applied to the union of the namespaces listed in this field
- and the ones selected by namespaceSelector.
- null or empty namespaces list and null namespaceSelector means "this pod's namespace".
- items:
- type: string
- type: array
- topologyKey:
- description: |-
- This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
- the labelSelector in the specified namespaces, where co-located is defined as running on a node
- whose value of the label with key topologyKey matches that of any node on which any of the
- selected pods is running.
- Empty topologyKey is not allowed.
- type: string
- required:
- - topologyKey
- type: object
- weight:
- description: |-
- weight associated with matching the corresponding podAffinityTerm,
- in the range 1-100.
- format: int32
- type: integer
- required:
- - podAffinityTerm
- - weight
- type: object
- type: array
- requiredDuringSchedulingIgnoredDuringExecution:
- description: |-
- If the anti-affinity requirements specified by this field are not met at
- scheduling time, the pod will not be scheduled onto the node.
- If the anti-affinity requirements specified by this field cease to be met
- at some point during pod execution (e.g. due to a pod label update), the
- system may or may not try to eventually evict the pod from its node.
- When there are multiple elements, the lists of nodes corresponding to each
- podAffinityTerm are intersected, i.e. all terms must be satisfied.
- items:
- description: |-
- Defines a set of pods (namely those matching the labelSelector
- relative to the given namespace(s)) that this pod should be
- co-located (affinity) or not co-located (anti-affinity) with,
- where co-located is defined as running on a node whose value of
- the label with key <topologyKey> matches that of any node on which
- a pod of the set of pods is running
- properties:
- labelSelector:
- description: A label query over a set of resources,
- in this case pods.
- properties:
- matchExpressions:
- description: matchExpressions is a list of
- label selector requirements. The requirements
- are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that
- the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaceSelector:
- description: |-
- A label query over the set of namespaces that the term applies to.
- The term is applied to the union of the namespaces selected by this field
- and the ones listed in the namespaces field.
- null selector and null or empty namespaces list means "this pod's namespace".
- An empty selector ({}) matches all namespaces.
- properties:
- matchExpressions:
- description: matchExpressions is a list of
- label selector requirements. The requirements
- are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that
- the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- namespaces:
- description: |-
- namespaces specifies a static list of namespace names that the term applies to.
- The term is applied to the union of the namespaces listed in this field
- and the ones selected by namespaceSelector.
- null or empty namespaces list and null namespaceSelector means "this pod's namespace".
- items:
- type: string
- type: array
- topologyKey:
- description: |-
- This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
- the labelSelector in the specified namespaces, where co-located is defined as running on a node
- whose value of the label with key topologyKey matches that of any node on which any of the
- selected pods is running.
- Empty topologyKey is not allowed.
- type: string
- required:
- - topologyKey
- type: object
- type: array
- type: object
- type: object
- containerSecurityContext:
- description: ContainerSecurityContext
- properties:
- allowPrivilegeEscalation:
- description: |-
- AllowPrivilegeEscalation controls whether a process can gain more
- privileges than its parent process. This bool directly controls if
- the no_new_privs flag will be set on the container process.
- AllowPrivilegeEscalation is true always when the container is:
- 1) run as Privileged
- 2) has CAP_SYS_ADMIN
- Note that this field cannot be set when spec.os.name is windows.
- type: boolean
- capabilities:
- description: |-
- The capabilities to add/drop when running containers.
- Defaults to the default set of capabilities granted by the container runtime.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- add:
- description: Added capabilities
- items:
- description: Capability represent POSIX capabilities
- type
- type: string
- type: array
- drop:
- description: Removed capabilities
- items:
- description: Capability represent POSIX capabilities
- type
- type: string
- type: array
- type: object
- privileged:
- description: |-
- Run container in privileged mode.
- Processes in privileged containers are essentially equivalent to root on the host.
- Defaults to false.
- Note that this field cannot be set when spec.os.name is windows.
- type: boolean
- procMount:
- description: |-
- procMount denotes the type of proc mount to use for the containers.
- The default is DefaultProcMount which uses the container runtime defaults for
- readonly paths and masked paths.
- This requires the ProcMountType feature flag to be enabled.
- Note that this field cannot be set when spec.os.name is windows.
- type: string
- readOnlyRootFilesystem:
- description: |-
- Whether this container has a read-only root filesystem.
- Default is false.
- Note that this field cannot be set when spec.os.name is windows.
- type: boolean
- runAsGroup:
- description: |-
- The GID to run the entrypoint of the container process.
- Uses runtime default if unset.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is windows.
- format: int64
- type: integer
- runAsNonRoot:
- description: |-
- Indicates that the container must run as a non-root user.
- If true, the Kubelet will validate the image at runtime to ensure that it
- does not run as UID 0 (root) and fail to start the container if it does.
- If unset or false, no such validation will be performed.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- type: boolean
- runAsUser:
- description: |-
- The UID to run the entrypoint of the container process.
- Defaults to user specified in image metadata if unspecified.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is windows.
- format: int64
- type: integer
- seLinuxOptions:
- description: |-
- The SELinux context to be applied to the container.
- If unspecified, the container runtime will allocate a random SELinux context for each
- container. May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- level:
- description: Level is SELinux level label that applies
- to the container.
- type: string
- role:
- description: Role is a SELinux role label that applies
- to the container.
- type: string
- type:
- description: Type is a SELinux type label that applies
- to the container.
- type: string
- user:
- description: User is a SELinux user label that applies
- to the container.
- type: string
- type: object
- seccompProfile:
- description: |-
- The seccomp options to use by this container. If seccomp options are
- provided at both the pod & container level, the container options
- override the pod options.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- localhostProfile:
- description: |-
- localhostProfile indicates a profile defined in a file on the node should be used.
- The profile must be preconfigured on the node to work.
- Must be a descending path, relative to the kubelet's configured seccomp profile location.
- Must only be set if type is "Localhost".
- type: string
- type:
- description: |-
- type indicates which kind of seccomp profile will be applied.
- Valid options are:
-
- Localhost - a profile defined in a file on the node should be used.
- RuntimeDefault - the container runtime default profile should be used.
- Unconfined - no profile should be applied.
- type: string
- required:
- - type
- type: object
- windowsOptions:
- description: |-
- The Windows specific settings applied to all containers.
- If unspecified, the options from the PodSecurityContext will be used.
- If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is linux.
- properties:
- gmsaCredentialSpec:
- description: |-
- GMSACredentialSpec is where the GMSA admission webhook
- (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
- GMSA credential spec named by the GMSACredentialSpecName field.
- type: string
- gmsaCredentialSpecName:
- description: GMSACredentialSpecName is the name of the
- GMSA credential spec to use.
- type: string
- hostProcess:
- description: |-
- HostProcess determines if a container should be run as a 'Host Process' container.
- This field is alpha-level and will only be honored by components that enable the
- WindowsHostProcessContainers feature flag. Setting this field without the feature
- flag will result in errors when validating the Pod. All of a Pod's containers must
- have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
- containers and non-HostProcess containers). In addition, if HostProcess is true
- then HostNetwork must also be set to true.
- type: boolean
- runAsUserName:
- description: |-
- The UserName in Windows to run the entrypoint of the container process.
- Defaults to the user specified in image metadata if unspecified.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- type: string
- type: object
- type: object
- dnsConfig:
- description: See v1.PodDNSConfig for more details.
- properties:
- nameservers:
- description: |-
- A list of DNS name server IP addresses.
- This will be appended to the base nameservers generated from DNSPolicy.
- Duplicated nameservers will be removed.
- items:
- type: string
- type: array
- options:
- description: |-
- A list of DNS resolver options.
- This will be merged with the base options generated from DNSPolicy.
- Duplicated entries will be removed. Resolution options given in Options
- will override those that appear in the base DNSPolicy.
- items:
- description: PodDNSConfigOption defines DNS resolver options
- of a pod.
- properties:
- name:
- description: Required.
- type: string
- value:
- type: string
- type: object
- type: array
- searches:
- description: |-
- A list of DNS search domains for host-name lookup.
- This will be appended to the base search paths generated from DNSPolicy.
- Duplicated search paths will be removed.
- items:
- type: string
- type: array
- type: object
- dnsPolicy:
- description: See v1.DNSPolicy for more details.
- type: string
- druid.port:
- description: DruidPort Used by the `Druid` process.
- format: int32
- type: integer
- dynamicConfig:
- description: Dynamic Configurations for Druid. Applied through
- the dynamic configuration API.
- type: object
- x-kubernetes-preserve-unknown-fields: true
- env:
- description: Env Environment variables for druid containers.
- items:
- description: EnvVar represents an environment variable present
- in a Container.
- properties:
- name:
- description: Name of the environment variable. Must be
- a C_IDENTIFIER.
- type: string
- value:
- description: |-
- Variable references $(VAR_NAME) are expanded
- using the previously defined environment variables in the container and
- any service environment variables. If a variable cannot be resolved,
- the reference in the input string will be unchanged. Double $$ are reduced
- to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
- "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
- Escaped references will never be expanded, regardless of whether the variable
- exists or not.
- Defaults to "".
- type: string
- valueFrom:
- description: Source for the environment variable's value.
- Cannot be used if value is not empty.
- properties:
- configMapKeyRef:
- description: Selects a key of a ConfigMap.
- properties:
- key:
- description: The key to select.
- type: string
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the ConfigMap or
- its key must be defined
- type: boolean
- required:
- - key
- type: object
- x-kubernetes-map-type: atomic
- fieldRef:
- description: |-
- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
- spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
- properties:
- apiVersion:
- description: Version of the schema the FieldPath
- is written in terms of, defaults to "v1".
- type: string
- fieldPath:
- description: Path of the field to select in the
- specified API version.
- type: string
- required:
- - fieldPath
- type: object
- x-kubernetes-map-type: atomic
- resourceFieldRef:
- description: |-
- Selects a resource of the container: only resources limits and requests
- (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- properties:
- containerName:
- description: 'Container name: required for volumes,
- optional for env vars'
- type: string
- divisor:
- anyOf:
- - type: integer
- - type: string
- description: Specifies the output format of the
- exposed resources, defaults to "1"
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- resource:
- description: 'Required: resource to select'
- type: string
- required:
- - resource
- type: object
- x-kubernetes-map-type: atomic
- secretKeyRef:
- description: Selects a key of a secret in the pod's
- namespace
- properties:
- key:
- description: The key of the secret to select from. Must
- be a valid secret key.
- type: string
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the Secret or its
- key must be defined
- type: boolean
- required:
- - key
- type: object
- x-kubernetes-map-type: atomic
- type: object
- required:
- - name
- type: object
- type: array
- envFrom:
- description: EnvFrom Extra environment variables from remote
- source (ConfigMaps, Secrets...).
- items:
- description: EnvFromSource represents the source of a set
- of ConfigMaps
- properties:
- configMapRef:
- description: The ConfigMap to select from
- properties:
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the ConfigMap must be
- defined
- type: boolean
- type: object
- x-kubernetes-map-type: atomic
- prefix:
- description: An optional identifier to prepend to each
- key in the ConfigMap. Must be a C_IDENTIFIER.
- type: string
- secretRef:
- description: The Secret to select from
- properties:
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- optional:
- description: Specify whether the Secret must be defined
- type: boolean
- type: object
- x-kubernetes-map-type: atomic
- type: object
- type: array
- extra.jvm.options:
- description: ExtraJvmOptions Appends extra jvm options to the
- `JvmOptions` field.
- type: string
- hpAutoscaler:
- description: HPAutoScaler Kubernetes Native `HorizontalPodAutoscaler`
- specification.
- properties:
- behavior:
- description: |-
- behavior configures the scaling behavior of the target
- in both Up and Down directions (scaleUp and scaleDown fields respectively).
- If not set, the default HPAScalingRules for scale up and scale down are used.
- properties:
- scaleDown:
- description: |-
- scaleDown is scaling policy for scaling Down.
- If not set, the default value is to allow to scale down to minReplicas pods, with a
- 300 second stabilization window (i.e., the highest recommendation for
- the last 300sec is used).
- properties:
- policies:
- description: |-
- policies is a list of potential scaling polices which can be used during scaling.
- At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
- items:
- description: HPAScalingPolicy is a single policy
- which must hold true for a specified past interval.
- properties:
- periodSeconds:
- description: |-
- periodSeconds specifies the window of time for which the policy should hold true.
- PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
- format: int32
- type: integer
- type:
- description: type is used to specify the scaling
- policy.
- type: string
- value:
- description: |-
- value contains the amount of change which is permitted by the policy.
- It must be greater than zero
- format: int32
- type: integer
- required:
- - periodSeconds
- - type
- - value
- type: object
- type: array
- x-kubernetes-list-type: atomic
- selectPolicy:
- description: |-
- selectPolicy is used to specify which policy should be used.
- If not set, the default value Max is used.
- type: string
- stabilizationWindowSeconds:
- description: |-
- stabilizationWindowSeconds is the number of seconds for which past recommendations should be
- considered while scaling up or scaling down.
- StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour).
- If not set, use the default values:
- - For scale up: 0 (i.e. no stabilization is done).
- - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
- format: int32
- type: integer
- type: object
- scaleUp:
- description: |-
- scaleUp is scaling policy for scaling Up.
- If not set, the default value is the higher of:
- * increase no more than 4 pods per 60 seconds
- * double the number of pods per 60 seconds
- No stabilization is used.
- properties:
- policies:
- description: |-
- policies is a list of potential scaling polices which can be used during scaling.
- At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
- items:
- description: HPAScalingPolicy is a single policy
- which must hold true for a specified past interval.
- properties:
- periodSeconds:
- description: |-
- periodSeconds specifies the window of time for which the policy should hold true.
- PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
- format: int32
- type: integer
- type:
- description: type is used to specify the scaling
- policy.
- type: string
- value:
- description: |-
- value contains the amount of change which is permitted by the policy.
- It must be greater than zero
- format: int32
- type: integer
- required:
- - periodSeconds
- - type
- - value
- type: object
- type: array
- x-kubernetes-list-type: atomic
- selectPolicy:
- description: |-
- selectPolicy is used to specify which policy should be used.
- If not set, the default value Max is used.
- type: string
- stabilizationWindowSeconds:
- description: |-
- stabilizationWindowSeconds is the number of seconds for which past recommendations should be
- considered while scaling up or scaling down.
- StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour).
- If not set, use the default values:
- - For scale up: 0 (i.e. no stabilization is done).
- - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
- format: int32
- type: integer
- type: object
- type: object
- maxReplicas:
- description: |-
- maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
- It cannot be less that minReplicas.
- format: int32
- type: integer
- metrics:
- description: |-
- metrics contains the specifications for which to use to calculate the
- desired replica count (the maximum replica count across all metrics will
- be used). The desired replica count is calculated multiplying the
- ratio between the target value and the current value by the current
- number of pods. Ergo, metrics used must decrease as the pod count is
- increased, and vice-versa. See the individual metric source types for
- more information about how each type of metric must respond.
- If not set, the default metric will be set to 80% average CPU utilization.
- items:
- description: |-
- MetricSpec specifies how to scale based on a single metric
- (only `type` and one other matching field should be set at once).
- properties:
- containerResource:
- description: |-
- containerResource refers to a resource metric (such as those specified in
- requests and limits) known to Kubernetes describing a single container in
- each pod of the current scale target (e.g. CPU or memory). Such metrics are
- built in to Kubernetes, and have special scaling options on top of those
- available to normal per-pod metrics using the "pods" source.
- This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.
- properties:
- container:
- description: container is the name of the container
- in the pods of the scaling target
- type: string
- name:
- description: name is the name of the resource
- in question.
- type: string
- target:
- description: target specifies the target value
- for the given metric
- properties:
- averageUtilization:
- description: |-
- averageUtilization is the target value of the average of the
- resource metric across all relevant pods, represented as a percentage of
- the requested value of the resource for the pods.
- Currently only valid for Resource metric source type
- format: int32
- type: integer
- averageValue:
- anyOf:
- - type: integer
- - type: string
- description: |-
- averageValue is the target value of the average of the
- metric across all relevant pods (as a quantity)
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- type:
- description: type represents whether the metric
- type is Utilization, Value, or AverageValue
- type: string
- value:
- anyOf:
- - type: integer
- - type: string
- description: value is the target value of
- the metric (as a quantity).
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- required:
- - type
- type: object
- required:
- - container
- - name
- - target
- type: object
- external:
- description: |-
- external refers to a global metric that is not associated
- with any Kubernetes object. It allows autoscaling based on information
- coming from components running outside of cluster
- (for example length of queue in cloud messaging service, or
- QPS from loadbalancer running outside of cluster).
- properties:
- metric:
- description: metric identifies the target metric
- by name and selector
- properties:
- name:
- description: name is the name of the given
- metric
- type: string
- selector:
- description: |-
- selector is the string-encoded form of a standard kubernetes label selector for the given metric
- When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
- When unset, just the metricName will be used to gather metrics.
- properties:
- matchExpressions:
- description: matchExpressions is a list
- of label selector requirements. The
- requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key
- that the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- required:
- - name
- type: object
- target:
- description: target specifies the target value
- for the given metric
- properties:
- averageUtilization:
- description: |-
- averageUtilization is the target value of the average of the
- resource metric across all relevant pods, represented as a percentage of
- the requested value of the resource for the pods.
- Currently only valid for Resource metric source type
- format: int32
- type: integer
- averageValue:
- anyOf:
- - type: integer
- - type: string
- description: |-
- averageValue is the target value of the average of the
- metric across all relevant pods (as a quantity)
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- type:
- description: type represents whether the metric
- type is Utilization, Value, or AverageValue
- type: string
- value:
- anyOf:
- - type: integer
- - type: string
- description: value is the target value of
- the metric (as a quantity).
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- required:
- - type
- type: object
- required:
- - metric
- - target
- type: object
- object:
- description: |-
- object refers to a metric describing a single kubernetes object
- (for example, hits-per-second on an Ingress object).
- properties:
- describedObject:
- description: describedObject specifies the descriptions
- of a object,such as kind,name apiVersion
- properties:
- apiVersion:
- description: apiVersion is the API version
- of the referent
- type: string
- kind:
- description: 'kind is the kind of the referent;
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
- type: string
- name:
- description: 'name is the name of the referent;
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
- type: string
- required:
- - kind
- - name
- type: object
- metric:
- description: metric identifies the target metric
- by name and selector
- properties:
- name:
- description: name is the name of the given
- metric
- type: string
- selector:
- description: |-
- selector is the string-encoded form of a standard kubernetes label selector for the given metric
- When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
- When unset, just the metricName will be used to gather metrics.
- properties:
- matchExpressions:
- description: matchExpressions is a list
- of label selector requirements. The
- requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key
- that the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- required:
- - name
- type: object
- target:
- description: target specifies the target value
- for the given metric
- properties:
- averageUtilization:
- description: |-
- averageUtilization is the target value of the average of the
- resource metric across all relevant pods, represented as a percentage of
- the requested value of the resource for the pods.
- Currently only valid for Resource metric source type
- format: int32
- type: integer
- averageValue:
- anyOf:
- - type: integer
- - type: string
- description: |-
- averageValue is the target value of the average of the
- metric across all relevant pods (as a quantity)
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- type:
- description: type represents whether the metric
- type is Utilization, Value, or AverageValue
- type: string
- value:
- anyOf:
- - type: integer
- - type: string
- description: value is the target value of
- the metric (as a quantity).
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- required:
- - type
- type: object
- required:
- - describedObject
- - metric
- - target
- type: object
- pods:
- description: |-
- pods refers to a metric describing each pod in the current scale target
- (for example, transactions-processed-per-second). The values will be
- averaged together before being compared to the target value.
- properties:
- metric:
- description: metric identifies the target metric
- by name and selector
- properties:
- name:
- description: name is the name of the given
- metric
- type: string
- selector:
- description: |-
- selector is the string-encoded form of a standard kubernetes label selector for the given metric
- When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
- When unset, just the metricName will be used to gather metrics.
- properties:
- matchExpressions:
- description: matchExpressions is a list
- of label selector requirements. The
- requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key
- that the selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- required:
- - name
- type: object
- target:
- description: target specifies the target value
- for the given metric
- properties:
- averageUtilization:
- description: |-
- averageUtilization is the target value of the average of the
- resource metric across all relevant pods, represented as a percentage of
- the requested value of the resource for the pods.
- Currently only valid for Resource metric source type
- format: int32
- type: integer
- averageValue:
- anyOf:
- - type: integer
- - type: string
- description: |-
- averageValue is the target value of the average of the
- metric across all relevant pods (as a quantity)
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- type:
- description: type represents whether the metric
- type is Utilization, Value, or AverageValue
- type: string
- value:
- anyOf:
- - type: integer
- - type: string
- description: value is the target value of
- the metric (as a quantity).
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- required:
- - type
- type: object
- required:
- - metric
- - target
- type: object
- resource:
- description: |-
- resource refers to a resource metric (such as those specified in
- requests and limits) known to Kubernetes describing each pod in the
- current scale target (e.g. CPU or memory). Such metrics are built in to
- Kubernetes, and have special scaling options on top of those available
- to normal per-pod metrics using the "pods" source.
- properties:
- name:
- description: name is the name of the resource
- in question.
- type: string
- target:
- description: target specifies the target value
- for the given metric
- properties:
- averageUtilization:
- description: |-
- averageUtilization is the target value of the average of the
- resource metric across all relevant pods, represented as a percentage of
- the requested value of the resource for the pods.
- Currently only valid for Resource metric source type
- format: int32
- type: integer
- averageValue:
- anyOf:
- - type: integer
- - type: string
- description: |-
- averageValue is the target value of the average of the
- metric across all relevant pods (as a quantity)
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- type:
- description: type represents whether the metric
- type is Utilization, Value, or AverageValue
- type: string
- value:
- anyOf:
- - type: integer
- - type: string
- description: value is the target value of
- the metric (as a quantity).
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- required:
- - type
- type: object
- required:
- - name
- - target
- type: object
- type:
- description: |-
- type is the type of metric source. It should be one of "ContainerResource", "External",
- "Object", "Pods" or "Resource", each mapping to a matching field in the object.
- Note: "ContainerResource" type is available on when the feature-gate
- HPAContainerMetrics is enabled
- type: string
- required:
- - type
- type: object
- type: array
- x-kubernetes-list-type: atomic
- minReplicas:
- description: |-
- minReplicas is the lower limit for the number of replicas to which the autoscaler
- can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the
- alpha feature gate HPAScaleToZero is enabled and at least one Object or External
- metric is configured. Scaling is active as long as at least one metric value is
- available.
- format: int32
- type: integer
- scaleTargetRef:
- description: |-
- scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics
- should be collected, as well as to actually change the replica count.
- properties:
- apiVersion:
- description: apiVersion is the API version of the referent
- type: string
- kind:
- description: 'kind is the kind of the referent; More
- info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
- type: string
- name:
- description: 'name is the name of the referent; More
- info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
- type: string
- required:
- - kind
- - name
- type: object
- required:
- - maxReplicas
- - scaleTargetRef
- type: object
- image:
- description: Image Overrides image from top level, Required
- if no image specified at top level.
- type: string
- imagePullPolicy:
- description: ImagePullPolicy Overrides `imagePullPolicy` from
- top level.
- type: string
- imagePullSecrets:
- description: ImagePullSecrets Overrides `imagePullSecrets` from
- top level.
- items:
- description: |-
- LocalObjectReference contains enough information to let you locate the
- referenced object inside the same namespace.
- properties:
- name:
- description: |-
- Name of the referent.
- More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- type: string
- type: object
- x-kubernetes-map-type: atomic
- type: array
- ingress:
- description: Ingress Kubernetes Native `Ingress` specification.
- properties:
- defaultBackend:
- description: |-
- defaultBackend is the backend that should handle requests that don't
- match any rule. If Rules are not specified, DefaultBackend must be specified.
- If DefaultBackend is not set, the handling of requests that do not match any
- of the rules will be up to the Ingress controller.
- properties:
- resource:
- description: |-
- resource is an ObjectRef to another Kubernetes resource in the namespace
- of the Ingress object. If resource is specified, a service.Name and
- service.Port must not be specified.
- This is a mutually exclusive setting with "Service".
- properties:
- apiGroup:
- description: |-
- APIGroup is the group for the resource being referenced.
- If APIGroup is not specified, the specified Kind must be in the core API group.
- For any other third-party types, APIGroup is required.
- type: string
- kind:
- description: Kind is the type of resource being
- referenced
- type: string
- name:
- description: Name is the name of resource being
- referenced
- type: string
- required:
- - kind
- - name
- type: object
- x-kubernetes-map-type: atomic
- service:
- description: |-
- service references a service as a backend.
- This is a mutually exclusive setting with "Resource".
- properties:
- name:
- description: |-
- name is the referenced service. The service must exist in
- the same namespace as the Ingress object.
- type: string
- port:
- description: |-
- port of the referenced service. A port name or port number
- is required for a IngressServiceBackend.
- properties:
- name:
- description: |-
- name is the name of the port on the Service.
- This is a mutually exclusive setting with "Number".
- type: string
- number:
- description: |-
- number is the numerical port number (e.g. 80) on the Service.
- This is a mutually exclusive setting with "Name".
- format: int32
- type: integer
- type: object
- required:
- - name
- type: object
- type: object
- ingressClassName:
- description: |-
- ingressClassName is the name of an IngressClass cluster resource. Ingress
- controller implementations use this field to know whether they should be
- serving this Ingress resource, by a transitive connection
- (controller -> IngressClass -> Ingress resource). Although the
- `kubernetes.io/ingress.class` annotation (simple constant name) was never
- formally defined, it was widely supported by Ingress controllers to create
- a direct binding between Ingress controller and Ingress resources. Newly
- created Ingress resources should prefer using the field. However, even
- though the annotation is officially deprecated, for backwards compatibility
- reasons, ingress controllers should still honor that annotation if present.
- type: string
- rules:
- description: |-
- rules is a list of host rules used to configure the Ingress. If unspecified,
- or no rule matches, all traffic is sent to the default backend.
- items:
- description: |-
- IngressRule represents the rules mapping the paths under a specified host to
- the related backend services. Incoming requests are first evaluated for a host
- match, then routed to the backend associated with the matching IngressRuleValue.
- properties:
- host:
- description: "host is the fully qualified domain name
- of a network host, as defined by RFC 3986.\nNote
- the following deviations from the \"host\" part
- of the\nURI as defined in RFC 3986:\n1. IPs are
- not allowed. Currently an IngressRuleValue can only
- apply to\n the IP in the Spec of the parent Ingress.\n2.
- The `:` delimiter is not respected because ports
- are not allowed.\n\t Currently the port of an Ingress
- is implicitly :80 for http and\n\t :443 for https.\nBoth
- these may change in the future.\nIncoming requests
- are matched against the host before the\nIngressRuleValue.
- If the host is unspecified, the Ingress routes all\ntraffic
- based on the specified IngressRuleValue.\n\nhost
- can be \"precise\" which is a domain name without
- the terminating dot of\na network host (e.g. \"foo.bar.com\")
- or \"wildcard\", which is a domain name\nprefixed
- with a single wildcard label (e.g. \"*.foo.com\").\nThe
- wildcard character '*' must appear by itself as
- the first DNS label and\nmatches only a single label.
- You cannot have a wildcard label by itself (e.g.
- Host == \"*\").\nRequests will be matched against
- the Host field in the following way:\n1. If host
- is precise, the request matches this rule if the
- http host header is equal to Host.\n2. If host is
- a wildcard, then the request matches this rule if
- the http host header\nis to equal to the suffix
- (removing the first label) of the wildcard rule."
- type: string
- http:
- description: |-
- HTTPIngressRuleValue is a list of http selectors pointing to backends.
- In the example: http://<host>/<path>?<searchpart> -> backend where
- where parts of the url correspond to RFC 3986, this resource will be used
- to match against everything after the last '/' and before the first '?'
- or '#'.
- properties:
- paths:
- description: paths is a collection of paths that
- map requests to backends.
- items:
- description: |-
- HTTPIngressPath associates a path with a backend. Incoming urls matching the
- path are forwarded to the backend.
- properties:
- backend:
- description: |-
- backend defines the referenced service endpoint to which the traffic
- will be forwarded to.
- properties:
- resource:
- description: |-
- resource is an ObjectRef to another Kubernetes resource in the namespace
- of the Ingress object. If resource is specified, a service.Name and
- service.Port must not be specified.
- This is a mutually exclusive setting with "Service".
- properties:
- apiGroup:
- description: |-
- APIGroup is the group for the resource being referenced.
- If APIGroup is not specified, the specified Kind must be in the core API group.
- For any other third-party types, APIGroup is required.
- type: string
- kind:
- description: Kind is the type of
- resource being referenced
- type: string
- name:
- description: Name is the name of
- resource being referenced
- type: string
- required:
- - kind
- - name
- type: object
- x-kubernetes-map-type: atomic
- service:
- description: |-
- service references a service as a backend.
- This is a mutually exclusive setting with "Resource".
- properties:
- name:
- description: |-
- name is the referenced service. The service must exist in
- the same namespace as the Ingress object.
- type: string
- port:
- description: |-
- port of the referenced service. A port name or port number
- is required for a IngressServiceBackend.
- properties:
- name:
- description: |-
- name is the name of the port on the Service.
- This is a mutually exclusive setting with "Number".
- type: string
- number:
- description: |-
- number is the numerical port number (e.g. 80) on the Service.
- This is a mutually exclusive setting with "Name".
- format: int32
- type: integer
- type: object
- required:
- - name
- type: object
- type: object
- path:
- description: |-
- path is matched against the path of an incoming request. Currently it can
- contain characters disallowed from the conventional "path" part of a URL
- as defined by RFC 3986. Paths must begin with a '/' and must be present
- when using PathType with value "Exact" or "Prefix".
- type: string
- pathType:
- description: |-
- pathType determines the interpretation of the path matching. PathType can
- be one of the following values:
- * Exact: Matches the URL path exactly.
- * Prefix: Matches based on a URL path prefix split by '/'. Matching is
- done on a path element by element basis. A path element refers is the
- list of labels in the path split by the '/' separator. A request is a
- match for path p if every p is an element-wise prefix of p of the
- request path. Note that if the last element of the path is a substring
- of the last element in request path, it is not a match (e.g. /foo/bar
- matches /foo/bar/baz, but does not match /foo/barbaz).
- * ImplementationSpecific: Interpretation of the Path matching is up to
- the IngressClass. Implementations can treat this as a separate PathType
- or treat it identically to Prefix or Exact path types.
- Implementations are required to support all path types.
- type: string
- required:
- - backend
- - pathType
- type: object
- type: array
- x-kubernetes-list-type: atomic
- required:
- - paths
- type: object
- type: object
- type: array
- x-kubernetes-list-type: atomic
- tls:
- description: |-
- tls represents the TLS configuration. Currently the Ingress only supports a
- single TLS port, 443. If multiple members of this list specify different hosts,
- they will be multiplexed on the same port according to the hostname specified
- through the SNI TLS extension, if the ingress controller fulfilling the
- ingress supports SNI.
- items:
- description: IngressTLS describes the transport layer
- security associated with an ingress.
- properties:
- hosts:
- description: |-
- hosts is a list of hosts included in the TLS certificate. The values in
- this list must match the name/s used in the tlsSecret. Defaults to the
- wildcard host setting for the loadbalancer controller fulfilling this
- Ingress, if left unspecified.
- items:
- type: string
- type: array
- x-kubernetes-list-type: atomic
- secretName:
- description: |-
- secretName is the name of the secret used to terminate TLS traffic on
- port 443. Field is left optional to allow TLS routing based on SNI
- hostname alone. If the SNI host in a listener conflicts with the "Host"
- header field used by an IngressRule, the SNI host is used for termination
- and value of the "Host" header is used for routing.
- type: string
- type: object
- type: array
- x-kubernetes-list-type: atomic
- type: object
- ingressAnnotations:
- additionalProperties:
- type: string
- description: IngressAnnotations `Ingress` annotations to be
- populated in ingress spec.
- type: object
- jvm.options:
- description: JvmOptions overrides `JvmOptions` at top level.
- type: string
- kind:
- default: StatefulSet
- description: |-
- Kind Can be StatefulSet or Deployment.
- Note: volumeClaimTemplates are ignored when kind=Deployment
- type: string
- lifecycle:
- description: Lifecycle
- properties:
- postStart:
- description: |-
- PostStart is called immediately after a container is created. If the handler fails,
- the container is terminated and restarted according to its restart policy.
- Other management of the container blocks until the hook completes.
- More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- properties:
- exec:
- description: Exec specifies the action to take.
- properties:
- command:
- description: |-
- Command is the command line to execute inside the container, the working directory for the
- command is root ('/') in the container's filesystem. The command is simply exec'd, it is
- not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
- a shell, you need to explicitly call out to that shell.
- Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- items:
- type: string
- type: array
- type: object
- httpGet:
- description: HTTPGet specifies the http request to perform.
- properties:
- host:
- description: |-
- Host name to connect to, defaults to the pod IP. You probably want to set
- "Host" in httpHeaders instead.
- type: string
- httpHeaders:
- description: Custom headers to set in the request.
- HTTP allows repeated headers.
- items:
- description: HTTPHeader describes a custom header
- to be used in HTTP probes
- properties:
- name:
- description: |-
- The header field name.
- This will be canonicalized upon output, so case-variant names will be understood as the same header.
- type: string
- value:
- description: The header field value
- type: string
- required:
- - name
- - value
- type: object
- type: array
- path:
- description: Path to access on the HTTP server.
- type: string
- port:
- anyOf:
- - type: integer
- - type: string
- description: |-
- Name or number of the port to access on the container.
- Number must be in the range 1 to 65535.
- Name must be an IANA_SVC_NAME.
- x-kubernetes-int-or-string: true
- scheme:
- description: |-
- Scheme to use for connecting to the host.
- Defaults to HTTP.
- type: string
- required:
- - port
- type: object
- tcpSocket:
- description: |-
- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
- for the backward compatibility. There are no validation of this field and
- lifecycle hooks will fail in runtime when tcp handler is specified.
- properties:
- host:
- description: 'Optional: Host name to connect to,
- defaults to the pod IP.'
- type: string
- port:
- anyOf:
- - type: integer
- - type: string
- description: |-
- Number or name of the port to access on the container.
- Number must be in the range 1 to 65535.
- Name must be an IANA_SVC_NAME.
- x-kubernetes-int-or-string: true
- required:
- - port
- type: object
- type: object
- preStop:
- description: |-
- PreStop is called immediately before a container is terminated due to an
- API request or management event such as liveness/startup probe failure,
- preemption, resource contention, etc. The handler is not called if the
- container crashes or exits. The Pod's termination grace period countdown begins before the
- PreStop hook is executed. Regardless of the outcome of the handler, the
- container will eventually terminate within the Pod's termination grace
- period (unless delayed by finalizers). Other management of the container blocks until the hook completes
- or until the termination grace period is reached.
- More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- properties:
- exec:
- description: Exec specifies the action to take.
- properties:
- command:
- description: |-
- Command is the command line to execute inside the container, the working directory for the
- command is root ('/') in the container's filesystem. The command is simply exec'd, it is
- not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
- a shell, you need to explicitly call out to that shell.
- Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- items:
- type: string
- type: array
- type: object
- httpGet:
- description: HTTPGet specifies the http request to perform.
- properties:
- host:
- description: |-
- Host name to connect to, defaults to the pod IP. You probably want to set
- "Host" in httpHeaders instead.
- type: string
- httpHeaders:
- description: Custom headers to set in the request.
- HTTP allows repeated headers.
- items:
- description: HTTPHeader describes a custom header
- to be used in HTTP probes
- properties:
- name:
- description: |-
- The header field name.
- This will be canonicalized upon output, so case-variant names will be understood as the same header.
- type: string
- value:
- description: The header field value
- type: string
- required:
- - name
- - value
- type: object
- type: array
- path:
- description: Path to access on the HTTP server.
- type: string
- port:
- anyOf:
- - type: integer
- - type: string
- description: |-
- Name or number of the port to access on the container.
- Number must be in the range 1 to 65535.
- Name must be an IANA_SVC_NAME.
- x-kubernetes-int-or-string: true
- scheme:
- description: |-
- Scheme to use for connecting to the host.
- Defaults to HTTP.
- type: string
- required:
- - port
- type: object
- tcpSocket:
- description: |-
- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
- for the backward compatibility. There are no validation of this field and
- lifecycle hooks will fail in runtime when tcp handler is specified.
- properties:
- host:
- description: 'Optional: Host name to connect to,
- defaults to the pod IP.'
- type: string
- port:
- anyOf:
- - type: integer
- - type: string
- description: |-
- Number or name of the port to access on the container.
- Number must be in the range 1 to 65535.
- Name must be an IANA_SVC_NAME.
- x-kubernetes-int-or-string: true
- required:
- - port
- type: object
- type: object
- type: object
- livenessProbe:
- description: |-
- LivenessProbe
- Port is set to `druid.port` if not specified with httpGet handler.
- properties:
- exec:
- description: Exec specifies the action to take.
- properties:
- command:
- description: |-
- Command is the command line to execute inside the container, the working directory for the
- command is root ('/') in the container's filesystem. The command is simply exec'd, it is
- not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
- a shell, you need to explicitly call out to that shell.
- Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- items:
- type: string
- type: array
- type: object
- failureThreshold:
- description: |-
- Minimum consecutive failures for the probe to be considered failed after having succeeded.
- Defaults to 3. Minimum value is 1.
- format: int32
- type: integer
- grpc:
- description: GRPC specifies an action involving a GRPC port.
- properties:
- port:
- description: Port number of the gRPC service. Number
- must be in the range 1 to 65535.
- format: int32
- type: integer
- service:
- default: ""
- description: |-
- Service is the name of the service to place in the gRPC HealthCheckRequest
- (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
-
- If this is not specified, the default behavior is defined by gRPC.
- type: string
- required:
- - port
- type: object
- httpGet:
- description: HTTPGet specifies the http request to perform.
- properties:
- host:
- description: |-
- Host name to connect to, defaults to the pod IP. You probably want to set
- "Host" in httpHeaders instead.
- type: string
- httpHeaders:
- description: Custom headers to set in the request. HTTP
- allows repeated headers.
- items:
- description: HTTPHeader describes a custom header
- to be used in HTTP probes
- properties:
- name:
- description: |-
- The header field name.
- This will be canonicalized upon output, so case-variant names will be understood as the same header.
- type: string
- value:
- description: The header field value
- type: string
- required:
- - name
- - value
- type: object
- type: array
- path:
- description: Path to access on the HTTP server.
- type: string
- port:
- anyOf:
- - type: integer
- - type: string
- description: |-
- Name or number of the port to access on the container.
- Number must be in the range 1 to 65535.
- Name must be an IANA_SVC_NAME.
- x-kubernetes-int-or-string: true
- scheme:
- description: |-
- Scheme to use for connecting to the host.
- Defaults to HTTP.
- type: string
- required:
- - port
- type: object
- initialDelaySeconds:
- description: |-
- Number of seconds after the container has started before liveness probes are initiated.
- More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- format: int32
- type: integer
- periodSeconds:
- description: |-
- How often (in seconds) to perform the probe.
- Default to 10 seconds. Minimum value is 1.
- format: int32
- type: integer
- successThreshold:
- description: |-
- Minimum consecutive successes for the probe to be considered successful after having failed.
- Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
- format: int32
- type: integer
- tcpSocket:
- description: TCPSocket specifies an action involving a TCP
- port.
- properties:
- host:
- description: 'Optional: Host name to connect to, defaults
- to the pod IP.'
- type: string
- port:
- anyOf:
- - type: integer
- - type: string
- description: |-
- Number or name of the port to access on the container.
- Number must be in the range 1 to 65535.
- Name must be an IANA_SVC_NAME.
- x-kubernetes-int-or-string: true
- required:
- - port
- type: object
- terminationGracePeriodSeconds:
- description: |-
- Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
- The grace period is the duration in seconds after the processes running in the pod are sent
- a termination signal and the time when the processes are forcibly halted with a kill signal.
- Set this value longer than the expected cleanup time for your process.
- If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
- value overrides the value provided by the pod spec.
- Value must be non-negative integer. The value zero indicates stop immediately via
- the kill signal (no opportunity to shut down).
- This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
- Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
- format: int64
- type: integer
- timeoutSeconds:
- description: |-
- Number of seconds after which the probe times out.
- Defaults to 1 second. Minimum value is 1.
- More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- format: int32
- type: integer
- type: object
- log4j.config:
- description: Log4jConfig Overrides `Log4jConfig` at top level.
- type: string
- maxSurge:
- description: |-
- MaxSurge For Deployment object only.
- Set to 25% by default.
- format: int32
- type: integer
- maxUnavailable:
- description: |-
- MaxUnavailable For deployment object only.
- Set to 25% by default
- format: int32
- type: integer
- nodeConfigMountPath:
- description: NodeConfigMountPath in-container directory to mount
- with runtime.properties, jvm.config, log4j2.xml files.
- type: string
- nodeSelector:
- additionalProperties:
- type: string
- description: NodeSelector Kubernetes native `nodeSelector` specification.
- type: object
- nodeType:
- description: NodeDruid `Druid` node type.
- enum:
- - historical
- - overlord
- - middleManager
- - indexer
- - broker
- - coordinator
- - router
- type: string
- persistentVolumeClaim:
- description: VolumeClaimTemplates Kubernetes Native `VolumeClaimTemplate`
- specification.
- items:
- description: PersistentVolumeClaim is a user's request for
- and claim to a persistent volume
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation of an object.
- Servers should convert recognized schemas to the latest internal value, and
- may reject unrecognized values.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this object represents.
- Servers may infer this from the endpoint the client submits requests to.
- Cannot be updated.
- In CamelCase.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- metadata:
- description: |-
- Standard object's metadata.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- properties:
- annotations:
- additionalProperties:
- type: string
- type: object
- finalizers:
- items:
- type: string
- type: array
- labels:
- additionalProperties:
- type: string
- type: object
- name:
- type: string
- namespace:
- type: string
- type: object
- spec:
- description: |-
- spec defines the desired characteristics of a volume requested by a pod author.
- More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
- properties:
- accessModes:
- description: |-
- accessModes contains the desired access modes the volume should have.
- More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
- items:
- type: string
- type: array
- dataSource:
- description: |-
- dataSource field can be used to specify either:
- * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
- * An existing PVC (PersistentVolumeClaim)
- If the provisioner or an external controller can support the specified data source,
- it will create a new volume based on the contents of the specified data source.
- When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,
- and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.
- If the namespace is specified, then dataSourceRef will not be copied to dataSource.
- properties:
- apiGroup:
- description: |-
- APIGroup is the group for the resource being referenced.
- If APIGroup is not specified, the specified Kind must be in the core API group.
- For any other third-party types, APIGroup is required.
- type: string
- kind:
- description: Kind is the type of resource being
- referenced
- type: string
- name:
- description: Name is the name of resource being
- referenced
- type: string
- required:
- - kind
- - name
- type: object
- x-kubernetes-map-type: atomic
- dataSourceRef:
- description: |-
- dataSourceRef specifies the object from which to populate the volume with data, if a non-empty
- volume is desired. This may be any object from a non-empty API group (non
- core object) or a PersistentVolumeClaim object.
- When this field is specified, volume binding will only succeed if the type of
- the specified object matches some installed volume populator or dynamic
- provisioner.
- This field will replace the functionality of the dataSource field and as such
- if both fields are non-empty, they must have the same value. For backwards
- compatibility, when namespace isn't specified in dataSourceRef,
- both fields (dataSource and dataSourceRef) will be set to the same
- value automatically if one of them is empty and the other is non-empty.
- When namespace is specified in dataSourceRef,
- dataSource isn't set to the same value and must be empty.
- There are three important differences between dataSource and dataSourceRef:
- * While dataSource only allows two specific types of objects, dataSourceRef
- allows any non-core object, as well as PersistentVolumeClaim objects.
- * While dataSource ignores disallowed values (dropping them), dataSourceRef
- preserves all values, and generates an error if a disallowed value is
- specified.
- * While dataSource only allows local objects, dataSourceRef allows objects
- in any namespaces.
- (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
- (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
- properties:
- apiGroup:
- description: |-
- APIGroup is the group for the resource being referenced.
- If APIGroup is not specified, the specified Kind must be in the core API group.
- For any other third-party types, APIGroup is required.
- type: string
- kind:
- description: Kind is the type of resource being
- referenced
- type: string
- name:
- description: Name is the name of resource being
- referenced
- type: string
- namespace:
- description: |-
- Namespace is the namespace of resource being referenced
- Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
- (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
- type: string
- required:
- - kind
- - name
- type: object
- resources:
- description: |-
- resources represents the minimum resources the volume should have.
- If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements
- that are lower than previous value but must still be higher than capacity recorded in the
- status field of the claim.
- More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
- properties:
- claims:
- description: |-
- Claims lists the names of resources, defined in spec.resourceClaims,
- that are used by this container.
-
- This is an alpha field and requires enabling the
- DynamicResourceAllocation feature gate.
-
- This field is immutable. It can only be set for containers.
- items:
- description: ResourceClaim references one entry
- in PodSpec.ResourceClaims.
- properties:
- name:
- description: |-
- Name must match the name of one entry in pod.spec.resourceClaims of
- the Pod where this field is used. It makes that resource available
- inside a container.
- type: string
- required:
- - name
- type: object
- type: array
- x-kubernetes-list-map-keys:
- - name
- x-kubernetes-list-type: map
- limits:
- additionalProperties:
- anyOf:
- - type: integer
- - type: string
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- description: |-
- Limits describes the maximum amount of compute resources allowed.
- More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- type: object
- requests:
- additionalProperties:
- anyOf:
- - type: integer
- - type: string
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- description: |-
- Requests describes the minimum amount of compute resources required.
- If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
- otherwise to an implementation-defined value. Requests cannot exceed Limits.
- More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- type: object
- type: object
- selector:
- description: selector is a label query over volumes
- to consider for binding.
- properties:
- matchExpressions:
- description: matchExpressions is a list of label
- selector requirements. The requirements are
- ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that the
- selector applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- storageClassName:
- description: |-
- storageClassName is the name of the StorageClass required by the claim.
- More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
- type: string
- volumeMode:
- description: |-
- volumeMode defines what type of volume is required by the claim.
- Value of Filesystem is implied when not included in claim spec.
- type: string
- volumeName:
- description: volumeName is the binding reference to
- the PersistentVolume backing this claim.
- type: string
- type: object
- status:
- description: |-
- status represents the current information/status of a persistent volume claim.
- Read-only.
- More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
- properties:
- accessModes:
- description: |-
- accessModes contains the actual access modes the volume backing the PVC has.
- More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
- items:
- type: string
- type: array
- allocatedResources:
- additionalProperties:
- anyOf:
- - type: integer
- - type: string
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- description: |-
- allocatedResources is the storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may
- be larger than the actual capacity when a volume expansion operation is requested.
- For storage quota, the larger value from allocatedResources and PVC.spec.resources is used.
- If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation.
- If a volume expansion capacity request is lowered, allocatedResources is only
- lowered if there are no expansion operations in progress and if the actual volume capacity
- is equal or lower than the requested capacity.
- This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.
- type: object
- capacity:
- additionalProperties:
- anyOf:
- - type: integer
- - type: string
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- description: capacity represents the actual resources
- of the underlying volume.
- type: object
- conditions:
- description: |-
- conditions is the current Condition of persistent volume claim. If underlying persistent volume is being
- resized then the Condition will be set to 'ResizeStarted'.
- items:
- description: PersistentVolumeClaimCondition contains
- details about state of pvc
- properties:
- lastProbeTime:
- description: lastProbeTime is the time we probed
- the condition.
- format: date-time
- type: string
- lastTransitionTime:
- description: lastTransitionTime is the time
- the condition transitioned from one status
- to another.
- format: date-time
- type: string
- message:
- description: message is the human-readable message
- indicating details about last transition.
- type: string
- reason:
- description: |-
- reason is a unique, this should be a short, machine understandable string that gives the reason
- for condition's last transition. If it reports "ResizeStarted" that means the underlying
- persistent volume is being resized.
- type: string
- status:
- type: string
- type:
- description: PersistentVolumeClaimConditionType
- is a valid value of PersistentVolumeClaimCondition.Type
- type: string
- required:
- - status
- - type
- type: object
- type: array
- phase:
- description: phase represents the current phase of
- PersistentVolumeClaim.
- type: string
- resizeStatus:
- description: |-
- resizeStatus stores status of resize operation.
- ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty
- string by resize controller or kubelet.
- This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.
- type: string
- type: object
- type: object
- type: array
- podAnnotations:
- additionalProperties:
- type: string
- description: PodAnnotations Custom annotation to be populated
- in the workload's pods.
- type: object
- podDisruptionBudgetSpec:
- description: PodDisruptionBudgetSpec Kubernetes native `podDisruptionBudget`
- specification.
- properties:
- maxUnavailable:
- anyOf:
- - type: integer
- - type: string
- description: |-
- An eviction is allowed if at most "maxUnavailable" pods selected by
- "selector" are unavailable after the eviction, i.e. even in absence of
- the evicted pod. For example, one can prevent all voluntary evictions
- by specifying 0. This is a mutually exclusive setting with "minAvailable".
- x-kubernetes-int-or-string: true
- minAvailable:
- anyOf:
- - type: integer
- - type: string
- description: |-
- An eviction is allowed if at least "minAvailable" pods selected by
- "selector" will still be available after the eviction, i.e. even in the
- absence of the evicted pod. So for example you can prevent all voluntary
- evictions by specifying "100%".
- x-kubernetes-int-or-string: true
- selector:
- description: |-
- Label query over pods whose evictions are managed by the disruption
- budget.
- A null selector will match no pods, while an empty ({}) selector will select
- all pods within the namespace.
- properties:
- matchExpressions:
- description: matchExpressions is a list of label selector
- requirements. The requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that the selector
- applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- unhealthyPodEvictionPolicy:
- description: |-
- UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods
- should be considered for eviction. Current implementation considers healthy pods,
- as pods that have status.conditions item with type="Ready",status="True".
-
- Valid policies are IfHealthyBudget and AlwaysAllow.
- If no policy is specified, the default behavior will be used,
- which corresponds to the IfHealthyBudget policy.
-
- IfHealthyBudget policy means that running pods (status.phase="Running"),
- but not yet healthy can be evicted only if the guarded application is not
- disrupted (status.currentHealthy is at least equal to status.desiredHealthy).
- Healthy pods will be subject to the PDB for eviction.
-
- AlwaysAllow policy means that all running pods (status.phase="Running"),
- but not yet healthy are considered disrupted and can be evicted regardless
- of whether the criteria in a PDB is met. This means perspective running
- pods of a disrupted application might not get a chance to become healthy.
- Healthy pods will be subject to the PDB for eviction.
-
- Additional policies may be added in the future.
- Clients making eviction decisions should disallow eviction of unhealthy pods
- if they encounter an unrecognized policy in this field.
-
- This field is beta-level. The eviction API uses this field when
- the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).
- type: string
- type: object
- podLabels:
- additionalProperties:
- type: string
- description: PodLabels Custom labels to be populated in the
- workload's pods.
- type: object
- podManagementPolicy:
- default: Parallel
- description: PodManagementPolicy
- type: string
- ports:
- description: Ports Extra ports to be added to pod spec.
- items:
- description: ContainerPort represents a network port in a
- single container.
- properties:
- containerPort:
- description: |-
- Number of port to expose on the pod's IP address.
- This must be a valid port number, 0 < x < 65536.
- format: int32
- type: integer
- hostIP:
- description: What host IP to bind the external port to.
- type: string
- hostPort:
- description: |-
- Number of port to expose on the host.
- If specified, this must be a valid port number, 0 < x < 65536.
- If HostNetwork is specified, this must match ContainerPort.
- Most containers do not need this.
- format: int32
- type: integer
- name:
- description: |-
- If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
- named port in a pod must have a unique name. Name for the port that can be
- referred to by services.
- type: string
- protocol:
- default: TCP
- description: |-
- Protocol for port. Must be UDP, TCP, or SCTP.
- Defaults to "TCP".
- type: string
- required:
- - containerPort
- type: object
- type: array
- priorityClassName:
- description: PriorityClassName Kubernetes native `priorityClassName`
- specification.
- type: string
- readinessProbe:
- description: |-
- ReadinessProbe
- Port is set to `druid.port` if not specified with httpGet handler.
- properties:
- exec:
- description: Exec specifies the action to take.
- properties:
- command:
- description: |-
- Command is the command line to execute inside the container, the working directory for the
- command is root ('/') in the container's filesystem. The command is simply exec'd, it is
- not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
- a shell, you need to explicitly call out to that shell.
- Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- items:
- type: string
- type: array
- type: object
- failureThreshold:
- description: |-
- Minimum consecutive failures for the probe to be considered failed after having succeeded.
- Defaults to 3. Minimum value is 1.
- format: int32
- type: integer
- grpc:
- description: GRPC specifies an action involving a GRPC port.
- properties:
- port:
- description: Port number of the gRPC service. Number
- must be in the range 1 to 65535.
- format: int32
- type: integer
- service:
- default: ""
- description: |-
- Service is the name of the service to place in the gRPC HealthCheckRequest
- (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
-
- If this is not specified, the default behavior is defined by gRPC.
- type: string
- required:
- - port
- type: object
- httpGet:
- description: HTTPGet specifies the http request to perform.
- properties:
- host:
- description: |-
- Host name to connect to, defaults to the pod IP. You probably want to set
- "Host" in httpHeaders instead.
- type: string
- httpHeaders:
- description: Custom headers to set in the request. HTTP
- allows repeated headers.
- items:
- description: HTTPHeader describes a custom header
- to be used in HTTP probes
- properties:
- name:
- description: |-
- The header field name.
- This will be canonicalized upon output, so case-variant names will be understood as the same header.
- type: string
- value:
- description: The header field value
- type: string
- required:
- - name
- - value
- type: object
- type: array
- path:
- description: Path to access on the HTTP server.
- type: string
- port:
- anyOf:
- - type: integer
- - type: string
- description: |-
- Name or number of the port to access on the container.
- Number must be in the range 1 to 65535.
- Name must be an IANA_SVC_NAME.
- x-kubernetes-int-or-string: true
- scheme:
- description: |-
- Scheme to use for connecting to the host.
- Defaults to HTTP.
- type: string
- required:
- - port
- type: object
- initialDelaySeconds:
- description: |-
- Number of seconds after the container has started before liveness probes are initiated.
- More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- format: int32
- type: integer
- periodSeconds:
- description: |-
- How often (in seconds) to perform the probe.
- Default to 10 seconds. Minimum value is 1.
- format: int32
- type: integer
- successThreshold:
- description: |-
- Minimum consecutive successes for the probe to be considered successful after having failed.
- Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
- format: int32
- type: integer
- tcpSocket:
- description: TCPSocket specifies an action involving a TCP
- port.
- properties:
- host:
- description: 'Optional: Host name to connect to, defaults
- to the pod IP.'
- type: string
- port:
- anyOf:
- - type: integer
- - type: string
- description: |-
- Number or name of the port to access on the container.
- Number must be in the range 1 to 65535.
- Name must be an IANA_SVC_NAME.
- x-kubernetes-int-or-string: true
- required:
- - port
- type: object
- terminationGracePeriodSeconds:
- description: |-
- Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
- The grace period is the duration in seconds after the processes running in the pod are sent
- a termination signal and the time when the processes are forcibly halted with a kill signal.
- Set this value longer than the expected cleanup time for your process.
- If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
- value overrides the value provided by the pod spec.
- Value must be non-negative integer. The value zero indicates stop immediately via
- the kill signal (no opportunity to shut down).
- This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
- Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
- format: int64
- type: integer
- timeoutSeconds:
- description: |-
- Number of seconds after which the probe times out.
- Defaults to 1 second. Minimum value is 1.
- More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- format: int32
- type: integer
- type: object
- replicas:
- description: Replicas replica of the workload
- format: int32
- minimum: 0
- type: integer
- resources:
- description: Resources Kubernetes Native `resources` specification.
- properties:
- claims:
- description: |-
- Claims lists the names of resources, defined in spec.resourceClaims,
- that are used by this container.
-
- This is an alpha field and requires enabling the
- DynamicResourceAllocation feature gate.
-
- This field is immutable. It can only be set for containers.
- items:
- description: ResourceClaim references one entry in PodSpec.ResourceClaims.
- properties:
- name:
- description: |-
- Name must match the name of one entry in pod.spec.resourceClaims of
- the Pod where this field is used. It makes that resource available
- inside a container.
- type: string
- required:
- - name
- type: object
- type: array
- x-kubernetes-list-map-keys:
- - name
- x-kubernetes-list-type: map
- limits:
- additionalProperties:
- anyOf:
- - type: integer
- - type: string
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- description: |-
- Limits describes the maximum amount of compute resources allowed.
- More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- type: object
- requests:
- additionalProperties:
- anyOf:
- - type: integer
- - type: string
- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
- x-kubernetes-int-or-string: true
- description: |-
- Requests describes the minimum amount of compute resources required.
- If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
- otherwise to an implementation-defined value. Requests cannot exceed Limits.
- More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- type: object
- type: object
- runtime.properties:
- description: RuntimeProperties Additional runtime configuration
- for the specific workload.
- type: string
- securityContext:
- description: PodSecurityContext Overrides `securityContext`
- at top level.
- properties:
- fsGroup:
- description: |-
- A special supplemental group that applies to all containers in a pod.
- Some volume types allow the Kubelet to change the ownership of that volume
- to be owned by the pod:
-
- 1. The owning GID will be the FSGroup
- 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
- 3. The permission bits are OR'd with rw-rw----
-
- If unset, the Kubelet will not modify the ownership and permissions of any volume.
- Note that this field cannot be set when spec.os.name is windows.
- format: int64
- type: integer
- fsGroupChangePolicy:
- description: |-
- fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
- before being exposed inside Pod. This field will only apply to
- volume types which support fsGroup based ownership(and permissions).
- It will have no effect on ephemeral volume types such as: secret, configmaps
- and emptydir.
- Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
- Note that this field cannot be set when spec.os.name is windows.
- type: string
- runAsGroup:
- description: |-
- The GID to run the entrypoint of the container process.
- Uses runtime default if unset.
- May also be set in SecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence
- for that container.
- Note that this field cannot be set when spec.os.name is windows.
- format: int64
- type: integer
- runAsNonRoot:
- description: |-
- Indicates that the container must run as a non-root user.
- If true, the Kubelet will validate the image at runtime to ensure that it
- does not run as UID 0 (root) and fail to start the container if it does.
- If unset or false, no such validation will be performed.
- May also be set in SecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- type: boolean
- runAsUser:
- description: |-
- The UID to run the entrypoint of the container process.
- Defaults to user specified in image metadata if unspecified.
- May also be set in SecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence
- for that container.
- Note that this field cannot be set when spec.os.name is windows.
- format: int64
- type: integer
- seLinuxOptions:
- description: |-
- The SELinux context to be applied to all containers.
- If unspecified, the container runtime will allocate a random SELinux context for each
- container. May also be set in SecurityContext. If set in
- both SecurityContext and PodSecurityContext, the value specified in SecurityContext
- takes precedence for that container.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- level:
- description: Level is SELinux level label that applies
- to the container.
- type: string
- role:
- description: Role is a SELinux role label that applies
- to the container.
- type: string
- type:
- description: Type is a SELinux type label that applies
- to the container.
- type: string
- user:
- description: User is a SELinux user label that applies
- to the container.
- type: string
- type: object
- seccompProfile:
- description: |-
- The seccomp options to use by the containers in this pod.
- Note that this field cannot be set when spec.os.name is windows.
- properties:
- localhostProfile:
- description: |-
- localhostProfile indicates a profile defined in a file on the node should be used.
- The profile must be preconfigured on the node to work.
- Must be a descending path, relative to the kubelet's configured seccomp profile location.
- Must only be set if type is "Localhost".
- type: string
- type:
- description: |-
- type indicates which kind of seccomp profile will be applied.
- Valid options are:
-
- Localhost - a profile defined in a file on the node should be used.
- RuntimeDefault - the container runtime default profile should be used.
- Unconfined - no profile should be applied.
- type: string
- required:
- - type
- type: object
- supplementalGroups:
- description: |-
- A list of groups applied to the first process run in each container, in addition
- to the container's primary GID, the fsGroup (if specified), and group memberships
- defined in the container image for the uid of the container process. If unspecified,
- no additional groups are added to any container. Note that group memberships
- defined in the container image for the uid of the container process are still effective,
- even if they are not included in this list.
- Note that this field cannot be set when spec.os.name is windows.
- items:
- format: int64
- type: integer
- type: array
- sysctls:
- description: |-
- Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
- sysctls (by the container runtime) might fail to launch.
- Note that this field cannot be set when spec.os.name is windows.
- items:
- description: Sysctl defines a kernel parameter to be set
- properties:
- name:
- description: Name of a property to set
- type: string
- value:
- description: Value of a property to set
- type: string
- required:
- - name
- - value
- type: object
- type: array
- windowsOptions:
- description: |-
- The Windows specific settings applied to all containers.
- If unspecified, the options within a container's SecurityContext will be used.
- If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
- Note that this field cannot be set when spec.os.name is linux.
- properties:
- gmsaCredentialSpec:
- description: |-
- GMSACredentialSpec is where the GMSA admission webhook
- (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
- GMSA credential spec named by the GMSACredentialSpecName field.
- type: string
- gmsaCredentialSpecName:
- description: GMSACredentialSpecName is the name of the
- GMSA credential spec to use.
- type: string
- hostProcess:
- description: |-
- HostProcess determines if a container should be run as a 'Host Process' container.
- This field is alpha-level and will only be honored by components that enable the
- WindowsHostProcessContainers feature flag. Setting this field without the feature
- flag will result in errors when validating the Pod. All of a Pod's containers must
- have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
- containers and non-HostProcess containers). In addition, if HostProcess is true
- then HostNetwork must also be set to true.
- type: boolean
- runAsUserName:
- description: |-
- The UserName in Windows to run the entrypoint of the container process.
- Defaults to the user specified in image metadata if unspecified.
- May also be set in PodSecurityContext. If set in both SecurityContext and
- PodSecurityContext, the value specified in SecurityContext takes precedence.
- type: string
- type: object
- type: object
- serviceAccountName:
- description: ServiceAccountName Kubernetes native `serviceAccountName`
- specification.
- type: string
- services:
- description: Services Overrides services at top level.
- items:
- description: |-
- Service is a named abstraction of software service (for example, mysql) consisting of local port
- (for example 3306) that the proxy listens on, and the selector that determines which pods
- will answer requests sent through the proxy.
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation of an object.
- Servers should convert recognized schemas to the latest internal value, and
- may reject unrecognized values.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this object represents.
- Servers may infer this from the endpoint the client submits requests to.
- Cannot be updated.
- In CamelCase.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- metadata:
- description: |-
- Standard object's metadata.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- properties:
- annotations:
- additionalProperties:
- type: string
- type: object
- finalizers:
- items:
- type: string
- type: array
- labels:
- additionalProperties:
- type: string
- type: object
- name:
- type: string
- namespace:
- type: string
- type: object
- spec:
- description: |-
- Spec defines the behavior of a service.
- https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
- properties:
- allocateLoadBalancerNodePorts:
- description: |-
- allocateLoadBalancerNodePorts defines if NodePorts will be automatically
- allocated for services with type LoadBalancer. Default is "true". It
- may be set to "false" if the cluster load-balancer does not rely on
- NodePorts. If the caller requests specific NodePorts (by specifying a
- value), those requests will be respected, regardless of this field.
- This field may only be set for services with type LoadBalancer and will
- be cleared if the type is changed to any other type.
- type: boolean
- clusterIP:
- description: |-
- clusterIP is the IP address of the service and is usually assigned
- randomly. If an address is specified manually, is in-range (as per
- system configuration), and is not in use, it will be allocated to the
- service; otherwise creation of the service will fail. This field may not
- be changed through updates unless the type field is also being changed
- to ExternalName (which requires this field to be blank) or the type
- field is being changed from ExternalName (in which case this field may
- optionally be specified, as describe above). Valid values are "None",
- empty string (""), or a valid IP address. Setting this to "None" makes a
- "headless service" (no virtual IP), which is useful when direct endpoint
- connections are preferred and proxying is not required. Only applies to
- types ClusterIP, NodePort, and LoadBalancer. If this field is specified
- when creating a Service of type ExternalName, creation will fail. This
- field will be wiped when updating a Service to type ExternalName.
- More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
- type: string
- clusterIPs:
- description: |-
- ClusterIPs is a list of IP addresses assigned to this service, and are
- usually assigned randomly. If an address is specified manually, is
- in-range (as per system configuration), and is not in use, it will be
- allocated to the service; otherwise creation of the service will fail.
- This field may not be changed through updates unless the type field is
- also being changed to ExternalName (which requires this field to be
- empty) or the type field is being changed from ExternalName (in which
- case this field may optionally be specified, as describe above). Valid
- values are "None", empty string (""), or a valid IP address. Setting
- this to "None" makes a "headless service" (no virtual IP), which is
- useful when direct endpoint connections are preferred and proxying is
- not required. Only applies to types ClusterIP, NodePort, and
- LoadBalancer. If this field is specified when creating a Service of type
- ExternalName, creation will fail. This field will be wiped when updating
- a Service to type ExternalName. If this field is not specified, it will
- be initialized from the clusterIP field. If this field is specified,
- clients must ensure that clusterIPs[0] and clusterIP have the same
- value.
-
- This field may hold a maximum of two entries (dual-stack IPs, in either order).
- These IPs must correspond to the values of the ipFamilies field. Both
- clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
- More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
- items:
- type: string
- type: array
- x-kubernetes-list-type: atomic
- externalIPs:
- description: |-
- externalIPs is a list of IP addresses for which nodes in the cluster
- will also accept traffic for this service. These IPs are not managed by
- Kubernetes. The user is responsible for ensuring that traffic arrives
- at a node with this IP. A common example is external load-balancers
- that are not part of the Kubernetes system.
- items:
- type: string
- type: array
- externalName:
- description: |-
- externalName is the external reference that discovery mechanisms will
- return as an alias for this service (e.g. a DNS CNAME record). No
- proxying will be involved. Must be a lowercase RFC-1123 hostname
- (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
- type: string
- externalTrafficPolicy:
- description: |-
- externalTrafficPolicy describes how nodes distribute service traffic they
- receive on one of the Service's "externally-facing" addresses (NodePorts,
- ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure
- the service in a way that assumes that external load balancers will take care
- of balancing the service traffic between nodes, and so each node will deliver
- traffic only to the node-local endpoints of the service, without masquerading
- the client source IP. (Traffic mistakenly sent to a node with no endpoints will
- be dropped.) The default value, "Cluster", uses the standard behavior of
- routing to all endpoints evenly (possibly modified by topology and other
- features). Note that traffic sent to an External IP or LoadBalancer IP from
- within the cluster will always get "Cluster" semantics, but clients sending to
- a NodePort from within the cluster may need to take traffic policy into account
- when picking a node.
- type: string
- healthCheckNodePort:
- description: |-
- healthCheckNodePort specifies the healthcheck nodePort for the service.
- This only applies when type is set to LoadBalancer and
- externalTrafficPolicy is set to Local. If a value is specified, is
- in-range, and is not in use, it will be used. If not specified, a value
- will be automatically allocated. External systems (e.g. load-balancers)
- can use this port to determine if a given node holds endpoints for this
- service or not. If this field is specified when creating a Service
- which does not need it, creation will fail. This field will be wiped
- when updating a Service to no longer need it (e.g. changing type).
- This field cannot be updated once set.
- format: int32
- type: integer
- internalTrafficPolicy:
- description: |-
- InternalTrafficPolicy describes how nodes distribute service traffic they
- receive on the ClusterIP. If set to "Local", the proxy will assume that pods
- only want to talk to endpoints of the service on the same node as the pod,
- dropping the traffic if there are no local endpoints. The default value,
- "Cluster", uses the standard behavior of routing to all endpoints evenly
- (possibly modified by topology and other features).
- type: string
- ipFamilies:
- description: |-
- IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
- service. This field is usually assigned automatically based on cluster
- configuration and the ipFamilyPolicy field. If this field is specified
- manually, the requested family is available in the cluster,
- and ipFamilyPolicy allows it, it will be used; otherwise creation of
- the service will fail. This field is conditionally mutable: it allows
- for adding or removing a secondary IP family, but it does not allow
- changing the primary IP family of the Service. Valid values are "IPv4"
- and "IPv6". This field only applies to Services of types ClusterIP,
- NodePort, and LoadBalancer, and does apply to "headless" services.
- This field will be wiped when updating a Service to type ExternalName.
-
- This field may hold a maximum of two entries (dual-stack families, in
- either order). These families must correspond to the values of the
- clusterIPs field, if specified. Both clusterIPs and ipFamilies are
- governed by the ipFamilyPolicy field.
- items:
- description: |-
- IPFamily represents the IP Family (IPv4 or IPv6). This type is used
- to express the family of an IP expressed by a type (e.g. service.spec.ipFamilies).
- type: string
- type: array
- x-kubernetes-list-type: atomic
- ipFamilyPolicy:
- description: |-
- IPFamilyPolicy represents the dual-stack-ness requested or required by
- this Service. If there is no value provided, then this field will be set
- to SingleStack. Services can be "SingleStack" (a single IP family),
- "PreferDualStack" (two IP families on dual-stack configured clusters or
- a single IP family on single-stack clusters), or "RequireDualStack"
- (two IP families on dual-stack configured clusters, otherwise fail). The
- ipFamilies and clusterIPs fields depend on the value of this field. This
- field will be wiped when updating a service to type ExternalName.
- type: string
- loadBalancerClass:
- description: |-
- loadBalancerClass is the class of the load balancer implementation this Service belongs to.
- If specified, the value of this field must be a label-style identifier, with an optional prefix,
- e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
- This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
- balancer implementation is used, today this is typically done through the cloud provider integration,
- but should apply for any default implementation. If set, it is assumed that a load balancer
- implementation is watching for Services with a matching class. Any default load balancer
- implementation (e.g. cloud providers) should ignore Services that set this field.
- This field can only be set when creating or updating a Service to type 'LoadBalancer'.
- Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
- type: string
- loadBalancerIP:
- description: |-
- Only applies to Service Type: LoadBalancer.
- This feature depends on whether the underlying cloud-provider supports specifying
- the loadBalancerIP when a load balancer is created.
- This field will be ignored if the cloud-provider does not support the feature.
- Deprecated: This field was under-specified and its meaning varies across implementations,
- and it cannot support dual-stack.
- As of Kubernetes v1.24, users are encouraged to use implementation-specific annotations when available.
- This field may be removed in a future API version.
- type: string
- loadBalancerSourceRanges:
- description: |-
- If specified and supported by the platform, this will restrict traffic through the cloud-provider
- load-balancer will be restricted to the specified client IPs. This field will be ignored if the
- cloud-provider does not support the feature."
- More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
- items:
- type: string
- type: array
- ports:
- description: |-
- The list of ports that are exposed by this service.
- More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
- items:
- description: ServicePort contains information on
- service's port.
- properties:
- appProtocol:
- description: |-
- The application protocol for this port.
- This field follows standard Kubernetes label syntax.
- Un-prefixed names are reserved for IANA standard service names (as per
- RFC-6335 and https://www.iana.org/assignments/service-names).
- Non-standard protocols should use prefixed names such as
- mycompany.com/my-custom-protocol.
- type: string
- name:
- description: |-
- The name of this port within the service. This must be a DNS_LABEL.
- All ports within a ServiceSpec must have unique names. When considering
- the endpoints for a Service, this must match the 'name' field in the
- EndpointPort.
- Optional if only one ServicePort is defined on this service.
- type: string
- nodePort:
- description: |-
- The port on each node on which this service is exposed when type is
- NodePort or LoadBalancer. Usually assigned by the system. If a value is
- specified, in-range, and not in use it will be used, otherwise the
- operation will fail. If not specified, a port will be allocated if this
- Service requires one. If this field is specified when creating a
- Service which does not need it, creation will fail. This field will be
- wiped when updating a Service to no longer need it (e.g. changing type
- from NodePort to ClusterIP).
- More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
- format: int32
- type: integer
- port:
- description: The port that will be exposed by
- this service.
- format: int32
- type: integer
- protocol:
- default: TCP
- description: |-
- The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
- Default is TCP.
- type: string
- targetPort:
- anyOf:
- - type: integer
- - type: string
- description: |-
- Number or name of the port to access on the pods targeted by the service.
- Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
- If this is a string, it will be looked up as a named port in the
- target Pod's container ports. If this is not specified, the value
- of the 'port' field is used (an identity map).
- This field is ignored for services with clusterIP=None, and should be
- omitted or set equal to the 'port' field.
- More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
- x-kubernetes-int-or-string: true
- required:
- - port
- type: object
- type: array
- x-kubernetes-list-map-keys:
- - port
- - protocol
- x-kubernetes-list-type: map
- publishNotReadyAddresses:
- description: |-
- publishNotReadyAddresses indicates that any agent which deals with endpoints for this
- Service should disregard any indications of ready/not-ready.
- The primary use case for setting this field is for a StatefulSet's Headless Service to
- propagate SRV DNS records for its Pods for the purpose of peer discovery.
- The Kubernetes controllers that generate Endpoints and EndpointSlice resources for
- Services interpret this to mean that all endpoints are considered "ready" even if the
- Pods themselves are not. Agents which consume only Kubernetes generated endpoints
- through the Endpoints or EndpointSlice resources can safely assume this behavior.
- type: boolean
- selector:
- additionalProperties:
- type: string
- description: |-
- Route service traffic to pods with label keys and values matching this
- selector. If empty or not present, the service is assumed to have an
- external process managing its endpoints, which Kubernetes will not
- modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
- Ignored if type is ExternalName.
- More info: https://kubernetes.io/docs/concepts/services-networking/service/
- type: object
- x-kubernetes-map-type: atomic
- sessionAffinity:
- description: |-
- Supports "ClientIP" and "None". Used to maintain session affinity.
- Enable client IP based session affinity.
- Must be ClientIP or None.
- Defaults to None.
- More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
- type: string
- sessionAffinityConfig:
- description: sessionAffinityConfig contains the configurations
- of session affinity.
- properties:
- clientIP:
- description: clientIP contains the configurations
- of Client IP based session affinity.
- properties:
- timeoutSeconds:
- description: |-
- timeoutSeconds specifies the seconds of ClientIP type session sticky time.
- The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP".
- Default value is 10800(for 3 hours).
- format: int32
- type: integer
- type: object
- type: object
- type:
- description: |-
- type determines how the Service is exposed. Defaults to ClusterIP. Valid
- options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
- "ClusterIP" allocates a cluster-internal IP address for load-balancing
- to endpoints. Endpoints are determined by the selector or if that is not
- specified, by manual construction of an Endpoints object or
- EndpointSlice objects. If clusterIP is "None", no virtual IP is
- allocated and the endpoints are published as a set of endpoints rather
- than a virtual IP.
- "NodePort" builds on ClusterIP and allocates a port on every node which
- routes to the same endpoints as the clusterIP.
- "LoadBalancer" builds on NodePort and creates an external load-balancer
- (if supported in the current cloud) which routes to the same endpoints
- as the clusterIP.
- "ExternalName" aliases this service to the specified externalName.
- Several other fields do not apply to ExternalName services.
- More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
- type: string
- type: object
- status:
- description: |-
- Most recently observed status of the service.
- Populated by the system.
- Read-only.
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
- properties:
- conditions:
- description: Current service state
- items:
- description: Condition contains details for one
- aspect of the current state of this API Resource.
- properties:
- lastTransitionTime:
- description: |-
- lastTransitionTime is the last time the condition transitioned from one status to another.
- This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
- format: date-time
- type: string
- message:
- description: |-
- message is a human readable message indicating details about the transition.
- This may be an empty string.
- maxLength: 32768
- type: string
- observedGeneration:
- description: |-
- observedGeneration represents the .metadata.generation that the condition was set based upon.
- For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
- with respect to the current state of the instance.
- format: int64
- minimum: 0
- type: integer
- reason:
- description: |-
- reason contains a programmatic identifier indicating the reason for the condition's last transition.
- Producers of specific condition types may define expected values and meanings for this field,
- and whether the values are considered a guaranteed API.
- The value should be a CamelCase string.
- This field may not be empty.
- maxLength: 1024
- minLength: 1
- pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
- type: string
- status:
- description: status of the condition, one of
- True, False, Unknown.
- enum:
- - "True"
- - "False"
- - Unknown
- type: string
- type:
- description: type of condition in CamelCase
- or in foo.example.com/CamelCase.
- maxLength: 316
- pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
- type: string
- required:
- - lastTransitionTime
- - message
- - reason
- - status
- - type
- type: object
- type: array
- x-kubernetes-list-map-keys:
- - type
- x-kubernetes-list-type: map
- loadBalancer:
- description: |-
- LoadBalancer contains the current status of the load-balancer,
- if one is present.
- properties:
- ingress:
- description: |-
- Ingress is a list containing ingress points for the load-balancer.
- Traffic intended for the service should be sent to these ingress points.
- items:
- description: |-
- LoadBalancerIngress represents the status of a load-balancer ingress point:
- traffic intended for the service should be sent to an ingress point.
- properties:
- hostname:
- description: |-
- Hostname is set for load-balancer ingress points that are DNS based
- (typically AWS load-balancers)
- type: string
- ip:
- description: |-
- IP is set for load-balancer ingress points that are IP based
- (typically GCE or OpenStack load-balancers)
- type: string
- ports:
- description: |-
- Ports is a list of records of service ports
- If used, every port defined in the service should have an entry in it
- items:
- properties:
- error:
- description: |-
- Error is to record the problem with the service port
- The format of the error shall comply with the following rules:
- - built-in error values shall be specified in this file and those shall use
- CamelCase names
- - cloud provider specific error values must have names that comply with the
- format foo.example.com/CamelCase.
- maxLength: 316
- pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
- type: string
- port:
- description: Port is the port number
- of the service port of which status
- is recorded here
- format: int32
- type: integer
- protocol:
- description: |-
- Protocol is the protocol of the service port of which status is recorded here
- The supported values are: "TCP", "UDP", "SCTP"
- type: string
- required:
- - error
- - port
- - protocol
- type: object
- type: array
- x-kubernetes-list-type: atomic
- type: object
- type: array
- type: object
- type: object
- type: object
- type: array
- startUpProbe:
- description: StartUpProbe
- properties:
- exec:
- description: Exec specifies the action to take.
- properties:
- command:
- description: |-
- Command is the command line to execute inside the container, the working directory for the
- command is root ('/') in the container's filesystem. The command is simply exec'd, it is
- not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
- a shell, you need to explicitly call out to that shell.
- Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
- items:
- type: string
- type: array
- type: object
- failureThreshold:
- description: |-
- Minimum consecutive failures for the probe to be considered failed after having succeeded.
- Defaults to 3. Minimum value is 1.
- format: int32
- type: integer
- grpc:
- description: GRPC specifies an action involving a GRPC port.
- properties:
- port:
- description: Port number of the gRPC service. Number
- must be in the range 1 to 65535.
- format: int32
- type: integer
- service:
- default: ""
- description: |-
- Service is the name of the service to place in the gRPC HealthCheckRequest
- (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
-
- If this is not specified, the default behavior is defined by gRPC.
- type: string
- required:
- - port
- type: object
- httpGet:
- description: HTTPGet specifies the http request to perform.
- properties:
- host:
- description: |-
- Host name to connect to, defaults to the pod IP. You probably want to set
- "Host" in httpHeaders instead.
- type: string
- httpHeaders:
- description: Custom headers to set in the request. HTTP
- allows repeated headers.
- items:
- description: HTTPHeader describes a custom header
- to be used in HTTP probes
- properties:
- name:
- description: |-
- The header field name.
- This will be canonicalized upon output, so case-variant names will be understood as the same header.
- type: string
- value:
- description: The header field value
- type: string
- required:
- - name
- - value
- type: object
- type: array
- path:
- description: Path to access on the HTTP server.
- type: string
- port:
- anyOf:
- - type: integer
- - type: string
- description: |-
- Name or number of the port to access on the container.
- Number must be in the range 1 to 65535.
- Name must be an IANA_SVC_NAME.
- x-kubernetes-int-or-string: true
- scheme:
- description: |-
- Scheme to use for connecting to the host.
- Defaults to HTTP.
- type: string
- required:
- - port
- type: object
- initialDelaySeconds:
- description: |-
- Number of seconds after the container has started before liveness probes are initiated.
- More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- format: int32
- type: integer
- periodSeconds:
- description: |-
- How often (in seconds) to perform the probe.
- Default to 10 seconds. Minimum value is 1.
- format: int32
- type: integer
- successThreshold:
- description: |-
- Minimum consecutive successes for the probe to be considered successful after having failed.
- Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
- format: int32
- type: integer
- tcpSocket:
- description: TCPSocket specifies an action involving a TCP
- port.
- properties:
- host:
- description: 'Optional: Host name to connect to, defaults
- to the pod IP.'
- type: string
- port:
- anyOf:
- - type: integer
- - type: string
- description: |-
- Number or name of the port to access on the container.
- Number must be in the range 1 to 65535.
- Name must be an IANA_SVC_NAME.
- x-kubernetes-int-or-string: true
- required:
- - port
- type: object
- terminationGracePeriodSeconds:
- description: |-
- Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
- The grace period is the duration in seconds after the processes running in the pod are sent
- a termination signal and the time when the processes are forcibly halted with a kill signal.
- Set this value longer than the expected cleanup time for your process.
- If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
- value overrides the value provided by the pod spec.
- Value must be non-negative integer. The value zero indicates stop immediately via
- the kill signal (no opportunity to shut down).
- This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
- Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
- format: int64
- type: integer
- timeoutSeconds:
- description: |-
- Number of seconds after which the probe times out.
- Defaults to 1 second. Minimum value is 1.
- More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- format: int32
- type: integer
- type: object
- terminationGracePeriodSeconds:
- description: TerminationGracePeriodSeconds
- format: int64
- type: integer
- tolerations:
- description: Tolerations Kubernetes native `tolerations` specification.
- items:
- description: |-
- The pod this Toleration is attached to tolerates any taint that matches
- the triple <key,value,effect> using the matching operator <operator>.
- properties:
- effect:
- description: |-
- Effect indicates the taint effect to match. Empty means match all taint effects.
- When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
- type: string
- key:
- description: |-
- Key is the taint key that the toleration applies to. Empty means match all taint keys.
- If the key is empty, operator must be Exists; this combination means to match all values and all keys.
- type: string
- operator:
- description: |-
- Operator represents a key's relationship to the value.
- Valid operators are Exists and Equal. Defaults to Equal.
- Exists is equivalent to wildcard for value, so that a pod can
- tolerate all taints of a particular category.
- type: string
- tolerationSeconds:
- description: |-
- TolerationSeconds represents the period of time the toleration (which must be
- of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
- it is not set, which means tolerate the taint forever (do not evict). Zero and
- negative values will be treated as 0 (evict immediately) by the system.
- format: int64
- type: integer
- value:
- description: |-
- Value is the taint value the toleration matches to.
- If the operator is Exists, the value should be empty, otherwise just a regular string.
- type: string
- type: object
- type: array
- topologySpreadConstraints:
- description: TopologySpreadConstraints Kubernetes Native `topologySpreadConstraints`
- specification.
- items:
- description: TopologySpreadConstraint specifies how to spread
- matching pods among the given topology.
- properties:
- labelSelector:
- description: |-
- LabelSelector is used to find matching pods.
- Pods that match this label selector are counted to determine the number of pods
- in their corresponding topology domain.
- properties:
- matchExpressions:
- description: matchExpressions is a list of label selector
- requirements. The requirements are ANDed.
- items:
- description: |-
- A label selector requirement is a selector that contains values, a key, and an operator that
- relates the key and values.
- properties:
- key:
- description: key is the label key that the selector
- applies to.
- type: string
- operator:
- description: |-
- operator represents a key's relationship to a set of values.
- Valid operators are In, NotIn, Exists and DoesNotExist.
- type: string
- values:
- description: |-
- values is an array of string values. If the operator is In or NotIn,
- the values array must be non-empty. If the operator is Exists or DoesNotExist,
- the values array must be empty. This array is replaced during a strategic
- merge patch.
- items:
- type: string
- type: array
- required:
- - key
- - operator
- type: object
- type: array
- matchLabels:
- additionalProperties:
- type: string
- description: |-
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
- map is equivalent to an element of matchExpressions, whose key field is "key", the
- operator is "In", and the values array contains only "value". The requirements are ANDed.
- type: object
- type: object
- x-kubernetes-map-type: atomic
- matchLabelKeys:
- description: |-
- MatchLabelKeys is a set of pod label keys to select the pods over which
- spreading will be calculated. The keys are used to lookup values from the
- incoming pod labels, those key-value labels are ANDed with labelSelector
- to select the group of existing pods over which spreading will be calculated
- for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.
- MatchLabelKeys cannot be set when LabelSelector isn't set.
- Keys that don't exist in the incoming pod labels will
- be ignored. A null or empty list means only match against labelSelector.
-
- This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).
- items:
- type: string
- type: array
- x-kubernetes-list-type: atomic
- maxSkew:
- description: |-
- MaxSkew describes the degree to which pods may be unevenly distributed.
- When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
- between the number of matching pods in the target topology and the global minimum.
- The global minimum is the minimum number of matching pods in an eligible domain
- or zero if the number of eligible domains is less than MinDomains.
- For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
- labelSelector spread as 2/2/1:
- In this case, the global minimum is 1.
- | zone1 | zone2 | zone3 |
- | P P | P P | P |
- - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;
- scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)
- violate MaxSkew(1).
- - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
- When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
- to topologies that satisfy it.
- It's a required field. Default value is 1 and 0 is not allowed.
- format: int32
- type: integer
- minDomains:
- description: |-
- MinDomains indicates a minimum number of eligible domains.
- When the number of eligible domains with matching topology keys is less than minDomains,
- Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed.
- And when the number of eligible domains with matching topology keys equals or greater than minDomains,
- this value has no effect on scheduling.
- As a result, when the number of eligible domains is less than minDomains,
- scheduler won't schedule more than maxSkew Pods to those domains.
- If value is nil, the constraint behaves as if MinDomains is equal to 1.
- Valid values are integers greater than 0.
- When value is not nil, WhenUnsatisfiable must be DoNotSchedule.
-
- For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same
- labelSelector spread as 2/2/2:
- | zone1 | zone2 | zone3 |
- | P P | P P | P P |
- The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0.
- In this situation, new pod with the same labelSelector cannot be scheduled,
- because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,
- it will violate MaxSkew.
-
- This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).
- format: int32
- type: integer
- nodeAffinityPolicy:
- description: |-
- NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector
- when calculating pod topology spread skew. Options are:
- - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.
- - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.
-
- If this value is nil, the behavior is equivalent to the Honor policy.
- This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
- type: string
- nodeTaintsPolicy:
- description: |-
- NodeTaintsPolicy indicates how we will treat node taints when calculating
- pod topology spread skew. Options are:
- - Honor: nodes without taints, along with tainted nodes for which the incoming pod
- has a toleration, are included.
- - Ignore: node taints are ignored. All nodes are included.
-
- If this value is nil, the behavior is equivalent to the Ignore policy.
- This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
- type: string
- topologyKey:
- description: |-
- TopologyKey is the key of node labels. Nodes that have a label with this key
- and identical values are considered to be in the same topology.
- We consider each <key, value> as a "bucket", and try to put balanced number
- of pods into each bucket.
- We define a domain as a particular instance of a topology.
- Also, we define an eligible domain as a domain whose nodes meet the requirements of
- nodeAffinityPolicy and nodeTaintsPolicy.
- e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology.
- And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology.
- It's a required field.
- type: string
- whenUnsatisfiable:
- description: |-
- WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
- the spread constraint.
- - DoNotSchedule (default) tells the scheduler not to schedule it.
- - ScheduleAnyway tells the scheduler to schedule the pod in any location,
- but giving higher precedence to topologies that would help reduce the
- skew.
- A constraint is considered "Unsatisfiable" for an incoming pod
- if and only if every possible node assignment for that pod would violate
- "MaxSkew" on some topology.
- For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
- labelSelector spread as 3/1/1:
- | zone1 | zone2 | zone3 |
- | P P P | P | P |
- If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
- to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
- MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
- won't make it *more* imbalanced.
- It's a required field.
- type: string
- required:
- - maxSkew
- - topologyKey
- - whenUnsatisfiable
- type: object
- type: array
- updateStrategy:
- description: UpdateStrategy
- properties:
- rollingUpdate:
- description: RollingUpdate is used to communicate parameters
- when Type is RollingUpdateStatefulSetStrategyType.
- properties:
- maxUnavailable:
- anyOf:
- - type: integer
- - type: string
- description: |-
- The maximum number of pods that can be unavailable during the update.
- Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
- Absolute number is calculated from percentage by rounding up. This can not be 0.
- Defaults to 1. This field is alpha-level and is only honored by servers that enable the
- MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to
- Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it
- will be counted towards MaxUnavailable.
- x-kubernetes-int-or-string: true
- partition:
- description: |-
- Partition indicates the ordinal at which the StatefulSet should be partitioned
- for updates. During a rolling update, all pods from ordinal Replicas-1 to
- Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched.
- This is helpful in being able to do a canary based deployment. The default value is 0.
... 50659 lines suppressed ...
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org