Skip to content

Commit

Permalink
Updated the indentation issue in the template (#1986)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Hou <[email protected]>
  • Loading branch information
knative-prow-robot and houshengbo authored Jan 31, 2025
1 parent 757dfcd commit a049130
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
48 changes: 24 additions & 24 deletions config/charts/knative-operator/templates/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ metadata:
app.kubernetes.io/component: operator-webhook
app.kubernetes.io/version: "{{ .Chart.Version }}"
app.kubernetes.io/name: knative-operator
{{- if and .Values.knative_operator.operator_webhook.annotations }}
{{- if and .Values.knative_operator.operator_webhook.annotations }}
annotations:
{{ toYaml .Values.knative_operator.operator_webhook.annotations }}
{{- end }}
{{ toYaml .Values.knative_operator.operator_webhook.annotations | indent 4 }}
{{- end }}
spec:
selector:
matchLabels:
Expand All @@ -66,19 +66,19 @@ spec:
app.kubernetes.io/version: "{{ .Chart.Version }}"
app.kubernetes.io/name: knative-operator
sidecar.istio.io/inject: "false"
{{- if and .Values.knative_operator.operator_webhook.podAnnotations }}
{{- if and .Values.knative_operator.operator_webhook.podAnnotations }}
annotations:
{{ toYaml .Values.knative_operator.operator_webhook.podAnnotations }}
{{- end }}
{{ toYaml .Values.knative_operator.operator_webhook.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.knative_operator.operator_webhook.affinity }}
{{- if .Values.knative_operator.operator_webhook.affinity }}
affinity:
{{ toYaml .Values.knative_operator.operator_webhook.affinity | indent 8 }}
{{- end }}
{{- if and .Values.knative_operator.operator_webhook.securityContext }}
{{ toYaml .Values.knative_operator.operator_webhook.affinity | indent 8 }}
{{- end }}
{{- if and .Values.knative_operator.operator_webhook.securityContext }}
securityContext:
{{ toYaml .Values.knative_operator.operator_webhook.securityContext }}
{{- end }}
{{ toYaml .Values.knative_operator.operator_webhook.securityContext | indent 8 }}
{{- end }}
serviceAccountName: operator-webhook
containers:
- name: operator-webhook
Expand Down Expand Up @@ -6330,10 +6330,10 @@ metadata:
labels:
app.kubernetes.io/name: knative-operator
app.kubernetes.io/version: "{{ .Chart.Version }}"
{{- if and .Values.knative_operator.knative_operator.annotations }}
{{- if and .Values.knative_operator.knative_operator.annotations }}
annotations:
{{ toYaml .Values.knative_operator.knative_operator.annotations }}
{{- end }}
{{ toYaml .Values.knative_operator.knative_operator.annotations | indent 4 }}
{{- end }}
spec:
replicas: 1
selector:
Expand All @@ -6346,20 +6346,20 @@ spec:
app.kubernetes.io/name: knative-operator
app.kubernetes.io/version: "{{ .Chart.Version }}"
sidecar.istio.io/inject: "false"
{{- if and .Values.knative_operator.knative_operator.podAnnotations }}
{{- if and .Values.knative_operator.knative_operator.podAnnotations }}
annotations:
{{ toYaml .Values.knative_operator.knative_operator.podAnnotations }}
{{- end }}
{{ toYaml .Values.knative_operator.knative_operator.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.knative_operator.knative_operator.affinity }}
{{- if .Values.knative_operator.knative_operator.affinity }}
affinity:
{{ toYaml .Values.knative_operator.knative_operator.affinity | indent 8 }}
{{- end }}
{{ toYaml .Values.knative_operator.knative_operator.affinity | indent 8 }}
{{- end }}
serviceAccountName: knative-operator
{{- if and .Values.knative_operator.knative_operator.securityContext }}
{{- if and .Values.knative_operator.knative_operator.securityContext }}
securityContext:
{{ toYaml .Values.knative_operator.knative_operator.securityContext }}
{{- end }}
{{ toYaml .Values.knative_operator.knative_operator.securityContext | indent 8 }}
{{- end }}
containers:
- name: knative-operator
image: "{{ .Values.knative_operator.knative_operator.image }}:{{ .Values.knative_operator.knative_operator.tag }}"
Expand Down
2 changes: 1 addition & 1 deletion hack/generate-helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -o nounset
set -o pipefail

# Set the version and tag in Chart.yaml and values.yaml
VERSION=v1.16.0
VERSION=v1.17.0
if [[ -n "${TAG:-}" ]]; then
VERSION=${TAG}
fi
Expand Down

0 comments on commit a049130

Please sign in to comment.