-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Renovate Bot <[email protected]>
- Loading branch information
1 parent
bdf128e
commit 2d1d337
Showing
8 changed files
with
199 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
tests/golden/defaults/etcd/etcd/10_chart/etcd/templates/networkpolicy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: etcd | ||
app.kubernetes.io/instance: etcd | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: etcd | ||
app.kubernetes.io/version: 3.5.17 | ||
helm.sh/chart: etcd-11.0.2 | ||
name: etcd | ||
namespace: syn-etcd | ||
spec: | ||
egress: | ||
- {} | ||
ingress: | ||
- ports: | ||
- port: 2379 | ||
- port: 2380 | ||
podSelector: | ||
matchLabels: | ||
app.kubernetes.io/component: etcd | ||
app.kubernetes.io/instance: etcd | ||
app.kubernetes.io/name: etcd | ||
policyTypes: | ||
- Ingress | ||
- Egress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
tests/golden/defaults/etcd/etcd/10_chart/etcd/templates/preupgrade-hook-job.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
annotations: | ||
helm.sh/hook: pre-upgrade | ||
helm.sh/hook-delete-policy: before-hook-creation | ||
labels: | ||
app.kubernetes.io/component: etcd-pre-upgrade-job | ||
app.kubernetes.io/instance: etcd | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: etcd | ||
app.kubernetes.io/version: 3.5.17 | ||
helm.sh/chart: etcd-11.0.2 | ||
name: etcd-pre-upgrade | ||
namespace: syn-etcd | ||
spec: | ||
template: | ||
metadata: | ||
annotations: null | ||
labels: | ||
app.kubernetes.io/component: etcd-pre-upgrade-job | ||
app.kubernetes.io/instance: etcd | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: etcd | ||
app.kubernetes.io/version: 3.5.17 | ||
helm.sh/chart: etcd-11.0.2 | ||
spec: | ||
affinity: | ||
nodeAffinity: null | ||
podAffinity: null | ||
podAntiAffinity: | ||
preferredDuringSchedulingIgnoredDuringExecution: | ||
- podAffinityTerm: | ||
labelSelector: | ||
matchLabels: | ||
app.kubernetes.io/component: etcd-pre-upgrade-job | ||
app.kubernetes.io/instance: etcd | ||
app.kubernetes.io/name: etcd | ||
topologyKey: kubernetes.io/hostname | ||
weight: 1 | ||
automountServiceAccountToken: false | ||
containers: | ||
- args: | ||
- /opt/bitnami/scripts/etcd/preupgrade.sh | ||
command: | ||
- /opt/bitnami/scripts/etcd/entrypoint.sh | ||
env: | ||
- name: BITNAMI_DEBUG | ||
value: 'false' | ||
- name: ETCD_ON_K8S | ||
value: 'yes' | ||
- name: ETCD_DATA_DIR | ||
value: /bitnami/etcd/data | ||
- name: ETCD_ROOT_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
key: password | ||
name: etcd-etcd-root-auth | ||
- name: ETCD_CERT_FILE | ||
value: /opt/bitnami/etcd/certs/client/cert.pem | ||
- name: ETCD_KEY_FILE | ||
value: /opt/bitnami/etcd/certs/client/key.pem | ||
envFrom: null | ||
image: docker.io/bitnami/etcd:3.5.17-debian-12-r4 | ||
imagePullPolicy: IfNotPresent | ||
name: pre-upgrade-job | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: | ||
- ALL | ||
privileged: false | ||
readOnlyRootFilesystem: true | ||
runAsGroup: 1001 | ||
runAsNonRoot: true | ||
runAsUser: 1001 | ||
seLinuxOptions: {} | ||
seccompProfile: | ||
type: RuntimeDefault | ||
volumeMounts: | ||
- mountPath: /opt/bitnami/etcd/conf/ | ||
name: empty-dir | ||
subPath: app-conf-dir | ||
- mountPath: /tmp | ||
name: empty-dir | ||
subPath: tmp-dir | ||
- mountPath: /opt/bitnami/etcd/certs/token/ | ||
name: etcd-jwt-token | ||
readOnly: true | ||
- mountPath: /opt/bitnami/etcd/certs/client/ | ||
name: etcd-client-certs | ||
readOnly: true | ||
restartPolicy: Never | ||
securityContext: | ||
fsGroup: 1001 | ||
fsGroupChangePolicy: Always | ||
supplementalGroups: [] | ||
sysctls: [] | ||
volumes: | ||
- emptyDir: {} | ||
name: empty-dir | ||
- name: etcd-jwt-token | ||
secret: | ||
defaultMode: 256 | ||
secretName: etcd-etcd-token-private-key | ||
- name: etcd-client-certs | ||
secret: | ||
defaultMode: 256 | ||
secretName: etcd-etcd-client-auth |
12 changes: 12 additions & 0 deletions
12
tests/golden/defaults/etcd/etcd/10_chart/etcd/templates/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
automountServiceAccountToken: false | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: etcd | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: etcd | ||
app.kubernetes.io/version: 3.5.17 | ||
helm.sh/chart: etcd-11.0.2 | ||
name: etcd | ||
namespace: syn-etcd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters