controllers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitCommit string
)

Functions

func GetAuthSecret

GetAuthSecret Obtain the username and password from the authentication secret provided in the current namespace

func GetClientset added in v0.9.1

func GetClientset() (*kubernetes.Clientset, error)

GetClientset returns a clientset based on rest.config

func GetClusterID

GetClusterID Collects the cluster identifier and version from the Cluster Version custom resource object

func GetPullSecretToken

func GetPullSecretToken(r *KokuMetricsConfigReconciler, authConfig *crhchttp.AuthConfig) error

GetPullSecretToken Obtain the bearer token string from the pull secret in the openshift-config namespace

func ReflectSpec

ReflectSpec Determine if the Status item reflects the Spec item if not empty, otherwise set a default value if applicable.

func StringReflectSpec

func StringReflectSpec(r *KokuMetricsConfigReconciler, kmCfg *kokumetricscfgv1beta1.KokuMetricsConfig, specItem *string, statusItem *string, defaultVal string) (string, bool)

StringReflectSpec Determine if the string Status item reflects the Spec item if not empty, otherwise take the default value.

Types

type KokuMetricsConfigReconciler

type KokuMetricsConfigReconciler struct {
	client.Client
	Log       logr.Logger
	Scheme    *runtime.Scheme
	Clientset *kubernetes.Clientset
	InCluster bool
	Namespace string
	// contains filtered or unexported fields
}

KokuMetricsConfigReconciler reconciles a KokuMetricsConfig object

func (*KokuMetricsConfigReconciler) Reconcile

Reconcile Process the KokuMetricsConfig custom resource based on changes or requeue

func (*KokuMetricsConfigReconciler) SetupWithManager

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

SetupWithManager Setup reconciliation with manager object

Jump to

Keyboard shortcuts

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