Documentation ¶
Overview ¶
Package reconciler defines implementations of the Reconciler interface defined at sigs.k8s.io/controller-runtime/pkg/reconcile.Reconciler. They implement the basic workhorse functionality of controllers, which include an InterStepBufferService controller, a Pipeline controller, and a Vertex controller.
Despite the implementation of the controllers, this package also implements a Start() function to watch corresponding Kubernetes resources for those controllers, it is supposed to be called at the time the controller manager service starts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultConfig ¶ added in v1.1.6
type DefaultConfig struct {
ContainerResources string `json:"containerResources"`
}
func (DefaultConfig) GetDefaultContainerResources ¶ added in v1.1.6
func (dc DefaultConfig) GetDefaultContainerResources() corev1.ResourceRequirements
type GlobalConfig ¶
type GlobalConfig struct {
// contains filtered or unexported fields
}
GlobalConfig is the configuration for the controllers, it is supposed to be populated from the configmap attached to the controller manager.
func FakeGlobalConfig ¶ added in v1.1.6
func FakeGlobalConfig(t *testing.T, isbSvcConfig *ISBSvcConfig) *GlobalConfig
func LoadConfig ¶
func LoadConfig(onErrorReloading func(error)) (*GlobalConfig, error)
func (*GlobalConfig) GetDefaults ¶ added in v1.1.6
func (g *GlobalConfig) GetDefaults() DefaultConfig
Get controller scope default config
func (*GlobalConfig) GetISBSvcConfig ¶ added in v1.1.6
func (g *GlobalConfig) GetISBSvcConfig() ISBSvcConfig
Get controller scope ISB Service config
type ISBSvcConfig ¶
type ISBSvcConfig struct { Redis *RedisConfig `json:"redis"` JetStream *JetStreamConfig `json:"jetstream"` }
func (ISBSvcConfig) GetJetStreamVersion ¶ added in v1.1.6
func (isc ISBSvcConfig) GetJetStreamVersion(version string) (*JetStreamVersion, error)
func (ISBSvcConfig) GetRedisVersion ¶ added in v1.1.6
func (isc ISBSvcConfig) GetRedisVersion(version string) (*RedisVersion, error)
type JetStreamConfig ¶
type JetStreamConfig struct { Settings string `json:"settings"` BufferConfig string `json:"bufferConfig"` Versions []JetStreamVersion `json:"versions"` }
type JetStreamVersion ¶
type RedisConfig ¶
type RedisConfig struct { Settings *RedisSettings `json:"settings"` Versions []RedisVersion `json:"versions"` }