Documentation ¶
Index ¶
- func OperatorConditionToClusterOperatorCondition(condition operatorv1.OperatorCondition) configv1.ClusterOperatorStatusCondition
- func VersionForOperand(namespace, imagePullSpec string, configMapGetter corev1client.ConfigMapsGetter, ...) string
- func VersionForOperandFromEnv() string
- func VersionForOperatorFromEnv() string
- type StatusSyncer
- type VersionGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OperatorConditionToClusterOperatorCondition ¶
func OperatorConditionToClusterOperatorCondition(condition operatorv1.OperatorCondition) configv1.ClusterOperatorStatusCondition
func VersionForOperand ¶
func VersionForOperand(namespace, imagePullSpec string, configMapGetter corev1client.ConfigMapsGetter, eventRecorder events.Recorder) string
func VersionForOperandFromEnv ¶
func VersionForOperandFromEnv() string
func VersionForOperatorFromEnv ¶
func VersionForOperatorFromEnv() string
Types ¶
type StatusSyncer ¶
type StatusSyncer struct {
// contains filtered or unexported fields
}
func NewClusterOperatorStatusController ¶
func NewClusterOperatorStatusController( name string, relatedObjects []configv1.ObjectReference, clusterOperatorClient configv1client.ClusterOperatorsGetter, clusterOperatorInformer configv1informers.ClusterOperatorInformer, operatorClient operatorv1helpers.OperatorClient, versionGetter VersionGetter, recorder events.Recorder, ) *StatusSyncer
func (*StatusSyncer) Run ¶
func (c *StatusSyncer) Run(workers int, stopCh <-chan struct{})
type VersionGetter ¶
type VersionGetter interface { // SetVersion is a way to set the version for an operand. It must be thread-safe SetVersion(operandName, version string) // GetVersion is way to get the versions for all operands. It must be thread-safe and return an object that doesn't mutate GetVersions() map[string]string // VersionChangedChannel is a channel that will get an item whenever SetVersion has been called VersionChangedChannel() <-chan struct{} }
func NewVersionGetter ¶
func NewVersionGetter() VersionGetter
Click to show internal directories.
Click to hide internal directories.