leafhub

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackageManifestConfig

func GetPackageManifestConfig(ctx context.Context, dynClient dynamic.Interface,
	log logr.Logger,
) (*packageManifestConfig, error)

func SetPackageManifestConfig

func SetPackageManifestConfig(acmDefaultChannel, acmCurrentCSV, mceDefaultChannel, mceCurrentCSV string,
	acmImages, mceImages map[string]string,
)

Types

type ACMImageEntry

type ACMImageEntry struct {
	CertPolicyController              string
	IAMPolicyController               string
	ConfigPolicyController            string
	GovernancePolicyStatusSync        string
	GovernancePolicySpecSync          string
	GovernancePolicyTemplateSync      string
	GovernancePolicyAddonController   string
	GovernancePolicyPropagator        string
	MulticlusterOperatorsChannel      string
	MulticlusterOperatorsSubscription string
}

type HoHAgentConfigValues

type HoHAgentConfigValues struct {
	HoHAgentImage          string
	LeadHubID              string
	KafkaBootstrapServer   string
	KafkaCA                string
	HostedClusterNamespace string // for hypershift case
}

type HypershiftHubConfigValues

type HypershiftHubConfigValues struct {
	HubVersion        string
	HoHAgentImage     string
	HostedClusterName string
	ImagePullSecret   string
	ChannelClusterIP  string
	ACM               ACMImageEntry
	MCE               MCEImageEntry
}

type LeafHubReconciler

type LeafHubReconciler struct {
	DynamicClient dynamic.Interface
	KubeClient    kubernetes.Interface
	client.Client
	Scheme *runtime.Scheme
}

LeafHubReconciler reconciles a LeafHub Cluster

func (*LeafHubReconciler) Reconcile

func (r *LeafHubReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the MulticlusterGlobalHub 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.11.0/pkg/reconcile

func (*LeafHubReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type MCEImageEntry

type MCEImageEntry struct {
	DefaultImageRegistry           string
	Registration                   string
	RegistrationOperator           string
	ManagedClusterImportController string
	Work                           string
	Placement                      string
}

Jump to

Keyboard shortcuts

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