-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Agent sidecar injection support via Admission Controller
- Loading branch information
Showing
14 changed files
with
342 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{{- define "ac-agent-sidecar-env" -}} | ||
{{- if and .Values.clusterAgent.admissionController.enabled .Values.clusterAgent.admissionController.agentSidecarInjection.enabled }} | ||
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_ENABLED | ||
value: "true" | ||
{{- if .Values.clusterAgent.admissionController.agentSidecarInjection.provider }} | ||
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_PROVIDER | ||
value: {{ .Values.clusterAgent.admissionController.agentSidecarInjection.provider }} | ||
{{- end }} | ||
|
||
{{- if .Values.clusterAgent.admissionController.agentSidecarInjection.containerRegistry }} | ||
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_CONTAINER_REGISTRY | ||
value: {{ .Values.clusterAgent.admissionController.agentSidecarInjection.containerRegistry }} | ||
{{- else if .Values.registry }} | ||
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_CONTAINER_REGISTRY | ||
value: {{ .Values.registry }} | ||
{{- end }} | ||
|
||
{{- if .Values.clusterAgent.admissionController.agentSidecarInjection.imageName }} | ||
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_IMAGE_NAME | ||
value: {{ .Values.clusterAgent.admissionController.agentSidecarInjection.imageName }} | ||
{{- else if .Values.agents.image.name}} | ||
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_IMAGE_NAME | ||
value: {{ .Values.agents.image.name }} | ||
{{- end }} | ||
|
||
{{- if .Values.clusterAgent.admissionController.agentSidecarInjection.imageTag }} | ||
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_IMAGE_TAG | ||
value: {{ .Values.clusterAgent.admissionController.agentSidecarInjection.imageTag }} | ||
{{- else if .Values.agents.image.tag}} | ||
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_IMAGE_TAG | ||
value: {{ .Values.agents.image.tag }} | ||
{{- end }} | ||
|
||
{{- if .Values.clusterAgent.admissionController.agentSidecarInjection.selectors }} | ||
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_SELECTORS | ||
value: '{{ toJson .Values.clusterAgent.admissionController.agentSidecarInjection.selectors }}' | ||
{{- end }} | ||
{{- if .Values.clusterAgent.admissionController.agentSidecarInjection.profiles }} | ||
- name: DD_ADMISSION_CONTROLLER_AGENT_SIDECAR_PROFILES | ||
value: '{{ toJson .Values.clusterAgent.admissionController.agentSidecarInjection.profiles }}' | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.