From 30c88949f3f89b9e141d2e2c6004a3d61a198af2 Mon Sep 17 00:00:00 2001 From: jokestax Date: Sun, 21 Jul 2024 18:54:07 +0000 Subject: [PATCH] added variables for tokens --- internal/controller/cluster.go | 4 ++++ pkg/providerConfigs/types.go | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/internal/controller/cluster.go b/internal/controller/cluster.go index e2591740..155af914 100644 --- a/internal/controller/cluster.go +++ b/internal/controller/cluster.go @@ -200,6 +200,10 @@ func (clctrl *ClusterController) CreateTokens(kind string) interface{} { GitRunnerDescription: fmt.Sprintf("Self Hosted %s Runner", clctrl.GitProvider), GitRunnerNS: fmt.Sprintf("%s-runner", clctrl.GitProvider), GitURL: clctrl.GitopsTemplateURL, + AdminTeamName: clctrl.AdminTeamName, + DeveloperTeamName: clctrl.DeveloperTeamName, + MetaphorRepoName: clctrl.MetaphorRepoName, + GitopsRepoName: clctrl.GitopsRepoName, GitopsRepoURL: destinationGitopsRepoURL, GitHubHost: fmt.Sprintf("https://github.com/%s/gitops.git", clctrl.GitAuth.Owner), diff --git a/pkg/providerConfigs/types.go b/pkg/providerConfigs/types.go index 7c6f5f4f..d49f1165 100644 --- a/pkg/providerConfigs/types.go +++ b/pkg/providerConfigs/types.go @@ -72,6 +72,11 @@ type GitopsDirectoryValues struct { GitRunnerDescription string GitRunnerNS string GitURL string + AdminTeamName string + DeveloperTeamName string + MetaphorRepoName string + GitopsRepoName string + GitHubHost string GitHubOwner string