{"modulePath":"github-proxy.voidd.workers.dev/openshift/origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controller\n\n## Variables\n\n```go\nvar ControllerInitializers = map[string]InitFunc{\n\t\"openshift.io/serviceaccount\": RunServiceAccountController,\n\n\t\"openshift.io/namespace-security-allocation\": RunNamespaceSecurityAllocationController,\n\n\t\"openshift.io/default-rolebindings\": RunDefaultRoleBindingController,\n\n\t\"openshift.io/serviceaccount-pull-secrets\": RunServiceAccountPullSecretsController,\n\t\"openshift.io/origin-namespace\":            RunOriginNamespaceController,\n\n\t\"openshift.io/build\":               RunBuildController,\n\t\"openshift.io/build-config-change\": RunBuildConfigChangeController,\n\n\t\"openshift.io/deployer\":         RunDeployerController,\n\t\"openshift.io/deploymentconfig\": RunDeploymentConfigController,\n\n\t\"openshift.io/image-trigger\":          RunImageTriggerController,\n\t\"openshift.io/image-import\":           RunImageImportController,\n\t\"openshift.io/image-signature-import\": RunImageSignatureImportController,\n\n\t\"openshift.io/templateinstance\":          RunTemplateInstanceController,\n\t\"openshift.io/templateinstancefinalizer\": RunTemplateInstanceFinalizerController,\n\n\t\"openshift.io/sdn\":              RunSDNController,\n\t\"openshift.io/unidling\":         RunUnidlingController,\n\t\"openshift.io/ingress-ip\":       RunIngressIPController,\n\t\"openshift.io/ingress-to-route\": RunIngressToRouteController,\n\n\t\"openshift.io/resourcequota\":                RunResourceQuotaManager,\n\t\"openshift.io/cluster-quota-reconciliation\": RunClusterQuotaReconciliationController,\n}\n```\n\n## Functions\n\n```go\nfunc RunBuildConfigChangeController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunBuildController(ctx *ControllerContext) (bool, error)\n```\nRunController starts the build sync loop for builds and buildConfig processing.\n\n```go\nfunc RunClusterQuotaReconciliationController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunControllerServer(servingInfo configv1.HTTPServingInfo, kubeExternal clientgoclientset.Interface) error\n```\nTODO make this an actual API server built on the genericapiserver\n\n```go\nfunc RunDefaultRoleBindingController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunDeployerController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunDeploymentConfigController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunImageImportController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunImageSignatureImportController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunImageTriggerController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunIngressIPController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunIngressToRouteController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunNamespaceSecurityAllocationController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunOriginNamespaceController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunResourceQuotaManager(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunSDNController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunServiceAccountController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunServiceAccountPullSecretsController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunTemplateInstanceController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunTemplateInstanceFinalizerController(ctx *ControllerContext) (bool, error)\n```\n\n```go\nfunc RunUnidlingController(ctx *ControllerContext) (bool, error)\n```\n\n## Types\n\n```go\ntype ControllerClientBuilder interface {\n\tcontroller.ControllerClientBuilder\n\n\tOpenshiftAppsClient(name string) (appsclient.Interface, error)\n\tOpenshiftAppsClientOrDie(name string) appsclient.Interface\n\n\tOpenshiftBuildClient(name string) (buildclient.Interface, error)\n\tOpenshiftBuildClientOrDie(name string) buildclient.Interface\n\n\tOpenshiftConfigClient(name string) (configclient.Interface, error)\n\tOpenshiftConfigClientOrDie(name string) configclient.Interface\n\n\tOpenshiftSecurityClient(name string) (securityclient.Interface, error)\n\tOpenshiftSecurityClientOrDie(name string) securityclient.Interface\n\n\t// OpenShift clients based on generated internal clientsets\n\tOpenshiftTemplateClient(name string) (templateclient.Interface, error)\n\tOpenshiftTemplateClientOrDie(name string) templateclient.Interface\n\n\tOpenshiftImageClient(name string) (imageclient.Interface, error)\n\tOpenshiftImageClientOrDie(name string) imageclient.Interface\n\n\tOpenshiftQuotaClient(name string) (quotaclient.Interface, error)\n\tOpenshiftQuotaClientOrDie(name string) quotaclient.Interface\n\n\tOpenshiftNetworkClient(name string) (networkclient.Interface, error)\n\tOpenshiftNetworkClientOrDie(name string) networkclient.Interface\n}\n```\n\n```go\ntype ControllerContext struct {\n\tOpenshiftControllerConfig openshiftcontrolplanev1.OpenShiftControllerManagerConfig\n\n\t// ClientBuilder will provide a client for this controller to use\n\tClientBuilder ControllerClientBuilder\n\n\tKubernetesInformers                informers.SharedInformerFactory\n\tOpenshiftConfigKubernetesInformers informers.SharedInformerFactory\n\n\tTemplateInformers templateinformer.SharedInformerFactory\n\tQuotaInformers    quotainformer.SharedInformerFactory\n\tRouteInformers    routeinformer.SharedInformerFactory\n\n\tAppsInformers    appsinformer.SharedInformerFactory\n\tBuildInformers   buildinformer.SharedInformerFactory\n\tConfigInformers  configinformer.SharedInformerFactory\n\tImageInformers   imageinformer.SharedInformerFactory\n\tNetworkInformers networkinformer.SharedInformerFactory\n\n\tGenericResourceInformer genericinformers.GenericResourceInformer\n\tRestMapper              meta.RESTMapper\n\n\t// Stop is the stop channel\n\tStop \u003c-chan struct{}\n\n\t// InformersStarted is closed after all of the controllers have been initialized and are running.  After this point it is safe,\n\t// for an individual controller to start the shared informers. Before it is closed, they should not.\n\tInformersStarted chan struct{}\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewControllerContext(\n\tconfig openshiftcontrolplanev1.OpenShiftControllerManagerConfig,\n\tinClientConfig *rest.Config,\n\tstopCh \u003c-chan struct{},\n) (*ControllerContext, error)\n```\n\n```go\nfunc (c *ControllerContext) IsControllerEnabled(name string) bool\n```\n\n```go\nfunc (c *ControllerContext) StartInformers(stopCh \u003c-chan struct{})\n```\n\n```go\nfunc (c *ControllerContext) ToGenericInformer() genericinformers.GenericResourceInformer\n```\n\n```go\ntype InitFunc func(ctx *ControllerContext) (bool, error)\n```\nInitFunc is used to launch a particular controller.  It may run additional \"should I activate checks\". Any error returned will cause the controller process to \\`Fatal\\` The bool indicates whether the controller was enabled.\n\n```go\ntype OpenshiftControllerClientBuilder struct {\n\tcontroller.ControllerClientBuilder\n}\n```\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftAppsClient(name string) (appsclient.Interface, error)\n```\nOpenshiftAppsClient provides a REST client for the apps API. If the client cannot be created because of configuration error, this function will error.\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftAppsClientOrDie(name string) appsclient.Interface\n```\nOpenshiftAppsClientOrDie provides a REST client for the apps API. If the client cannot be created because of configuration error, this function will panic.\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftBuildClient(name string) (buildclient.Interface, error)\n```\nOpenshiftBuildClient provides a REST client for the build  API. If the client cannot be created because of configuration error, this function will error.\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftBuildClientOrDie(name string) buildclient.Interface\n```\nOpenshiftBuildClientOrDie provides a REST client for the build API. If the client cannot be created because of configuration error, this function will panic.\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftConfigClient(name string) (configclient.Interface, error)\n```\nOpenshiftConfigClient provides a REST client for the build  API. If the client cannot be created because of configuration error, this function will error.\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftConfigClientOrDie(name string) configclient.Interface\n```\nOpenshiftConfigClientOrDie provides a REST client for the build API. If the client cannot be created because of configuration error, this function will panic.\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftImageClient(name string) (imageclient.Interface, error)\n```\nOpenshiftImageClient provides a REST client for the image API. If the client cannot be created because of configuration error, this function will error.\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftImageClientOrDie(name string) imageclient.Interface\n```\nOpenshiftImageClientOrDie provides a REST client for the image API. If the client cannot be created because of configuration error, this function will panic.\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftNetworkClient(name string) (networkclient.Interface, error)\n```\nOpenshiftNetworkClient provides a REST client for the network API. If the client cannot be created because of configuration error, this function will error.\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftNetworkClientOrDie(name string) networkclient.Interface\n```\nOpenshiftNetworkClientOrDie provides a REST client for the network API. If the client cannot be created because of configuration error, this function will panic.\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftQuotaClient(name string) (quotaclient.Interface, error)\n```\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftQuotaClientOrDie(name string) quotaclient.Interface\n```\nOpenshiftInternalBuildClientOrDie provides a REST client for the build API. If the client cannot be created because of configuration error, this function will panic.\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftSecurityClient(name string) (securityclient.Interface, error)\n```\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftSecurityClientOrDie(name string) securityclient.Interface\n```\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftTemplateClient(name string) (templateclient.Interface, error)\n```\nOpenshiftInternalTemplateClient provides a REST client for the template API. If the client cannot be created because of configuration error, this function will return an error.\n\n```go\nfunc (b OpenshiftControllerClientBuilder) OpenshiftTemplateClientOrDie(name string) templateclient.Interface\n```\nOpenshiftInternalTemplateClientOrDie provides a REST client for the template API. If the client cannot be created because of configuration error, this function will panic.\n\n","path":"github-proxy.voidd.workers.dev/openshift/origin/pkg/cmd/openshift-controller-manager/controller","name":"controller","synopsis":"","isRedistributable":true}
