controllers

package
v0.0.0-...-aae4dcf Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Overview

Code generated for package controllers by go-bindata DO NOT EDIT. (@generated) sources: ../manifests/0000_31_cluster-baremetal-operator_07_clusteroperator.cr.yaml

Index

Constants

View Source
const (
	// ComponentNamespace is namespace where CBO resides
	ComponentNamespace = "openshift-machine-api"
	// ComponentName is the full name of CBO
	ComponentName = "cluster-baremetal-operator"

	// Annotation linking a machine to a host
	HostAnnotation = "metal3.io/BareMetalHost"
)

Variables

This section is empty.

Functions

func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDir

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.

func AssetInfo

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func EnabledFeatures

func EnabledFeatures(ctx context.Context, osClient osclientset.Interface) (v1alpha1.EnabledFeatures, error)

EnabledFeatures returns the features that are enabled on the current platform.

func IsEnabled

func IsEnabled(enabledFeatures v1alpha1.EnabledFeatures) bool

IsEnabled returns true if there is at least one feature enabled.

func Manifests0000_31_clusterBaremetalOperator_07_clusteroperatorCrYaml

func Manifests0000_31_clusterBaremetalOperator_07_clusteroperatorCrYaml() (*asset, error)

func Manifests0000_31_clusterBaremetalOperator_07_clusteroperatorCrYamlBytes

func Manifests0000_31_clusterBaremetalOperator_07_clusteroperatorCrYamlBytes() ([]byte, error)

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Types

type InstallConfigData

type InstallConfigData struct {
	SSHKey string
}

type ProvisioningReconciler

type ProvisioningReconciler struct {
	// This client, initialized using mgr.Client() above, is a split client
	// that reads objects from the cache and writes to the apiserver
	Client          client.Client
	Scheme          *runtime.Scheme
	OSClient        osclientset.Interface
	KubeClient      kubernetes.Interface
	ReleaseVersion  string
	ImagesFilename  string
	WebHookEnabled  bool
	NetworkStack    provisioning.NetworkStackType
	EnabledFeatures v1alpha1.EnabledFeatures
	ResourceCache   resourceapply.ResourceCache
}

ProvisioningReconciler reconciles a Provisioning object

func (*ProvisioningReconciler) Reconcile

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

Reconcile updates the cluster settings when the Provisioning resource changes

func (*ProvisioningReconciler) SetupWithManager

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

SetupWithManager configures the manager to run the controller

type StatusReason

type StatusReason string

StatusReason is a MixedCaps string representing the reason for a status condition change.

const (

	// OperatorDisabled represents a Disabled ClusterStatusConditionTypes
	OperatorDisabled osconfigv1.ClusterStatusConditionType = "Disabled"

	// ReasonEmpty is an empty StatusReason
	ReasonEmpty StatusReason = ""

	// ReasonExpected indicates that the operator is behaving as expected
	ReasonExpected StatusReason = "AsExpected"

	// ReasonComplete the deployment of required resources is complete
	ReasonComplete StatusReason = "DeployComplete"

	// ReasonSyncing means that resources are deploying
	ReasonSyncing StatusReason = "SyncingResources"

	// ReasonInvalidConfiguration indicates that the configuration is invalid
	ReasonInvalidConfiguration StatusReason = "InvalidConfiguration"

	// ReasonDeployTimedOut indicates that the deployment timedOut
	ReasonDeployTimedOut StatusReason = "DeployTimedOut"

	// ReasonDeploymentCrashLooping indicates that the deployment is crashlooping
	ReasonDeploymentCrashLooping StatusReason = "DeploymentCrashLooping"

	// ReasonResourceNotFound indicates that the deployment is not found
	ReasonResourceNotFound StatusReason = "ResourceNotFound"

	// ReasonProvisioningCRNotFound indicates that the provsioning CR is not found
	ReasonProvisioningCRNotFound StatusReason = "WaitingForProvisioningCR"

	// ReasonUnsupported is an unsupported StatusReason
	ReasonUnsupported StatusReason = "UnsupportedPlatform"
)

Jump to

Keyboard shortcuts

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