Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait using kubectl cli #1347

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions charts/kubedb-autoscaler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ The following table lists the configurable parameters of the `kubedb-autoscaler`
| operator.tag | KubeDB enterprise operator container image tag | <code>""</code> |
| operator.securityContext | Security options this container should run with | <code>{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}</code> |
| operator.resources | Compute Resources required by this container | <code>{}</code> |
| waitfor.registry | Docker registry used to pull KubeDB enterprise k8s-wait-for image | <code>appscode</code> |
| waitfor.repository | KubeDB enterprise k8s-wait-for container image | <code>k8s-wait-for</code> |
| waitfor.tag | KubeDB enterprise k8s-wait-for container image tag | <code>"v2.0"</code> |
| waitfor.registry | Docker registry used to pull KubeDB enterprise kubectl-nonroot image | <code>appscode</code> |
| waitfor.repository | KubeDB enterprise kubectl-nonroot container image | <code>kubectl-nonroot</code> |
| waitfor.tag | KubeDB enterprise kubectl-nonroot container image tag | <code>"1.31"</code> |
| imagePullSecrets | Specify an array of imagePullSecrets. Secrets must be manually created in the namespace. <br> Example: <br> `helm template charts/kubedb-autoscaler \` <br> `--set imagePullSecrets[0].name=sec0 \` <br> `--set imagePullSecrets[1].name=sec1` | <code>[]</code> |
| imagePullPolicy | Container image pull policy | <code>IfNotPresent</code> |
| criticalAddon | If true, installs KubeDB operator as critical addon | <code>false</code> |
Expand Down
8 changes: 5 additions & 3 deletions charts/kubedb-autoscaler/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ spec:
- name: wait
image: {{ include "waitfor.registry" . }}/{{ .Values.waitfor.repository }}:{{ .Values.waitfor.tag }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
args:
- "service"
- "-lapp.kubernetes.io/name=kubedb-webhook-server"
command:
- /bin/sh
- -c
- kubectl wait --for=create -n {{ .Release.Namespace }} service -l 'app.kubernetes.io/name=kubedb-webhook-server' --timeout=5m &&
kubectl wait --for=condition=kubedb.com/conversion=true -n {{ .Release.Namespace }} pods -l 'app.kubernetes.io/instance={{ .Release.Name }},app.kubernetes.io/name=kubedb-webhook-server' --timeout=5m
securityContext:
{{- toYaml .Values.operator.securityContext | nindent 10 }}
resources:
Expand Down
12 changes: 6 additions & 6 deletions charts/kubedb-autoscaler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ operator:
# requests:
# cpu: 100m
# memory: 128Mi
# Docker registry containing k8s-wait-for images
# Docker registry containing kubectl-nonroot images
waitfor:
# Docker registry used to pull KubeDB enterprise k8s-wait-for image
# Docker registry used to pull KubeDB enterprise kubectl-nonroot image
registry: appscode
# KubeDB enterprise k8s-wait-for container image
repository: k8s-wait-for
# KubeDB enterprise k8s-wait-for container image tag
tag: "v2.0"
# KubeDB enterprise kubectl-nonroot container image
repository: kubectl-nonroot
# KubeDB enterprise kubectl-nonroot container image tag
tag: "1.31"

# Specify an array of imagePullSecrets.
# Secrets must be manually created in the namespace.
Expand Down
1 change: 1 addition & 0 deletions charts/kubedb-crd-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ The following table lists the configurable parameters of the `kubedb-crd-manager
| serviceAccount.create | Specifies whether a service account should be created | <code>true</code> |
| serviceAccount.annotations | Annotations to add to the service account | <code>{}</code> |
| serviceAccount.name | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | <code></code> |
| featureGates.Cassandra | | <code>false</code> |
| featureGates.ClickHouse | | <code>false</code> |
| featureGates.Druid | | <code>false</code> |
| featureGates.Elasticsearch | | <code>false</code> |
Expand Down
1 change: 1 addition & 0 deletions charts/kubedb-crd-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ serviceAccount:
name:

featureGates:
Cassandra: false
ClickHouse: false
Druid: false
Elasticsearch: false
Expand Down
6 changes: 3 additions & 3 deletions charts/kubedb-dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ The following table lists the configurable parameters of the `kubedb-dashboard`
| operator.tag | KubeDB dashboard operator container image tag | <code>""</code> |
| operator.securityContext | Security options this container should run with | <code>{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}</code> |
| operator.resources | Compute Resources required by this container | <code>{}</code> |
| waitfor.registry | Docker registry used to pull KubeDB enterprise k8s-wait-for image | <code>appscode</code> |
| waitfor.repository | KubeDB enterprise k8s-wait-for container image | <code>k8s-wait-for</code> |
| waitfor.tag | KubeDB enterprise k8s-wait-for container image tag | <code>"v2.0"</code> |
| waitfor.registry | Docker registry used to pull KubeDB enterprise kubectl-nonroot image | <code>appscode</code> |
| waitfor.repository | KubeDB enterprise kubectl-nonroot container image | <code>kubectl-nonroot</code> |
| waitfor.tag | KubeDB enterprise kubectl-nonroot container image tag | <code>"1.31"</code> |
| imagePullSecrets | Specify an array of imagePullSecrets. Secrets must be manually created in the namespace. <br> Example: <br> `helm template charts/kubedb-dashboard \` <br> `--set imagePullSecrets[0].name=sec0 \` <br> `--set imagePullSecrets[1].name=sec1` | <code>[]</code> |
| imagePullPolicy | Container image pull policy | <code>IfNotPresent</code> |
| criticalAddon | If true, installs KubeDB dashboard operator as critical addon | <code>false</code> |
Expand Down
8 changes: 5 additions & 3 deletions charts/kubedb-dashboard/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ spec:
- name: wait
image: {{ include "waitfor.registry" . }}/{{ .Values.waitfor.repository }}:{{ .Values.waitfor.tag }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
args:
- "service"
- "-lapp.kubernetes.io/name=kubedb-webhook-server"
command:
- /bin/sh
- -c
- kubectl wait --for=create -n {{ .Release.Namespace }} service -l 'app.kubernetes.io/name=kubedb-webhook-server' --timeout=5m &&
kubectl wait --for=condition=kubedb.com/conversion=true -n {{ .Release.Namespace }} pods -l 'app.kubernetes.io/instance={{ .Release.Name }},app.kubernetes.io/name=kubedb-webhook-server' --timeout=5m
securityContext:
{{- toYaml .Values.operator.securityContext | nindent 10 }}
resources:
Expand Down
Loading
Loading