operator

package
v0.0.0-...-8a3981d Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ControllerAppLabel = map[string]string{
	"app": "ibm-cert-manager-controller",
}

Functions

func ClearLabelMap

func ClearLabelMap(m map[string]string)

func YamlToObject

func YamlToObject(yamlContent []byte) (*unstructured.Unstructured, error)

YamlToObject converting large yaml file, we can remove it after using "apimachinery" v0.19.0

func YamlToObjects

func YamlToObjects(yamlContent []byte) ([]*unstructured.Unstructured, error)

YamlToObjects convert YAML content to unstructured objects

Types

type CertManagerReconciler

type CertManagerReconciler struct {
	Client       client.Client
	Reader       client.Reader
	Kubeclient   kubernetes.Interface
	APIextclient apiextensionclientset.Interface
	Scheme       *runtime.Scheme
	Recorder     record.EventRecorder
	NS           string
}

CertManagerReconciler reconciles a CertManager object

func (*CertManagerReconciler) CreateCertManagerConfigCR

func (r *CertManagerReconciler) CreateCertManagerConfigCR() error

create CertManagerConfig CR if not exist or update it if the version is old

func (*CertManagerReconciler) CreateObject

func (r *CertManagerReconciler) CreateObject(obj *unstructured.Unstructured) error

CreateObject create k8s resource with the unstructured object

func (*CertManagerReconciler) DeleteObject

func (r *CertManagerReconciler) DeleteObject(obj *unstructured.Unstructured) error

DeleteObject delete k8s resource with the unstructured object

func (*CertManagerReconciler) GetObject

GetObject get k8s resource with the unstructured object

func (*CertManagerReconciler) PreReqs

func (*CertManagerReconciler) Reconcile

func (r *CertManagerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*CertManagerReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*CertManagerReconciler) UpdateObject

func (r *CertManagerReconciler) UpdateObject(obj *unstructured.Unstructured) error

UpdateObject update k8s resource with the unstructured object

func (*CertManagerReconciler) UpdateResourse

func (r *CertManagerReconciler) UpdateResourse(obj *unstructured.Unstructured, crd *unstructured.Unstructured, labels map[string]string) error

Updating resource and add resourceVersion

Jump to

Keyboard shortcuts

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