Documentation ¶
Index ¶
- Variables
- func GetAuthSecret(r *KokuMetricsConfigReconciler, kmCfg *kokumetricscfgv1beta1.KokuMetricsConfig, ...) error
- func GetClientset() (*kubernetes.Clientset, error)
- func GetClusterID(r *KokuMetricsConfigReconciler, kmCfg *kokumetricscfgv1beta1.KokuMetricsConfig) error
- func GetPullSecretToken(r *KokuMetricsConfigReconciler, authConfig *crhchttp.AuthConfig) error
- func ReflectSpec(r *KokuMetricsConfigReconciler, kmCfg *kokumetricscfgv1beta1.KokuMetricsConfig)
- func StringReflectSpec(r *KokuMetricsConfigReconciler, kmCfg *kokumetricscfgv1beta1.KokuMetricsConfig, ...) (string, bool)
- type KokuMetricsConfigReconciler
Constants ¶
This section is empty.
Variables ¶
var (
GitCommit string
)
Functions ¶
func GetAuthSecret ¶
func GetAuthSecret(r *KokuMetricsConfigReconciler, kmCfg *kokumetricscfgv1beta1.KokuMetricsConfig, authConfig *crhchttp.AuthConfig, reqNamespace types.NamespacedName) error
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 ¶
func GetClusterID(r *KokuMetricsConfigReconciler, kmCfg *kokumetricscfgv1beta1.KokuMetricsConfig) error
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 ¶
func ReflectSpec(r *KokuMetricsConfigReconciler, kmCfg *kokumetricscfgv1beta1.KokuMetricsConfig)
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 ¶
func (r *KokuMetricsConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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