Documentation
¶
Index ¶
- Constants
- func GetData(c *CMC) ([]byte, error)
- func MarkUnchangedSecretsInMap(currentCMC *CMC, desiredCMC *CMC, update map[string]string) (map[string]string, error)
- type App
- type CAPV
- type CAPVCD
- type CAPZ
- type CMC
- func (c *CMC) DecodeSecrets() error
- func (c *CMC) EncodeSecrets()
- func (c *CMC) Equals(desired *CMC) bool
- func (c *CMC) GetBaseFiles(cmcTemplate map[string]string, path string) (map[string]string, error)
- func (c *CMC) GetClusterApps(cmcTemplate map[string]string, path string) (map[string]string, error)
- func (c *CMC) GetCustomCoreDNS(cmcTemplate map[string]string, path string) (map[string]string, error)
- func (c *CMC) GetDefaultApps(cmcTemplate map[string]string, path string) (map[string]string, error)
- func (c *CMC) GetDenyNetPol(cmcTemplate map[string]string, path string) (map[string]string, error)
- func (c *CMC) GetDeployKey(cmcTemplate map[string]string, path string) (map[string]string, error)
- func (c *CMC) GetKustomization(cmcTemplate map[string]string, path string) (map[string]string, error)
- func (c *CMC) GetMCProxy(cmcTemplate map[string]string, path string) (map[string]string, error)
- func (c *CMC) GetMap(cmcTemplate map[string]string) (map[string]string, error)
- func (c *CMC) GetPrivateCA(cmcTemplate map[string]string, path string) (map[string]string, error)
- func (c *CMC) GetProviders(cmcTemplate map[string]string, path string) (map[string]string, error)
- func (c *CMC) GetSecrets(cmcTemplate map[string]string, path string) (map[string]string, error)
- func (c *CMC) GetSops(cmcTemplate map[string]string, path string) (map[string]string, error)
- func (c *CMC) Override(override *CMC) *CMC
- func (c *CMC) Print() error
- func (c *CMC) RedactSecrets()
- func (c *CMC) SetDefaultAppValues() error
- func (c *CMC) Validate() error
- type CertManagerDNSChallenge
- type ConfigureContainerRegistries
- type CustomCoreDNS
- type DeployKey
- type GitOps
- type MCProxy
- type Provider
Constants ¶
View Source
const (
Redacted = "REDACTED"
)
View Source
const (
SopsFile = ".sops.yaml"
)
Variables ¶
This section is empty.
Functions ¶
func MarkUnchangedSecretsInMap ¶
func MarkUnchangedSecretsInMap(currentCMC *CMC, desiredCMC *CMC, update map[string]string) (map[string]string, error)
the reason for this is that when secrets are encrypted, they will always appear to be different so we need to remove secrets that have not changed from the update map
Types ¶
type CMC ¶
type CMC struct {
AgePubKey string `yaml:"agePubKey"`
Cluster string `yaml:"cluster"`
ClusterApp App `yaml:"clusterApp"`
DefaultApps App `yaml:"defaultApps,omitempty"`
ClusterIntegratesDefaultApps bool `yaml:"clusterIntegratesDefaultApps"`
MCAppsPreventDeletion bool `yaml:"mcAppsPreventDeletion"`
PrivateCA bool `yaml:"privateCA"`
PrivateMC bool `yaml:"privateMC"`
ClusterNamespace string `yaml:"clusterNamespace"`
Provider Provider `yaml:"provider"`
TaylorBotToken string `yaml:"taylorBotToken"`
SSHdeployKey DeployKey `yaml:"sshDeployKey"`
CustomerDeployKey DeployKey `yaml:"customerDeployKey"`
CertManagerDNSChallenge CertManagerDNSChallenge `yaml:"certManagerDNSChallenge"`
ConfigureContainerRegistries ConfigureContainerRegistries `yaml:"configureContainerRegistries"`
CustomCoreDNS CustomCoreDNS `yaml:"customCoreDNS"`
DisableDenyAllNetPol bool `yaml:"disableDenyAllNetPol"`
MCProxy MCProxy `yaml:"mcProxy"`
BaseDomain string `yaml:"baseDomain,omitempty"`
RegistryDomain string `yaml:"registryDomain,omitempty"`
GitOps GitOps `yaml:"gitOps,omitempty"`
}
func GetCMCFromFile ¶
func GetCMCFromMap ¶
func (*CMC) DecodeSecrets ¶
func (*CMC) EncodeSecrets ¶
func (c *CMC) EncodeSecrets()
func (*CMC) GetBaseFiles ¶
BaseFiles
func (*CMC) GetClusterApps ¶
ClusterApps
func (*CMC) GetCustomCoreDNS ¶
func (c *CMC) GetCustomCoreDNS(cmcTemplate map[string]string, path string) (map[string]string, error)
CustomCoreDNS
func (*CMC) GetDefaultApps ¶
DefaultApps
func (*CMC) GetDenyNetPol ¶
DenyNetPol
func (*CMC) GetDeployKey ¶
DeployKey
func (*CMC) GetKustomization ¶
func (c *CMC) GetKustomization(cmcTemplate map[string]string, path string) (map[string]string, error)
Kustomization
func (*CMC) GetMCProxy ¶
MCProxy
func (*CMC) GetPrivateCA ¶
PrivateCA
func (*CMC) GetProviders ¶
Providers
func (*CMC) GetSecrets ¶
func (*CMC) RedactSecrets ¶
func (c *CMC) RedactSecrets()
func (*CMC) SetDefaultAppValues ¶
type CertManagerDNSChallenge ¶
type CustomCoreDNS ¶
Click to show internal directories.
Click to hide internal directories.