Skip to content

Commit

Permalink
Feat: Add "extraManifests" template
Browse files Browse the repository at this point in the history
Feat: Condition the requirement of the organizationURL parameter to the creation of the provided k8s secret
Fix: Remove template from extraManifests generation
Quality: Code quality
Fix: Helm syntax
  • Loading branch information
clemlesne committed Nov 22, 2023
1 parent bd657f2 commit a4f6235
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/helm/azure-pipelines-agent/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{- if (.Values.secret.create) -}}
Check your Azure DevOps portal at to manage the Azure Pipelines Agent ({{ .Values.pipelines.organizationURL | quote | required "A value for .Values.pipelines.organizationURL is required" }}/_settings/agentpools).
{{- else -}}
Secret creation disabled, remember to create/update the secret {{ include "azure-pipelines-agent.secretName" . | quote }} and that the fields personalAccessToken and organizationURL are required
{{- end -}}

{{- if and (.Values.autoscaling.enabled) (.Capabilities.APIVersions.Has "keda.sh/v1alpha1") -}}
Your cluster is KEDA enabled, your pipelines agents will scale based on your usage. When you won't use them, they will be automatically removed.
Expand Down
4 changes: 4 additions & 0 deletions src/helm/azure-pipelines-agent/templates/extra-manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ range .Values.extraManifests }}
{{- toYaml . }}
---
{{ end }}
13 changes: 13 additions & 0 deletions src/helm/azure-pipelines-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,16 @@ extraVolumeMounts: []
# image: busybox
# command: ["/bin/sh", "-c", "echo Hello World"]
initContainers: []

## Extra manifests to deploy as an array
extraManifests:
[]

# - apiVersion: v1
# kind: Secret
# metadata:
# labels:
# name: azure-pipeline-secret
# data:
# personalAccessToken: "value"
# organizationURL: "value"

0 comments on commit a4f6235

Please sign in to comment.