Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SuccessSynced is used as part of the Event 'reason' when a Deployment is synced SuccessSynced = "Synced" // MessageResourceSynced is the message used for an Event fired when a Deployment // is synced successfully MessageResourceSynced = "Radix Deployment synced successfully" )
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewController(client kubernetes.Interface, kubeutil *kube.Kube, radixClient radixclient.Interface, handler common.Handler, kubeInformerFactory kubeinformers.SharedInformerFactory, radixInformerFactory informers.SharedInformerFactory, waitForChildrenToSync bool, recorder record.EventRecorder) *common.Controller
NewController creates a new controller that handles RadixDeployments
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler Instance variables
func NewHandler ¶
func NewHandler(kubeclient kubernetes.Interface, kubeutil *kube.Kube, radixclient radixclient.Interface, prometheusperatorclient monitoring.Interface, options ...HandlerConfigOption) *Handler
NewHandler Constructor
type HandlerConfigOption ¶ added in v1.15.5
type HandlerConfigOption func(*Handler)
HandlerConfigOption defines a configuration function used for additional configuration of Handler
func WithDeploymentSyncerFactory ¶ added in v1.15.5
func WithDeploymentSyncerFactory(factory deployment.DeploymentSyncerFactory) HandlerConfigOption
WithDeploymentSyncerFactory configures the deploymentSyncerFactory for the Handler
func WithForceRunAsNonRootFromEnvVar ¶ added in v1.15.5
func WithForceRunAsNonRootFromEnvVar(envVarName string) HandlerConfigOption
WithForceRunAsNonRootFromEnvVar configures runAsNonRoot for Handler from an environment variable
func WithHasSyncedCallback ¶ added in v1.15.5
func WithHasSyncedCallback(callback common.HasSynced) HandlerConfigOption
WithHasSyncedCallback configures Handler callback when RD has synced successfully
Click to show internal directories.
Click to hide internal directories.