controllers

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunningK8sVersion *version.Version

RunningK8sVersion contains the version of k8s

Functions

func GetK8sVersion

func GetK8sVersion(client kubernetes.Interface) (v *version.Version, err error)

GetK8sVersion returns the running version of k8s

func VerifySCCAPIExists

func VerifySCCAPIExists() (bool, error)

Types

type NginxIngressControllerReconciler

type NginxIngressControllerReconciler struct {
	client.Client
	Scheme       *runtime.Scheme
	SccAPIExists bool
	Mgr          ctrl.Manager
}

NginxIngressControllerReconciler reconciles a NginxIngressController object

func (*NginxIngressControllerReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the NginxIngressController object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*NginxIngressControllerReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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