Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT#Allow Enable/Disable Kubernetes Service Links #477

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions charts/ctlog/templates/ctlog-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ spec:
{{- if .Values.server.securityContext }}
securityContext:
{{ toYaml .Values.server.securityContext | indent 8 }}
{{- end }}
{{- if .Values.server.serviceLinks }}
enableServiceLinks: {{ .Values.server.serviceLinks.enabled }}
{{- end }}
volumes:
- name: keys
Expand Down
1 change: 1 addition & 0 deletions charts/ctlog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ server:
annotations: {}
tls: []
extraArgs: []
serviceLinks: {}
securityContext:
runAsNonRoot: true
runAsUser: 65533
Expand Down
3 changes: 3 additions & 0 deletions charts/fulcio/templates/fulcio-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
{{- if .Values.server.securityContext }}
securityContext:
{{ toYaml .Values.server.securityContext | indent 8 }}
{{- end }}
{{- if .Values.server.serviceLinks }}
enableServiceLinks: {{ .Values.server.serviceLinks.enabled }}
{{- end }}
volumes:
- name: fulcio-config
Expand Down
1 change: 1 addition & 0 deletions charts/fulcio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ server:
svcPort: 80
grpcSvcPort: 5554
secret: fulcio-server-secret
serviceLinks: {}
logging:
production: false
image:
Expand Down
3 changes: 3 additions & 0 deletions charts/rekor/templates/redis/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ spec:
{{- if .Values.redis.affinity }}
affinity:
{{ toYaml .Values.redis.affinity | indent 8 }}
{{- end }}
{{- if .Values.redis.serviceLinks }}
enableServiceLinks: {{ .Values.redis.serviceLinks.enabled }}
{{- end }}
volumes:
- name: storage
Expand Down
3 changes: 3 additions & 0 deletions charts/rekor/templates/server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ spec:
{{- if .Values.server.affinity }}
affinity:
{{ toYaml .Values.server.affinity | indent 8 }}
{{- end }}
{{- if .Values.server.serviceLinks }}
enableServiceLinks: {{ .Values.server.serviceLinks.enabled }}
{{- end }}
volumes:
- name: {{ template "rekor.sharding-config" . }}
Expand Down
2 changes: 2 additions & 0 deletions charts/rekor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ redis:
# -- 6.2.6-alpine3.15
version: "sha256:6c42cce2871e8dc5fb3e843ed5c4e7939d312faf5e53ff0ff4ca955a7e0b2b39"
resources: {}
serviceLinks: {}
readinessProbe:
initialDelaySeconds: 5
periodSeconds: 10
Expand Down Expand Up @@ -135,6 +136,7 @@ server:
prometheus.io/path: /metrics
prometheus.io/port: "2112"
resources: {}
serviceLinks: {}
extraArgs: []
serviceAccount:
create: true
Expand Down
3 changes: 3 additions & 0 deletions charts/trillian/templates/mysql/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ spec:
{{- if .Values.mysql.affinity }}
affinity:
{{ toYaml .Values.mysql.affinity | indent 8 }}
{{- end }}
{{- if .Values.mysql.serviceLinks }}
enableServiceLinks: {{ .Values.mysql.serviceLinks.enabled }}
{{- end }}
volumes:
{{- if not .Values.mysql.persistence.enabled }}
Expand Down
3 changes: 3 additions & 0 deletions charts/trillian/templates/trillian-log-server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ spec:
securityContext:
{{ toYaml .Values.logServer.securityContext | indent 8 }}
{{- end }}
{{- if .Values.logServer.serviceLinks }}
enableServiceLinks: {{ .Values.logServer.serviceLinks.enabled }}
{{- end }}
{{- if .Values.logServer.tolerations }}
tolerations:
{{ toYaml .Values.logServer.tolerations | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/trillian/templates/trillian-log-signer/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,6 @@ spec:
affinity:
{{ toYaml .Values.logSigner.affinity | indent 8 }}
{{- end }}
{{- if .Values.logSigner.serviceLinks }}
enableServiceLinks: {{ .Values.logSigner.serviceLinks.enabled }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/trillian/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ mysql:
command:
- /etc/init.d/mysql
- status
serviceLinks: {}
secret:
annotations: {}
auth:
Expand Down Expand Up @@ -152,6 +153,7 @@ logServer:
targetPort: 8090
livenessProbe: {}
readinessProbe: {}
serviceLinks: {}
resources: {}
extraArgs: []
serviceAccount:
Expand Down Expand Up @@ -186,6 +188,7 @@ logSigner:
targetPort: 8091
livenessProbe: {}
readinessProbe: {}
serviceLinks: {}
resources: {}
extraArgs: []
serviceAccount:
Expand Down
3 changes: 3 additions & 0 deletions charts/tuf/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
{{- include "tuf.matchLabels" . | nindent 8 }}
spec:
serviceAccountName: {{ .Values.serviceAccountName }}
{{- if .Values.server.serviceLinks }}
enableServiceLinks: {{ .Values.server.serviceLinks.enabled }}
{{- end }}
containers:
- image: {{ template "tuf.image" .Values.deployment }}
name: {{ .Values.deployment.name }}
Expand Down
3 changes: 3 additions & 0 deletions charts/tuf/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ deployment:
imagePullPolicy: IfNotPresent
port: 8080

server:
serviceLinks: {}

secrets:
rekor:
create: false
Expand Down