Enable yamllint rules for templates
- braces - brackets - colons - commas - comments - comments-indentation - document-start - hyphens - indentation With corresponding code changes. Also idempotency fix for lint script. Change-Id: Ibe5281cbb4ad7970e92f3d1f921abb1efc89dc3b
This commit is contained in:
parent
ddfa7a4741
commit
dfb32ccf60
@ -71,9 +71,9 @@ rules:
|
|||||||
- namespaces
|
- namespaces
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
- apiGroups: ["batch" ]
|
- apiGroups: ["batch"]
|
||||||
resources: ["jobs"]
|
resources: ["jobs"]
|
||||||
verbs: ["get" ]
|
verbs: ["get"]
|
||||||
---
|
---
|
||||||
# This manifest installs the calico/node container, as well
|
# This manifest installs the calico/node container, as well
|
||||||
# as the Calico CNI plugins and network config on
|
# as the Calico CNI plugins and network config on
|
||||||
|
@ -126,8 +126,8 @@ spec:
|
|||||||
# conf.controllers expanded values
|
# conf.controllers expanded values
|
||||||
{{ include "helm-toolkit.utils.to_k8s_env_vars" .Values.conf.controllers | indent 12 }}
|
{{ include "helm-toolkit.utils.to_k8s_env_vars" .Values.conf.controllers | indent 12 }}
|
||||||
|
|
||||||
# etcd tls files
|
|
||||||
{{ if .Values.endpoints.etcd.auth.client.tls.ca }}
|
{{ if .Values.endpoints.etcd.auth.client.tls.ca }}
|
||||||
|
# etcd tls files
|
||||||
- name: ETCD_CA_CERT_FILE
|
- name: ETCD_CA_CERT_FILE
|
||||||
value: {{ .Values.endpoints.etcd.auth.client.path.ca }}
|
value: {{ .Values.endpoints.etcd.auth.client.path.ca }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -83,7 +83,7 @@ spec:
|
|||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: KUBECTL_PARAM
|
- name: KUBECTL_PARAM
|
||||||
value: {{ tuple $envAll "ceph" "ceph-defragosd" | include "helm-toolkit.snippets.kubernetes_kubectl_params" | indent 10 }}
|
value: {{ tuple $envAll "ceph" "ceph-defragosd" | include "helm-toolkit.snippets.kubernetes_kubectl_params" }}
|
||||||
command:
|
command:
|
||||||
- /tmp/utils-defragOSDs.sh
|
- /tmp/utils-defragOSDs.sh
|
||||||
- cron
|
- cron
|
||||||
@ -105,6 +105,6 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-client-bin
|
- name: ceph-client-bin
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-client-bin
|
name: ceph-client-bin
|
||||||
defaultMode: 0555
|
defaultMode: 0555
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -99,7 +99,7 @@ spec:
|
|||||||
- name: MON_PORT_V2
|
- name: MON_PORT_V2
|
||||||
value: {{ tuple "ceph_mon" "internal" "mon_msgr2" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}
|
value: {{ tuple "ceph_mon" "internal" "mon_msgr2" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}
|
||||||
- name: KUBECTL_PARAM
|
- name: KUBECTL_PARAM
|
||||||
value: {{ tuple $envAll "ceph" "checkdns" | include "helm-toolkit.snippets.kubernetes_kubectl_params" | indent 10 }}
|
value: {{ tuple $envAll "ceph" "checkdns" | include "helm-toolkit.snippets.kubernetes_kubectl_params" }}
|
||||||
command:
|
command:
|
||||||
- /tmp/_start.sh
|
- /tmp/_start.sh
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
@ -98,14 +98,14 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 6800
|
- containerPort: 6800
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: 6800
|
port: 6800
|
||||||
initialDelaySeconds: 60
|
initialDelaySeconds: 60
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: 6800
|
port: 6800
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: pod-tmp
|
- name: pod-tmp
|
||||||
mountPath: /tmp
|
mountPath: /tmp
|
||||||
|
@ -118,19 +118,19 @@ spec:
|
|||||||
containerPort: {{ tuple "ceph_mgr" "internal" "metrics" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
containerPort: {{ tuple "ceph_mgr" "internal" "metrics" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- /tmp/mgr-check.sh
|
- /tmp/mgr-check.sh
|
||||||
- liveness
|
- liveness
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- /tmp/mgr-check.sh
|
- /tmp/mgr-check.sh
|
||||||
- readiness
|
- readiness
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: pod-tmp
|
- name: pod-tmp
|
||||||
mountPath: /tmp
|
mountPath: /tmp
|
||||||
|
@ -136,7 +136,7 @@ spec:
|
|||||||
- name: CEPH_PUBLIC_NETWORK
|
- name: CEPH_PUBLIC_NETWORK
|
||||||
value: {{ .Values.network.public | quote }}
|
value: {{ .Values.network.public | quote }}
|
||||||
- name: KUBECTL_PARAM
|
- name: KUBECTL_PARAM
|
||||||
value: {{ tuple $envAll "ceph" "mon" | include "helm-toolkit.snippets.kubernetes_kubectl_params" | indent 10 }}
|
value: {{ tuple $envAll "ceph" "mon" | include "helm-toolkit.snippets.kubernetes_kubectl_params" }}
|
||||||
- name: MON_PORT
|
- name: MON_PORT
|
||||||
value: {{ tuple "ceph_mon" "internal" "mon" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}
|
value: {{ tuple "ceph_mon" "internal" "mon" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}
|
||||||
- name: MON_PORT_V2
|
- name: MON_PORT_V2
|
||||||
@ -157,26 +157,26 @@ spec:
|
|||||||
- /tmp/mon-start.sh
|
- /tmp/mon-start.sh
|
||||||
lifecycle:
|
lifecycle:
|
||||||
preStop:
|
preStop:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- /tmp/mon-stop.sh
|
- /tmp/mon-stop.sh
|
||||||
ports:
|
ports:
|
||||||
- containerPort: {{ tuple "ceph_mon" "internal" "mon" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
- containerPort: {{ tuple "ceph_mon" "internal" "mon" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
- containerPort: {{ tuple "ceph_mon" "internal" "mon_msgr2" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
- containerPort: {{ tuple "ceph_mon" "internal" "mon_msgr2" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- /tmp/mon-check.sh
|
- /tmp/mon-check.sh
|
||||||
- liveness
|
- liveness
|
||||||
initialDelaySeconds: 360
|
initialDelaySeconds: 360
|
||||||
periodSeconds: 180
|
periodSeconds: 180
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- /tmp/mon-check.sh
|
- /tmp/mon-check.sh
|
||||||
- readiness
|
- readiness
|
||||||
initialDelaySeconds: 60
|
initialDelaySeconds: 60
|
||||||
periodSeconds: 60
|
periodSeconds: 60
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: pod-tmp
|
- name: pod-tmp
|
||||||
mountPath: /tmp
|
mountPath: /tmp
|
||||||
|
@ -68,7 +68,7 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
{{ tuple $envAll "job_keyring_generator" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
{{ tuple $envAll "job_keyring_generator" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ $jobName }}
|
- name: {{ $jobName }}
|
||||||
{{ tuple $envAll "ceph_config_helper" | include "helm-toolkit.snippets.image" | indent 10 }}
|
{{ tuple $envAll "ceph_config_helper" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||||
{{ tuple $envAll $envAll.Values.pod.resources.jobs.secret_provisioning | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
{{ tuple $envAll $envAll.Values.pod.resources.jobs.secret_provisioning | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||||
{{ dict "envAll" $envAll "application" "ceph" "container" "$jobName" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
{{ dict "envAll" $envAll "application" "ceph" "container" "$jobName" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
||||||
|
@ -70,7 +70,7 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
{{ tuple $envAll "storage_keys_generator" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
{{ tuple $envAll "storage_keys_generator" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- name: ceph-storage-keys-generator
|
- name: ceph-storage-keys-generator
|
||||||
{{ tuple $envAll "ceph_config_helper" | include "helm-toolkit.snippets.image" | indent 10 }}
|
{{ tuple $envAll "ceph_config_helper" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||||
{{ tuple $envAll $envAll.Values.pod.resources.jobs.secret_provisioning | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
{{ tuple $envAll $envAll.Values.pod.resources.jobs.secret_provisioning | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||||
{{ dict "envAll" $envAll "application" "storage_keys_generator" "container" "ceph_storage_keys_generator" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
{{ dict "envAll" $envAll "application" "storage_keys_generator" "container" "ceph_storage_keys_generator" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
||||||
|
@ -98,7 +98,7 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
{{ tuple $envAll "cephfs_client_key_generator" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
{{ tuple $envAll "cephfs_client_key_generator" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- name: ceph-storage-keys-generator
|
- name: ceph-storage-keys-generator
|
||||||
{{ tuple $envAll "ceph_config_helper" | include "helm-toolkit.snippets.image" | indent 10 }}
|
{{ tuple $envAll "ceph_config_helper" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||||
{{ tuple $envAll $envAll.Values.pod.resources.jobs.secret_provisioning | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
{{ tuple $envAll $envAll.Values.pod.resources.jobs.secret_provisioning | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||||
{{ dict "envAll" $envAll "application" "cephfs_client_key_generator" "container" "ceph_storage_keys_generator" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
{{ dict "envAll" $envAll "application" "cephfs_client_key_generator" "container" "ceph_storage_keys_generator" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
||||||
|
@ -36,7 +36,7 @@ metadata:
|
|||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
elasticsearch.yml: {{ toYaml .Values.conf.elasticsearch.config | b64enc }}
|
elasticsearch.yml: {{ toYaml .Values.conf.elasticsearch.config | b64enc }}
|
||||||
#NOTE(portdirect): this must be last, to work round helm ~2.7 bug.
|
# NOTE(portdirect): this must be last, to work round helm ~2.7 bug.
|
||||||
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.httpd "key" "httpd.conf" "format" "Secret") | indent 2 }}
|
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.httpd "key" "httpd.conf" "format" "Secret") | indent 2 }}
|
||||||
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.log4j2 "key" "log4j2.properties" "format" "Secret") | indent 2 }}
|
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.log4j2 "key" "log4j2.properties" "format" "Secret") | indent 2 }}
|
||||||
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.jvm_options "key" "jvm.options" "format" "Secret") | indent 2 }}
|
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.jvm_options "key" "jvm.options" "format" "Secret") | indent 2 }}
|
||||||
|
@ -103,7 +103,7 @@ spec:
|
|||||||
- name: NODE_NAME
|
- name: NODE_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.name
|
fieldPath: metadata.name
|
||||||
- name: ELASTICSEARCH_USERNAME
|
- name: ELASTICSEARCH_USERNAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
@ -97,7 +97,7 @@ spec:
|
|||||||
{{ tuple $envAll "flannel" | include "helm-toolkit.snippets.image" | indent 10 }}
|
{{ tuple $envAll "flannel" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
command: [ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr" ]
|
command: ["/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr"]
|
||||||
env:
|
env:
|
||||||
- name: POD_NAME
|
- name: POD_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@ -116,7 +116,7 @@ spec:
|
|||||||
mountPath: /etc/kube-flannel/
|
mountPath: /etc/kube-flannel/
|
||||||
- name: install-cni
|
- name: install-cni
|
||||||
image: {{ .Values.images.tags.flannel }}
|
image: {{ .Values.images.tags.flannel }}
|
||||||
command: [ "/bin/sh", "-c", "set -e -x; cp -f /etc/kube-flannel/cni-conf.json /etc/cni/net.d/10-flannel.conf; while true; do sleep 3600; done" ]
|
command: ["/bin/sh", "-c", "set -e -x; cp -f /etc/kube-flannel/cni-conf.json /etc/cni/net.d/10-flannel.conf; while true; do sleep 3600; done"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: pod-tmp
|
- name: pod-tmp
|
||||||
mountPath: /tmp
|
mountPath: /tmp
|
||||||
|
@ -22,7 +22,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: forward
|
- name: forward
|
||||||
port: {{ tuple "fluentd" "internal" "service" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
port: {{ tuple "fluentd" "internal" "service" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
{{ if .Values.network.fluentd.node_port.enabled }}
|
{{ if .Values.network.fluentd.node_port.enabled }}
|
||||||
nodePort: {{ .Values.network.fluentd.node_port.port }}
|
nodePort: {{ .Values.network.fluentd.node_port.port }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -22,6 +22,6 @@ metadata:
|
|||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
kibana.yml: {{ toYaml .Values.conf.kibana | b64enc }}
|
kibana.yml: {{ toYaml .Values.conf.kibana | b64enc }}
|
||||||
#NOTE(portdirect): this must be last, to work round helm ~2.7 bug.
|
# NOTE(portdirect): this must be last, to work round helm ~2.7 bug.
|
||||||
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.httpd "key" "httpd.conf" "format" "Secret") | indent 2 }}
|
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.httpd "key" "httpd.conf" "format" "Secret") | indent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -33,7 +33,7 @@ spec:
|
|||||||
{{ $envAll.Values.labels.test.node_selector_key }}: {{ $envAll.Values.labels.test.node_selector_value | quote }}
|
{{ $envAll.Values.labels.test.node_selector_key }}: {{ $envAll.Values.labels.test.node_selector_value | quote }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
initContainers:
|
initContainers:
|
||||||
{{ tuple $envAll "tests" $mounts_kubernetes_keystone_webhook_tests_init | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
{{ tuple $envAll "tests" $mounts_kubernetes_keystone_webhook_tests_init | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 4 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ $envAll.Release.Name }}-kubernetes-keystone-webhook-test
|
- name: {{ $envAll.Release.Name }}-kubernetes-keystone-webhook-test
|
||||||
{{ tuple $envAll "scripted_test" | include "helm-toolkit.snippets.image" | indent 6 }}
|
{{ tuple $envAll "scripted_test" | include "helm-toolkit.snippets.image" | indent 6 }}
|
||||||
|
@ -24,5 +24,5 @@ spec:
|
|||||||
- name: ldap
|
- name: ldap
|
||||||
port: {{ tuple "ldap" "internal" "ldap" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
port: {{ tuple "ldap" "internal" "ldap" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
selector:
|
selector:
|
||||||
{{ tuple $envAll "ldap" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
{{ tuple $envAll "ldap" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -81,7 +81,7 @@ spec:
|
|||||||
- metadata:
|
- metadata:
|
||||||
name: ldap-data
|
name: ldap-data
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: ["ReadWriteOnce"]
|
||||||
storageClassName: {{ .Values.storage.pvc.class_name }}
|
storageClassName: {{ .Values.storage.pvc.class_name }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
@ -89,7 +89,7 @@ spec:
|
|||||||
- metadata:
|
- metadata:
|
||||||
name: ldap-config
|
name: ldap-config
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: ["ReadWriteOnce"]
|
||||||
storageClassName: {{ .Values.storage.pvc.class_name }}
|
storageClassName: {{ .Values.storage.pvc.class_name }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
@ -37,7 +37,7 @@ spec:
|
|||||||
{{ .Values.labels.test.node_selector_key }}: {{ .Values.labels.test.node_selector_value }}
|
{{ .Values.labels.test.node_selector_key }}: {{ .Values.labels.test.node_selector_value }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
initContainers:
|
initContainers:
|
||||||
{{ tuple $envAll "tests" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
{{ tuple $envAll "tests" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 4 }}
|
||||||
containers:
|
containers:
|
||||||
- name: mariadb-test
|
- name: mariadb-test
|
||||||
{{ dict "envAll" $envAll "application" "tests" "container" "test" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 6 }}
|
{{ dict "envAll" $envAll "application" "tests" "container" "test" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 6 }}
|
||||||
|
@ -263,7 +263,7 @@ spec:
|
|||||||
- metadata:
|
- metadata:
|
||||||
name: mysql-data
|
name: mysql-data
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: ["ReadWriteOnce"]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.volume.size }}
|
storage: {{ .Values.volume.size }}
|
||||||
|
@ -15,8 +15,8 @@ limitations under the License.
|
|||||||
{{- if .Values.manifests.deployment }}
|
{{- if .Values.manifests.deployment }}
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
|
|
||||||
{{- $rcControllerName := printf "%s-%s" $envAll.Release.Name "memcached" }}
|
{{- $rcControllerName := printf "%s-%s" $envAll.Release.Name "memcached" }}
|
||||||
{{- $configMapBinName := printf "%s-%s" $envAll.Release.Name "memcached-bin" }}
|
{{- $configMapBinName := printf "%s-%s" $envAll.Release.Name "memcached-bin" }}
|
||||||
|
|
||||||
{{ tuple $envAll "memcached" $rcControllerName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
{{ tuple $envAll "memcached" $rcControllerName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||||
---
|
---
|
||||||
|
@ -24,5 +24,5 @@ spec:
|
|||||||
- name: db
|
- name: db
|
||||||
port: {{ tuple "mongodb" "internal" "mongodb" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
port: {{ tuple "mongodb" "internal" "mongodb" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
selector:
|
selector:
|
||||||
{{ tuple $envAll "mongodb" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
{{ tuple $envAll "mongodb" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -130,7 +130,7 @@ spec:
|
|||||||
annotations:
|
annotations:
|
||||||
{{ .Values.volume.class_path }}: {{ .Values.volume.class_name }}
|
{{ .Values.volume.class_path }}: {{ .Values.volume.class_name }}
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: ["ReadWriteOnce"]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.volume.size }}
|
storage: {{ .Values.volume.size }}
|
||||||
|
@ -30,6 +30,6 @@ data:
|
|||||||
{{- $objectFile := printf "%s.cfg" $objectType -}}
|
{{- $objectFile := printf "%s.cfg" $objectType -}}
|
||||||
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" $config.template "key" $objectFile "format" "Secret") | indent 2 }}
|
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" $config.template "key" $objectFile "format" "Secret") | indent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
#NOTE(portdirect): this must be last, to work round helm ~2.7 bug.
|
# NOTE(portdirect): this must be last, to work round helm ~2.7 bug.
|
||||||
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.httpd "key" "httpd.conf" "format" "Secret") | indent 2 }}
|
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.httpd "key" "httpd.conf" "format" "Secret") | indent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -43,7 +43,7 @@ metadata:
|
|||||||
rules:
|
rules:
|
||||||
- apiGroups: ['policy']
|
- apiGroups: ['policy']
|
||||||
resources: ['podsecuritypolicies']
|
resources: ['podsecuritypolicies']
|
||||||
verbs: ['use']
|
verbs: ['use']
|
||||||
resourceNames:
|
resourceNames:
|
||||||
- {{ $pspName }}
|
- {{ $pspName }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -23,4 +23,3 @@ type: Opaque
|
|||||||
data:
|
data:
|
||||||
admin_user.conf: {{ tuple "secrets/_admin_user.conf.tpl" . | include "helm-toolkit.utils.template" | b64enc }}
|
admin_user.conf: {{ tuple "secrets/_admin_user.conf.tpl" . | include "helm-toolkit.utils.template" | b64enc }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
@ -24,5 +24,5 @@ spec:
|
|||||||
- name: restapi
|
- name: restapi
|
||||||
port: {{ tuple "postgresql-restapi" "internal" "restapi" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
port: {{ tuple "postgresql-restapi" "internal" "restapi" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
selector:
|
selector:
|
||||||
{{ tuple $envAll "postgresql" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
{{ tuple $envAll "postgresql" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -448,7 +448,7 @@ spec:
|
|||||||
annotations:
|
annotations:
|
||||||
{{ .Values.storage.pvc.class_path }}: {{ .Values.storage.pvc.class_name }}
|
{{ .Values.storage.pvc.class_path }}: {{ .Values.storage.pvc.class_name }}
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: ["ReadWriteOnce"]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.storage.pvc.size }}
|
storage: {{ .Values.storage.pvc.size }}
|
||||||
|
@ -88,14 +88,14 @@ spec:
|
|||||||
mountPath: /tmp
|
mountPath: /tmp
|
||||||
- name: proc
|
- name: proc
|
||||||
mountPath: /host/proc
|
mountPath: /host/proc
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: sys
|
- name: sys
|
||||||
mountPath: /host/sys
|
mountPath: /host/sys
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{ if .Values.conf.collectors.textfile.directory }}
|
{{ if .Values.conf.collectors.textfile.directory }}
|
||||||
- name: stats-out
|
- name: stats-out
|
||||||
mountPath: {{.Values.conf.collectors.textfile.directory }}
|
mountPath: {{.Values.conf.collectors.textfile.directory }}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{ end }}
|
{{ end }}
|
||||||
- name: node-exporter-bin
|
- name: node-exporter-bin
|
||||||
mountPath: /tmp/node-exporter.sh
|
mountPath: /tmp/node-exporter.sh
|
||||||
|
@ -89,7 +89,7 @@ spec:
|
|||||||
mountPath: /tmp
|
mountPath: /tmp
|
||||||
- name: proc
|
- name: proc
|
||||||
mountPath: /host/proc
|
mountPath: /host/proc
|
||||||
readOnly: true
|
readOnly: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: pod-tmp
|
- name: pod-tmp
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -25,6 +25,6 @@ data:
|
|||||||
{{ range $key, $value := .Values.conf.prometheus.rules }}
|
{{ range $key, $value := .Values.conf.prometheus.rules }}
|
||||||
{{ $key }}.rules: {{ toYaml $value | b64enc }}
|
{{ $key }}.rules: {{ toYaml $value | b64enc }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
#NOTE(srwilkers): this must be last, to work round helm ~2.7 bug.
|
# NOTE(srwilkers): this must be last, to work round helm ~2.7 bug.
|
||||||
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.httpd "key" "httpd.conf" "format" "Secret") | indent 2 }}
|
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.httpd "key" "httpd.conf" "format" "Secret") | indent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -25,14 +25,14 @@ limitations under the License.
|
|||||||
{{- if regexMatch "^[0-9]*m$" $val -}}
|
{{- if regexMatch "^[0-9]*m$" $val -}}
|
||||||
{{- $val = div (float64 (trimSuffix "m" $val)) 1000 -}}
|
{{- $val = div (float64 (trimSuffix "m" $val)) 1000 -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{/* NOTE(aostapenko) String with floating number does not convert well to int*/}}
|
{{/* NOTE(aostapenko) String with floating number does not convert well to int */}}
|
||||||
{{- $val | float64 | int | default 1 -}}
|
{{- $val | float64 | int | default 1 -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if .Values.manifests.statefulset }}
|
{{- if .Values.manifests.statefulset }}
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
|
|
||||||
{{- $rcControllerName := printf "%s-%s" $envAll.Release.Name "rabbitmq" }}
|
{{- $rcControllerName := printf "%s-%s" $envAll.Release.Name "rabbitmq" }}
|
||||||
{{ tuple $envAll "rabbitmq" $rcControllerName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
{{ tuple $envAll "rabbitmq" $rcControllerName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
@ -277,7 +277,7 @@ spec:
|
|||||||
- metadata:
|
- metadata:
|
||||||
name: rabbitmq-data
|
name: rabbitmq-data
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: ["ReadWriteOnce"]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ $envAll.Values.volume.size }}
|
storage: {{ $envAll.Values.volume.size }}
|
||||||
|
@ -20,7 +20,7 @@ apiVersion: v1
|
|||||||
metadata:
|
metadata:
|
||||||
name: docker-images
|
name: docker-images
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: ["ReadWriteOnce"]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.volume.size }}
|
storage: {{ .Values.volume.size }}
|
||||||
|
@ -7,10 +7,10 @@ HELM_VERSION=$(yq -r '.version.helm' ${HELM_DATA_YAML})
|
|||||||
GOOGLE_HELM_REPO_URL=$(yq -r '.url.google_helm_repo' ${HELM_DATA_YAML})
|
GOOGLE_HELM_REPO_URL=$(yq -r '.url.google_helm_repo' ${HELM_DATA_YAML})
|
||||||
LINT_DIR=.yamllint
|
LINT_DIR=.yamllint
|
||||||
|
|
||||||
|
rm -rf */charts/helm-toolkit
|
||||||
mkdir ${LINT_DIR}
|
mkdir ${LINT_DIR}
|
||||||
cp -r * ${LINT_DIR}
|
cp -r * ${LINT_DIR}
|
||||||
rm -rf ${LINT_DIR}/*/templates
|
rm -rf ${LINT_DIR}/*/templates
|
||||||
rm -rf */charts/helm-toolkit
|
|
||||||
wget -qO ${LINT_DIR}/helm.tgz ${GOOGLE_HELM_REPO_URL}/helm-${HELM_VERSION}-linux-amd64.tar.gz
|
wget -qO ${LINT_DIR}/helm.tgz ${GOOGLE_HELM_REPO_URL}/helm-${HELM_VERSION}-linux-amd64.tar.gz
|
||||||
tar xzf ${LINT_DIR}/helm.tgz -C ${LINT_DIR} --strip-components=1 linux-amd64/helm
|
tar xzf ${LINT_DIR}/helm.tgz -C ${LINT_DIR} --strip-components=1 linux-amd64/helm
|
||||||
|
|
||||||
|
@ -6,44 +6,27 @@ yaml-files:
|
|||||||
- '.yamllint'
|
- '.yamllint'
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
braces:
|
braces: enable
|
||||||
level: warning
|
brackets: enable
|
||||||
brackets:
|
colons: enable
|
||||||
level: warning
|
commas: enable
|
||||||
colons:
|
comments: enable
|
||||||
level: warning
|
comments-indentation: enable
|
||||||
commas:
|
|
||||||
level: warning
|
|
||||||
comments:
|
|
||||||
level: warning
|
|
||||||
comments-indentation:
|
|
||||||
level: warning
|
|
||||||
document-end: disable
|
document-end: disable
|
||||||
document-start:
|
document-start: enable
|
||||||
level: warning
|
empty-lines: disable
|
||||||
empty-lines:
|
empty-values: disable
|
||||||
level: warning
|
hyphens: enable
|
||||||
empty-values:
|
|
||||||
level: warning
|
|
||||||
hyphens:
|
|
||||||
level: warning
|
|
||||||
indentation:
|
indentation:
|
||||||
spaces: 2
|
spaces: 2
|
||||||
indent-sequences: whatever
|
indent-sequences: whatever
|
||||||
level: warning
|
key-duplicates: disable
|
||||||
key-duplicates:
|
|
||||||
level: warning
|
|
||||||
key-ordering: disable
|
key-ordering: disable
|
||||||
line-length: disable
|
line-length: disable
|
||||||
new-line-at-end-of-file:
|
new-line-at-end-of-file: disable
|
||||||
level: warning
|
new-lines: disable
|
||||||
new-lines:
|
octal-values: disable
|
||||||
level: warning
|
|
||||||
octal-values:
|
|
||||||
level: warning
|
|
||||||
quoted-strings: disable
|
quoted-strings: disable
|
||||||
trailing-spaces:
|
trailing-spaces: disable
|
||||||
level: warning
|
truthy: disable
|
||||||
truthy:
|
|
||||||
level: warning
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user