controlplane

package
v1.3.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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,
	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