Documentation
¶
Index ¶
- type CRSpec
- func (cr *CRSpec) AddToConfigs(svcName, name, value string)
- func (cr *CRSpec) AddToSecrets(svcName, name, value, secretName string)
- func (in *CRSpec) DeepCopy() *CRSpec
- func (in *CRSpec) DeepCopyInto(out *CRSpec)
- func (cr *CRSpec) GetFromSecrets(svcName, name string) string
- func (cr *CRSpec) GetManifestsRoot() string
- func (cr *CRSpec) GetProfileDir() string
- func (crs *CRSpec) IsNonGitOpsEqual(anotherSpec *CRSpec) bool
- type CustomMetadata
- type GitOps
- type KApiCr
- type NameValue
- type NameValues
- type Repo
- type SecretKeyRef
- type SelectivePatch
- type SupperConfigMap
- type SupperSecret
- type ValueFrom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRSpec ¶
type CRSpec struct { // relative to manifestsRoot folder, ex. ./manifests/base Profile string `json:"profile" yaml:"profile"` Secrets map[string]NameValues `json:"secrets,omitempty" yaml:"secrets,omitempty"` Configs map[string]NameValues `json:"configs,omitempty" yaml:"configs,omitempty"` ManifestsRoot string `json:"manifestsRoot,omitempty" yaml:"manifestsRoot,omitempty"` RotateKeys string `json:"rotateKeys,omitempty" yaml:"rotateKeys,omitempty"` StorageClassName string `json:"storageClassName,omitempty" yaml:"storageClassName,omitempty"` Git *Repo `json:"git,omitempty" yaml:"git,omitempty"` GitOps *GitOps `json:"gitOps,omitempty" yaml:"gitOps,omitempty"` FetchSource *Repo `json:"fetchSource,omitempty" yaml:"fetchSource,omitempty"` }
CRSpec defines the configuration for the whole manifests It is expecting in the manifestsRoot folder two subfolders .operator and .configuration exist operator will add patch into .operator folder customer will add patch into .configuration folder
func (*CRSpec) AddToConfigs ¶
func (*CRSpec) AddToSecrets ¶
AddToSecrets adds pieces to the secret section to the CR if secretName is provided value is ignored secretName is a kubernetes secret resource name, that already/will exist in the cluster
func (*CRSpec) DeepCopyInto ¶
func (*CRSpec) GetFromSecrets ¶
GetFromSecrets return value of the secret that exist in serets map of the spec
func (*CRSpec) GetManifestsRoot ¶
func (*CRSpec) GetProfileDir ¶
func (*CRSpec) IsNonGitOpsEqual ¶
type CustomMetadata ¶ added in v0.0.36
type KApiCr ¶
type KApiCr struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"` Spec *CRSpec `json:"spec" yaml:"spec"` }
func ReadCRSpecFromEnvYaml ¶
ReadCRSpecFromEnvYaml return CR config from env yaml
func ReadCRSpecFromFile ¶
ReadCRSpecFromFile return CR config from yaml file
func (*KApiCr) DeepCopyInto ¶
type NameValue ¶
type NameValue struct { Name string `yaml:"name" json:"name"` Value string `yaml:"value,omitempty" json:"value,omitempty"` ValueFrom *ValueFrom `yaml:"valueFrom,omitempty" json:"valueFrom,omitempty"` }
func (NameValue) GetSecretValue ¶
type Repo ¶
type Repo struct { Repository string `json:"repository"` UserName string `json:"userName,omitempty" yaml:"userName,omitempty"` Password string `json:"password,omitempty" yaml:"password,omitempty"` AccessToken string `json:"accessToken,omitempty" yaml:"accessToken,omitempty"` SecretName string `json:"secretName,omitempty" yaml:"secretName,omitempty"` }
func (*Repo) GetAccessToken ¶
type SecretKeyRef ¶
type SelectivePatch ¶
type SupperConfigMap ¶
type SupperSecret ¶
type ValueFrom ¶
type ValueFrom struct {
SecretKeyRef *SecretKeyRef `yaml:"secretKeyRef" json:"secretKeyRef"`
}
Click to show internal directories.
Click to hide internal directories.