Documentation ¶
Index ¶
- func DeduceAnonymousReportsEnabled(developmentMode bool, cpOpts *operatorv1beta1.ControlPlaneOptions) bool
- func GenerateImage(opts *operatorv1beta1.ControlPlaneOptions, ...) (string, error)
- func SetDefaults(spec *operatorv1beta1.ControlPlaneOptions, args DefaultsArgs) bool
- func SpecDeepEqual(spec1, spec2 *operatorv1beta1.ControlPlaneOptions, envVarsToIgnore ...string) bool
- type DefaultsArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeduceAnonymousReportsEnabled ¶
func DeduceAnonymousReportsEnabled(developmentMode bool, cpOpts *operatorv1beta1.ControlPlaneOptions) bool
DeduceAnonymousReportsEnabled returns the value of the anonymous reports enabled based on the environment variable `CONTROLLER_ANONYMOUS_REPORTS` in the control plane pod template spec and operator development mode setting.
This allows users to override the setting that is a derivative of the operator development mode using the environment variable `CONTROLLER_ANONYMOUS_REPORTS` in the control plane pod template spec.
func GenerateImage ¶
func GenerateImage(opts *operatorv1beta1.ControlPlaneOptions, validators ...versions.VersionValidationOption) (string, error)
GenerateImage returns the image to use for the control plane.
func SetDefaults ¶
func SetDefaults( spec *operatorv1beta1.ControlPlaneOptions, args DefaultsArgs, ) bool
SetDefaults updates the environment variables of control plane and returns true if env field is changed.
func SpecDeepEqual ¶
func SpecDeepEqual(spec1, spec2 *operatorv1beta1.ControlPlaneOptions, envVarsToIgnore ...string) bool
----------------------------------------------------------------------------- ControlPlane - Private Functions - Equality Checks -----------------------------------------------------------------------------