controller

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OCIUsernameKey     = "OCI_USERNAME"
	OCIPasswordKey     = "OCI_PASSWORD"
	OCIAccessTokenKey  = "OCI_ACCESS_TOKEN"
	OCIRefreshTokenKey = "OCI_REFRESH_TOKEN" // #nosec G101

)

Variables

This section is empty.

Functions

func CopyOCIStore added in v0.16.0

func CopyOCIStore(ctx context.Context, url string, version string, store *mapStore, credential *auth.Credential) error

CopyOCIStore collects artifacts from the provider OCI url and creates a map of file contents.

func FetchOCI added in v0.16.0

func FetchOCI(ctx context.Context, provider operatorv1.GenericProvider, cred *auth.Credential) (*mapStore, error)

FetchOCI copies the content of OCI.

func NewMapStore added in v0.16.0

func NewMapStore(p operatorv1.GenericProvider) mapStore

NewMapStore initializes mapStore for the provider resource.

func OCIAuthentication added in v0.16.0

func OCIAuthentication(c configclient.VariablesClient) *auth.Credential

OCIAuthentication returns user supplied credentials from provider variables.

func OCIConfigMap added in v0.16.0

func OCIConfigMap(ctx context.Context, provider operatorv1.GenericProvider, auth *auth.Credential) (*corev1.ConfigMap, error)

OCIConfigMap templates config from the OCI source.

func ProviderLabels added in v0.16.0

func ProviderLabels(provider operatorv1.GenericProvider) map[string]string

ProviderLabels returns default set of labels that identify a config map with downloaded manifests.

func RepositoryConfigMap added in v0.16.0

func RepositoryConfigMap(ctx context.Context, provider operatorv1.GenericProvider, repo repository.Repository) (*corev1.ConfigMap, error)

RepositoryConfigMap templates ConfigMap resource from the provider repository.

func TemplateManifestsConfigMap added in v0.16.0

func TemplateManifestsConfigMap(provider operatorv1.GenericProvider, labels map[string]string, metadata, components []byte, compress bool) (*corev1.ConfigMap, error)

TemplateManifestsConfigMap prepares a config map with downloaded manifests.

Types

type GenericProviderReconciler

type GenericProviderReconciler struct {
	Provider                 genericprovider.GenericProvider
	ProviderList             genericprovider.GenericProviderList
	Client                   client.Client
	Config                   *rest.Config
	WatchConfigSecretChanges bool
}

func (*GenericProviderReconciler) Reconcile

func (r *GenericProviderReconciler) Reconcile(ctx context.Context, req reconcile.Request) (_ reconcile.Result, reterr error)

func (*GenericProviderReconciler) SetupWithManager

func (r *GenericProviderReconciler) SetupWithManager(mgr ctrl.Manager, options controller.Options) error

type PhaseError

type PhaseError struct {
	Reason   string
	Type     clusterv1.ConditionType
	Severity clusterv1.ConditionSeverity
	Err      error
}

PhaseError custom error type for phases.

func (*PhaseError) Error

func (p *PhaseError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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