sveltos_upgrade

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: Apache-2.0 Imports: 13 Imported by: 8

Documentation

Index

Constants

View Source
const (
	ClusterNameLabel = "version.projectsveltos.io/clustername"
	ClusterTypeLabel = "version.projectsveltos.io/clustertype"
)

Following labels are added to any object created by Sveltos that needs to be processed or it is generated by Sveltos agents (ResourceSummary, Classifier, ClassifierReport,...) including the ConfigMaps used for compatibility checks.

Variables

This section is empty.

Functions

func IsDriftDetectionVersionCompatible

func IsDriftDetectionVersionCompatible(ctx context.Context, c client.Client, version, clusterNamespace, clusterName string,
	clusterType libsveltosv1beta1.ClusterType, isAgentInMgmtMode bool, logger logr.Logger) bool

func IsSveltosAgentVersionCompatible

func IsSveltosAgentVersionCompatible(ctx context.Context, c client.Client, version, clusterNamespace, clusterName string,
	clusterType libsveltosv1beta1.ClusterType, isAgentInMgmtMode bool, logger logr.Logger) bool

func StoreDriftDetectionVersion

func StoreDriftDetectionVersion(ctx context.Context, c client.Client, version, clusterNamespace, clusterName string,
	clusterType libsveltosv1beta1.ClusterType, isAgentInMgmtMode bool, logger logr.Logger) error

StoreDriftDetectionVersion stores the provided drift-detection-manager version in a ConfigMap. It takes three arguments:

  • ctx (context.Context): Context for the function call
  • c (client.Client): Kubernetes client used to interact with the API server
  • clusterNamespace, clusterName, clusterType identify the managed cluster
  • version (string): Version to compare against the sveltos-agent version
  • isAgentInMgmtMode indicates whether agents are in the management cluster (true) or managed clusters (false)

func StoreSveltosAgentVersion

func StoreSveltosAgentVersion(ctx context.Context, c client.Client, version, clusterNamespace, clusterName string,
	clusterType libsveltosv1beta1.ClusterType, isAgentInMgmtMode bool, logger logr.Logger) error

StoreSveltosAgentVersion stores the provided Sveltos-agent version in a ConfigMap. It takes three arguments:

  • ctx (context.Context): Context for the function call
  • c (client.Client): Kubernetes client used to interact with the API server
  • clusterNamespace, clusterName, clusterType identify the managed cluster
  • version (string): Version to compare against the sveltos-agent version
  • isAgentInMgmtMode indicates whether agents are in the management cluster (true) or managed clusters (false)

Types

This section is empty.

Jump to

Keyboard shortcuts

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