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 (crs *CRSpec) GetImageRegistry() string
- func (cr *CRSpec) GetManifestsRoot() string
- func (cr *CRSpec) GetProfileDir() string
- func (crs *CRSpec) IsEqualExceptOpsRunner(anotherSpec *CRSpec) bool
- type CustomMetadata
- type KApiCr
- type KeysAction
- type NameValue
- type NameValues
- type OpsRunner
- 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"` StorageClassName string `json:"storageClassName,omitempty" yaml:"storageClassName,omitempty"` Git *Repo `json:"git,omitempty" yaml:"git,omitempty"` OpsRunner *OpsRunner `json:"opsRunner,omitempty" yaml:"opsRunner,omitempty"` TlsCertHost string `json:"tlsCertHost,omitempty" yaml:"tlsCertHost,omitempty"` TlsCertOrg string `json:"tlsCertOrg,omitempty" yaml:"tlsCertOrg,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) GetImageRegistry ¶ added in v0.0.37
func (*CRSpec) GetManifestsRoot ¶
func (*CRSpec) GetProfileDir ¶
func (*CRSpec) IsEqualExceptOpsRunner ¶ added in v0.1.2
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 KeysAction ¶ added in v0.1.9
type KeysAction string
const ( KeysActionRestoreOrRotate KeysAction = "" KeysActionForceRotate KeysAction = "ForceRotate" KeysActionDoNothing KeysAction = "DoNothing" )
type NameValue ¶
type NameValue struct { Name string `yaml:"name,omitempty" json:"name,omitempty"` Value string `yaml:"value,omitempty" json:"value,omitempty"` ValueFrom *ValueFrom `yaml:"valueFrom,omitempty" json:"valueFrom,omitempty"` }
func (NameValue) GetSecretValue ¶
type OpsRunner ¶ added in v0.1.2
type OpsRunner struct { Enabled string `json:"enabled,omitempty" yaml:"enabled,omitempty"` Schedule string `json:"schedule,omitempty" yaml:"schedule,omitempty"` WatchBranch string `json:"watchBranch,omitempty" yaml:"watchBranch,omitempty"` Image string `json:"image,omitempty" yaml:"image,omitempty"` ImagePullPolicy string `json:"imagePullPolicy,omitempty" yaml:"imagePullPolicy,omitempty"` }
type Repo ¶
type Repo struct { Repository string `json:"repository,omitempty" yaml:"repository,omitempty"` 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.