Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SuccessSynced is used as part of the Event 'reason' when a CR is synced SuccessSynced = "Synced" // SuccessfulDelete is used when an object and all its dependents are successfully // deleted SuccessDeleted = "Deleted" // ErrResourceExists is used as part of the Event 'reason' when a CR fails // to sync due to a Secret of the same name already existing. ErrResourceExists = "ErrResourceExists" // MessageResourceExists is the message used for Events when a resource // fails to sync due to a Secret already existing MessageResourceExists = "Resource %q already exists and is not managed by Resource" // MessageResourceSynced is the message used for an Event fired when a CR // is synced successfully MessageResourceSynced = "Resource synced successfully" // MessageResourceDeleted is the message used for an Event fired when a CR // is synced successfully MessageResourceDeleted = "Resource and all dependent objects deleted successfully" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller is the controller implementation for Login resources
func NewController ¶
func NewController( ctx context.Context, kubeClientset kubernetes.Interface, g8sClientset clientset.Interface, allowlistInformer informers.AllowlistInformer, selfSignedTLSBundleInformer informers.SelfSignedTLSBundleInformer, loginInformer informers.LoginInformer, sshKeyPairInformer informers.SSHKeyPairInformer, namespaceInformer coreinformers.NamespaceInformer, secretInformer coreinformers.SecretInformer) *Controller
NewController returns a new g8s controller
func (*Controller) Run ¶
func (c *Controller) Run(ctx context.Context, workers int) error
Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
apis
|
|
api.g8s.io/v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
|
Package v1alpha1 is the v1alpha1 version of the API. |
generated
|
|
clientset/versioned/fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
clientset/versioned/typed/api.g8s.io/v1alpha1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
clientset/versioned/typed/api.g8s.io/v1alpha1/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |
Click to show internal directories.
Click to hide internal directories.