Documentation
¶
Index ¶
- Constants
- func CopyOCIStore(ctx context.Context, url string, version string, store *mapStore, ...) error
- func FetchOCI(ctx context.Context, provider operatorv1.GenericProvider, ...) (*mapStore, error)
- func NewMapStore(p operatorv1.GenericProvider) mapStore
- func OCIAuthentication(c configclient.VariablesClient) *auth.Credential
- func OCIConfigMap(ctx context.Context, provider operatorv1.GenericProvider, ...) (*corev1.ConfigMap, error)
- func ProviderLabels(provider operatorv1.GenericProvider) map[string]string
- func RepositoryConfigMap(ctx context.Context, provider operatorv1.GenericProvider, ...) (*corev1.ConfigMap, error)
- func TemplateManifestsConfigMap(provider operatorv1.GenericProvider, labels map[string]string, ...) (*corev1.ConfigMap, error)
- type GenericProviderReconciler
- type PhaseError
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) 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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.