credentialsrequest

package
v0.0.0-...-555da3f Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 33 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(object metav1.Object, finalizer string)

AddFinalizer adds a finalizer to the given object

func AddWithActuator

func AddWithActuator(mgr, adminMgr manager.Manager, actuator actuator.Actuator, platType configv1.PlatformType, mutatingClient corev1client.CoreV1Interface) error

AddWithActuator creates a new CredentialsRequest Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func DeleteFinalizer

func DeleteFinalizer(object metav1.Object, finalizer string)

DeleteFinalizer removes a finalizer from the given object

func HasFinalizer

func HasFinalizer(object metav1.Object, finalizer string) bool

HasFinalizer returns true if the given object has the given finalizer

func IsAdminCredSecret

func IsAdminCredSecret(namespace, secretName string) bool

func IsMissingSecretLabel

func IsMissingSecretLabel(secret metav1.Object) bool

IsMissingSecretLabel determines if the secret was created by the CCO but has not been labelled yet

Types

type ReconcileCredentialsRequest

type ReconcileCredentialsRequest struct {
	client.Client
	AdminClient client.Client
	Actuator    actuator.Actuator
	// contains filtered or unexported fields
}

ReconcileCredentialsRequest reconciles a CredentialsRequest object

func (*ReconcileCredentialsRequest) CreateOrUpdateOnCredsExist

func (r *ReconcileCredentialsRequest) CreateOrUpdateOnCredsExist(ctx context.Context, credsExists bool, syncErr error, cr *minterv1.CredentialsRequest) error

func (*ReconcileCredentialsRequest) GetConditions

func (*ReconcileCredentialsRequest) GetRelatedObjects

func (r *ReconcileCredentialsRequest) GetRelatedObjects(logger log.FieldLogger) ([]configv1.ObjectReference, error)

func (*ReconcileCredentialsRequest) Name

func (*ReconcileCredentialsRequest) Reconcile

Reconcile reads that state of the cluster for a CredentialsRequest object and makes changes based on the state read and what is in the CredentialsRequest.Spec Automatically generate RBAC rules to allow the Controller to read and write required types. +kubebuilder:rbac:groups=cloudcredential.openshift.io,resources=credentialsrequests;credentialsrequests/status;credentialsrequests/finalizers,verbs=get;list;watch;create;update;patch;delete Configmaps required for leader election: +kubebuilder:rbac:groups=core,resources=secrets;configmaps;events,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=core,resources=namespaces,verbs=get;list;watch +kubebuilder:rbac:groups=config.openshift.io,resources=clusterversions,verbs=get;list;watch +kubebuilder:rbac:groups=config.openshift.io,resources=infrastructures;dnses,verbs=get;list;watch +kubebuilder:rbac:groups=config.openshift.io,resources=clusteroperators;clusteroperators/status,verbs=create;get;update;list;watch

func (*ReconcileCredentialsRequest) UpdateProvisionedStatus

func (r *ReconcileCredentialsRequest) UpdateProvisionedStatus(cr *minterv1.CredentialsRequest, provisioned bool) error

UpdateProvisionedStatus will update the status subresource of this CredentialsRequest

type ReconcileSecretMissingLabel

type ReconcileSecretMissingLabel struct {
	// contains filtered or unexported fields
}

func (*ReconcileSecretMissingLabel) GetConditions

func (*ReconcileSecretMissingLabel) GetRelatedObjects

func (r *ReconcileSecretMissingLabel) GetRelatedObjects(logger log.FieldLogger) ([]configv1.ObjectReference, error)

func (*ReconcileSecretMissingLabel) Name

func (*ReconcileSecretMissingLabel) Reconcile

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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