Skip to content

Commit

Permalink
chore: clean up unused volumes (keptn#2638)
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: David Ahmadov <ahmedavid@gmail.com>
  • Loading branch information
odubajDT authored and ahmedavid committed Dec 6, 2023
1 parent 86ca964 commit bd1551f
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 74 deletions.
14 changes: 0 additions & 14 deletions .github/scripts/.helm-tests/default/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9106,11 +9106,6 @@ spec:
runAsUser: 65532
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs/
name: certs-dir
- mountPath: /tmp/metrics-adapter/serving-certs
name: adapter-certs-dir
livenessProbe:
httpGet:
path: /healthz
Expand All @@ -9128,11 +9123,6 @@ spec:
runAsNonRoot: true
serviceAccountName: lifecycle-operator
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: certs-dir
- emptyDir: {}
name: adapter-certs-dir
---
# Source: keptn/charts/lifecycleOperator/templates/deployment.yaml
apiVersion: apps/v1
Expand Down Expand Up @@ -9305,8 +9295,6 @@ spec:
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs/
name: certs-dir
- mountPath: /tmp/metrics-adapter/serving-certs
name: adapter-certs-dir
livenessProbe:
Expand All @@ -9327,8 +9315,6 @@ spec:
serviceAccountName: metrics-operator
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: certs-dir
- emptyDir: {}
name: adapter-certs-dir
---
Expand Down
10 changes: 0 additions & 10 deletions .github/scripts/.helm-tests/lifecycle-only/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6593,11 +6593,6 @@ spec:
runAsUser: 65532
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs/
name: certs-dir
- mountPath: /tmp/metrics-adapter/serving-certs
name: adapter-certs-dir
livenessProbe:
httpGet:
path: /healthz
Expand All @@ -6615,11 +6610,6 @@ spec:
runAsNonRoot: true
serviceAccountName: lifecycle-operator
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: certs-dir
- emptyDir: {}
name: adapter-certs-dir
---
# Source: keptn/charts/lifecycleOperator/templates/deployment.yaml
apiVersion: apps/v1
Expand Down
10 changes: 0 additions & 10 deletions .github/scripts/.helm-tests/lifecycle-with-certs/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6849,11 +6849,6 @@ spec:
runAsUser: 65532
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs/
name: certs-dir
- mountPath: /tmp/metrics-adapter/serving-certs
name: adapter-certs-dir
livenessProbe:
httpGet:
path: /healthz
Expand All @@ -6871,11 +6866,6 @@ spec:
runAsNonRoot: true
serviceAccountName: lifecycle-operator
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: certs-dir
- emptyDir: {}
name: adapter-certs-dir
---
# Source: keptn/charts/lifecycleOperator/templates/deployment.yaml
apiVersion: apps/v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2327,8 +2327,6 @@ spec:
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs/
name: certs-dir
- mountPath: /tmp/metrics-adapter/serving-certs
name: adapter-certs-dir
livenessProbe:
Expand All @@ -2349,8 +2347,6 @@ spec:
serviceAccountName: metrics-operator
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: certs-dir
- emptyDir: {}
name: adapter-certs-dir
---
Expand Down
4 changes: 0 additions & 4 deletions .github/scripts/.helm-tests/metrics-only/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2348,8 +2348,6 @@ spec:
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs/
name: certs-dir
- mountPath: /tmp/metrics-adapter/serving-certs
name: adapter-certs-dir
livenessProbe:
Expand All @@ -2370,8 +2368,6 @@ spec:
serviceAccountName: metrics-operator
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: certs-dir
- emptyDir: {}
name: adapter-certs-dir
---
Expand Down
4 changes: 0 additions & 4 deletions .github/scripts/.helm-tests/metrics-with-certs/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2604,8 +2604,6 @@ spec:
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs/
name: certs-dir
- mountPath: /tmp/metrics-adapter/serving-certs
name: adapter-certs-dir
livenessProbe:
Expand All @@ -2626,8 +2624,6 @@ spec:
serviceAccountName: metrics-operator
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: certs-dir
- emptyDir: {}
name: adapter-certs-dir
---
Expand Down
10 changes: 0 additions & 10 deletions lifecycle-operator/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ spec:
}}
seccompProfile: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleOperator.containerSecurityContext.seccompProfile
"context" $) | nindent 12 }}
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs/
name: certs-dir
- mountPath: /tmp/metrics-adapter/serving-certs
name: adapter-certs-dir
{{- if .Values.lifecycleOperator.livenessProbe }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleOperator.livenessProbe "context" $) | nindent 10 }}
{{- else }}
Expand All @@ -160,11 +155,6 @@ spec:
runAsNonRoot: true
serviceAccountName: lifecycle-operator
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: certs-dir
- emptyDir: {}
name: adapter-certs-dir
{{- if .Values.lifecycleOperator.topologySpreadConstraints }}
topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleOperator.topologySpreadConstraints "context" $) | nindent 8 }}
{{- end }}
Expand Down
10 changes: 0 additions & 10 deletions lifecycle-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ spec:
# versions < 1.19 or on vendors versions which do NOT support this field by default (i.e. Openshift < 4.11 ).
# seccompProfile:
# type: RuntimeDefault
volumes:
- emptyDir: {}
name: certs-dir
- emptyDir: {}
name: adapter-certs-dir
containers:
- command:
- /manager
Expand Down Expand Up @@ -118,10 +113,5 @@ spec:
requests:
cpu: 5m
memory: 64Mi
volumeMounts:
- name: certs-dir
mountPath: /tmp/k8s-webhook-server/serving-certs/
- name: adapter-certs-dir
mountPath: /tmp/metrics-adapter/serving-certs
serviceAccountName: lifecycle-operator
terminationGracePeriodSeconds: 10
4 changes: 0 additions & 4 deletions metrics-operator/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ spec:
seccompProfile: {{- include "common.tplvalues.render" (dict "value" .Values.containerSecurityContext.seccompProfile
"context" $) | nindent 12 }}
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs/
name: certs-dir
- mountPath: /tmp/metrics-adapter/serving-certs
name: adapter-certs-dir
{{- if .Values.livenessProbe }}
Expand Down Expand Up @@ -117,8 +115,6 @@ spec:
serviceAccountName: metrics-operator
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: certs-dir
- emptyDir: {}
name: adapter-certs-dir
{{- if .Values.topologySpreadConstraints }}
Expand Down
4 changes: 0 additions & 4 deletions metrics-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ spec:
# seccompProfile:
# type: RuntimeDefault
volumes:
- emptyDir: {}
name: certs-dir
- emptyDir: {}
name: adapter-certs-dir
containers:
Expand Down Expand Up @@ -114,8 +112,6 @@ spec:
cpu: 10m
memory: 64Mi
volumeMounts:
- name: certs-dir
mountPath: /tmp/k8s-webhook-server/serving-certs/
- name: adapter-certs-dir
mountPath: /tmp/metrics-adapter/serving-certs
serviceAccountName: metrics-operator
Expand Down

0 comments on commit bd1551f

Please sign in to comment.