Documentation ¶
Index ¶
- Constants
- func DeleteAsset(c client.Client, asset kabanerov1alpha2.RepositoryAssetStatus, ...) error
- func DownloadToByte(c client.Client, namespace string, url string, ...) ([]byte, error)
- type DirectiveProcessor
- type PipelineUseMap
- type PipelineUseMapKey
- type PipelineUseMapValue
- type StackAsset
- type StackContents
- type StackManifest
Constants ¶
View Source
const ( // Asset status. AssetStatusActive = "active" AssetStatusFailed = "failed" AssetStatusUnknown = "unknown" )
Variables ¶
This section is empty.
Functions ¶
func DeleteAsset ¶
func DeleteAsset(c client.Client, asset kabanerov1alpha2.RepositoryAssetStatus, assetOwner metav1.OwnerReference, logger logr.Logger) error
Deletes an asset. This can mean removing an object owner, or completely deleting it.
func DownloadToByte ¶
Types ¶
type DirectiveProcessor ¶
type DirectiveProcessor struct { }
The DirectiveProcessor processes text processing directives found in the yaml source
type PipelineUseMap ¶
type PipelineUseMap map[PipelineUseMapKey]*PipelineUseMapValue
func ActivatePipelines ¶
func ActivatePipelines(spec kabanerov1alpha2.ComponentSpec, status kabanerov1alpha2.ComponentStatus, targetNamespace string, renderingContext map[string]interface{}, assetOwner metav1.OwnerReference, c client.Client, logger logr.Logger) (PipelineUseMap, error)
type PipelineUseMapKey ¶
type PipelineUseMapKey struct { Url string GitRelease kabanerov1alpha2.GitReleaseInfo Digest string }
A key to the pipeline use count map
type PipelineUseMapValue ¶
type PipelineUseMapValue struct { kabanerov1alpha2.PipelineStatus ManifestError error // contains filtered or unexported fields }
The value in the pipeline use count map
type StackAsset ¶
type StackAsset struct { Name string Group string Version string Kind string Sha256 string Yaml unstructured.Unstructured }
This is the rendered asset, including its sha256 from the manifest.
func GetManifests ¶
func GetManifests(c client.Client, namespace string, pipelineStatus kabanerov1alpha2.PipelineStatus, renderingContext map[string]interface{}, skipCertVerification bool, reqLogger logr.Logger) ([]StackAsset, error)
type StackContents ¶
type StackManifest ¶
type StackManifest struct {
Contents []StackContents `yaml:"contents,omitempty"`
}
Stack archive manifest.yaml
Click to show internal directories.
Click to hide internal directories.