controlplane

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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,
	dontOverride map[string]struct{},
	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 -----------------------------------------------------------------------------

Types

type DefaultsArgs

type DefaultsArgs struct {
	Namespace                   string
	ControlPlaneName            string
	DataPlaneIngressServiceName string
	DataPlaneAdminServiceName   string
	OwnedByGateway              string
	AnonymousReportsEnabled     bool
}

DefaultsArgs contains the parameters to pass to setControlPlaneDefaults

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL