Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/clusters_list/components/agent_token.vue')
-rw-r--r--app/assets/javascripts/clusters_list/components/agent_token.vue11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/assets/javascripts/clusters_list/components/agent_token.vue b/app/assets/javascripts/clusters_list/components/agent_token.vue
index 1597fcb9914..4dd6d84566c 100644
--- a/app/assets/javascripts/clusters_list/components/agent_token.vue
+++ b/app/assets/javascripts/clusters_list/components/agent_token.vue
@@ -21,6 +21,10 @@ export default {
},
inject: ['kasAddress', 'kasVersion'],
props: {
+ agentName: {
+ required: true,
+ type: String,
+ },
agentToken: {
required: true,
type: String,
@@ -32,7 +36,12 @@ export default {
},
computed: {
agentRegistrationCommand() {
- return generateAgentRegistrationCommand(this.agentToken, this.kasAddress, this.kasVersion);
+ return generateAgentRegistrationCommand({
+ name: this.agentName,
+ token: this.agentToken,
+ version: this.kasVersion,
+ address: this.kasAddress,
+ });
},
},
};