Documentation
¶
Index ¶
- Constants
- Variables
- func GetSecrets(cluster string) []string
- type AzureFlags
- type CMCFlags
- type Config
- func (c *Config) Branch(ctx context.Context, cmcRepository github.Repository) error
- func (c *Config) Create(ctx context.Context, sopsFile string) (*cmc.CMC, error)
- func (c *Config) EnsureFlagsAreSet() error
- func (c *Config) Pull(ctx context.Context, cmcRepository github.Repository) (map[string]string, error)
- func (c *Config) PullTemplate() (map[string]string, error)
- func (c *Config) PullTemplateFile(path string) (string, error)
- func (c *Config) Push(ctx context.Context, desiredCMC map[string]string, message string) (*cmc.CMC, error)
- func (c *Config) PushCMC(ctx context.Context) (*cmc.CMC, error)
- func (c *Config) ReadFileFromSecretFolder(file string) (string, error)
- func (c *Config) ReadSecretFlags() error
- func (c *Config) Run(ctx context.Context) (*cmc.CMC, error)
- func (c *Config) SetSecretFlags(secrets map[string]string) error
- func (c *Config) Update(ctx context.Context, currentCMCmap map[string]string) (*cmc.CMC, error)
- func (c *Config) Validate() error
- type DeployKey
- type SecretFlags
Constants ¶
View Source
const ( CertManagerRegionKey = "cert_manager_route53_region" CertManagerRoleKey = "cert_manager_route53_role_base" CertManagerAccessKey = "cert_manager_route53_accesskey" CertManagerSecretKey = "cert_manager_route53_secretaccesskey" // #nosec G101 CloudDirectorRefreshTokenKey = "REFRESH_TOKEN" AzureClientIDKey = "clientId" AzureClientSecretKey = "clientSecret" AzureSubscriptionIdKey = "subscriptionId" AzureTenantIDKey = "tenantId" )
View Source
const ( CloudDirectorCredentialsFile = "cloud-director.sh" // #nosec G101 VsphereCredentialsFile = "vsphere-credentials.yaml" // #nosec G101 AzureCredentialsFile = "capz.secrets.sh" // #nosec G101 AzureIdentityFile = "capz.identity.sh" )
Variables ¶
View Source
var ErrInvalidFlag = errors.New("invalid flag")
Functions ¶
func GetSecrets ¶
Types ¶
type AzureFlags ¶
type CMCFlags ¶
type CMCFlags struct {
Secrets SecretFlags
SecretFolder string
AgePubKey string
TaylorBotToken string
MCAppsPreventDeletion bool
ClusterAppName string
ClusterAppCatalog string
ClusterAppVersion string
ClusterNamespace string
ClusterIntegratesDefaultApps bool
ConfigureContainerRegistries bool
DefaultAppsName string
DefaultAppsCatalog string
DefaultAppsVersion string
PrivateCA bool
PrivateMC bool
CertManagerDNSChallenge bool
MCCustomCoreDNSConfig string
MCProxyEnabled bool
MCHTTPSProxy string
RegistryDomain string
MCBBranchSource string
ConfigBranch string
MCAppCollectionBranch string
}
type Config ¶
type Config struct {
Cluster string
Github *github.Github
BaseDomain string
CMCRepository string
CMCBranch string
Provider string
Input *cmc.CMC
Flags CMCFlags
DisplaySecrets bool
}
func (*Config) EnsureFlagsAreSet ¶
func (*Config) ReadFileFromSecretFolder ¶
func (*Config) ReadSecretFlags ¶
type SecretFlags ¶
type SecretFlags struct {
SSHDeployKey DeployKey
CustomerDeployKey DeployKey
VSphereCredentials string
CloudDirectorRefreshToken string
Azure AzureFlags
ContainerRegistryConfiguration string
ClusterValues string
CertManagerRoute53Region string
CertManagerRoute53Role string
CertManagerRoute53AccessKeyID string
CertManagerRoute53SecretAccessKey string
}
Click to show internal directories.
Click to hide internal directories.