image

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PullPolicy added in v1.9.0

type PullPolicy string

PullPolicy is the image pull policy. Use a custom type to share the validation marker.

type Ref

type Ref struct {
	// Custom image repository
	// +kubebuilder:example:="docker.io/dynatrace/image-name"
	Repository string `json:"repository,omitempty"`

	// Indicates a tag of the image to use
	Tag string `json:"tag,omitempty"`

	// Image pull policy to use
	PullPolicy PullPolicy `json:"pullPolicy,omitempty"`
}

func (*Ref) DeepCopy

func (in *Ref) DeepCopy() *Ref

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ref.

func (*Ref) DeepCopyInto

func (in *Ref) DeepCopyInto(out *Ref)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (Ref) GetPullPolicy added in v1.9.0

func (ref Ref) GetPullPolicy() corev1.PullPolicy

GetPolicy returns the image pull policy.

func (*Ref) IsZero added in v1.8.0

func (ref *Ref) IsZero() bool

IsZero returns true if the image ref is empty. Prefer this name over IsEmpty for compatibility with JSON omitzero.

func (Ref) String

func (ref Ref) String() string

func (Ref) StringWithDefaults

func (ref Ref) StringWithDefaults(repo, tag string) string

StringWithDefaults will use the provided default values for fields that were not already set.

Jump to

Keyboard shortcuts

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