revision

package
v0.0.0-...-a37a6d3 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeValues

func ComputeValues(
	userValues *v1alpha1.Values, namespace string, version string,
	platform config.Platform, defaultProfile, userProfile string, resourceDir string,
	activeRevisionName string,
) (*v1alpha1.Values, error)

ComputeValues computes the Istio Helm values for an IstioRevision as follows: - applies image digests from the operator configuration - applies the user-provided values on top of the default values from the default and user-selected profiles - applies overrides that are not configurable by the user

func CreateOrUpdate

func CreateOrUpdate(
	ctx context.Context, cl client.Client, revName string, version string, namespace string,
	values *v1alpha1.Values, ownerRef metav1.OwnerReference,
) error

func IsUsingRemoteControlPlane

func IsUsingRemoteControlPlane(rev *v1alpha1.IstioRevision) bool

IsUsingRemoteControlPlane returns true if the IstioRevision is configured to connect to a remote rather than deploy a local control plane.

func ListOwned

func ListOwned(ctx context.Context, cl client.Client, ownerUID types.UID) ([]v1alpha1.IstioRevision, error)

ListOwned returns all IstioRevisions owned by the given owner.

func PruneInactive

func PruneInactive(ctx context.Context, cl client.Client, ownerUID types.UID, activeRevisionName string, gracePeriod time.Duration) (ctrl.Result, error)

PruneInactive deletes IstioRevisions owned by the specified owner that are not in use and whose grace period has expired.

Types

This section is empty.

Jump to

Keyboard shortcuts

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