Skip to content

Commit

Permalink
update zora-saas chart
Browse files Browse the repository at this point in the history
  • Loading branch information
undistrobot committed Dec 11, 2024
1 parent 07f19eb commit 99ba855
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 144 deletions.
16 changes: 0 additions & 16 deletions charts/zora-saas/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,6 @@ spec:
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.proxy.enabled }}
- name: saas-proxy
image: "{{ .Values.proxy.image.repository }}:{{ .Values.proxy.image.tag }}"
imagePullPolicy: {{ .Values.proxy.image.pullPolicy }}
args:
- "--secure-listen-address=0.0.0.0:{{ .Values.proxy.port }}"
- "--upstream=http://127.0.0.1:3003"
- "--logtostderr={{ .Values.proxy.log.toStderr }}"
- "--v={{ .Values.proxy.log.level }}"
ports:
- containerPort: {{ .Values.proxy.port }}
name: https
securityContext:
allowPrivilegeEscalation: false
runAsUser: 65532
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
32 changes: 0 additions & 32 deletions charts/zora-saas/templates/rbacproxy/client.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions charts/zora-saas/templates/rbacproxy/server.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions charts/zora-saas/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,3 @@ spec:
name: http
selector:
{{- include "zora-saas.selectorLabels" . | nindent 4 }}
---
{{- if .Values.proxy.enabled }}
apiVersion: v1
kind: Service
metadata:
name: saas-proxy
labels:
{{- include "zora-saas.labels" . | nindent 4 }}
spec:
type: {{ .Values.proxy.type }}
ports:
- name: https
protocol: TCP
port: {{ .Values.proxy.port }}
targetPort: https
selector:
{{- include "zora-saas.selectorLabels" . | nindent 4 }}
{{- end }}
9 changes: 0 additions & 9 deletions charts/zora-saas/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,3 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
---
{{- if .Values.proxy.enabled }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: saas-proxy-client
labels:
{{- include "zora-saas.labels" . | nindent 4 }}
{{- end }}
9 changes: 0 additions & 9 deletions charts/zora-saas/templates/ui/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.proxy.enabled }}
serviceAccountName: saas-proxy-client
{{- end }}
securityContext:
{{- toYaml .Values.ui.podSecurityContext | nindent 8 }}
containers:
Expand All @@ -42,13 +39,7 @@ spec:
name: {{ .Values.ui.secretName }}
env:
- name: SAAS_URL
{{- if .Values.proxy.enabled }}
value: "https://saas-proxy.{{ .Release.Namespace }}.svc:{{ .Values.proxy.port }}/zora"
- name: SAAS_PROXY_TOKEN_PATH
value: "/var/run/secrets/kubernetes.io/serviceaccount/token"
{{- else }}
value: 'http://{{ include "zora-saas.fullname" . }}:{{ .Values.service.port }}/zora'
{{- end }}
ports:
- name: http
containerPort: 4200
Expand Down
2 changes: 0 additions & 2 deletions charts/zora-saas/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ log:
level: debug
readTimeout: "30s"
writeTimeout: "60s"
proxy:
enabled: false
grafanaDashboard:
enabled: false
blockNewUsers: false
2 changes: 0 additions & 2 deletions charts/zora-saas/values-hml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ imagePullSecrets:
- name: zora-saas-registry-cred
log:
level: info
proxy:
enabled: false
blockNewUsers: false
2 changes: 0 additions & 2 deletions charts/zora-saas/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ log:
level: debug
readTimeout: "30s"
writeTimeout: "60s"
proxy:
enabled: false
monitor:
enabled: true
autoscaling:
Expand Down
22 changes: 0 additions & 22 deletions charts/zora-saas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,6 @@ service:
type: ClusterIP
port: 80

proxy:
enabled: true
image:
repository: quay.io/brancz/kube-rbac-proxy
pullPolicy: IfNotPresent
tag: v0.13.1
type: ClusterIP
port: 8443
log:
level: 10
toStderr: true
endpoints:
- "/zora/api/v1/me"
- "/zora/api/v1/users"
- "/zora/api/v1/helmreleases"
- "/zora/api/v1/clusters"
- "/zora/api/v1/namespaces/*"
- "/zora/api/v1/issues"
- "/zora/api/v1/workspaces"
- "/zora/api/v1/workspaces/*"
verbs: ["get", "update"]

ingress:
enabled: false
className: ""
Expand Down

0 comments on commit 99ba855

Please sign in to comment.