controllers

package
v0.0.0-...-bb2f907 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearLastApplied

func ClearLastApplied(annotations map[string]string) map[string]string

func ConfigMapDeleteObj

func ConfigMapDeleteObj(cr *k8spluginv1alpha1.ResourceBundleState, name string) (bool, error)

func CsrDeleteObj

func CsrDeleteObj(cr *k8spluginv1alpha1.ResourceBundleState, name string) (bool, error)

func DaemonSetDeleteObj

func DaemonSetDeleteObj(cr *k8spluginv1alpha1.ResourceBundleState, name string) (bool, error)

func DeleteObj

func DeleteObj(cr *k8spluginv1alpha1.ResourceBundleState, name, namespace string, gvk schema.GroupVersionKind) (bool, error)

func DeleteResourceStatusCR

func DeleteResourceStatusCR(cr *k8spluginv1alpha1.ResourceBundleState, name, namespace string, gvk schema.GroupVersionKind) (bool, error)

func DeploymentDeleteObj

func DeploymentDeleteObj(cr *k8spluginv1alpha1.ResourceBundleState, name string) (bool, error)

func GetServerResources

func GetServerResources(client *discovery.DiscoveryClient) ([]*schema.GroupVersionKind, error)

GetServerResources returns a GVK list of all cluster defined resources

func JobDeleteObj

func JobDeleteObj(cr *k8spluginv1alpha1.ResourceBundleState, name string) (bool, error)

func PodDeleteObj

func PodDeleteObj(cr *k8spluginv1alpha1.ResourceBundleState, name string) (bool, error)

func ServiceDeleteObj

func ServiceDeleteObj(cr *k8spluginv1alpha1.ResourceBundleState, name string) (bool, error)

func SetupControllerForType

func SetupControllerForType(mgr ctrl.Manager, resourceGVK *schema.GroupVersionKind, mutex *sync.Mutex) error

func SetupControllers

func SetupControllers(mgr ctrl.Manager, controllersMutex *sync.Mutex) error

func SetupGitClient

func SetupGitClient() error

func StatefulSetDeleteObj

func StatefulSetDeleteObj(cr *k8spluginv1alpha1.ResourceBundleState, name string) (bool, error)

func UpdateResourceStatusCR

func UpdateResourceStatusCR(cr *k8spluginv1alpha1.ResourceBundleState, item *unstructured.Unstructured, name, namespace string) (bool, error)

func UpdateStatus

func UpdateStatus(cr *k8spluginv1alpha1.ResourceBundleState, item *unstructured.Unstructured, name, namespace string) (bool, error)

Types

type ControllerListReconciler

type ControllerListReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

ResourceBundleStateReconciler reconciles a ResourceBundleState object

func (*ControllerListReconciler) Reconcile

func (*ControllerListReconciler) SetupWithManager

func (r *ControllerListReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CustomResourceDefinitionReconciler

type CustomResourceDefinitionReconciler struct {
	client.Client
	Scheme       *runtime.Scheme
	ResourcesMap map[schema.GroupVersionKind]bool
	// contains filtered or unexported fields
}

CustomResourceDefinitionReconciler reconciles a CustomResourceDefinition object

func (*CustomResourceDefinitionReconciler) Reconcile

func (*CustomResourceDefinitionReconciler) SetupWithManager

func (r *CustomResourceDefinitionReconciler) SetupWithManager(mgr ctrl.Manager, controllersMutex *sync.Mutex) error

SetupWithManager sets up the controller with the Manager.

type DeleteStatusClient

type DeleteStatusClient struct {
	// contains filtered or unexported fields
}

func (*DeleteStatusClient) Delete

func (u *DeleteStatusClient) Delete() error

func (*DeleteStatusClient) DeleteOne

type GitAccessClient

type GitAccessClient struct {
	// contains filtered or unexported fields
}
var GitClient GitAccessClient

func NewGitClient

func NewGitClient() (GitAccessClient, error)

func (*GitAccessClient) CommitCRToGit

func (*GitAccessClient) DeleteStatusFromGit

func (c *GitAccessClient) DeleteStatusFromGit(appName string) error

function to delete status folder for git

type ResourceBundleStateReconciler

type ResourceBundleStateReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ResourceBundleStateReconciler reconciles a ResourceBundleState object

func (*ResourceBundleStateReconciler) Reconcile

func (*ResourceBundleStateReconciler) SetupWithManager

func (r *ResourceBundleStateReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type UpdateStatusClient

type UpdateStatusClient struct {
	// contains filtered or unexported fields
}

func (*UpdateStatusClient) Update

func (u *UpdateStatusClient) Update() error

Jump to

Keyboard shortcuts

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