resourceapply

package
v0.0.0-...-46270a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAssetPlaceHolder

func AddAssetPlaceHolder(key, value string)

func AddOwnerRefToObject

func AddOwnerRefToObject(o metav1.Object, r metav1.OwnerReference)

AddOwnerRefToObject ...

func GetLabelValue

func GetLabelValue(lbls map[string]string, key string) string

func IsDriverUpdateNeeded

func IsDriverUpdateNeeded() bool

func ReplaceAssetPlaceholders

func ReplaceAssetPlaceholders(manifest []byte) []byte

ReplaceAssetPlaceholders replace variables in yaml

func ResetAssetPlaceHolder

func ResetAssetPlaceHolder()

func SetDriverImage

func SetDriverImage(val string)

func SetDriverUpdateNeeded

func SetDriverUpdateNeeded(flag bool)

func SetDriverVersion

func SetDriverVersion(val string)

Types

type ResourceApply

type ResourceApply struct {
	Client    client.Client
	Context   context.Context
	Helper    common.ControllerHelperInterface
	Owner     metav1.OwnerReference
	Log       logr.Logger
	Namespace string
}

func (*ResourceApply) Apply

func (ra *ResourceApply) Apply(asset string) (runtime.Object, error)

func (*ResourceApply) ApplyDriverConfigMap

func (ra *ResourceApply) ApplyDriverConfigMap(cm *corev1.ConfigMap) (runtime.Object, error)

func (*ResourceApply) ApplyOLMRbac

func (ra *ResourceApply) ApplyOLMRbac()

func (*ResourceApply) GetResource

func (ra *ResourceApply) GetResource(asset string) (runtime.Object, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL