Documentation
¶
Index ¶
- Constants
- func BoolFromEnvVar(envVar string) bool
- func CRDExist(ctx context.Context, client crdclientv1.ApiextensionsV1Interface, ...) (bool, error)
- func Contains(slice []string, str string) bool
- func DeploymentImages(images map[string]string) mf.Transformer
- func ImagesFromEnv(prefix string) map[string]string
- func InjectAnnotations(key, value string, overwritePolicy int, kinds ...string) mf.Transformer
- func IsOpenShiftPlatform() bool
- func SetupManifestival(client client.Client, manifestFile string, logger logr.Logger) (manifestival.Manifest, error)
- func ToLowerCaseKeys(keyValues map[string]string) map[string]string
Constants ¶
View Source
const ( ShipwrightImagePrefix = "IMAGE_SHIPWRIGHT_" TektonOpMinSupportedVersion = "v0.50.0" TektonOpMinSupportedMajor = 0 TektonOpMinSupportedMinor = 50 Retain int = iota Overwrite )
Variables ¶
This section is empty.
Functions ¶
func BoolFromEnvVar ¶
func CRDExist ¶
func CRDExist(ctx context.Context, client crdclientv1.ApiextensionsV1Interface, crdName string) (bool, error)
func DeploymentImages ¶
func DeploymentImages(images map[string]string) mf.Transformer
deploymentImages replaces container and env vars images.
func ImagesFromEnv ¶
imagesFromEnv will provide map of key value.
func InjectAnnotations ¶
func InjectAnnotations(key, value string, overwritePolicy int, kinds ...string) mf.Transformer
injectAnnotations adds annotation key:value to a resource annotations overwritePolicy (Retain/Overwrite) decides whehther to overwrite an already existing annotation []kinds specify the Kinds on which the label should be applied if len(kinds) = 0, label will be apllied to all/any resources irrespective of its Kind
func IsOpenShiftPlatform ¶
func IsOpenShiftPlatform() bool
func SetupManifestival ¶
func SetupManifestival(client client.Client, manifestFile string, logger logr.Logger) (manifestival.Manifest, error)
setupManifestival instantiate manifestival
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.