Documentation ¶
Index ¶
- type InstallerController
- func (c *InstallerController) Run(workers int, stopCh <-chan struct{})
- func (o *InstallerController) WithCerts(certDir string, certConfigMaps, certSecrets []revision.RevisionResource) *InstallerController
- func (o *InstallerController) WithInstallerPodMutationFn(installerPodMutationFn InstallerPodMutationFunc) *InstallerController
- type InstallerPodMutationFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstallerController ¶
type InstallerController struct {
// contains filtered or unexported fields
}
InstallerController is a controller that watches the currentRevision and targetRevision fields for each node and spawn installer pods to update the static pods on the master nodes.
func NewInstallerController ¶
func NewInstallerController( targetNamespace, staticPodName string, configMaps []revision.RevisionResource, secrets []revision.RevisionResource, command []string, kubeInformersForTargetNamespace informers.SharedInformerFactory, operatorConfigClient v1helpers.StaticPodOperatorClient, configMapsGetter corev1client.ConfigMapsGetter, podsGetter corev1client.PodsGetter, eventRecorder events.Recorder, ) *InstallerController
NewInstallerController creates a new installer controller.
func (*InstallerController) Run ¶
func (c *InstallerController) Run(workers int, stopCh <-chan struct{})
Run starts the kube-apiserver and blocks until stopCh is closed.
func (*InstallerController) WithCerts ¶
func (o *InstallerController) WithCerts(certDir string, certConfigMaps, certSecrets []revision.RevisionResource) *InstallerController
func (*InstallerController) WithInstallerPodMutationFn ¶
func (o *InstallerController) WithInstallerPodMutationFn(installerPodMutationFn InstallerPodMutationFunc) *InstallerController
type InstallerPodMutationFunc ¶
type InstallerPodMutationFunc func(pod *corev1.Pod, nodeName string, operatorSpec *operatorv1.StaticPodOperatorSpec, revision int32) error
InstallerPodMutationFunc is a function that has a chance at changing the installer pod before it is created
Click to show internal directories.
Click to hide internal directories.