controllers

package
v0.0.0-...-99aaeba Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateWithRetries

func CreateOrUpdateWithRetries(
	ctx context.Context,
	c client.Client,
	obj client.Object,
	f controllerutil.MutateFn) (controllerutil.OperationResult, error)

CreateOrUpdateWithRetries creates or updates the given object in the Kubernetes with retries

func GetClientForCluster

func GetClientForCluster(configBytes []byte) (client.Client, error)

Types

type Cluster

type Cluster struct {
	Name          string        `json:"name"`
	Server        string        `json:"server"`
	Config        ClusterConfig `json:"clusterConfig"`
	HostedCluster *hypershiftv1beta1.HostedCluster
}

type ClusterConfig

type ClusterConfig struct {
	BearerToken     string          `json:"bearerToken"`
	TLSClientConfig TLSClientConfig `json:"tlsClientConfig"`
}

type HyperOpsReconciler

type HyperOpsReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ConfigReconciler reconciles a Config object

func (*HyperOpsReconciler) Reconcile

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

+kubebuilder:rbac:groups=hypershift.openshift.io,resources=hostedclusters,verbs=get;list;watch +kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups="",resources=serviceaccounts,verbs=get;list;watch;create;update;patch;delete

func (*HyperOpsReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type TLSClientConfig

type TLSClientConfig struct {
	CAData string `json:"caData"`
}

Jump to

Keyboard shortcuts

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