summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/clusters_list/clusters_util.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/clusters_list/clusters_util.js')
-rw-r--r--app/assets/javascripts/clusters_list/clusters_util.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/assets/javascripts/clusters_list/clusters_util.js b/app/assets/javascripts/clusters_list/clusters_util.js
index c78c93fe1ba..e7ad2f45c75 100644
--- a/app/assets/javascripts/clusters_list/clusters_util.js
+++ b/app/assets/javascripts/clusters_list/clusters_util.js
@@ -1,10 +1,11 @@
export function generateAgentRegistrationCommand(agentToken, kasAddress) {
- return `docker run --pull=always --rm \\
- registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/cli:stable generate \\
- --agent-token=${agentToken} \\
- --kas-address=${kasAddress} \\
- --agent-version stable \\
- --namespace gitlab-kubernetes-agent | kubectl apply -f -`;
+ return `helm repo add gitlab https://charts.gitlab.io
+helm repo update
+helm upgrade --install gitlab-agent gitlab/gitlab-agent \\
+ --namespace gitlab-agent \\
+ --create-namespace \\
+ --set config.token=${agentToken} \\
+ --set config.kasAddress=${kasAddress}`;
}
export function getAgentConfigPath(clusterAgentName) {