Documentation ¶
Index ¶
- type InstallerController
- func (c InstallerController) Name() string
- func (c *InstallerController) Run(ctx context.Context, workers int)
- func (c InstallerController) Sync(ctx context.Context, syncCtx factory.SyncContext) error
- func (c *InstallerController) WithCerts(certDir string, certConfigMaps, certSecrets []revision.RevisionResource) *InstallerController
- func (c *InstallerController) WithInstallerPodMutationFn(installerPodMutationFn InstallerPodMutationFunc) *InstallerController
- type InstallerPodMutationFunc
- type Int32
- func (s Int32) Delete(items ...int32)
- func (s Int32) Difference(s2 Int32) Int32
- func (s1 Int32) Equal(s2 Int32) bool
- func (s Int32) Has(item int32) bool
- func (s Int32) HasAll(items ...int32) bool
- func (s Int32) HasAny(items ...int32) bool
- func (s Int32) Insert(items ...int32)
- func (s1 Int32) Intersection(s2 Int32) Int32
- func (s1 Int32) IsSuperset(s2 Int32) bool
- func (s Int32) Len() int
- func (s Int32) List() []int32
- func (s Int32) PopAny() (int32, bool)
- func (s1 Int32) Union(s2 Int32) Int32
- func (s Int32) UnsortedList() []int32
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, operatorClient v1helpers.StaticPodOperatorClient, configMapsGetter corev1client.ConfigMapsGetter, secretsGetter corev1client.SecretsGetter, podsGetter corev1client.PodsGetter, eventRecorder events.Recorder, ) *InstallerController
NewInstallerController creates a new installer controller.
func (InstallerController) Name ¶
func (c InstallerController) Name() string
func (*InstallerController) Run ¶
func (c *InstallerController) Run(ctx context.Context, workers int)
func (InstallerController) Sync ¶
func (c InstallerController) Sync(ctx context.Context, syncCtx factory.SyncContext) error
func (*InstallerController) WithCerts ¶
func (c *InstallerController) WithCerts(certDir string, certConfigMaps, certSecrets []revision.RevisionResource) *InstallerController
func (*InstallerController) WithInstallerPodMutationFn ¶
func (c *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
type Int32 ¶
sets.Int32 is a set of int32s, implemented via map[int32]struct{} for minimal memory consumption.
func Int32KeySet ¶
func Int32KeySet(theMap interface{}) Int32
Int32KeySet creates a Int32 from a keys of a map[int32](? extends interface{}). If the value passed in is not actually a map, this will panic.
func (Int32) Difference ¶
Difference returns a set of objects that are not in s2 For example: s1 = {a1, a2, a3} s2 = {a1, a2, a4, a5} s1.Difference(s2) = {a3} s2.Difference(s1) = {a4, a5}
func (Int32) Equal ¶
Equal returns true if and only if s1 is equal (as a set) to s2. Two sets are equal if their membership is identical. (In practice, this means same elements, order doesn't matter)
func (Int32) Intersection ¶
Intersection returns a new set which includes the item in BOTH s1 and s2 For example: s1 = {a1, a2} s2 = {a2, a3} s1.Intersection(s2) = {a2}
func (Int32) IsSuperset ¶
IsSuperset returns true if and only if s1 is a superset of s2.
func (Int32) Union ¶
Union returns a new set which includes items in either s1 or s2. For example: s1 = {a1, a2} s2 = {a3, a4} s1.Union(s2) = {a1, a2, a3, a4} s2.Union(s1) = {a1, a2, a3, a4}
func (Int32) UnsortedList ¶
UnsortedList returns the slice with contents in random order.