Skip to content

Commit e2b2aaa

Browse files
authored
build(controller): update to controller v0.2.0 (#27)
1 parent 310e7c8 commit e2b2aaa

File tree

5 files changed

+8
-23
lines changed

5 files changed

+8
-23
lines changed

charts/controller/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.2
18+
version: 0.2.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "v0.1.2"
24+
appVersion: "v0.2.0"

charts/controller/README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ Run Semaphore jobs for one or multiple [Semaphore agent type](https://github.com
1919

2020
This chart installs the [agent-k8s-controller](https://github.com/renderedtext/agent-k8s-controller) into your Kubernetes cluster.
2121

22-
You can install it with your Semaphore API token and your Semaphore organization endpoint:
22+
You can install it with your Semaphore organization endpoint:
2323

2424
```bash
2525
helm upgrade --install semaphore-controller charts/controller \
2626
--namespace semaphore \
2727
--create-namespace \
28-
--set endpoint=<your-organization>.semaphoreci.com \
29-
--set apiToken=<your-api-token>
28+
--set endpoint=<your-organization>.semaphoreci.com
3029
```
3130

3231
## Start jobs for an agent type
@@ -76,7 +75,6 @@ helm upgrade --install semaphore-controller charts/controller \
7675
--namespace semaphore \
7776
--create-namespace \
7877
--set endpoint=<your-organization>.semaphoreci.com \
79-
--set apiToken=<your-api-token> \
8078
--set agent.defaultPodSpec.preJobHook.enabled=false
8179
```
8280

@@ -89,7 +87,6 @@ helm upgrade --install semaphore-controller charts/controller \
8987
--namespace semaphore \
9088
--create-namespace \
9189
--set endpoint=<your-organization>.semaphoreci.com \
92-
--set apiToken=<your-api-token> \
9390
--set agent.defaultPodSpec.preJobHook.customScript=$(cat my-custom-script.sh | base64)
9491
```
9592

@@ -102,7 +99,6 @@ helm upgrade --install semaphore-controller charts/controller \
10299
--namespace semaphore \
103100
--create-namespace \
104101
--set endpoint=<your-organization>.semaphoreci.com \
105-
--set apiToken=<your-api-token> \
106102
--set agent.defaultPodSpec.enabled=false
107103
```
108104

@@ -114,7 +110,6 @@ For example, if you have a `custom-values.yml` file like this:
114110

115111
```yaml
116112
endpoint: <your-organization>.semaphoreci.com
117-
apiToken: <your-api-token>
118113
agent:
119114
defaultPodSpec:
120115
mainContainer:
@@ -206,7 +201,6 @@ helm upgrade --install semaphore-controller charts/controller \
206201
--namespace semaphore \
207202
--create-namespace \
208203
--set endpoint=<your-organization>.semaphoreci.com \
209-
--set apiToken=<your-api-token> \
210204
--set keepFailedJobsFor=7d \
211205
--set keepSuccessfulJobsFor=15m
212206
```
@@ -222,7 +216,6 @@ helm upgrade --install semaphore-controller charts/controller \
222216
--namespace semaphore \
223217
--create-namespace \
224218
--set endpoint=<your-organization>.semaphoreci.com \
225-
--set apiToken=<your-api-token> \
226219
--set jobStartTimeout=30m
227220
```
228221

charts/controller/templates/deployment.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ spec:
3030
valueFrom:
3131
fieldRef:
3232
fieldPath: metadata.namespace
33-
- name: SEMAPHORE_API_TOKEN
34-
valueFrom:
35-
secretKeyRef:
36-
name: {{ include "controller.fullname" . }}
37-
key: apiToken
3833
- name: SEMAPHORE_ENDPOINT
3934
valueFrom:
4035
secretKeyRef:

charts/controller/templates/secret.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{{- $endpoint := .Values.endpoint | required ".Values.endpoint is required." -}}
2-
{{- $apiToken := .Values.apiToken | required ".Values.apiToken is required." -}}
32

43
apiVersion: v1
54
kind: Secret
@@ -9,7 +8,6 @@ metadata:
98
{{- include "controller.labels" . | nindent 4 }}
109
stringData:
1110
endpoint: {{ $endpoint }}
12-
apiToken: {{ $apiToken }}
1311
{{- if and .Values.agent.defaultPodSpec.preJobHook.enabled .Values.agent.defaultPodSpec.preJobHook.customScript }}
1412
pre-job-hook: |
1513
{{ .Values.agent.defaultPodSpec.preJobHook.customScript | b64dec | indent 4 }}

charts/controller/values.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
# This is a YAML-formatted file.
33
# Declare variables to be passed into your templates.
44

5-
# The Semaphore API token and endpoint used by the controller to look into the job queue.
6-
# These are the only required values for this chart.
7-
apiToken: ""
5+
# The Semaphore endpoint used by the controller to look into the job queue.
6+
# This is the only required value for this chart.
87
endpoint: ""
98

109
image: semaphoreci/controller
@@ -13,7 +12,7 @@ imagePullPolicy: IfNotPresent
1312

1413
agent:
1514
image: semaphoreci/agent
16-
version: v2.2.15
15+
version: v2.2.28
1716

1817
# By default, the controller creates a pod spec which will be used
1918
# if no pod spec are specified in the agent types secret.
@@ -26,7 +25,7 @@ agent:
2625
mainContainer:
2726
env:
2827
- name: SEMAPHORE_TOOLBOX_VERSION
29-
value: v1.21.7
28+
value: v1.22.2
3029
preJobHook:
3130
enabled: true
3231
path: "/opt/semaphore/hooks"

0 commit comments

Comments
 (0)