Fix freeipa chart?

main
Rakshit Menpara 2023-04-01 11:59:07 +05:30
parent 64c14bc300
commit cdb56c9281
4 changed files with 33 additions and 42 deletions

View File

@ -37,31 +37,31 @@ spec:
loadBalancerIP: {{ .Values.service.loadBalancerIP }} loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }} {{- end }}
ports: ports:
- name: ldaps - name: ldaps
port: 636 port: 636
protocol: TCP protocol: TCP
targetPort: 636 targetPort: 636
- name: http - name: http
port: {{ .Values.service.port }} port: {{ .Values.service.port }}
targetPort: 80 targetPort: 80
- name: https - name: https
port: 443 port: 443
targetPort: 443 targetPort: 443
{{- if .Values.args.setupdns }} {{- if .Values.args.setupdns }}
- name: dns-udp - name: dns-udp
port: 53 port: 53
protocol: UDP protocol: UDP
targetPort: 53 targetPort: 53
{{- end}} {{- end}}
- name: kerberos-tcp - name: kerberos-tcp
port: 88 port: 88
protocol: TCP protocol: TCP
targetPort: 88 targetPort: 88
- name: kerberos-udp - name: kerberos-udp
port: 88 port: 88
protocol: UDP protocol: UDP
targetPort: 88 targetPort: 88
{{- if .Values.service.extraPorts }} {{- if .Values.service.extraPorts }}
{{- include "common.tplvalues.render" (dict "value" .Values.service.extraPorts "context" $) | nindent 4 }} {{- include "common.tplvalues.render" (dict "value" .Values.service.extraPorts "context" $) | nindent 4 }}
{{- end }} {{- end }}
selector: {{- include "common.labels.matchLabels" . | nindent 4 }} selector: {{- include "common.labels.matchLabels" . | nindent 4 }}

View File

@ -52,6 +52,9 @@ spec:
{{- else if .Values.command }} {{- else if .Values.command }}
command: {{- include "common.tplvalues.render" (dict "value" .Values.command "context" $) | nindent 12 }} command: {{- include "common.tplvalues.render" (dict "value" .Values.command "context" $) | nindent 12 }}
{{- end }} {{- end }}
{{- if .Values.diagnosticMode.enabled }}
args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }}
{{- else }}
args: args:
- -U - -U
- --realm={{ default "localhost.com" .Values.args.realm }} - --realm={{ default "localhost.com" .Values.args.realm }}
@ -77,6 +80,7 @@ spec:
{{- if .Values.args.sshtrustdns }} {{- if .Values.args.sshtrustdns }}
- --ssh-trust-dns - --ssh-trust-dns
{{- end }} {{- end }}
{{- end }}
ports: ports:
{{- if .Values.args.setupdns }} {{- if .Values.args.setupdns }}
- containerPort: 53 - containerPort: 53

View File

@ -1,15 +0,0 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "freeipa.fullname" . }}-test-connection"
labels:
{{- include "freeipa.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "freeipa.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never

View File

@ -39,6 +39,8 @@ image:
# machineconfig: # machineconfig:
# ignition_version: 3.1.0 # ignition_version: 3.1.0
command: {}
args: args:
realm: EXAMPLE.ORG realm: EXAMPLE.ORG
domain: example.org domain: example.org