Skip to content
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ The command removes all the Kubernetes objects associated with the chart and del
| agent.constraintChecker.threshold | int | `3` | Number of failed checks before disabling task claim |
| agent.containerSecurityContext | object | `{}` | Security Context policies for agent containers |
| agent.customSecret | string | `""` | Name of the user provided secret containing resource class tokens. You can mix tokens from this secret and in the secret created from tokens specified in the resourceClasses section below Ref: https://circleci.com/docs/container-runner/#custom-secret The tokens should be specified as secret key-value pairs of the form ResourceClass: Token The resource class name needs to match the names configured below exactly to match tokens to the correct configuration As Kubernetes does not allow / in secret keys, a period (.) should be substituted instead |
| agent.deploymentAnnotations | object | `{}` | Annotations to be added to the agent deployment |
| agent.deploymentLabels | object | `{}` | Labels to be added to the agent deployment |
| agent.environment | object | `{}` | A dictionary of key-value pairs to set as environment variables in the container-agent app container. Note that this does not set environment variables in a task, which can be done via `agent.resourceClasses` or [in CircleCI](https://circleci.com/docs/set-environment-variable). |
| agent.forceUpdate | bool | `false` | Force a rolling update of the agent deployment |
| agent.gc.enabled | bool | `true` | Enable garbage collection (GC) of Kubernetes objects such as Pods or Secrets left over from CircleCI tasks. Dangling objects may occur if container runner is forcefully deleted, causing the task state-tracking to be lost. GC will only remove objects labelled with `app.kubernetes.io/managed-by=circleci-container-agent`. |
Expand Down
6 changes: 6 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
apiVersion: apps/v1
kind: Deployment
metadata:
{{- with .Values.agent.deploymentAnnotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.agent.deploymentLabels }}
labels: {{- toYaml . | nindent 4 }}
{{- end }}
name: {{ include "container-agent.fullname" . }}
spec:
replicas: {{ .Values.agent.replicaCount }}
Expand Down
6 changes: 6 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ agent:
matchLabels:
app: container-agent

# -- Annotations to be added to the deployment
deploymentAnnotations: {}

# -- Labels to be added to the deployment
deploymentLabels: {}

# -- Annotations to be added to agent pods
podAnnotations: {}

Expand Down