Documentation ¶
Index ¶
- func Create(c client.Client, ctx context.Context, obj runtime.Object) error
- func GetCSVSpecVersion(c client.Client, cok client.ObjectKey) (string, error)
- func GetInstalledCSVName(c client.Client, cok client.ObjectKey) (string, error)
- func UnstructuredGet(c client.Client, gvk schema.GroupVersionKind, key client.ObjectKey, ...) error
- func Update(c client.Client, ctx context.Context, obj runtime.Object) error
- func ValidateGovernanceStackPolicy(kab *kabanerov1alpha2.Kabanero) (bool, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCSVSpecVersion ¶
GetCSVSpecVersion retrieves the version of the serverless CSV associated with the input CSV name.
func GetInstalledCSVName ¶
GetInstalledCSVName retrieves the name of the installed CSV from the subscription.
func UnstructuredGet ¶
func UnstructuredGet(c client.Client, gvk schema.GroupVersionKind, key client.ObjectKey, obj runtime.Object, reqLogger logr.Logger) error
Helps retrieve objects outside of the operator's namespace using a controller-runtime client.
func Update ¶
Wrapper around the controller-runtime client update method to allow create and update to share the same signature
func ValidateGovernanceStackPolicy ¶
func ValidateGovernanceStackPolicy(kab *kabanerov1alpha2.Kabanero) (bool, string, error)
Validates that the stack policy configured in the kabanero CR instance yaml is one of the allowed values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.