Skip to content

Commit

Permalink
[feat] Allow customizing the rbac container (#83)
Browse files Browse the repository at this point in the history
* [feat] Allow customizing the rbac container

* fix: increase chart version

---------

Co-authored-by: BugFest <[email protected]>
  • Loading branch information
DeviaVir and bugfest authored Dec 30, 2024
1 parent bad4a97 commit 383598c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/tor-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.16
version: 0.1.17

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
5 changes: 4 additions & 1 deletion charts/tor-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ spec:
name: manager-config
subPath: controller_manager_config.yaml
- name: kube-rbac-proxy
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
image: "{{ .Values.kubeRbacProxy.image.repository }}:{{ .Values.kubeRbacProxy.image.tag }}"
imagePullPolicy: {{ .Values.kubeRbacProxy.image.pullPolicy }}
args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
Expand All @@ -69,6 +70,8 @@ spec:
- containerPort: 8443
name: https
protocol: TCP
resources:
{{- toYaml .Values.kubeRbacProxy.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
23 changes: 21 additions & 2 deletions charts/tor-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,24 @@ onionbalance:
# -- Overrides the image tag whose default is the chart appVersion.
tag: ""

kubeRbacProxy:
image:
repository: gcr.io/kubebuilder/kube-rbac-proxy
pullPolicy: IfNotPresent
# -- Overrides the image tag whose default is the chart appVersion.
tag: "v0.8.0"
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 250m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand All @@ -64,7 +82,7 @@ securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
- ALL
# readOnlyRootFilesystem: true
runAsNonRoot: true
# runAsUser: 1000
Expand All @@ -73,7 +91,8 @@ service:
type: ClusterIP
port: 8443

resources: {}
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand Down

0 comments on commit 383598c

Please sign in to comment.