Skip to content

Commit

Permalink
Remove kube-rbac-proxy from helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedosin committed Nov 30, 2023
1 parent 7af99ae commit 50b7f2f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 65 deletions.
24 changes: 0 additions & 24 deletions hack/charts/cluster-api-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,30 +101,6 @@ spec:
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
- args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
- --logtostderr=true
{{- if .Values.logLevel }}
- --v={{ .Values.logLevel }}
{{- end }}
{{- with .Values.image.kubeRBACProxy }}
image: "{{- if .registry -}}{{ .registry }}/{{- end -}}{{ .repository }}{{- if (.digest) -}} @{{ .digest }}{{- else -}}:{{ default $.Chart.AppVersion .tag }} {{- end -}}"
{{- end }}
imagePullPolicy: {{ .Values.image.kubeRBACProxy.pullPolicy }}
name: kube-rbac-proxy
ports:
- containerPort: 8443
name: https
protocol: TCP
{{- with .Values.resources.kubeRBACProxy }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.containerSecurityContext.kubeRBACProxy }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
terminationGracePeriodSeconds: 10
{{- with .Values.volumes }}
volumes:
Expand Down
18 changes: 1 addition & 17 deletions hack/charts/cluster-api-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ image:
repository: gcr.io/k8s-staging-capi-operator/cluster-api-operator
tag: dev
pullPolicy: IfNotPresent
kubeRBACProxy:
repository: gcr.io/kubebuilder/kube-rbac-proxy
tag: v0.14.1
pullPolicy: IfNotPresent
healthAddr: ":8081"
metricsBindAddr: "127.0.0.1:8080"
imagePullSecrets: {}
Expand All @@ -41,19 +37,7 @@ resources:
requests:
cpu: 100m
memory: 100Mi
kubeRBACProxy:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 5m
memory: 64Mi
containerSecurityContext:
kubeRBACProxy:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
containerSecurityContext: {}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down
24 changes: 0 additions & 24 deletions test/e2e/resources/full-chart-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14114,30 +14114,6 @@ spec:
- mountPath: /tmp/k8s-webhook-server/serving-certs
name: cert
readOnly: true
- args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
- --logtostderr=true
- --v=2
image: "gcr.io/kubebuilder/kube-rbac-proxy:v0.14.1"
imagePullPolicy: IfNotPresent
name: kube-rbac-proxy
ports:
- containerPort: 8443
name: https
protocol: TCP
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 5m
memory: 64Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
terminationGracePeriodSeconds: 10
volumes:
- name: cert
Expand Down

0 comments on commit 50b7f2f

Please sign in to comment.