Documentation ¶
Index ¶
- func Apply(client *client.Client, obj runtime.Object) error
- func Create(client *client.Client, obj runtime.Object) error
- func CreateIfNotExists(client *client.Client, obj runtime.Object) error
- func Get(client *client.Client, namespacedName types.NamespacedName, obj runtime.Object) error
- func HandleDeletion(api *wso2v1alpha2.API, ctx context.Context, requestInfo *common.RequestInfo, ...) (deleted, finalizerUpdated bool, err error)
- func NewConfMap() *corev1.ConfigMap
- func NewSecret() *corev1.Secret
- func NewSecretWith(namespacedName types.NamespacedName, data *map[string][]byte, ...) *corev1.Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIfNotExists ¶
CreateIfNotExists creates the given k8s object if the object is not exists in the k8s cluster
func Get ¶
Get populates the given k8s object with k8s cluster object values in the given namespacedName
func HandleDeletion ¶
func HandleDeletion(api *wso2v1alpha2.API, ctx context.Context, requestInfo *common.RequestInfo, finalizer string, handle func(*wso2v1alpha2.API) error) (deleted, finalizerUpdated bool, err error)
HandleDeletion handles resource deletion by setting finalizers and executing handle function before deletion
func NewConfMap ¶
func NewSecretWith ¶
func NewSecretWith(namespacedName types.NamespacedName, data *map[string][]byte, stringData *map[string]string, owner *[]metav1.OwnerReference) *corev1.Secret
NewSecretWith returns a new secret object with given namespacedName and data map
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.