From 749395c87b181ae7533ae7fefd18a10628196e96 Mon Sep 17 00:00:00 2001 From: Mario Manno Date: Tue, 9 May 2023 16:03:51 +0200 Subject: [PATCH] Add code comment to config Repo setting --- pkg/config/config.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 73bee5d3ee..42d08e7db9 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -64,10 +64,13 @@ type Config struct { type Bootstrap struct { Namespace string `json:"namespace,omitempty"` AgentNamespace string `json:"agentNamespace,omitempty"` - Repo string `json:"repo,omitempty"` - Secret string `json:"secret,omitempty"` // gitrepo.ClientSecretName for agent from repo - Paths string `json:"paths,omitempty"` - Branch string `json:"branch,omitempty"` + // Repo to add at install time that will deploy to the local cluster. This allows + // one to fully bootstrap fleet, its configuration and all its downstream clusters + // in one shot. + Repo string `json:"repo,omitempty"` + Secret string `json:"secret,omitempty"` // gitrepo.ClientSecretName for agent from repo + Paths string `json:"paths,omitempty"` + Branch string `json:"branch,omitempty"` } func OnChange(ctx context.Context, f func(*Config) error) {