Documentation ¶
Index ¶
- Variables
- func ClearLabelMap(m map[string]string)
- func YamlToObject(yamlContent []byte) (*unstructured.Unstructured, error)
- func YamlToObjects(yamlContent []byte) ([]*unstructured.Unstructured, error)
- type CertManagerReconciler
- func (r *CertManagerReconciler) CreateCertManagerConfigCR() error
- func (r *CertManagerReconciler) CreateObject(obj *unstructured.Unstructured) error
- func (r *CertManagerReconciler) DeleteObject(obj *unstructured.Unstructured) error
- func (r *CertManagerReconciler) GetObject(obj *unstructured.Unstructured) (*unstructured.Unstructured, error)
- func (r *CertManagerReconciler) PreReqs(instance *operatorv1.CertManagerConfig) error
- func (r *CertManagerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *CertManagerReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *CertManagerReconciler) UpdateObject(obj *unstructured.Unstructured) error
- func (r *CertManagerReconciler) UpdateResourse(obj *unstructured.Unstructured, crd *unstructured.Unstructured, ...) error
Constants ¶
This section is empty.
Variables ¶
var ControllerAppLabel = map[string]string{
"app": "ibm-cert-manager-controller",
}
Functions ¶
func ClearLabelMap ¶
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 ¶
func (r *CertManagerReconciler) GetObject(obj *unstructured.Unstructured) (*unstructured.Unstructured, error)
GetObject get k8s resource with the unstructured object
func (*CertManagerReconciler) PreReqs ¶
func (r *CertManagerReconciler) PreReqs(instance *operatorv1.CertManagerConfig) error
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