Skip to content

Commit 61c7d6d

Browse files
authored
fix(front): update Kubernetes controller instructions (#251)
Since [v0.2.0](https://github.com/renderedtext/agent-k8s-controller/releases/tag/v0.2.0) version of the controller, we no longer need the user API token for installing it. Also, the agent type registration token was being put in the wrong place - it should go in the Kubernetes secret for the agent type. Ref: renderedtext/tasks#7907
1 parent 8fa4c4c commit 61c7d6d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

front/assets/js/agents/components/instructions/kubernetes.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,22 @@ export const Component = (): VNode => {
4242
</a>
4343
{` `}
4444
with Helm
45-
<components.ResetTokenButton/>
4645
</div>
4746
<components.PreCopy
4847
title={`Install agent-k8s-controller`}
4948
content={`
5049
helm upgrade --install semaphore-controller renderedtext/controller \\
5150
--namespace semaphore \\
5251
--create-namespace \\
53-
--set endpoint=${hostname} \\
54-
--set apiToken=${state.token}`}
52+
--set endpoint=${hostname}`}
5553
/>
5654
</li>
5755
<li>
5856
<div className="mb2">
5957
Create a secret to register the agent type in the Kubernetes
6058
cluster. Create a new YAML resource file.
6159
</div>
60+
<components.ResetTokenButton/>
6261
<components.PreCopy
6362
title={`semaphore-secret.yml`}
6463
content={`
@@ -71,7 +70,7 @@ export const Component = (): VNode => {
7170
semaphoreci.com/resource-type: agent-type-configuration
7271
stringData:
7372
agentTypeName: ${state.type.name}
74-
registrationToken: <BASE64_ENCODED_TOKEN>`}
73+
registrationToken: ${state.token}`}
7574
/>
7675
<div className="mt2">
7776
The custom controllers looks for the label shown below to know

0 commit comments

Comments
 (0)