Skip to content

Commit

Permalink
comment out jamf stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ssyno committed Sep 26, 2024
1 parent 8fad220 commit 784f092
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 60 deletions.
10 changes: 0 additions & 10 deletions helm/teleport-kube-agent/templates/_config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,6 @@ discovery_service:
enabled: false
{{- end }}

jamf_service:
{{- if contains "jamf" (.Values.roles | toString) }}
enabled: true
api_endpoint: {{ required "jamfApiEndpoint is required in chart values when jamf role is enabled, see README" .Values.jamfApiEndpoint }}
client_id: {{ required "jamfClientId is required in chart values when jamf role is enabled, see README" .Values.jamfClientId }}
client_secret_file: "/etc/teleport-jamf-api-credentials/credential"
{{- else }}
enabled: false
{{- end }}

auth_service:
enabled: false
ssh_service:
Expand Down
30 changes: 15 additions & 15 deletions helm/teleport-kube-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ spec:
name: "teleport-tls-ca"
readOnly: true
{{- end }}
{{- if contains "jamf" (.Values.roles | toString) }}
- mountPath: /etc/teleport-jamf-api-credentials
name: "jamf-api-credentials"
readOnly: true
{{- end }}
# {{- if contains "jamf" (.Values.roles | toString) }}
#- mountPath: /etc/teleport-jamf-api-credentials
# name: "jamf-api-credentials"
# readOnly: true
# {{- end }}
{{- if .Values.extraVolumeMounts }}
{{- toYaml .Values.extraVolumeMounts | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -201,11 +201,11 @@ spec:
name: "teleport-tls-ca"
readOnly: true
{{- end }}
{{- if contains "jamf" (.Values.roles | toString) }}
- mountPath: /etc/teleport-jamf-api-credentials
name: "jamf-api-credentials"
readOnly: true
{{- end }}
# {{- if contains "jamf" (.Values.roles | toString) }}
#- mountPath: /etc/teleport-jamf-api-credentials
# name: "jamf-api-credentials"
# readOnly: true
# {{- end }}
{{- if .Values.extraVolumeMounts }}
{{- toYaml .Values.extraVolumeMounts | nindent 8 }}
{{- end }}
Expand All @@ -228,11 +228,11 @@ spec:
secret:
secretName: {{ .Values.tls.existingCASecretName }}
{{- end }}
{{- if contains "jamf" (.Values.roles | toString) }}
- name: "jamf-api-credentials"
secret:
secretName: {{ .Values.jamfCredentialsSecret.name }}
{{- end }}
#{{- if contains "jamf" (.Values.roles | toString) }}
#- name: "jamf-api-credentials"
# secret:
# secretName: {{ .Values.jamfCredentialsSecret.name }}
#{{- end }}
{{- if .Values.extraVolumes }}
{{- toYaml .Values.extraVolumes | nindent 6 }}
{{- end }}
Expand Down
39 changes: 19 additions & 20 deletions helm/teleport-kube-agent/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,22 @@ stringData:
auth-token: |
{{ coalesce .Values.joinParams.tokenName .Values.authToken }}
{{- end}}

{{- if and (contains "jamf" (.Values.roles | toString)) .Values.jamfCredentialsSecret.create }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.jamfCredentialsSecret.name }}
namespace: {{ .Release.Namespace }}
{{- if .Values.extraLabels.secret }}
labels:
{{- toYaml .Values.extraLabels.secret | nindent 4 }}
{{- end }}
{{- if .Values.annotations.secret }}
annotations:
{{- toYaml .Values.annotations.secret | nindent 4 }}
{{- end }}
type: Opaque
stringData:
credential: {{ required "jamfClientSecret is required in chart values when jamf role is enabled, see README" .Values.jamfClientSecret }}
{{- end}}
#{{- if and (contains "jamf" (.Values.roles | toString)) .Values.jamfCredentialsSecret.create }}
#---
#apiVersion: v1
#kind: Secret
#metadata:
# name: {{ .Values.jamfCredentialsSecret.name }}
# namespace: {{ .Release.Namespace }}
# {{- if .Values.extraLabels.secret }}
# labels:
# {{- toYaml .Values.extraLabels.secret | nindent 4 }}
# {{- end }}
# {{- if .Values.annotations.secret }}
# annotations:
# {{- toYaml .Values.annotations.secret | nindent 4 }}
# {{- end }}
#type: Opaque
#stringData:
# credential: {{ required "jamfClientSecret is required in chart values when jamf role is enabled, see README" .Values.jamfClientSecret }}
#{{- end}}
30 changes: 15 additions & 15 deletions helm/teleport-kube-agent/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ spec:
name: "teleport-tls-ca"
readOnly: true
{{- end }}
{{- if contains "jamf" (.Values.roles | toString) }}
- mountPath: /etc/teleport-jamf-api-credentials
name: "jamf-api-credentials"
readOnly: true
{{- end }}
# {{- if contains "jamf" (.Values.roles | toString) }}
#- mountPath: /etc/teleport-jamf-api-credentials
# name: "jamf-api-credentials"
# readOnly: true
# {{- end }}
{{- if .Values.extraVolumeMounts }}
{{- toYaml .Values.extraVolumeMounts | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -227,11 +227,11 @@ spec:
name: "teleport-tls-ca"
readOnly: true
{{- end }}
{{- if contains "jamf" (.Values.roles | toString) }}
- mountPath: /etc/teleport-jamf-api-credentials
name: "jamf-api-credentials"
readOnly: true
{{- end }}
#{{- if contains "jamf" (.Values.roles | toString) }}
# - mountPath: /etc/teleport-jamf-api-credentials
# name: "jamf-api-credentials"
# readOnly: true
#{{- end }}
{{- if .Values.extraVolumeMounts }}
{{- toYaml .Values.extraVolumeMounts | nindent 8 }}
{{- end }}
Expand All @@ -254,11 +254,11 @@ spec:
secret:
secretName: {{ .Values.tls.existingCASecretName }}
{{- end }}
{{- if contains "jamf" (.Values.roles | toString) }}
- name: "jamf-api-credentials"
secret:
secretName: {{ .Values.jamfCredentialsSecret.name }}
{{- end }}
#{{- if contains "jamf" (.Values.roles | toString) }}
# - name: "jamf-api-credentials"
# secret:
# secretName: {{ .Values.jamfCredentialsSecret.name }}
#{{- end }}
{{- if .Values.extraVolumes }}
{{- toYaml .Values.extraVolumes | nindent 6 }}
{{- end }}
Expand Down

0 comments on commit 784f092

Please sign in to comment.