v1beta1

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 10 Imported by: 23 modules, 50 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

Overview

Package v1alpha1 contains API Schema definitions for the lib v1alpha1 API group +kubebuilder:object:generate=true +groupName=lib.projectsveltos.io

Index

Constants

View Source
const (
	AccessRequestFinalizer = "accessrequestfinalizer.projectsveltos.io"

	AccessRequestKind = "AccessRequest"

	// AccessRequestNameLabel is added to each Secret generated for an AccessRequest
	AccessRequestNameLabel = "projectsveltos.io/access-request-name"
)
View Source
const (
	// ClassifierFinalizer allows ClassifierReconciler to clean up resources associated with
	// Classifier before removing it from the apiserver.
	ClassifierFinalizer = "classifierfinalizer.projectsveltos.io"

	// ClassifierReportClusterNameLabel is added to each ClassifierReport
	ClassifierReportClusterNameLabel = "classifier.projectsveltos.io/cluster-name"

	// ClassifierReportClusterTypeLabel is added to each ClassifierReport
	ClassifierReportClusterTypeLabel = "classifier.projectsveltos.io/cluster-type"

	ClassifierKind = "Classifier"

	FeatureClassifier = "Classifier"
)
View Source
const (
	// ClusterTypeCapi indicates type is CAPI Cluster
	ClusterTypeCapi = ClusterType("Capi")

	// ClusterTypeSveltos indicates type is Sveltos Cluster
	ClusterTypeSveltos = ClusterType("Sveltos")
)
View Source
const (
	// ClassifierNameLabel is added to each ClassifierReport generated
	// for a Classifier instance
	ClassifierlNameLabel = "projectsveltos.io/classifier-name"

	ClassifierReportKind = "ClassifierReport"

	// This is the name of the secret containing the kubeconfig
	// to send ClassifierReport to management cluster when classifier agent
	// is configured to send ClassifierReports
	ClassifierSecretName = "classifier-agent"
)
View Source
const (
	// ReportWaitingForDelivery indicates the report has yet to be sent to the
	// management cluster
	ReportWaitingForDelivery = ReportPhase("WaitingForDelivery")

	// ReportDelivering indicates the report has been sent to the management
	// cluster but not ack-ed yet
	ReportDelivering = ReportPhase("Delivering")

	// ReportProcessed indicates the report has been already delivered and acked
	// in the management cluster.
	ReportProcessed = ReportPhase("Processed")
)
View Source
const (
	// ClusterHealthCheckFinalizer allows ClusterHealthCheckReconciler to clean up resources associated with
	// ClusterHealthCheck before removing it from the apiserver.
	ClusterHealthCheckFinalizer = "clusterhcfinalizer.projectsveltos.io"

	ClusterHealthCheckKind = "ClusterHealthCheck"

	FeatureClusterHealthCheck = "ClusterHealthCheck"
)
View Source
const (
	SlackToken     = "SLACK_TOKEN"
	SlackChannelID = "SLACK_CHANNEL_ID"
)

Slack constant To have Sveltos sends a slack notification, create a Secret of type "addons.projectsveltos.io/cluster-profile" In the data section set both slack token and slack channel id

View Source
const (
	WebexToken  = "WEBEX_TOKEN"
	WebexRoomID = "WEBEX_ROOM_ID"
)

Webex constant To have Sveltos sends a webex notification, create a Secret of type "addons.projectsveltos.io/cluster-profile" In the data section set both webex token and webex room ID

View Source
const (
	DiscordToken     = "DISCORD_TOKEN"
	DiscordChannelID = "DISCORD_CHANNEL_ID"
)

Discord constant To have Sveltos sends a Discord notification, create a Secret of type "addons.projectsveltos.io/cluster-profile" In the data section set both discord token and discord server ID

View Source
const (
	TelegramToken  = "TELEGRAM_TOKEN"
	TelegramChatID = "TELEGRAM_CHAT_ID"
)

Telegram constant To have Sveltos sends a Telegram notification, create a Secret of type "addons.projectsveltos.io/cluster-profile" In the data section set both discord token and discord server ID

View Source
const (
	SmtpRecipients = "SMTP_RECIPIENTS"
	SmtpCc         = "SMTP_CC"
	SmtpBcc        = "SMTP_BCC"
	SmtpSender     = "SMTP_SENDER"
	SmtpPassword   = "SMTP_PASSWORD"
	SmtpHost       = "SMTP_HOST"
	SmtpPort       = "SMTP_PORT"
)

SMTP constant To have Sveltos sends an SMTP notification, create a Secret of type "addons.projectsveltos.io/cluster-profile" In the data section set the SMTP information

View Source
const (
	// LivenessTypeAddons refers to add-ons deployment state.
	LivenessTypeAddons = LivenessType("Addons")

	// LivenessTypeHealthCheck refers to HealthCheck state.
	LivenessTypeHealthCheck = LivenessType("HealthCheck")
)
View Source
const (
	// NotificationTypeKubernetesEvent refers to generating a Kubernetes event
	NotificationTypeKubernetesEvent = NotificationType("KubernetesEvent")

	// NotificationTypeSlack refers to generating a Slack message
	NotificationTypeSlack = NotificationType("Slack")

	// NotificationTypeWebex refers to generating a Webex message
	NotificationTypeWebex = NotificationType("Webex")

	// NotificationTypeDiscord refers to generating a Discord message
	NotificationTypeDiscord = NotificationType("Discord")

	// NotificationTypeTeams refers to generating a Teams message
	NotificationTypeTeams = NotificationType("Teams")

	// NotificationTypeSMTP refers to generating an email message
	NotificationTypeSMTP = NotificationType("SMTP")

	// NotificationTypeTelegram refers to generating a telegram message
	NotificationTypeTelegram = NotificationType("Telegram")
)
View Source
const (
	// NotificationStatusDelivered indicates notification has been delivered
	NotificationStatusDelivered = NotificationStatus("Delivered")

	// NotificationStatusFailedToDeliver indicates notification was not delivered
	// due to an error
	NotificationStatusFailedToDeliver = NotificationStatus("FailedToDeliver")
)
View Source
const (
	// ClusterSetFinalizer allows ClusterSetReconciler to clean up resources associated with
	// ClusterSet before removing it from the apiserver.
	ClusterSetFinalizer = "clustersetfinalizer.projectsveltos.io"

	ClusterSetKind = "ClusterSet"
)
View Source
const (
	// PolicyTemplateAnnotation is the annotation that must be set on a policy when the
	// policy is a template and needs variable substitution.
	PolicyTemplateAnnotation = "projectsveltos.io/template"

	// PolicyLuaAnnotation is the annotation that must be set on a policy when the
	// policy contains Lua script.
	PolicyLuaAnnotation = "projectsveltos.io/lua"

	// ValidateHealthCheckNameAnnotation carries a ValidateHealth check's Name onto the Job
	// resolved for it. addon-controller sets it when resolving a JobCheck for a pull-mode
	// ConfigurationGroup (see ConfigurationGroupSpec's *CheckJobs fields), since the
	// map[string]string those checks travel in is keyed by the Job's own namespace/name, not
	// the check's Name; sveltos-applier reads it back to build a failure message consistent
	// with the one push-mode's HealthCheckError produces (which includes the check Name).
	ValidateHealthCheckNameAnnotation = "validatehealth.projectsveltos.io/check-name"
)
View Source
const (
	// ServiceAccountNameLabel can be set on various Sveltos resources (ClusterProfile/EventSource/...)
	// to indicate which admin (represented by a ServiceAccount) is creating it (service account name).
	// ServiceAccountNameLabel used along with RoleRequest is Sveltos solution for multi tenancy.
	ServiceAccountNameLabel = "projectsveltos.io/serviceaccount-name"

	// ServiceAccountNamespaceLabel can be set on various Sveltos resources (ClusterProfile/EventSource/...)
	// to indicate which admin (represented by a ServiceAccount) is creating it (service account namespace).
	// ServiceAccountNamespaceLabel used along with RoleRequest is Sveltos solution for multi tenancy.
	ServiceAccountNamespaceLabel = "projectsveltos.io/serviceaccount-namespace"
)
View Source
const (
	// SveltosStatusProvisioning indicates that sveltos feature is being
	// provisioned in the workload cluster
	SveltosStatusProvisioning = SveltosFeatureStatus("Provisioning")

	// SveltosStatusProvisioned indicates that sveltos has been
	// provisioned in the workload cluster
	SveltosStatusProvisioned = SveltosFeatureStatus("Provisioned")

	// SveltosStatusFailed indicates that configuring sveltos feature
	// in the workload cluster failed
	SveltosStatusFailed = SveltosFeatureStatus("Failed")

	// SveltosStatusFailedNonRetriable indicates that configuring sveltos feature
	// in the workload cluster failed with a non retriable error
	SveltosStatusFailedNonRetriable = SveltosFeatureStatus("FailedNonRetriable")

	// SveltosStatusRemoving indicates that sveltos feature is being
	// removed
	SveltosStatusRemoving = SveltosFeatureStatus("Removing")

	// SveltosStatusRemoved indicates that sveltos feature is removed
	SveltosStatusRemoved = SveltosFeatureStatus("Removed")
)
View Source
const (
	// OperationEqual will verify equality. Corresponds to ==
	OperationEqual = Operation("Equal")

	// OperationDifferent will verify difference. Corresponds to !=
	OperationDifferent = Operation("Different")

	// OperationHas will verify key is present
	OperationHas = Operation("Has")

	// OperationDoesNotHave will verify key is not present
	OperationDoesNotHave = Operation("DoesNotHave")
)
View Source
const (
	// FeatureResources is the identifier for generic Resources feature
	FeatureResources = FeatureID("Resources")

	// FeatureHelm is the identifier for Helm feature
	FeatureHelm = FeatureID("Helm")

	// FeatureKustomize is the identifier for Kustomize feature
	FeatureKustomize = FeatureID("Kustomize")
)
View Source
const (
	// FeatureStatusProvisioning indicates that feature is being
	// provisioned in the workload cluster
	FeatureStatusProvisioning = FeatureStatus("Provisioning")

	// FeatureStatusProvisioned indicates that feature has being
	// provisioned in the workload cluster
	FeatureStatusProvisioned = FeatureStatus("Provisioned")

	// FeatureStatusFailed indicates that configuring the feature
	// in the workload cluster failed
	FeatureStatusFailed = FeatureStatus("Failed")

	// FeatureStatusFailedNonRetriable indicates that configuring the feature
	// in the workload cluster failed with a non retriable error
	FeatureStatusFailedNonRetriable = FeatureStatus("FailedNonRetriable")

	// FeatureStatusRemoving indicates that feature is being
	// removed
	FeatureStatusRemoving = FeatureStatus("Removing")

	// FeatureStatusAgentRemoving indicates that feature is being
	// removed by agent when in pull mode
	FeatureStatusAgentRemoving = FeatureStatus("AgentRemoving")

	// FeatureStatusRemoved indicates that feature is removed
	FeatureStatusRemoved = FeatureStatus("Removed")

	// FeatureStatusBlocked indicates that removal of this feature is deferred:
	// a dependent ClusterSummary (DependsOn) has not been removed yet, or a
	// successor ClusterSummary (TransitionFrom) has not reached Provisioned yet.
	FeatureStatusBlocked = FeatureStatus("Blocked")
)
View Source
const (
	// ActionDeploy indicates to deploy the content referenced by the ConfigurationGroup
	ActionDeploy = Action("Deploy")

	// ActionRemove indicates to withdraw the content deployed because of the ConfigurationGroup
	ActionRemove = Action("Remove")
)
View Source
const (
	// UpdatePhaseReady indicates the ConfigurationGroup is ready for deployment
	UpdatePhaseReady = UpdatePhase("Ready")

	// UpdatePhasePreparing indicates a new version of the ConfigurationGroup is being prepared
	UpdatePhasePreparing = UpdatePhase("Preparing")
)
View Source
const (
	// LogLevelNotSet indicates log severity is not set. Default configuration will apply.
	LogLevelNotSet = LogLevel("LogLevelNotSet")

	// LogLevelInfo indicates log severity info (V(0)) is set
	LogLevelInfo = LogLevel("LogLevelInfo")

	// LogLevelDebug indicates log severity debug (V(5)) is set
	LogLevelDebug = LogLevel("LogLevelDebug")

	// LogLevelVerbose indicates log severity debug (V(10)) is set
	LogLevelVerbose = LogLevel("LogLevelVerbose")
)
View Source
const (
	// ComponentAddonManager is the addon-manager pod
	ComponentAddonManager = Component("AddonManager")

	// Classifier is the classifier pod
	ComponentClassifier = Component("Classifier")

	// ClassifierAgent is the classifier agent pod
	ComponentSveltosAgent = Component("SveltosAgent")

	// ComponentSveltosClusterManager is the sveltoscluster-manager pod
	ComponentSveltosClusterManager = Component("SveltosClusterManager")

	// ComponentDriftDetectionManager is the drift-detection-manager pod
	ComponentDriftDetectionManager = Component("DriftDetectionManager")

	// ComponentAccessManager is the access-manager pod
	ComponentAccessManager = Component("AccessManager")

	// ComponentHealthCheckManager is the healthcheck-manager pod
	ComponentHealthCheckManager = Component("HealthCheckManager")

	// ComponentEventManager is the event-manager pod
	ComponentEventManager = Component("EventManager")

	// ComponentShardController is the shard-controller pod
	ComponentShardController = Component("ShardController")

	// ComponentUIBackend is the ui backend pod
	ComponentUIBackend = Component("UIBackend")

	// ComponentConversionWebhook is conversion webhook pod
	ComponentConversionWebhook = Component("ConversionWebhook")

	// ComponentTechsupport is the techsupport pod
	ComponentTechsupport = Component("Techsupport")

	// ComponentMCPServer is the MCP Server pod
	ComponentMCPServer = Component("MCPServer")

	// ComponentClusterInventory is the ClusterInventory controller pod
	ComponentClusterInventory = Component("ClusterInventory")
)
View Source
const (
	EventReportKind = "EventReport"

	// EventReportFinalizer allows EventReportReconciler to clean up resources associated with
	// EventReport before removing it from the apiserver.
	EventReportFinalizer = "eventreport.finalizer.projectsveltos.io"

	// EventSourceNameLabel is added to each EventReport generated
	// for a EventSource instance
	EventSourceNameLabel = "projectsveltos.io/eventsource-name"

	// EventReportClusterNameLabel is added to each EventReport
	EventReportClusterNameLabel = "eventreport.projectsveltos.io/cluster-name"

	// EventReportClusterTypeLabel is added to each EventReport
	EventReportClusterTypeLabel = "eventreport.projectsveltos.io/cluster-type"
)
View Source
const (
	// EventSourceFinalizer allows EventSourceReconciler to clean up resources associated with
	// EventSource before removing it from the apiserver.
	EventSourceFinalizer = "eventsource.finalizer.projectsveltos.io"

	EventSourceKind = "EventSource"
)
View Source
const (
	// HealthCheckFinalizer allows HealthReconciler to clean up resources associated with
	// HealthCheck before removing it from the apiserver.
	HealthCheckFinalizer = "healthcheck.finalizer.projectsveltos.io"

	HealthCheckKind = "HealthCheck"
)
View Source
const (
	HealthCheckReportKind = "HealthCheckReport"

	// HealthCheckReportFinalizer allows HealthReconciler to clean up resources associated with
	// HealthCheckReport before removing it from the apiserver.
	HealthCheckReportFinalizer = "healthcheckreport.finalizer.projectsveltos.io"

	// HealthCheckNameLabel is added to each HealthCheckReport generated
	// for a HealthCheck instance
	HealthCheckNameLabel = "projectsveltos.io/healthcheck-name"

	// HealthCheckReportClusterNameLabel is added to each HealthCheckReport
	HealthCheckReportClusterNameLabel = "healthcheckreport.projectsveltos.io/cluster-name"

	// HealthCheckReportClusterTypeLabel is added to each HealthCheckReport
	HealthCheckReportClusterTypeLabel = "healthcheckreport.projectsveltos.io/cluster-type"
)
View Source
const (
	// HealthStatusHealthy indicates healthy status
	HealthStatusHealthy = HealthStatus("Healthy")

	// HealthStatusProgressing indicates resource is not healthy yet but
	// it is progressing
	HealthStatusProgressing = HealthStatus("Progressing")

	// HealthStatusDegraded indicates resource is degraded
	HealthStatusDegraded = HealthStatus("Degraded")

	// HealthStatusSuspended indicates resource is suspended
	HealthStatusSuspended = HealthStatus("Suspended")
)
View Source
const (
	// ManagementClusterClassifierFinalizer allows ManagementClusterClassifierReconciler
	// to clean up resources before removing the CR from the apiserver.
	ManagementClusterClassifierFinalizer = "managementclusterclassifierfinalizer.projectsveltos.io"

	ManagementClusterClassifierKind = "ManagementClusterClassifier"
)
View Source
const (
	// ManagementClusterClassifierNameLabel is added to each ManagementClusterClassifierReport
	// to identify the ManagementClusterClassifier that created it.
	// `:` is not a valid character in Kubernetes resource names, so this prefix cannot
	// collide with any Classifier name when both are registered in the keymanager.
	ManagementClusterClassifierNameLabel = "projectsveltos.io/managementclusterclassifier-name"

	ManagementClusterClassifierReportKind = "ManagementClusterClassifierReport"
)
View Source
const (
	// ReloaderFinalizer finalizer
	ReloaderFinalizer = "reloader.finalizer.projectsveltos.io"

	ReloaderKind = "Reloader"
)
View Source
const (
	ReloaderReportKind = "ReloaderReport"

	// ReloaderReportFinalizer allows ReloaderReportReconciler to clean up resources associated with
	// ReloaderReport before removing it from the apiserver.
	ReloaderReportFinalizer = "reloaderreport.finalizer.projectsveltos.io"

	// ReloaderReportClusterNameLabel is added to each ReloaderReport
	ReloaderReportClusterNameLabel = "reloaderreport.projectsveltos.io/cluster-name"

	// ReloaderReportClusterTypeLabel is added to each ReloaderReport
	ReloaderReportClusterTypeLabel = "reloaderreport.projectsveltos.io/cluster-type"

	// ReloaderReportResourceKindAnnotation is added to each ReloaderReport
	ReloaderReportResourceKindAnnotation = "reloaderreport.projectsveltos.io/resource-kind"

	// ReloaderReportResourceNamespaceAnnotation is added to each ReloaderReport
	ReloaderReportResourceNamespaceAnnotation = "reloaderreport.projectsveltos.io/resource-namespace"

	// ReloaderReportResourceNameAnnotation is added to each ReloaderReport
	ReloaderReportResourceNameAnnotation = "reloaderreport.projectsveltos.io/resource-name"
)
View Source
const (
	// ResourceSummaryFinalizer is finalizer added to ResourceSummary
	ResourceSummaryFinalizer = "resourcesummaryfinalizer.projectsveltos.io"

	ResourceSummaryKind = "ResourceSummary"

	// ClusterSummaryNameLabel is added to all ResourceSummary instances
	//
	// Deprecated: Use ClusterSummaryNameAnnotation
	ClusterSummaryNameLabel = "projectsveltos.io/cluster-summary-name"

	// ClusterSummaryNamespaceLabel is added to all ResourceSummary instances
	//
	// Deprecated: Use ClusterSummaryNamespaceAnnotation
	ClusterSummaryNamespaceLabel = "projectsveltos.io/cluster-summary-namespace"

	// ClusterSummaryNameLabel is added to all ResourceSummary instances
	ClusterSummaryNameAnnotation = "projectsveltos.io/cluster-summary-name"

	// ClusterSummaryNamespaceLabel is added to all ResourceSummary instances
	ClusterSummaryNamespaceAnnotation = "projectsveltos.io/cluster-summary-namespace"
)
View Source
const (
	RoleRequestFinalizer = "rolerequestfinalizer.projectsveltos.io"

	RoleRequestKind = "RoleRequest"

	// RoleRequestLabel is added to each object generated for a RoleRequest
	// in both management and managed clusters
	RoleRequestLabel = "projectsveltos.io/role-request"

	FeatureRoleRequest = "RoleRequest"
)
View Source
const (
	// SetFinalizer allows SetReconciler to clean up resources associated with
	// Set before removing it from the apiserver.
	SetFinalizer = "setfinalizer.projectsveltos.io"

	SetKind = "Set"
)
View Source
const (
	SveltosClusterKind = "SveltosCluster"

	// FeatureTokenRenewal identifies, as requestorFeature in the pull-mode
	// ConfigurationGroup/ConfigurationBundle transport (see lib/pullmode), the renewed
	// kubeconfig sveltoscluster-manager delivers to sveltos-applier for SveltosClusters
	// with TokenRequestRenewalOption set.
	FeatureTokenRenewal = "TokenRenewal"

	// SveltosClusterFinalizer allows SveltosClusterReconciler to clean up resources
	// associated with a SveltosCluster before removing it.
	SveltosClusterFinalizer = "sveltoscluster.finalizer.projectsveltos.io"
)
View Source
const (
	// ConnectionHealthy indicates connection from management cluster to managed cluster is healthy
	ConnectionHealthy = ConnectionStatus("Healthy")

	// ConnectionDown indicates connection from management cluster to managed cluster is down
	ConnectionDown = ConnectionStatus("Down")
)
View Source
const (
	SFTPHost     = "SFTP_HOST"
	SFTPPort     = "SFTP_PORT"
	SFTPPath     = "SFTP_PATH"
	SFTPHostKey  = "SFTP_HOST_KEY"
	SFTPUsername = "SFTP_USERNAME"
	SFTPPassowrd = "SFTP_PASSWORD"
	SFTPCert     = "SFTP_CERT"
)

SFTP constant To have Sveltos upload to an SFTP, create a Secret of type "addons.projectsveltos.io/cluster-profile" In the data section set following fields

View Source
const (
	// CollectionStatusStatusInProgress indicates that collection is being collected
	CollectionStatusInProgress = CollectionStatus("InProgress")

	// CollectionStatusStatusCollected indicates that collection succeeded
	CollectionStatusCollected = CollectionStatus("Collected")

	// CollectionStatusStatusFailed indicates that last collection failed
	CollectionStatusFailed = CollectionStatus("Failed")
)
View Source
const (
	// DeliveryTypeSlack refers to generating a Slack message
	DeliveryTypeSlack = DeliveryType("Slack")

	// DeliveryTypeWebex refers to generating a Webex message
	DeliveryTypeWebex = DeliveryType("Webex")

	// DeliveryTypeDiscord refers to generating a Discord message
	DeliveryTypeDiscord = DeliveryType("Discord")

	// DeliveryTypeTelegram refers to generating a telegram message
	DeliveryTypeTelegram = DeliveryType("Telegram")

	// DeliveryTypeSMTP refers to generating an email message
	DeliveryTypeSMTP = DeliveryType("SMTP")

	// DeliveryTypeSFTP refers to uploading to an SFTP server
	DeliveryTypeSFTP = DeliveryType("SFTP")
)
View Source
const (
	// ClusterProfileSecretType is the only accepted type of secret in resources.
	ClusterProfileSecretType corev1.SecretType = "addons.projectsveltos.io/cluster-profile"
)
View Source
const (
	ConfigurationBundleKind = "ConfigurationBundle"
)
View Source
const (
	ConfigurationGroupKind = "ConfigurationGroup"
)
View Source
const (
	DebuggingConfigurationKind = "DebuggingConfiguration"
)
View Source
const (
	// DeployedBySveltosAnnotation is an annotation Sveltos adds to
	// EventSource/HealthCheck/Classifier/ResourceSummary instances deployed
	// by sveltos in managed clusters. Those resources, once deployed in a
	// managed cluster, are evaluated by sveltos services (sveltos-agent and
	// drift-detection-manager) running in the managed cluster
	DeployedBySveltosAnnotation = "projectsveltos.io/deployed-by-sveltos"
)
View Source
const (
	ShardAnnotation = "sharding.projectsveltos.io/key"
)
View Source
const (
	// SveltosAgent is the request type to generate kubeconfig
	// for sveltos agent
	SveltosAgentRequest = RequestType("SveltosAgent")
)
View Source
const (
	SveltosLicenseKind = "SveltosLicense"
)
View Source
const (
	TeamsWebhookURL = "TEAMS_WEBHOOK_URL"
)

Teams constant To have Sveltos sends a Microsoft Teams notification, create a Secret of type "addons.projectsveltos.io/cluster-profile" In the data section set the Webhook URL

View Source
const (
	// TechsupportFinalizer allows TechsupportReconciler to clean up resources associated with
	// Techsupport instance before removing it from the apiserver.
	TechsupportFinalizer = "techsupportfinalizer.projectsveltos.io"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "lib.projectsveltos.io", Version: "v1beta1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = runtime.SchemeBuilder{
		addKnownTypes,
	}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	// ErrSecretTypeNotSupported signals that a Secret is not supported.
	ErrSecretTypeNotSupported = errors.New("unsupported secret type")
)

Functions

func GetClassifierReportLabels

func GetClassifierReportLabels(classifierName, clusterName string, clusterType *ClusterType) map[string]string

func GetClassifierReportName

func GetClassifierReportName(classifierName, clusterName string, clusterType *ClusterType) string

func GetClusterInfo

func GetClusterInfo(clusterNamespace, clusterName string) string

func GetEventReportLabels

func GetEventReportLabels(eventSourceName, clusterName string, clusterType *ClusterType) map[string]string

func GetEventReportName

func GetEventReportName(healthName, clusterName string, clusterType *ClusterType) string

func GetHealthCheckReportLabels

func GetHealthCheckReportLabels(healthCheckName, clusterName string, clusterType *ClusterType) map[string]string

func GetHealthCheckReportName

func GetHealthCheckReportName(healthCheckName, clusterName string, clusterType *ClusterType) string

func GetManagementClusterClassifierReportLabels added in v1.12.0

func GetManagementClusterClassifierReportLabels(classifierName, clusterName string, clusterType *ClusterType) map[string]string

GetManagementClusterClassifierReportLabels returns the labels applied to a ManagementClusterClassifierReport. The three labels together allow efficient queries in both directions: all reports for a given classifier, and all reports targeting a given cluster.

func GetManagementClusterClassifierReportName added in v1.12.0

func GetManagementClusterClassifierReportName(classifierName, clusterName string, clusterType *ClusterType) string

GetManagementClusterClassifierReportName returns a deterministic, fixed-length name for a ManagementClusterClassifierReport derived from a SHA-256 hash of the three identifying components. The name is opaque; labels carry the human-readable context.

func GetReloaderReportAnnotations

func GetReloaderReportAnnotations(kind, namespace, name string) map[string]string

GetReloaderReportAnnotations returns the annotation to add to ReloaderReport kind, namespace, name identify mounted resource (ConfigMap or Secret) which was modified causing a reload

func GetReloaderReportLabels

func GetReloaderReportLabels(clusterName string, clusterType *ClusterType) map[string]string

func GetReloaderReportName

func GetReloaderReportName(mountedResourcekind, mountedResourceNamespace, mountedResourceName, clusterName string,
	clusterType *ClusterType) string

mountedResourcekind is the kind of the resource being mounted as volume (either ConfigMap or Secret) mountedResourceNamespace/mountedResourceName is the namespace/name of the resource being mounted as volume clusterName and clusterType identify the managed cluster

Types

type AWSWorkloadIdentityConfig added in v1.12.0

type AWSWorkloadIdentityConfig struct {
	// ClusterName is the name of the EKS cluster. Required: it is embedded in
	// the bearer token header (x-k8s-aws-id) sent to the EKS API server.
	// +kubebuilder:validation:MinLength=1
	ClusterName string `json:"clusterName"`

	// RoleARN is the ARN of the IAM role Sveltos should assume before generating
	// the EKS bearer token. If empty, the pod's own IRSA credentials are used directly.
	// +optional
	RoleARN string `json:"roleARN,omitempty"`

	// Region is the AWS region of the EKS cluster. If empty, the AWS_REGION
	// environment variable injected by IRSA is used.
	// +optional
	Region string `json:"region,omitempty"`
}

AWSWorkloadIdentityConfig holds AWS-specific workload identity configuration.

func (*AWSWorkloadIdentityConfig) DeepCopy added in v1.12.0

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

func (*AWSWorkloadIdentityConfig) DeepCopyInto added in v1.12.0

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

type AccessRequest

type AccessRequest struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AccessRequestSpec   `json:"spec,omitempty"`
	Status AccessRequestStatus `json:"status,omitempty"`
}

AccessRequest is the Schema for the accessrequest API

func (*AccessRequest) DeepCopy

func (in *AccessRequest) DeepCopy() *AccessRequest

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

func (*AccessRequest) DeepCopyInto

func (in *AccessRequest) DeepCopyInto(out *AccessRequest)

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

func (*AccessRequest) DeepCopyObject

func (in *AccessRequest) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AccessRequestList

type AccessRequestList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AccessRequest `json:"items"`
}

AccessRequestList contains a list of AccessRequest

func (*AccessRequestList) DeepCopy

func (in *AccessRequestList) DeepCopy() *AccessRequestList

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

func (*AccessRequestList) DeepCopyInto

func (in *AccessRequestList) DeepCopyInto(out *AccessRequestList)

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

func (*AccessRequestList) DeepCopyObject

func (in *AccessRequestList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AccessRequestSpec

type AccessRequestSpec struct {
	// Namespace is the namespace of the service account created
	// for this AccessRequest
	Namespace string `json:"namespace"`

	// Name is the name of the service account created
	// for this AccessRequest
	Name string `json:"name"`

	// Type represent the type of the request
	Type RequestType `json:"type"`

	// ControlPlaneEndpoint represents the endpoint used to communicate with the
	// management cluster controlplane endpoint. It will be used when generating the
	// kubeconfig.
	ControlPlaneEndpoint clusterv1.APIEndpoint `json:"controlPlaneEndpoint"`
}

AccessRequestSpec defines the desired state of AccessRequest

func (*AccessRequestSpec) DeepCopy

func (in *AccessRequestSpec) DeepCopy() *AccessRequestSpec

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

func (*AccessRequestSpec) DeepCopyInto

func (in *AccessRequestSpec) DeepCopyInto(out *AccessRequestSpec)

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

type AccessRequestStatus

type AccessRequestStatus struct {
	// SecretRef points to the Secret containing Kubeconfig
	// +optional
	SecretRef *corev1.ObjectReference `json:"secretRef,omitempty"`

	// FailureMessage provides more information if an error occurs.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`
}

AccessRequestStatus defines the status of AccessRequest

func (*AccessRequestStatus) DeepCopy

func (in *AccessRequestStatus) DeepCopy() *AccessRequestStatus

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

func (*AccessRequestStatus) DeepCopyInto

func (in *AccessRequestStatus) DeepCopyInto(out *AccessRequestStatus)

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

type Action added in v1.0.0

type Action string

+kubebuilder:validation:Enum:=Deploy;Remove

type ActiveWindow added in v0.36.0

type ActiveWindow struct {
	// From in Cron format, see https://en.wikipedia.org/wiki/Cron.
	// Indicates when to un-pause the cluster (cluster in paused state receives no update from sveltos).
	// +kubebuilder:validation:MinLength=1
	From string `json:"from"`

	// To in Cron format, see https://en.wikipedia.org/Cron.
	// Indicates when to pause the cluster (cluster in paused state receives no update from sveltos).
	// +kubebuilder:validation:MinLength=1
	To string `json:"to"`
}

func (*ActiveWindow) DeepCopy added in v0.36.0

func (in *ActiveWindow) DeepCopy() *ActiveWindow

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

func (*ActiveWindow) DeepCopyInto added in v0.36.0

func (in *ActiveWindow) DeepCopyInto(out *ActiveWindow)

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

type AzureWorkloadIdentityConfig added in v1.12.0

type AzureWorkloadIdentityConfig struct {
	// TenantID is the Azure Active Directory tenant ID.
	// +kubebuilder:validation:MinLength=1
	TenantID string `json:"tenantID"`

	// ClientID is the client ID of the managed identity or app registration
	// federated with the management cluster service account.
	// +kubebuilder:validation:MinLength=1
	ClientID string `json:"clientID"`

	// SubscriptionID is the Azure subscription containing the AKS cluster.
	// Kept for future auto-discovery support.
	// +optional
	SubscriptionID string `json:"subscriptionID,omitempty"`

	// ResourceGroup is the Azure resource group containing the AKS cluster.
	// Kept for future auto-discovery support.
	// +optional
	ResourceGroup string `json:"resourceGroup,omitempty"`

	// ClusterName is the name of the AKS cluster.
	// Kept for future auto-discovery support.
	// +optional
	ClusterName string `json:"clusterName,omitempty"`
}

AzureWorkloadIdentityConfig holds Azure-specific workload identity configuration.

func (*AzureWorkloadIdentityConfig) DeepCopy added in v1.12.0

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

func (*AzureWorkloadIdentityConfig) DeepCopyInto added in v1.12.0

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

type CELRule added in v0.57.0

type CELRule struct {
	// Name is a human-readable identifier for the rule.
	Name string `json:"name"`

	// Rule is the CEL (Common Expression Language) expression to evaluate.
	// It must return a bool
	Rule string `json:"rule"`
}

CELRule defines a named CEL rule used in EvaluateCEL.

func (*CELRule) DeepCopy added in v0.57.0

func (in *CELRule) DeepCopy() *CELRule

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

func (*CELRule) DeepCopyInto added in v0.57.0

func (in *CELRule) DeepCopyInto(out *CELRule)

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

type Classifier

type Classifier struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ClassifierSpec   `json:"spec,omitempty"`
	Status ClassifierStatus `json:"status,omitempty"`
}

Classifier is the Schema for the classifiers API

func (*Classifier) DeepCopy

func (in *Classifier) DeepCopy() *Classifier

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

func (*Classifier) DeepCopyInto

func (in *Classifier) DeepCopyInto(out *Classifier)

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

func (*Classifier) DeepCopyObject

func (in *Classifier) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClassifierLabel

type ClassifierLabel struct {
	// Key is the label key
	Key string `json:"key"`

	// Value is the label value
	Value string `json:"value"`
}

func (*ClassifierLabel) DeepCopy

func (in *ClassifierLabel) DeepCopy() *ClassifierLabel

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

func (*ClassifierLabel) DeepCopyInto

func (in *ClassifierLabel) DeepCopyInto(out *ClassifierLabel)

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

type ClassifierList

type ClassifierList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Classifier `json:"items"`
}

ClassifierList contains a list of Classifier

func (*ClassifierList) DeepCopy

func (in *ClassifierList) DeepCopy() *ClassifierList

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

func (*ClassifierList) DeepCopyInto

func (in *ClassifierList) DeepCopyInto(out *ClassifierList)

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

func (*ClassifierList) DeepCopyObject

func (in *ClassifierList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClassifierReport

type ClassifierReport struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ClassifierReportSpec   `json:"spec,omitempty"`
	Status ClassifierReportStatus `json:"status,omitempty"`
}

ClassifierReport is the Schema for the classifierreports API

func (*ClassifierReport) DeepCopy

func (in *ClassifierReport) DeepCopy() *ClassifierReport

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

func (*ClassifierReport) DeepCopyInto

func (in *ClassifierReport) DeepCopyInto(out *ClassifierReport)

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

func (*ClassifierReport) DeepCopyObject

func (in *ClassifierReport) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClassifierReportList

type ClassifierReportList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClassifierReport `json:"items"`
}

ClassifierReportList contains a list of ClassifierReport

func (*ClassifierReportList) DeepCopy

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

func (*ClassifierReportList) DeepCopyInto

func (in *ClassifierReportList) DeepCopyInto(out *ClassifierReportList)

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

func (*ClassifierReportList) DeepCopyObject

func (in *ClassifierReportList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClassifierReportSpec

type ClassifierReportSpec struct {
	// ClusterNamespace is the namespace of the Cluster this
	// ClusterReport is for.
	ClusterNamespace string `json:"clusterNamespace"`

	// ClusterName is the name of the Cluster this ClusterReport
	// is for.
	ClusterName string `json:"clusterName"`

	// ClusterType is the type of Cluster
	ClusterType ClusterType `json:"clusterType"`

	// ClassifierName is the name of the Classifier instance this report
	// is for.
	ClassifierName string `json:"classifierName"`

	// Match indicates whether Cluster is currently a match for
	// the Classifier instance this report is for
	Match bool `json:"match"`
}

func (*ClassifierReportSpec) DeepCopy

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

func (*ClassifierReportSpec) DeepCopyInto

func (in *ClassifierReportSpec) DeepCopyInto(out *ClassifierReportSpec)

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

type ClassifierReportStatus

type ClassifierReportStatus struct {
	// Phase represents the current phase of report.
	// +optional
	Phase *ReportPhase `json:"phase,omitempty"`

	// ManagedLabels lists the labels this Classifier instance is managing on the cluster.
	// +optional
	ManagedLabels []string `json:"managedLabels,omitempty"`

	// UnManagedLabels lists labels this Classifier instance would like to manage but cannot
	// because a different Classifier instance is already managing them.
	// +optional
	UnManagedLabels []UnManagedLabel `json:"unmanagedLabels,omitempty"`

	// Hash is the hash of the Classifier that was last successfully deployed to the cluster.
	// +optional
	Hash []byte `json:"hash,omitempty"`

	// DeploymentStatus is the current deployment status of the Classifier on the cluster.
	// +optional
	DeploymentStatus *SveltosFeatureStatus `json:"deploymentStatus,omitempty"`

	// FailureMessage provides more information when DeploymentStatus is Failed.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`

	// AgentFailureMessage reports the error sveltos-agent hit while evaluating the Classifier
	// this ClassifierReport is for, if any. Unlike FailureMessage (set in the management cluster
	// while managing labels from this report), this is set by sveltos-agent itself, in the managed
	// cluster, when it cannot refresh Spec.Match. Spec is left exactly as it was from the last
	// successful evaluation while this is set, so label management keeps acting on the last
	// known-good result instead of a false non-match. Cleared on the next successful evaluation.
	// +optional
	AgentFailureMessage *string `json:"agentFailureMessage,omitempty"`
}

ClassifierReportStatus defines the observed state of ClassifierReport

func (*ClassifierReportStatus) DeepCopy

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

func (*ClassifierReportStatus) DeepCopyInto

func (in *ClassifierReportStatus) DeepCopyInto(out *ClassifierReportStatus)

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

type ClassifierSpec

type ClassifierSpec struct {
	// DeployedResourceConstraint allows to classify based on current deployed resources
	// +optional
	DeployedResourceConstraint *DeployedResourceConstraint `json:"deployedResourceConstraint,omitempty"`

	// KubernetesVersionConstraints allows to classify based on current kubernetes version
	// +optional
	KubernetesVersionConstraints []KubernetesVersionConstraint `json:"kubernetesVersionConstraints,omitempty"`

	// ClassifierLabels is set of labels, key,value pair, that will be added to each
	// cluster matching Classifier instance
	ClassifierLabels []ClassifierLabel `json:"classifierLabels"`
}

ClassifierSpec defines the desired state of Classifier

func (*ClassifierSpec) DeepCopy

func (in *ClassifierSpec) DeepCopy() *ClassifierSpec

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

func (*ClassifierSpec) DeepCopyInto

func (in *ClassifierSpec) DeepCopyInto(out *ClassifierSpec)

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

type ClassifierStatus

type ClassifierStatus struct {
	// Deprecated: MachingClusterStatuses is deprecated and will be removed in a future release.
	// Per-cluster matching and label-management status is now stored in the Status of the
	// corresponding ClassifierReport instance (one per classifier/cluster pair).
	// +optional
	MachingClusterStatuses []MachingClusterStatus `json:"machingClusterStatuses,omitempty"`

	// Deprecated: ClusterInfo is deprecated and will be removed in a future release.
	// Per-cluster deployment tracking (hash, status, failure message) is now stored in the
	// Status of the corresponding ClassifierReport instance (one per classifier/cluster pair).
	// +optional
	ClusterInfo []ClusterInfo `json:"clusterInfo,omitempty"`
}

ClassifierStatus defines the observed state of Classifier

func (*ClassifierStatus) DeepCopy

func (in *ClassifierStatus) DeepCopy() *ClassifierStatus

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

func (*ClassifierStatus) DeepCopyInto

func (in *ClassifierStatus) DeepCopyInto(out *ClassifierStatus)

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

type ClusterCheck added in v0.48.0

type ClusterCheck struct {
	// Name of the cluster check.
	// Must be a DNS_LABEL and unique within the ClusterChecks.
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`

	// ResourceSelectors identifies what Kubernetes resources to select
	ResourceSelectors []ResourceSelector `json:"resourceSelectors"`

	// This field is  used to specify a Lua function that will be used to evaluate
	// this check.
	// The function will receive the array of resources selected by ResourceSelectors.
	// The Lua function name is evaluate and must return a struct with:
	// - "result" field: boolean indicating whether check passed or failed;
	// - "message" field: (optional) message.
	Condition string `json:"condition"`
}

func (*ClusterCheck) DeepCopy added in v0.48.0

func (in *ClusterCheck) DeepCopy() *ClusterCheck

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

func (*ClusterCheck) DeepCopyInto added in v0.48.0

func (in *ClusterCheck) DeepCopyInto(out *ClusterCheck)

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

type ClusterCondition

type ClusterCondition struct {
	ClusterInfo ClusterInfo `json:"clusterInfo"`

	// Cluster conditions.
	// +optional
	Conditions []Condition `json:"conditions,omitempty"`

	// NotificationSummaries contains status information on notifications
	// +optional
	NotificationSummaries []NotificationSummary `json:"notificationSummaries,omitempty"`
}

func (*ClusterCondition) DeepCopy

func (in *ClusterCondition) DeepCopy() *ClusterCondition

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

func (*ClusterCondition) DeepCopyInto

func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition)

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

type ClusterHealthCheck

type ClusterHealthCheck struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ClusterHealthCheckSpec   `json:"spec,omitempty"`
	Status ClusterHealthCheckStatus `json:"status,omitempty"`
}

ClusterHealthCheck is the Schema for the clusterhealthchecks API

func (*ClusterHealthCheck) DeepCopy

func (in *ClusterHealthCheck) DeepCopy() *ClusterHealthCheck

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

func (*ClusterHealthCheck) DeepCopyInto

func (in *ClusterHealthCheck) DeepCopyInto(out *ClusterHealthCheck)

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

func (*ClusterHealthCheck) DeepCopyObject

func (in *ClusterHealthCheck) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterHealthCheckList

type ClusterHealthCheckList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterHealthCheck `json:"items"`
}

ClusterHealthCheckList contains a list of ClusterHealthChecks

func (*ClusterHealthCheckList) DeepCopy

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

func (*ClusterHealthCheckList) DeepCopyInto

func (in *ClusterHealthCheckList) DeepCopyInto(out *ClusterHealthCheckList)

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

func (*ClusterHealthCheckList) DeepCopyObject

func (in *ClusterHealthCheckList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterHealthCheckSpec

type ClusterHealthCheckSpec struct {
	// Selector identifies clusters to associate to.
	// +optional
	ClusterSelector Selector `json:"clusterSelector,omitempty"`

	// LivenessChecks is a list of source of liveness checks to evaluate.
	// Anytime one of those changes, notifications will be sent
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	LivenessChecks []LivenessCheck `json:"livenessChecks"`

	// Notification is a list of notification mechanisms.
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	Notifications []Notification `json:"notifications"`
}

ClusterHealthCheckSpec defines the desired state of ClusterHealthCheck

func (*ClusterHealthCheckSpec) DeepCopy

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

func (*ClusterHealthCheckSpec) DeepCopyInto

func (in *ClusterHealthCheckSpec) DeepCopyInto(out *ClusterHealthCheckSpec)

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

type ClusterHealthCheckStatus

type ClusterHealthCheckStatus struct {
	// MatchingClusterRefs reference all the clusters currently matching
	// ClusterHealthCheck ClusterSelector
	MatchingClusterRefs []corev1.ObjectReference `json:"matchingClusters,omitempty"`

	// ClusterConditions contains conditions and notification status for all clusters
	// matching ClusterHealthCheck instance
	// +optional
	ClusterConditions []ClusterCondition `json:"clusterCondition,omitempty"`
}

func (*ClusterHealthCheckStatus) DeepCopy

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

func (*ClusterHealthCheckStatus) DeepCopyInto

func (in *ClusterHealthCheckStatus) DeepCopyInto(out *ClusterHealthCheckStatus)

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

type ClusterInfo

type ClusterInfo struct {
	// Cluster references the Cluster
	Cluster corev1.ObjectReference `json:"cluster"`

	// Hash represents the hash of the resource currently deployed
	// in the Cluster
	Hash []byte `json:"hash"`

	// Status represents the state of the feature in the workload cluster
	// +optional
	Status SveltosFeatureStatus `json:"status,omitempty"`

	// FailureMessage provides more information about the error.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`
}

func (*ClusterInfo) DeepCopy

func (in *ClusterInfo) DeepCopy() *ClusterInfo

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

func (*ClusterInfo) DeepCopyInto

func (in *ClusterInfo) DeepCopyInto(out *ClusterInfo)

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

type ClusterSet

type ClusterSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   Spec   `json:"spec,omitempty"`
	Status Status `json:"status,omitempty"`
}

ClusterSet is the Schema for the clustersets API

func (*ClusterSet) DeepCopy

func (in *ClusterSet) DeepCopy() *ClusterSet

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

func (*ClusterSet) DeepCopyInto

func (in *ClusterSet) DeepCopyInto(out *ClusterSet)

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

func (*ClusterSet) DeepCopyObject

func (in *ClusterSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterSetList

type ClusterSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterSet `json:"items"`
}

ClusterSetList contains a list of ClusterSet

func (*ClusterSetList) DeepCopy

func (in *ClusterSetList) DeepCopy() *ClusterSetList

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

func (*ClusterSetList) DeepCopyInto

func (in *ClusterSetList) DeepCopyInto(out *ClusterSetList)

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

func (*ClusterSetList) DeepCopyObject

func (in *ClusterSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterType

type ClusterType string

type CollectionStatus added in v0.45.0

type CollectionStatus string

+kubebuilder:validation:Enum:=Collected;InProgress;Failed

type Component

type Component string

type ComponentConfiguration

type ComponentConfiguration struct {
	// Component indicates which Sveltos component the configuration applies to.
	Component Component `json:"component"`

	// LogLevel is the log severity above which logs are sent to the stdout. [Default: Info]
	LogLevel LogLevel `json:"logLevel,omitempty"`
}

ComponentConfiguration is the debugging configuration to be applied to a Sveltos component.

func (*ComponentConfiguration) DeepCopy

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

func (*ComponentConfiguration) DeepCopyInto

func (in *ComponentConfiguration) DeepCopyInto(out *ComponentConfiguration)

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

type Condition

type Condition struct {
	// Condition name
	Name string `json:"name"`

	// Type of condition in CamelCase or in foo.example.com/CamelCase.
	Type ConditionType `json:"type"`

	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`

	// Severity provides an explicit classification of Reason code, so the users or machines can immediately
	// understand the current situation and act accordingly.
	// The Severity field MUST be set only when Status=False.
	// +optional
	Severity ConditionSeverity `json:"severity,omitempty"`

	// Last time the condition transitioned from one status to another.
	// This should be when the underlying condition changed. If that is not known, then using the time when
	// the API field changed is acceptable.
	LastTransitionTime metav1.Time `json:"lastTransitionTime"`

	// The reason for the condition's last transition in CamelCase.
	// The specific API may choose whether or not this field is considered a guaranteed API.
	// This field may not be empty.
	// +optional
	Reason string `json:"reason,omitempty"`

	// A human readable message indicating details about the transition.
	// This field may be empty.
	// +optional
	Message string `json:"message,omitempty"`
}

Condition defines an observation of a Cluster API resource operational state.

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ConditionSeverity

type ConditionSeverity string

ConditionSeverity expresses the severity of a Condition Type failing.

const (
	// ConditionSeverityError specifies that a condition with `Status=False` is an error.
	ConditionSeverityError ConditionSeverity = "Error"

	// ConditionSeverityWarning specifies that a condition with `Status=False` is a warning.
	ConditionSeverityWarning ConditionSeverity = "Warning"

	// ConditionSeverityInfo specifies that a condition with `Status=False` is informative.
	ConditionSeverityInfo ConditionSeverity = "Info"

	// ConditionSeverityNone should apply only to conditions with `Status=True`.
	ConditionSeverityNone ConditionSeverity = ""
)

type ConditionType

type ConditionType string

ConditionType is a valid value for Condition.Type.

type ConfigurationBundle added in v1.0.0

type ConfigurationBundle struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ConfigurationBundleSpec   `json:"spec,omitempty"`
	Status ConfigurationBundleStatus `json:"status,omitempty"`
}

ConfigurationBundle is the Schema for the configurationbundle API

func (*ConfigurationBundle) DeepCopy added in v1.0.0

func (in *ConfigurationBundle) DeepCopy() *ConfigurationBundle

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

func (*ConfigurationBundle) DeepCopyInto added in v1.0.0

func (in *ConfigurationBundle) DeepCopyInto(out *ConfigurationBundle)

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

func (*ConfigurationBundle) DeepCopyObject added in v1.0.0

func (in *ConfigurationBundle) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ConfigurationBundleList added in v1.0.0

type ConfigurationBundleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ConfigurationBundle `json:"items"`
}

ConfigurationBundleList contains a list of ConfigurationBundle

func (*ConfigurationBundleList) DeepCopy added in v1.0.0

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

func (*ConfigurationBundleList) DeepCopyInto added in v1.0.0

func (in *ConfigurationBundleList) DeepCopyInto(out *ConfigurationBundleList)

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

func (*ConfigurationBundleList) DeepCopyObject added in v1.0.0

func (in *ConfigurationBundleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ConfigurationBundleSpec added in v1.0.0

type ConfigurationBundleSpec struct {
	// Resources contains all resources that need to be deployed.
	// Content is either YAML or JSON
	// +listType=atomic
	// +optional
	Resources []string `json:"resources,omitempty"`

	// NotTracked, when true, signifies that the resources managed by the
	// ConfigurationBundles should not be tracked for conflicts
	// with other configurations and will not be automatically removed when the
	// ConfigurationGroup is deleted. This is intended for resources like
	// Sveltos CRDs or the agents Sveltos deploys in the managed clusters.
	NotTracked bool `json:"notTracked,omitempty"`

	// time to wait for Kubernetes operation (like Jobs for hooks)
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`

	// HelmReleaseNamespace indicates the namespace of the Helm release
	// these resources belong to, if any
	// +optional
	HelmReleaseNamespace string `json:"helmReleaseNamespace,omitempty"`

	// HelmReleaseName indicates the name of the Helm release
	// these resources belong to, if any
	// +optional
	HelmReleaseName string `json:"helmReleaseName,omitempty"`

	// HelmChartVersion indicates the chart version of the Helm release
	// these resources belong to, if any
	// +optional
	HelmChartVersion string `json:"helmChartVersion,omitempty"`

	// HelmIcon indicates the URL of the icon of the Helm release
	// these resources belong to, if any
	// +optional
	HelmIcon string `json:"helmIcon,omitempty"`

	// HelmRepoURL indicates the repo URL of the Helm release
	// these resources belong to, if any
	// +optional
	HelmRepoURL string `json:"helmRepoURL,omitempty"`

	// HelmReleaseUninstall, when true, indicates that these resources are
	// part of a Helm release uninstallation process.
	// This can be used to trigger specific cleanup or post-uninstall hooks.
	// +kubebuilder:default:=false
	// +optional
	HelmReleaseUninstall bool `json:"helmReleaseUninstall,omitempty"`

	// IsLastHelmReleaseBundle, when true, indicates that this ConfigurationBundle
	// is the final bundle in the sequence for the associated Helm release.
	// This can be used to trigger finalization steps, such as marking the
	// release as fully deployed or completely uninstalled in external tracking systems.
	// +kubebuilder:default:=false
	// +optional
	IsLastHelmReleaseBundle bool `json:"isLastHelmReleaseBundle,omitempty"`

	// ReferencedObjectKind is the Kind of the object (ConfigMap, Secret, etc)
	// referenced by PolicyRefs/KustomizationRef which contributed to this ConfigurationBundle.
	// +optional
	ReferencedObjectKind string `json:"referencedObjectKind,omitempty"`

	// ReferencedObjectNamespace is the Namespace of the object (ConfigMap, Secret, etc)
	// referenced by PolicyRefs/KustomizationRef which contributed to this ConfigurationBundle.
	// +optional
	ReferencedObjectNamespace string `json:"referencedObjectNamespace,omitempty"`

	// ReferencedObjectName is the Name of the object (ConfigMap, Secret, etc)
	// referenced by PolicyRefs/KustomizationRef which contributed to this ConfigurationBundle.
	// +optional
	ReferencedObjectName string `json:"referencedObjectName,omitempty"`

	// ReferenceTier indicates the tier of the object (ConfigMap, Secret, etc)
	// referenced by PolicyRefs/KustomizationRef which contributed to this ConfigurationBundle.
	// +optional
	ReferenceTier int32 `json:"referenceTier,omitempty"`

	// SkipNamespaceCreation indicates whether Sveltos should skip creating the namespace
	// for namespaced resources defined in this PolicyRef.
	// This field is ignored for cluster-scoped resources.
	// By default, Sveltos attempts to get or create the target namespace if it does not exist.
	// Setting this to true avoids those calls, which is necessary when Sveltos lacks
	// permissions to manage namespaces at the cluster level.
	// +kubebuilder:default:=false
	// +optional
	SkipNamespaceCreation bool `json:"skipNamespaceCreation,omitempty"`

	// Force indicates whether Sveltos should delete and recreate a resource defined in this
	// PolicyRef/KustomizationRef when an update is rejected with an error that only a
	// delete+recreate can resolve (eg an invalid combination of fields, or a field enforced
	// as immutable). By default, such errors are surfaced instead of recreating the resource.
	// +kubebuilder:default:=false
	// +optional
	Force bool `json:"force,omitempty"`
}

func (*ConfigurationBundleSpec) DeepCopy added in v1.0.0

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

func (*ConfigurationBundleSpec) DeepCopyInto added in v1.0.0

func (in *ConfigurationBundleSpec) DeepCopyInto(out *ConfigurationBundleSpec)

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

type ConfigurationBundleStatus added in v1.0.0

type ConfigurationBundleStatus struct {
	// Hash represents of a unique value for the content stored in
	// the ConfigurationBundle
	// +optional
	Hash []byte `json:"hash,omitempty"`
}

func (*ConfigurationBundleStatus) DeepCopy added in v1.0.0

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

func (*ConfigurationBundleStatus) DeepCopyInto added in v1.0.0

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

type ConfigurationGroup added in v1.0.0

type ConfigurationGroup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ConfigurationGroupSpec   `json:"spec,omitempty"`
	Status ConfigurationGroupStatus `json:"status,omitempty"`
}

ConfigurationGroup is the Schema for the configurationgroup API

func (*ConfigurationGroup) DeepCopy added in v1.0.0

func (in *ConfigurationGroup) DeepCopy() *ConfigurationGroup

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

func (*ConfigurationGroup) DeepCopyInto added in v1.0.0

func (in *ConfigurationGroup) DeepCopyInto(out *ConfigurationGroup)

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

func (*ConfigurationGroup) DeepCopyObject added in v1.0.0

func (in *ConfigurationGroup) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ConfigurationGroupList added in v1.0.0

type ConfigurationGroupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ConfigurationGroup `json:"items"`
}

ConfigurationGroupList contains a list of ConfigurationGroup

func (*ConfigurationGroupList) DeepCopy added in v1.0.0

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

func (*ConfigurationGroupList) DeepCopyInto added in v1.0.0

func (in *ConfigurationGroupList) DeepCopyInto(out *ConfigurationGroupList)

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

func (*ConfigurationGroupList) DeepCopyObject added in v1.0.0

func (in *ConfigurationGroupList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ConfigurationGroupSpec added in v1.0.0

type ConfigurationGroupSpec struct {
	// +kubebuilder:default:=Deploy
	Action Action `json:"action,omitempty"`

	// SourceRef is the user facing Sveltos resource that caused this ConfigurationGroup to be
	// created. For instance, when a ClusterSummary creates a ConfigurationGroup, the user
	// facing resource is either a ClusterProfile or a Profile.
	// +optional
	SourceRef *corev1.ObjectReference `json:"sourceRef,omitempty"`

	// SourceStatus indicates the lifecycle status of the source resource (e.g., ClusterSummary)
	// that created this ConfigurationGroup. Valid values are "Active" and "Deleted".
	// This field helps determine if the ConfigurationGroup was created by a source that is
	// no longer present or in a different state.
	// +kubebuilder:default:=Active
	SourceStatus SourceStatus `json:"sourceStatus,omitempty"`

	// ConfigurationItems represents a list of configurations to deploy
	// The order of items in this list determines deployment sequence
	// +listType=atomic
	// +optional
	ConfigurationItems []ConfigurationItem `json:"configurationItem,omitempty"`

	// Tier controls the order of deployment for ClusterProfile or Profile resources targeting
	// the same cluster resources.
	// Imagine two configurations (ClusterProfiles or Profiles) trying to deploy the same resource (a Kubernetes
	// resource or an helm chart). By default, the first one to reach the cluster "wins" and deploys it.
	// Tier allows you to override this. When conflicts arise, the ClusterProfile or Profile with the **lowest**
	// Tier value takes priority and deploys the resource.
	// Higher Tier values represent lower priority. The default Tier value is 100.
	// Using Tiers provides finer control over resource deployment within your cluster, particularly useful
	// when multiple configurations manage the same resources.
	// +kubebuilder:default:=100
	// +kubebuilder:validation:Minimum=1
	// +optional
	Tier int32 `json:"tier,omitempty"`

	// TransitionFrom names the Profiles or ClusterProfiles this instance replaces.
	// For matching target clusters, teardown of the replaced profiles is deferred
	// until this instance reaches Provisioned. This instance is also permitted to
	// adopt resources owned by the replaced profiles, ignoring tier restrictions.
	// Same-kind only: a ClusterProfile names other ClusterProfiles, a Profile names
	// other Profiles in the same namespace.
	// +listType=atomic
	// +optional
	TransitionFrom []string `json:"transitionFrom,omitempty"`

	// DryRun means no change will be propagated to matching cluster. A report
	// instead will be generated summarizing what would happen in any matching cluster
	// because of the changes made by this ConfigurationGroup
	// +kubebuilder:default:=false
	// +optional
	DryRun bool `json:"dryRun,omitempty"`

	// Reloader indicates whether Deployment/StatefulSet/DaemonSet instances deployed
	// by Sveltos and part of this ConfigurationGroup need to be restarted via rolling upgrade
	// when a ConfigMap/Secret instance mounted as volume is modified.
	// When set to true, when any mounted ConfigMap/Secret is modified, Sveltos automatically
	// starts a rolling upgrade for Deployment/StatefulSet/DaemonSet instances mounting it.
	// +kubebuilder:default:=false
	// +optional
	Reloader bool `json:"reloader,omitempty"`

	// DriftDetection indicates Sveltos must monitors deployed for resources configuration
	// drift. If drift is detected, a reconciliation is triggered to ensure the managed
	// cluster's configuration aligns with the expected configuration defined in the management
	// cluster
	// +kubebuilder:default:=false
	// +optional
	DriftDetection bool `json:"driftDetection,omitempty"`

	// DriftExclusions is a list of configuration drift exclusions to be applied when syncMode is
	// set to ContinuousWithDriftDetection. Each exclusion specifies JSON6902 paths to ignore
	// when evaluating drift, optionally targeting specific resources and features.
	// +listType=atomic
	// +optional
	DriftExclusions []DriftExclusion `json:"driftExclusions,omitempty"`

	// By default (when ContinueOnConflict is unset or set to false), Sveltos stops deployment after
	// encountering the first conflict (e.g., another ClusterProfile already deployed the resource).
	// If set to true, Sveltos will attempt to deploy remaining resources in the ClusterProfile even
	// if conflicts are detected for previous resources.
	// +kubebuilder:default:=false
	// +optional
	ContinueOnConflict bool `json:"continueOnConflict,omitempty"`

	// By default (when ContinueOnError is unset or set to false), Sveltos stops deployment after
	// encountering the first error.
	// If set to true, Sveltos will attempt to deploy remaining resources in the ClusterProfile even
	// if errors are detected for previous resources.
	// +kubebuilder:default:=false
	// +optional
	ContinueOnError bool `json:"continueOnError,omitempty"`

	// The maximum number of consecutive deployment failures that Sveltos will permit.
	// After this many consecutive failures, the deployment will be considered failed, and Sveltos will stop retrying.
	// This setting applies only to feature deployments, not resource removal.
	// This field is optional. If not set, Sveltos default behavior is to keep retrying.
	// +optional
	MaxConsecutiveFailures *uint `json:"maxConsecutiveFailures,omitempty"`

	// Indicates whether deployed resources must be left on the managed cluster.
	// +kubebuilder:default:=false
	// +optional
	LeavePolicies bool `json:"leavePolicies,omitempty"`

	// PreDeployChecks is a slice of checks to run against the managed cluster
	// *before* Sveltos starts deploying resources.
	// Each check can use Lua scripts or CEL expressions to validate the cluster state.
	// If any check fails, the deployment of the associated feature is halted.
	// +listType=atomic
	// +optional
	PreDeployChecks []ValidateHealth `json:"preDeployChecks,omitempty"`

	// PreDeployCheckJobs holds the resolved manifest for every PreDeployChecks entry that uses
	// JobCheck, keyed by "<namespace>/<name>" (the namespace/name JobHealthCheck.JobRef
	// resolves to). The value is the YAML-encoded Job manifest.
	// JobCheck requires a Sveltos Enterprise license, which sveltos-applier (an open-source
	// binary) cannot verify on its own, so addon-controller resolves each Job manifest once,
	// up front - fetching JobRef's ConfigMap/Secret and applying Cluster-field templating -
	// and stages the result here. Sveltos-applier only ever runs the already-resolved Job; it
	// never fetches JobRef or checks licensing itself.
	// Empty when no PreDeployChecks entry uses JobCheck.
	// +optional
	PreDeployCheckJobs map[string]string `json:"preDeployCheckJobs,omitempty"`

	// ValidateHealths is a slice of checks to run against the managed cluster
	// *after* resources are deployed to validate that the state of the
	// add-ons/applications is healthy.
	// Each check can select resources and validate them using Lua scripts or CEL expressions.
	// +listType=atomic
	// +optional
	ValidateHealths []ValidateHealth `json:"validateHealths,omitempty"`

	// ValidateHealthJobs holds the resolved manifest for every ValidateHealths entry that uses
	// JobCheck. See PreDeployCheckJobs for the key format and why this is resolved ahead of
	// time by addon-controller rather than fetched by sveltos-applier.
	// +optional
	ValidateHealthJobs map[string]string `json:"validateHealthJobs,omitempty"`

	// PreDeleteChecks is a slice of checks to run against the managed cluster
	// *before* Sveltos starts deleting resources.
	// If any of these fail, the deletion process is halted.
	// Each check can select resources and validate them using Lua scripts or CEL expressions.
	// +listType=atomic
	// +optional
	PreDeleteChecks []ValidateHealth `json:"preDeleteChecks,omitempty"`

	// PreDeleteCheckJobs holds the resolved manifest for every PreDeleteChecks entry that uses
	// JobCheck. See PreDeployCheckJobs for the key format and why this is resolved ahead of
	// time by addon-controller rather than fetched by sveltos-applier.
	// +optional
	PreDeleteCheckJobs map[string]string `json:"preDeleteCheckJobs,omitempty"`

	// PostDeleteChecks is a slice of checks to run against the managed cluster
	// *after* Sveltos has deleted all resources.
	// This ensures that the environment has reached the desired clean state.
	// Each check can select resources and validate them using Lua scripts or CEL expressions.
	// +listType=atomic
	// +optional
	PostDeleteChecks []ValidateHealth `json:"postDeleteChecks,omitempty"`

	// PostDeleteCheckJobs holds the resolved manifest for every PostDeleteChecks entry that
	// uses JobCheck. See PreDeployCheckJobs for the key format and why this is resolved ahead
	// of time by addon-controller rather than fetched by sveltos-applier.
	// +optional
	PostDeleteCheckJobs map[string]string `json:"postDeleteCheckJobs,omitempty"`

	// DeployedGroupVersionKind contains all GroupVersionKinds deployed in either
	// the workload cluster or the management cluster because of this feature.
	// Each element has format kind.version.group
	// +optional
	DeployedGroupVersionKind []string `json:"deployedGroupVersionKind,omitempty"`

	// UpdatePhase indicates the current phase of configuration updates. When set to "Preparing",
	// it signals that a new version of this ConfigurationGroup is being prepared, forcing
	// metadata.generation to advance. This allows detection of differences between
	// status.observedGeneration and metadata.generation when agents process an older version,
	// enabling tracking of update propagation across managed clusters.
	// +kubebuilder:default:=Ready
	// +optional
	UpdatePhase UpdatePhase `json:"updatePhase,omitempty"`

	// RequestorHash represents a hash of the state of the requestor that created this ConfigurationGroup.
	// This field is optional and can be used to determine when the creating resource's state has
	// changed and the ConfigurationGroup needs to be updated accordingly.
	// +optional
	RequestorHash []byte `json:"requestorHash,omitempty"`

	// ServiceAccountName is the name of the ServiceAccount to impersonate when applying
	// the configuration. If empty, the default ServiceAccount for the Sveltos-applier
	// will be used.
	// The ServiceAccount must exist in the managed cluster.
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`

	// ServiceAccountNamespace is the namespace of the ServiceAccount to impersonate when applying
	// the configuration. If empty, the default namespace for the Sveltos-applier
	// will be used (typically the same namespace where the Sveltos-applier is deployed).
	// The ServiceAccount must exist in the managed cluster.
	// +optional
	ServiceAccountNamespace string `json:"serviceAccountNamespace,omitempty"`
}

func (*ConfigurationGroupSpec) DeepCopy added in v1.0.0

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

func (*ConfigurationGroupSpec) DeepCopyInto added in v1.0.0

func (in *ConfigurationGroupSpec) DeepCopyInto(out *ConfigurationGroupSpec)

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

type ConfigurationGroupStatus added in v1.0.0

type ConfigurationGroupStatus struct {
	// DeployedGroupVersionKind contains all GroupVersionKinds deployed because of
	// the ConfigurationGroup.
	// Each element has format kind.version.group
	// +optional
	DeployedGroupVersionKind []string `json:"deployedGroupVersionKind,omitempty"`

	// Status represents the state of the feature in the workload cluster
	// +optional
	DeploymentStatus *FeatureStatus `json:"status,omitempty"`

	// FailureMessage provides more information about the error.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`

	// LastAppliedTime is the time feature was last reconciled
	// +optional
	LastAppliedTime *metav1.Time `json:"lastAppliedTime,omitempty"`

	// ObservedGeneration reflects the generation of the most recently observed ConfigurationGroup.
	// When this value matches the ConfigurationGroup's metadata.generation, it indicates that the
	// status reflects the latest desired specification. If observedGeneration is less than generation,
	// it means the controller has not yet processed the latest changes to the specification.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// ObservedRequestorHash reflects the requestor hash that was last processed by the controller.
	// When this value matches the spec.requestorHash, it indicates that the controller has
	// processed the latest state of the creating resource. If observedRequestorHash differs
	// from spec.requestorHash, it means the requestor has changed and reconciliation is needed.
	// +optional
	ObservedRequestorHash []byte `json:"observedRequestorHash,omitempty"`
}

func (*ConfigurationGroupStatus) DeepCopy added in v1.0.0

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

func (*ConfigurationGroupStatus) DeepCopyInto added in v1.0.0

func (in *ConfigurationGroupStatus) DeepCopyInto(out *ConfigurationGroupStatus)

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

type ConfigurationItem added in v1.0.0

type ConfigurationItem struct {
	// ContentRef references the Kubernetes resource containing
	// the content to deploy.
	// +optional
	ContentRef *corev1.ObjectReference `json:"contentRef,omitempty"`

	// Hash represents of a unique value for the content stored in
	// the referenced contentRef
	// +optional
	Hash []byte `json:"hash,omitempty"`
}

func (*ConfigurationItem) DeepCopy added in v1.0.0

func (in *ConfigurationItem) DeepCopy() *ConfigurationItem

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

func (*ConfigurationItem) DeepCopyInto added in v1.0.0

func (in *ConfigurationItem) DeepCopyInto(out *ConfigurationItem)

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

type ConnectionStatus added in v0.36.0

type ConnectionStatus string

ConnectionStatus specifies whether connecting to managed cluster is healthy or not +kubebuilder:validation:Enum:=Healthy;Down

type DebuggingConfiguration

type DebuggingConfiguration struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec DebuggingConfigurationSpec `json:"spec,omitempty"`
}

DebuggingConfiguration is the Schema for the debuggingconfigurations API

func (*DebuggingConfiguration) DeepCopy

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

func (*DebuggingConfiguration) DeepCopyInto

func (in *DebuggingConfiguration) DeepCopyInto(out *DebuggingConfiguration)

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

func (*DebuggingConfiguration) DeepCopyObject

func (in *DebuggingConfiguration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DebuggingConfigurationList

type DebuggingConfigurationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []DebuggingConfiguration `json:"items"`
}

DebuggingConfigurationList contains a list of DebuggingConfiguration

func (*DebuggingConfigurationList) DeepCopy

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

func (*DebuggingConfigurationList) DeepCopyInto

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

func (*DebuggingConfigurationList) DeepCopyObject

func (in *DebuggingConfigurationList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DebuggingConfigurationSpec

type DebuggingConfigurationSpec struct {
	// Configuration contains debugging configuration as granular as per component.
	// +listType=atomic
	// +optional
	Configuration []ComponentConfiguration `json:"configuration,omitempty"`
}

DebuggingConfigurationSpec defines the desired state of DebuggingConfiguration

func (*DebuggingConfigurationSpec) DeepCopy

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

func (*DebuggingConfigurationSpec) DeepCopyInto

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

type DeliveryMethod added in v0.45.0

type DeliveryMethod struct {
	// Name of the delivery mechanism.
	// Must be a DNS_LABEL and unique within the TechsupportSpec.
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`

	// DeliveryType specifies the type of notification
	Type DeliveryType `json:"type"`

	// SecretRef is a reference to a delivery mechanism-specific Secret
	// that holds the details for the delivery.
	// +optional
	SecretRef *corev1.SecretReference `json:"secretRef,omitempty"`
}

func (*DeliveryMethod) DeepCopy added in v0.45.0

func (in *DeliveryMethod) DeepCopy() *DeliveryMethod

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

func (*DeliveryMethod) DeepCopyInto added in v0.45.0

func (in *DeliveryMethod) DeepCopyInto(out *DeliveryMethod)

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

type DeliveryType added in v0.45.0

type DeliveryType string

DeliveryType specifies different type of delivery mechanism +kubebuilder:validation:Enum:=Slack;Webex;Discord;Telegram;SMTP;SFTP

type DeployedResourceConstraint

type DeployedResourceConstraint struct {
	// ResourceSelectors identifies what resources to select
	// If no AggregatedClassification is specified, a cluster is
	// a match for Classifier instance, if all ResourceSelectors returns at
	// least one match.
	ResourceSelectors []ResourceSelector `json:"resourceSelectors"`

	// AggregatedClassification is optional and can be used to specify a Lua function
	// that will be used to further detect whether the subset of the resources
	// selected using the ResourceSelector field are a match for this Classifier.
	// The function will receive the array of resources selected by ResourceSelectors.
	// If this field is not specified, a cluster is a match for Classifier instance,
	// if all ResourceSelectors returns at least one match.
	// This field allows to perform more complex evaluation  on the resources, looking
	// at all resources together.
	// This can be useful for more sophisticated tasks, such as identifying resources
	// that are related to each other or that have similar properties.
	// The Lua function must return a struct with:
	// - "matching" field: boolean indicating whether cluster is a match;
	// - "message" field: (optional) message.
	// +optional
	AggregatedClassification string `json:"aggregatedClassification,omitempty"`
}

func (*DeployedResourceConstraint) DeepCopy

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

func (*DeployedResourceConstraint) DeepCopyInto

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

type DriftExclusion added in v1.0.0

type DriftExclusion struct {
	// Paths is a slice of JSON6902 paths to exclude from configuration drift evaluation.
	// +required
	Paths []string `json:"paths"`

	// Target points to the resources that the paths refers to.
	// +optional
	Target *PatchSelector `json:"target,omitempty"`
}

func (*DriftExclusion) DeepCopy added in v1.0.0

func (in *DriftExclusion) DeepCopy() *DriftExclusion

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

func (*DriftExclusion) DeepCopyInto added in v1.0.0

func (in *DriftExclusion) DeepCopyInto(out *DriftExclusion)

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

type Event added in v0.45.0

type Event struct {
	// Namespace of the events.
	// An empty string "" indicates all namespaces.
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// Type filters events based on the type of the events (Normal, Warning),
	// +kubebuilder:validation:Enum=Normal;Warning
	// +optional
	Type string `json:"type,omitempty"`
}

func (*Event) DeepCopy added in v0.45.0

func (in *Event) DeepCopy() *Event

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

func (*Event) DeepCopyInto added in v0.45.0

func (in *Event) DeepCopyInto(out *Event)

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

type EventReport

type EventReport struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   EventReportSpec   `json:"spec,omitempty"`
	Status EventReportStatus `json:"status,omitempty"`
}

EventReport is the Schema for the EventReport API

func (*EventReport) DeepCopy

func (in *EventReport) DeepCopy() *EventReport

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

func (*EventReport) DeepCopyInto

func (in *EventReport) DeepCopyInto(out *EventReport)

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

func (*EventReport) DeepCopyObject

func (in *EventReport) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type EventReportList

type EventReportList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []EventReport `json:"items"`
}

EventReportList contains a list of EventReport

func (*EventReportList) DeepCopy

func (in *EventReportList) DeepCopy() *EventReportList

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

func (*EventReportList) DeepCopyInto

func (in *EventReportList) DeepCopyInto(out *EventReportList)

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

func (*EventReportList) DeepCopyObject

func (in *EventReportList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type EventReportSpec

type EventReportSpec struct {
	// ClusterNamespace is the namespace of the Cluster this
	// EventReport is for.
	ClusterNamespace string `json:"clusterNamespace"`

	// ClusterName is the name of the Cluster this EventReport
	// is for.
	ClusterName string `json:"clusterName"`

	// ClusterType is the type of Cluster this EventReport
	// is for.
	ClusterType ClusterType `json:"clusterType"`

	// EventSourceName is the name of the EventSource instance this report
	// is for.
	EventSourceName string `json:"eventSourceName"`

	// MatchingResources contains a list of resources matching an EventSource
	// +listType=atomic
	// +optional
	MatchingResources []corev1.ObjectReference `json:"matchingResources,omitempty"`

	// If EventSource Spec.CollectResources is set to true, all matching resources
	// will be collected and contained in the Resources field.
	// +optional
	Resources []byte `json:"resources,omitempty"`

	// CloudEvents contains a list of CloudEvents matching an EventSource
	// +optional
	CloudEvents [][]byte `json:"cloudEvents,omitempty"`
}

func (*EventReportSpec) DeepCopy

func (in *EventReportSpec) DeepCopy() *EventReportSpec

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

func (*EventReportSpec) DeepCopyInto

func (in *EventReportSpec) DeepCopyInto(out *EventReportSpec)

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

type EventReportStatus

type EventReportStatus struct {
	// Phase represents the current phase of report.
	// +optional
	Phase *ReportPhase `json:"phase,omitempty"`

	// FailureMessage reports the error hit while generating ClusterProfile(s) from this
	// EventReport, if any. Set when processing fails; cleared on success.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`

	// AgentFailureMessage reports the error sveltos-agent hit while evaluating the EventSource
	// this EventReport is for, if any. Unlike FailureMessage (set in the management cluster while
	// generating ClusterProfile(s) from this report), this is set by sveltos-agent itself, in the
	// managed cluster, when it cannot refresh Spec.MatchingResources/Spec.CloudEvents. Spec is left
	// exactly as it was from the last successful evaluation while this is set, so consumers keep
	// acting on the last known-good data instead of a false empty result. Cleared on the next
	// successful evaluation.
	// +optional
	AgentFailureMessage *string `json:"agentFailureMessage,omitempty"`
}

EventReportStatus defines the observed state of EventReport

func (*EventReportStatus) DeepCopy

func (in *EventReportStatus) DeepCopy() *EventReportStatus

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

func (*EventReportStatus) DeepCopyInto

func (in *EventReportStatus) DeepCopyInto(out *EventReportStatus)

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

type EventSource

type EventSource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec EventSourceSpec `json:"spec,omitempty"`
}

EventSource is the Schema for the EventSource API

func (*EventSource) DeepCopy

func (in *EventSource) DeepCopy() *EventSource

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

func (*EventSource) DeepCopyInto

func (in *EventSource) DeepCopyInto(out *EventSource)

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

func (*EventSource) DeepCopyObject

func (in *EventSource) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type EventSourceList

type EventSourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []EventSource `json:"items"`
}

EventSourceList contains a list of EventSource

func (*EventSourceList) DeepCopy

func (in *EventSourceList) DeepCopy() *EventSourceList

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

func (*EventSourceList) DeepCopyInto

func (in *EventSourceList) DeepCopyInto(out *EventSourceList)

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

func (*EventSourceList) DeepCopyObject

func (in *EventSourceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type EventSourceSpec

type EventSourceSpec struct {
	// ResourceSelectors identifies what Kubernetes resources to select
	// +optional
	ResourceSelectors []ResourceSelector `json:"resourceSelectors,omitempty"`

	// This field is optional and can be used to specify a Lua function
	// that will be used to further select a subset of the resources that
	// have already been selected using the ResourceSelector field.
	// The function will receive the array of resources selected by ResourceSelectors.
	// If this field is not specified, all resources selected by the ResourceSelector
	// field will be considered.
	// This field allows to perform more complex filtering or selection operations
	// on the resources, looking at all resources together.
	// This can be useful for more sophisticated tasks, such as identifying resources
	// that are related to each other or that have similar properties.
	// The Lua function must return a struct with:
	// - "resources" field: slice of matching resources;
	// - "message" field: (optional) message.
	AggregatedSelection string `json:"aggregatedSelection,omitempty"`

	// CollectResources indicates whether matching resources need
	// to be collected and added to EventReport.
	// +kubebuilder:default:=false
	// +optional
	CollectResources bool `json:"collectResources,omitempty"`

	// MessagingMatchCriteria defines a list of MessagingMatchCriteria. Each criteria specifies
	// how to match CloudEvents received on specific NATS/JetStream subjects.
	// +optional
	MessagingMatchCriteria []MessagingMatchCriteria `json:"messagingMatchCriteria,omitempty"`
}

EventSourceSpec defines the desired state of EventSource

func (*EventSourceSpec) DeepCopy

func (in *EventSourceSpec) DeepCopy() *EventSourceSpec

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

func (*EventSourceSpec) DeepCopyInto

func (in *EventSourceSpec) DeepCopyInto(out *EventSourceSpec)

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

type EventType added in v0.45.0

type EventType string

EventType represents the possible types of events.

const (
	EventTypeNormal  EventType = "Normal"
	EventTypeWarning EventType = "Warning"
)

type FeatureDeploymentInfo added in v1.0.0

type FeatureDeploymentInfo struct {
	// FeatureID is an identifier of the feature whose status is reported
	FeatureID FeatureID `json:"featureID"`

	// DeployedGroupVersionKind contains all GroupVersionKinds deployed in either
	// the workload cluster or the management cluster because of this feature.
	// Each element has format kind.version.group
	// +optional
	DeployedGroupVersionKind []string `json:"deployedGroupVersionKind,omitempty"`
}

func (*FeatureDeploymentInfo) DeepCopy added in v1.0.0

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

func (*FeatureDeploymentInfo) DeepCopyInto added in v1.0.0

func (in *FeatureDeploymentInfo) DeepCopyInto(out *FeatureDeploymentInfo)

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

type FeatureID added in v1.0.0

type FeatureID string

+kubebuilder:validation:Enum:=Resources;Helm;Kustomize

type FeatureStatus added in v1.0.0

type FeatureStatus string

+kubebuilder:validation:Enum:=Provisioning;Provisioned;Failed;FailedNonRetriable;Removing;Removed;AgentRemoving;Blocked

type FlappingPolicy added in v1.16.0

type FlappingPolicy struct {
	// ConsecutiveEvaluations is the number of consecutive evaluations a resource must be
	// found in the same non-Healthy status before it is reported in
	// HealthCheckReport.Spec.ResourceStatuses.
	// +kubebuilder:default:=3
	// +kubebuilder:validation:Minimum=2
	// +optional
	ConsecutiveEvaluations int32 `json:"consecutiveEvaluations,omitempty"`
}

FlappingPolicy controls how many consecutive evaluations a resource must remain in the same non-Healthy status before HealthCheckReport reports it.

func (*FlappingPolicy) DeepCopy added in v1.16.0

func (in *FlappingPolicy) DeepCopy() *FlappingPolicy

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

func (*FlappingPolicy) DeepCopyInto added in v1.16.0

func (in *FlappingPolicy) DeepCopyInto(out *FlappingPolicy)

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

type FromManaged added in v0.45.0

type FromManaged struct {
	// ClusterSelector identifies clusters to collect techsupport from.
	// +optional
	ClusterSelector Selector `json:"clusterSelector,omitempty"`

	// ClusterRefs identifies clusters to collect techsupport from.
	// +optional
	ClusterRefs []corev1.ObjectReference `json:"clusterRefs,omitempty"`

	// Resources indicates what resources to collect
	// +optional
	Resources []ResourceSelector `json:"resources,omitempty"`

	// Logs indicates what pods' log to collect
	// +optional
	Logs []Log `json:"logs,omitempty"`

	// Events indicates what events to collect
	// +optional
	Events []Event `json:"events,omitempty"`
}

func (*FromManaged) DeepCopy added in v0.45.0

func (in *FromManaged) DeepCopy() *FromManaged

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

func (*FromManaged) DeepCopyInto added in v0.45.0

func (in *FromManaged) DeepCopyInto(out *FromManaged)

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

type FromManagement added in v0.45.0

type FromManagement struct {
	// Resources indicates what resources to collect
	// +optional
	Resources []ResourceSelector `json:"resources,omitempty"`

	// Logs indicates what pods' log to collect
	// +optional
	Logs []Log `json:"logs,omitempty"`

	// Events indicates what events to collect
	// +optional
	Events []Event `json:"events,omitempty"`
}

func (*FromManagement) DeepCopy added in v0.45.0

func (in *FromManagement) DeepCopy() *FromManagement

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

func (*FromManagement) DeepCopyInto added in v0.45.0

func (in *FromManagement) DeepCopyInto(out *FromManagement)

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

type GCPWorkloadIdentityConfig added in v1.12.0

type GCPWorkloadIdentityConfig struct {
	// ProjectID is the GCP project ID that contains the GKE cluster.
	// +kubebuilder:validation:MinLength=1
	ProjectID string `json:"projectID"`

	// ClusterName is the name of the GKE cluster.
	// +kubebuilder:validation:MinLength=1
	ClusterName string `json:"clusterName"`

	// Location is the GCP region or zone of the GKE cluster (e.g. "us-central1").
	// +kubebuilder:validation:MinLength=1
	Location string `json:"location"`
}

GCPWorkloadIdentityConfig holds GCP-specific workload identity configuration. Fields are kept for future auto-discovery support; the current implementation obtains tokens via Application Default Credentials without calling the GKE API.

func (*GCPWorkloadIdentityConfig) DeepCopy added in v1.12.0

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

func (*GCPWorkloadIdentityConfig) DeepCopyInto added in v1.12.0

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

type HealthCheck

type HealthCheck struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec HealthCheckSpec `json:"spec,omitempty"`
}

HealthCheck is the Schema for the HealthCheck API

func (*HealthCheck) DeepCopy

func (in *HealthCheck) DeepCopy() *HealthCheck

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

func (*HealthCheck) DeepCopyInto

func (in *HealthCheck) DeepCopyInto(out *HealthCheck)

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

func (*HealthCheck) DeepCopyObject

func (in *HealthCheck) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type HealthCheckList

type HealthCheckList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []HealthCheck `json:"items"`
}

HealthCheckList contains a list of Event

func (*HealthCheckList) DeepCopy

func (in *HealthCheckList) DeepCopy() *HealthCheckList

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

func (*HealthCheckList) DeepCopyInto

func (in *HealthCheckList) DeepCopyInto(out *HealthCheckList)

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

func (*HealthCheckList) DeepCopyObject

func (in *HealthCheckList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type HealthCheckReport

type HealthCheckReport struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   HealthCheckReportSpec   `json:"spec,omitempty"`
	Status HealthCheckReportStatus `json:"status,omitempty"`
}

HealthCheckReport is the Schema for the HealthCheckReport API

func (*HealthCheckReport) DeepCopy

func (in *HealthCheckReport) DeepCopy() *HealthCheckReport

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

func (*HealthCheckReport) DeepCopyInto

func (in *HealthCheckReport) DeepCopyInto(out *HealthCheckReport)

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

func (*HealthCheckReport) DeepCopyObject

func (in *HealthCheckReport) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type HealthCheckReportList

type HealthCheckReportList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []HealthCheckReport `json:"items"`
}

HealthCheckReportList contains a list of HealthCheckReport

func (*HealthCheckReportList) DeepCopy

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

func (*HealthCheckReportList) DeepCopyInto

func (in *HealthCheckReportList) DeepCopyInto(out *HealthCheckReportList)

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

func (*HealthCheckReportList) DeepCopyObject

func (in *HealthCheckReportList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type HealthCheckReportSpec

type HealthCheckReportSpec struct {
	// ClusterNamespace is the namespace of the Cluster this
	// HealthCheckReport is for.
	ClusterNamespace string `json:"clusterNamespace"`

	// ClusterName is the name of the Cluster this HealthCheckReport
	// is for.
	ClusterName string `json:"clusterName"`

	// ClusterType is the type of Cluster this HealthCheckReport
	// is for.
	ClusterType ClusterType `json:"clusterType"`

	// HealthName is the name of the HealthCheck instance this report
	// is for.
	HealthCheckName string `json:"healthCheckName"`

	// ResourceStatuses contains a list of resources with their status
	// +optional
	ResourceStatuses []ResourceStatus `json:"resourceStatuses,omitempty"`
}

func (*HealthCheckReportSpec) DeepCopy

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

func (*HealthCheckReportSpec) DeepCopyInto

func (in *HealthCheckReportSpec) DeepCopyInto(out *HealthCheckReportSpec)

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

type HealthCheckReportStatus

type HealthCheckReportStatus struct {
	// Phase represents the current phase of report.
	// +optional
	Phase *ReportPhase `json:"phase,omitempty"`

	// AgentFailureMessage reports the error sveltos-agent hit while evaluating the HealthCheck
	// this HealthCheckReport is for, if any. Set by sveltos-agent itself, in the managed cluster,
	// when it cannot refresh Spec.ResourceStatuses. Spec is left exactly as it was from the last
	// successful evaluation while this is set. Cleared on the next successful evaluation.
	// +optional
	AgentFailureMessage *string `json:"agentFailureMessage,omitempty"`

	// PendingResourceStatuses tracks resources currently observed in a non-Healthy status that
	// have not yet crossed HealthCheck.Spec.Flapping.ConsecutiveEvaluations. Once a resource's
	// count reaches the threshold it moves to Spec.ResourceStatuses and is removed here.
	// Agent-local bookkeeping only: not propagated to the management-cluster copy of this report.
	// +optional
	PendingResourceStatuses []PendingResourceStatus `json:"pendingResourceStatuses,omitempty"`
}

HealthCheckReportStatus defines the observed state of HealthCheckReport

func (*HealthCheckReportStatus) DeepCopy

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

func (*HealthCheckReportStatus) DeepCopyInto

func (in *HealthCheckReportStatus) DeepCopyInto(out *HealthCheckReportStatus)

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

type HealthCheckSpec

type HealthCheckSpec struct {
	// ResourceSelectors identifies what resources to select to evaluate health
	ResourceSelectors []ResourceSelector `json:"resourceSelectors"`

	// The EvaluateHealth field specifies a Lua function responsible for evaluating the
	// health of the resources selected by resourceSelectors.
	// This function can assess the health of each resource independently or consider inter-resource relationships.
	// The function must be named *evaluate* and can access all objects identified by resourceSelectors using
	// the *resources* variable. It should return an array of structured instances, each containing the following fields:
	// - resource: The resource being evaluated
	// - healthStatus: The health status of the resource, which can be one of "Healthy", "Progressing", "Degraded", or "Suspended"
	// - message: An optional message providing additional information about the health status
	// - reEvaluate: If set to true, this healthCheck instances will be re-evaluated in 10 seconds
	// +kubebuilder:validation:MinLength=1
	EvaluateHealth string `json:"evaluateHealth"`

	// CollectResources indicates whether matching resources need
	// to be collected and added to HealthReport.
	// +kubebuilder:default:=false
	// +optional
	CollectResources bool `json:"collectResources,omitempty"`

	// EvaluateIndependently indicates whether matching resources can be evaluated
	// in smaller batches to save memory.
	// Set this to true if the Lua script evaluates each resource independently.
	// Set this to false if the Lua script needs to compare all selected resources
	// +kubebuilder:default:=true
	// +optional
	EvaluateIndependently bool `json:"evaluateIndependently,omitempty"`

	// Flapping, when set, delays reporting a resource in a non-Healthy status until the
	// same status has been observed for ConsecutiveEvaluations consecutive evaluations.
	// This filters out transient status changes. Recovery to Healthy is always immediate:
	// a single Healthy evaluation clears any pending count for that resource.
	// +optional
	Flapping *FlappingPolicy `json:"flapping,omitempty"`
}

HealthCheckSpec defines the desired state of HealthCheck

func (*HealthCheckSpec) DeepCopy

func (in *HealthCheckSpec) DeepCopy() *HealthCheckSpec

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

func (*HealthCheckSpec) DeepCopyInto

func (in *HealthCheckSpec) DeepCopyInto(out *HealthCheckSpec)

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

type HealthStatus

type HealthStatus string

+kubebuilder:validation:Enum:=Healthy;Progressing;Degraded;Suspended

type HelmChartRef added in v1.14.0

type HelmChartRef struct {
	// ChartName is the chart name
	ChartName string `json:"chartName"`

	// ReleaseName is the chart release
	ReleaseName string `json:"releaseName"`

	// ReleaseNamespace is the namespace the release is installed in
	ReleaseNamespace string `json:"releaseNamespace"`
}

HelmChartRef identifies the Helm release a watched resource belongs to.

func (*HelmChartRef) DeepCopy added in v1.14.0

func (in *HelmChartRef) DeepCopy() *HelmChartRef

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

func (*HelmChartRef) DeepCopyInto added in v1.14.0

func (in *HelmChartRef) DeepCopyInto(out *HelmChartRef)

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

type HelmResources

type HelmResources struct {
	// ChartName is the chart name
	// +kubebuilder:validation:MinLength=1
	ChartName string `json:"chartName"`

	// ReleaseName is the chart release
	// +kubebuilder:validation:MinLength=1
	ReleaseName string `json:"releaseName"`

	// ReleaseNamespace is the namespace release will be installed
	// +kubebuilder:validation:MinLength=1
	ReleaseNamespace string `json:"releaseNamespace"`

	// Resources deployed by ClusterSummary because of helm charts
	// +optional
	Resources []ResourceSummaryResource `json:"group,omitempty"`
}

func (*HelmResources) DeepCopy

func (in *HelmResources) DeepCopy() *HelmResources

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

func (*HelmResources) DeepCopyInto

func (in *HelmResources) DeepCopyInto(out *HelmResources)

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

type JobHealthCheck added in v1.14.0

type JobHealthCheck struct {
	// JobRef references the Secret/ConfigMap containing the Job manifest to
	// deploy in the managed Cluster as this check.
	JobRef PolicyRef `json:"jobRef"`

	// Timeout is how long to wait for the Job to reach Complete or Failed
	// before treating the check as failed. Defaults to 5 minutes when unset.
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`
}

JobHealthCheck runs a Kubernetes Job in the managed cluster and treats the Job's Complete/Failed condition as the health check result, instead of observing declarative state already present in the cluster.

func (*JobHealthCheck) DeepCopy added in v1.14.0

func (in *JobHealthCheck) DeepCopy() *JobHealthCheck

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

func (*JobHealthCheck) DeepCopyInto added in v1.14.0

func (in *JobHealthCheck) DeepCopyInto(out *JobHealthCheck)

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

type KubernetesComparison

type KubernetesComparison string
const (
	ComparisonEqual                KubernetesComparison = "Equal"
	ComparisonNotEqual             KubernetesComparison = "NotEqual"
	ComparisonGreaterThan          KubernetesComparison = "GreaterThan"
	ComparisonLessThan             KubernetesComparison = "LessThan"
	ComparisonGreaterThanOrEqualTo KubernetesComparison = "GreaterThanOrEqualTo"
	ComparisonLessThanOrEqualTo    KubernetesComparison = "LessThanOrEqualTo"
)

Define the Action constants.

type KubernetesVersionConstraint

type KubernetesVersionConstraint struct {
	// Version is the kubernetes version
	Version string `json:"version"`

	// Comparison indicate how to compare cluster kubernetes version with the specified version
	// +kubebuilder:validation:Enum=Equal;NotEqual;GreaterThan;LessThan;GreaterThanOrEqualTo;LessThanOrEqualTo
	Comparison string `json:"comparison"`
}

func (*KubernetesVersionConstraint) DeepCopy

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

func (*KubernetesVersionConstraint) DeepCopyInto

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

type LabelFilter

type LabelFilter struct {
	// Key is the label key
	Key string `json:"key"`

	// Operation is the comparison operation
	Operation Operation `json:"operation"`

	// Value is the label value
	// +optional
	Value string `json:"value,omitempty"`
}

func (*LabelFilter) DeepCopy

func (in *LabelFilter) DeepCopy() *LabelFilter

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

func (*LabelFilter) DeepCopyInto

func (in *LabelFilter) DeepCopyInto(out *LabelFilter)

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

type LicenseStatusType added in v1.0.0

type LicenseStatusType string

LicenseStatusType defines the type for the license status.

const (
	// LicenseStatusValid indicates the license secret was found,
	// its signature is valid, and it has not expired.
	LicenseStatusValid LicenseStatusType = "Valid"
	// LicenseStatusExpired indicates the license secret was found,
	// its signature is valid, but it has expired.
	LicenseStatusExpired LicenseStatusType = "Expired"
	// LicenseStatusInvalid indicates the license secret was found,
	// but its signature is invalid or the data is malformed.
	LicenseStatusInvalid LicenseStatusType = "Invalid"
	// LicenseStatusNotFound indicates no license secret was found at the
	// specified reference.
	LicenseStatusNotFound LicenseStatusType = "NotFound"
)

type LivenessCheck

type LivenessCheck struct {
	// Name of the liveness check.
	// Must be a DNS_LABEL and unique within the ClusterHealthCheck.
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`

	// Type specifies the type of liveness
	Type LivenessType `json:"type"`

	// LivenessSourceRef is a reference to a liveness-specific resource that holds
	// the details for the liveness check.
	// +optional
	LivenessSourceRef *corev1.ObjectReference `json:"livenessSourceRef,omitempty"`
}

func (*LivenessCheck) DeepCopy

func (in *LivenessCheck) DeepCopy() *LivenessCheck

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

func (*LivenessCheck) DeepCopyInto

func (in *LivenessCheck) DeepCopyInto(out *LivenessCheck)

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

type LivenessType

type LivenessType string

Event specifies different type of liveness checks +kubebuilder:validation:Enum:=Addons;HealthCheck

type Log added in v0.45.0

type Log struct {
	// Namespace of the pods deployed in the Cluster.
	// An empty string "" indicates all namespaces.
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// Name of the pods deployed in the Cluster.
	// +optional
	Name string `json:"name,omitempty"`

	// LabelFilters allows to filter pods based on current labels.
	// +optional
	LabelFilters []LabelFilter `json:"labelFilters,omitempty"`

	// A relative time in seconds before the current time from which to collect logs.
	// If this value precedes the time a pod was started, only logs since the pod
	// start will be returned.
	// +optional
	SinceSeconds *int64 `json:"sinceSeconds,omitempty"`
}

LogFilter allows to select which logs to collect

func (*Log) DeepCopy added in v0.45.0

func (in *Log) DeepCopy() *Log

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

func (*Log) DeepCopyInto added in v0.45.0

func (in *Log) DeepCopyInto(out *Log)

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

type LogLevel

type LogLevel string

+kubebuilder:validation:Enum:=LogLevelNotSet;LogLevelInfo;LogLevelDebug;LogLevelVerbose

type MachingClusterStatus

type MachingClusterStatus struct {
	// ClusterRef references the matching Cluster
	ClusterRef corev1.ObjectReference `json:"clusterRef"`

	// ManagedLabels indicates the labels being managed on
	// the cluster by this Classifier instance
	// +optional
	ManagedLabels []string `json:"managedLabels,omitempty"`

	// UnManagedLabel indicates the labels this Classifier instance
	// would like to manage but cannot because different instance is
	// already managing it
	// +optional
	UnManagedLabels []UnManagedLabel `json:"unManagedLabels,omitempty"`
}

func (*MachingClusterStatus) DeepCopy

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

func (*MachingClusterStatus) DeepCopyInto

func (in *MachingClusterStatus) DeepCopyInto(out *MachingClusterStatus)

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

type ManagementClusterClassifier added in v1.12.0

type ManagementClusterClassifier struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ManagementClusterClassifierSpec   `json:"spec,omitempty"`
	Status ManagementClusterClassifierStatus `json:"status,omitempty"`
}

ManagementClusterClassifier evaluates resources on the management cluster and labels managed clusters accordingly. Unlike Classifier, no deployment to managed clusters is required: the Lua function runs entirely on the management cluster and returns the list of clusters to label.

func (*ManagementClusterClassifier) DeepCopy added in v1.12.0

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

func (*ManagementClusterClassifier) DeepCopyInto added in v1.12.0

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

func (*ManagementClusterClassifier) DeepCopyObject added in v1.12.0

func (in *ManagementClusterClassifier) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagementClusterClassifierList added in v1.12.0

type ManagementClusterClassifierList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ManagementClusterClassifier `json:"items"`
}

ManagementClusterClassifierList contains a list of ManagementClusterClassifier.

func (*ManagementClusterClassifierList) DeepCopy added in v1.12.0

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

func (*ManagementClusterClassifierList) DeepCopyInto added in v1.12.0

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

func (*ManagementClusterClassifierList) DeepCopyObject added in v1.12.0

func (in *ManagementClusterClassifierList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagementClusterClassifierReport added in v1.12.0

type ManagementClusterClassifierReport struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ManagementClusterClassifierReportSpec   `json:"spec,omitempty"`
	Status ManagementClusterClassifierReportStatus `json:"status,omitempty"`
}

ManagementClusterClassifierReport is created by the ManagementClusterClassifier controller — one per (ManagementClusterClassifier, cluster) pair — to track which labels are managed on each cluster and to enable conflict detection via the keymanager.

func (*ManagementClusterClassifierReport) DeepCopy added in v1.12.0

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

func (*ManagementClusterClassifierReport) DeepCopyInto added in v1.12.0

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

func (*ManagementClusterClassifierReport) DeepCopyObject added in v1.12.0

func (in *ManagementClusterClassifierReport) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagementClusterClassifierReportList added in v1.12.0

type ManagementClusterClassifierReportList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ManagementClusterClassifierReport `json:"items"`
}

ManagementClusterClassifierReportList contains a list of ManagementClusterClassifierReport.

func (*ManagementClusterClassifierReportList) DeepCopy added in v1.12.0

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

func (*ManagementClusterClassifierReportList) DeepCopyInto added in v1.12.0

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

func (*ManagementClusterClassifierReportList) DeepCopyObject added in v1.12.0

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagementClusterClassifierReportSpec added in v1.12.0

type ManagementClusterClassifierReportSpec struct {
	// ClassifierName is the name of the ManagementClusterClassifier this report is for.
	ClassifierName string `json:"classifierName"`

	// ClusterNamespace is the namespace of the cluster this report is for.
	ClusterNamespace string `json:"clusterNamespace"`

	// ClusterName is the name of the cluster this report is for.
	ClusterName string `json:"clusterName"`

	// ClusterType is the type of the cluster this report is for.
	ClusterType ClusterType `json:"clusterType"`
}

ManagementClusterClassifierReportSpec identifies the classifier and cluster this report belongs to.

func (*ManagementClusterClassifierReportSpec) DeepCopy added in v1.12.0

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

func (*ManagementClusterClassifierReportSpec) DeepCopyInto added in v1.12.0

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

type ManagementClusterClassifierReportStatus added in v1.12.0

type ManagementClusterClassifierReportStatus struct {
	// ManagedLabels lists the label keys this ManagementClusterClassifier is
	// actively managing on the cluster.
	// +optional
	ManagedLabels []string `json:"managedLabels,omitempty"`

	// UnManagedLabels lists label keys this ManagementClusterClassifier would like
	// to manage but cannot because another Classifier or ManagementClusterClassifier
	// already owns them.
	// +optional
	UnManagedLabels []UnManagedLabel `json:"unmanagedLabels,omitempty"`
}

ManagementClusterClassifierReportStatus is written by the controller after processing.

func (*ManagementClusterClassifierReportStatus) DeepCopy added in v1.12.0

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

func (*ManagementClusterClassifierReportStatus) DeepCopyInto added in v1.12.0

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

type ManagementClusterClassifierSpec added in v1.12.0

type ManagementClusterClassifierSpec struct {
	// MatchResources lists the management-cluster resource types to watch.
	// Reuses the existing ResourceSelector type. Label/name/namespace filters
	// and per-resource Lua (ResourceSelector.Evaluate) all apply: only objects
	// where Evaluate returns {matching: true} are included in the resources array
	// passed to ClassificationLua. Same behavior as the existing Classifier.
	MatchResources []ResourceSelector `json:"matchResources"`

	// ClassificationLua is a Lua function called once per reconcile with the full
	// set of resources matched by MatchResources. It receives the array as resources
	// and must return an array of cluster references.
	// Each entry must have fields: namespace (string), name (string), kind (string).
	// kind must be "SveltosCluster" or "Cluster". Entries with a missing or unrecognized
	// kind are skipped and recorded in status.failureMessage.
	// Passing all resources at once allows the function to make decisions that
	// depend on the relationship between multiple resources.
	ClassificationLua string `json:"classificationLua"`

	// ClassifierLabels is the set of labels to add to every cluster returned by
	// ClassificationLua. Same type as Classifier.spec.classifierLabels.
	ClassifierLabels []ClassifierLabel `json:"classifierLabels"`
}

ManagementClusterClassifierSpec defines the desired state of ManagementClusterClassifier.

func (*ManagementClusterClassifierSpec) DeepCopy added in v1.12.0

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

func (*ManagementClusterClassifierSpec) DeepCopyInto added in v1.12.0

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

type ManagementClusterClassifierStatus added in v1.12.0

type ManagementClusterClassifierStatus struct {
	// FailureMessage reports the error from the last reconcile, if any.
	// Set when resource collection or Lua evaluation fails; cleared on success.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`
}

ManagementClusterClassifierStatus defines the observed state of ManagementClusterClassifier.

func (*ManagementClusterClassifierStatus) DeepCopy added in v1.12.0

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

func (*ManagementClusterClassifierStatus) DeepCopyInto added in v1.12.0

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

type MessagingMatchCriteria added in v0.46.0

type MessagingMatchCriteria struct {
	// Subject is an optional NATS/JetStream subject filter. If specified, this criteria will
	// only consider CloudEvents received on this specific subject. Leaving it empty
	// means the criteria will match CloudEvents from any of the subjects Sveltos
	// is subscribed to. Regular expressions are supported.
	// +optional
	Subject string `json:"subject,omitempty"`

	// CloudEventSource filters CloudEvents based on their "source" attribute.
	// If specified, only CloudEvents with a matching source will be considered.
	// Regular expressions are supported.
	// +optional
	CloudEventSource string `json:"cloudEventSource,omitempty"`

	// CloudEventType filters CloudEvents based on their "type" attribute.
	// If specified, only CloudEvents with a matching type will be considered.
	// Regular expressions are supported.
	// +optional
	CloudEventType string `json:"cloudEventType,omitempty"`

	// CloudEventSubject filters CloudEvents based on their "subject" attribute.
	// If specified, only CloudEvents with a matching subject will be considered.
	// Regular expressions are supported.
	// +optional
	CloudEventSubject string `json:"cloudEventSubject,omitempty"`
}

MessagingMatchCriteria defines criteria for matching CloudEvents received via NATS. Sveltos listens to NATS/JetStream subjects, and the messages delivered on those subjects are expected to be CloudEvents.

func (*MessagingMatchCriteria) DeepCopy added in v0.46.0

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

func (*MessagingMatchCriteria) DeepCopyInto added in v0.46.0

func (in *MessagingMatchCriteria) DeepCopyInto(out *MessagingMatchCriteria)

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

type MetricQuery added in v1.11.0

type MetricQuery struct {
	// Name is the key under which the scalar result is available in the script.
	// Must be unique within the ValidateHealth entry.
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`

	// Query is a PromQL instant-query expression.
	// +kubebuilder:validation:MinLength=1
	Query string `json:"query"`
}

MetricQuery binds a PromQL instant-query result to a name the evaluation script can reference via the metrics table (e.g. metrics["errorRate"]).

func (*MetricQuery) DeepCopy added in v1.11.0

func (in *MetricQuery) DeepCopy() *MetricQuery

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

func (*MetricQuery) DeepCopyInto added in v1.11.0

func (in *MetricQuery) DeepCopyInto(out *MetricQuery)

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

type MetricSource added in v1.11.0

type MetricSource struct {
	// URL is the base HTTP(S) address of the Prometheus-compatible endpoint
	// (e.g. http://prometheus.monitoring.svc:9090).
	// +kubebuilder:validation:MinLength=1
	URL string `json:"url"`

	// Path is the HTTP path for Prometheus instant queries.
	// Defaults to /api/v1/query when empty.
	// +optional
	Path string `json:"path,omitempty"`

	// SecretRef optionally references a Secret on the managed cluster containing
	// credentials to authenticate against the endpoint.
	// The Secret namespace and name must both be specified.
	// Supported keys: "token" (bearer token), "username" and "password" (basic auth).
	// +optional
	SecretRef *corev1.SecretReference `json:"secretRef,omitempty"`
}

MetricSource identifies a Prometheus-compatible metrics endpoint. The endpoint must be reachable from wherever the check runs: in pull mode the agent runs inside the managed cluster, so a plain Kubernetes Service URL is sufficient (e.g. http://prometheus.monitoring.svc:9090); in push mode the addon-controller runs on the management cluster, so the endpoint must be reachable from outside the managed cluster.

func (*MetricSource) DeepCopy added in v1.11.0

func (in *MetricSource) DeepCopy() *MetricSource

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

func (*MetricSource) DeepCopyInto added in v1.11.0

func (in *MetricSource) DeepCopyInto(out *MetricSource)

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

type Notification

type Notification struct {
	// Name of the notification check.
	// Must be a DNS_LABEL and unique within the ClusterHealthCheck.
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`

	// NotificationType specifies the type of notification
	Type NotificationType `json:"type"`

	// NotificationRef is a reference to a notification-specific resource that holds
	// the details for the notification.
	// +optional
	NotificationRef *corev1.ObjectReference `json:"notificationRef,omitempty"`
}

func (*Notification) DeepCopy

func (in *Notification) DeepCopy() *Notification

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

func (*Notification) DeepCopyInto

func (in *Notification) DeepCopyInto(out *Notification)

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

type NotificationStatus

type NotificationStatus string

NotificationStatus specifies status of notifications +kubebuilder:validation:Enum:=Delivered;FailedToDeliver

type NotificationSummary

type NotificationSummary struct {
	// Name of the notification check.
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`

	// NotificationStatus specifies the notification status
	Status NotificationStatus `json:"status"`

	// FailureMessage is a human consumable message explaining the
	// misconfiguration
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`
}

func (*NotificationSummary) DeepCopy

func (in *NotificationSummary) DeepCopy() *NotificationSummary

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

func (*NotificationSummary) DeepCopyInto

func (in *NotificationSummary) DeepCopyInto(out *NotificationSummary)

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

type NotificationType

type NotificationType string

NotificationType specifies different type of notifications +kubebuilder:validation:Enum:=KubernetesEvent;Slack;Webex;Discord;Teams;Telegram;SMTP

type OIDCWorkloadIdentityConfig added in v1.15.0

type OIDCWorkloadIdentityConfig struct {
	// TokenURL is the IdP's OAuth2 token endpoint.
	// +kubebuilder:validation:MinLength=1
	TokenURL string `json:"tokenURL"`

	// SecretRef references a Secret in the management cluster containing the client
	// credentials, under the keys "client_id" and "client_secret".
	// If Namespace is omitted, the cluster's namespace is used.
	SecretRef corev1.SecretReference `json:"secretRef"`

	// Scopes is the list of OAuth2 scopes to request alongside the client credentials
	// grant. Leave empty if the IdP does not require one.
	// +optional
	Scopes []string `json:"scopes,omitempty"`

	// CASecretRef references a Secret in the management cluster containing the CA
	// certificate of the IdP's token endpoint under the key "ca.crt". This is distinct
	// from WorkloadIdentityConfig.CASecretRef, which trusts the managed cluster's own
	// API server rather than the IdP. If not set, the system certificate pool is used.
	// +optional
	CASecretRef *corev1.LocalObjectReference `json:"caSecretRef,omitempty"`
}

OIDCWorkloadIdentityConfig holds configuration for a generic OIDC client credentials grant (RFC 6749 section 4.4), used to authenticate to a managed cluster whose control plane is not one of the three cloud providers with their own federation mechanism, for example an on-prem or self-managed cluster backed by an enterprise IdP (Keycloak, Dex, Okta, or similar). Unlike the AWS/GCP/Azure cases, this is not secretless: Sveltos holds a standing client_id/client_secret and exchanges it directly at the IdP's token endpoint, rather than a cloud trusting a token Kubernetes itself already minted for the pod.

func (*OIDCWorkloadIdentityConfig) DeepCopy added in v1.15.0

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

func (*OIDCWorkloadIdentityConfig) DeepCopyInto added in v1.15.0

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

type Operation

type Operation string

Operation specifies +kubebuilder:validation:Enum:=Equal;Different;Has;DoesNotHave

type Patch added in v0.34.0

type Patch struct {
	// Patch contains an inline StrategicMerge patch or an inline JSON6902 patch with
	// an array of operation objects.
	// These values can be static or leverage Go templates for dynamic customization.
	// When expressed as templates, the values are filled in using information from
	// resources within the management cluster before deployment (Cluster and TemplateResourceRefs)
	// +required
	Patch string `json:"patch"`

	// Target points to the resources that the patch document should be applied to.
	// +optional
	Target *PatchSelector `json:"target,omitempty"`
}

Patch contains an inline StrategicMerge or JSON6902 patch, and the target the patch should be applied to.

func (*Patch) DeepCopy added in v0.34.0

func (in *Patch) DeepCopy() *Patch

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

func (*Patch) DeepCopyInto added in v0.34.0

func (in *Patch) DeepCopyInto(out *Patch)

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

type PatchSelector added in v0.34.0

type PatchSelector struct {

	// Version of the API Group to select resources from.
	// Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources.
	// https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
	// +optional
	Version string `json:"version,omitempty"`

	// Group is the API group to select resources from.
	// Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources.
	// https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
	// +optional
	Group string `json:"group,omitempty"`

	// Kind of the API Group to select resources from.
	// Together with Group and Version it is capable of unambiguously
	// identifying and/or selecting resources.
	// https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
	// +optional
	Kind string `json:"kind,omitempty"`

	// Namespace to select resources from.
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// Name to match resources with.
	// +optional
	Name string `json:"name,omitempty"`

	// AnnotationSelector is a string that follows the label selection expression
	// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
	// It matches with the resource annotations.
	// +optional
	AnnotationSelector string `json:"annotationSelector,omitempty"`

	// LabelSelector is a string that follows the label selection expression
	// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
	// It matches with the resource labels.
	// +optional
	LabelSelector string `json:"labelSelector,omitempty"`
}

func (*PatchSelector) DeepCopy added in v0.34.0

func (in *PatchSelector) DeepCopy() *PatchSelector

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

func (*PatchSelector) DeepCopyInto added in v0.34.0

func (in *PatchSelector) DeepCopyInto(out *PatchSelector)

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

type PendingResourceStatus added in v1.16.0

type PendingResourceStatus struct {
	// ObjectRef for which status is reported
	ObjectRef corev1.ObjectReference `json:"objectRef"`

	// HealthStatus is the status last observed for the object
	HealthStatus HealthStatus `json:"healthStatus"`

	// Message is an extra message for human consumption
	// +optional
	Message string `json:"message,omitempty"`

	// ConsecutiveCount is the number of consecutive evaluations HealthStatus
	// has been observed for this object
	ConsecutiveCount int32 `json:"consecutiveCount"`
}

PendingResourceStatus tracks a resource currently observed in a non-Healthy status that has not yet crossed HealthCheck.Spec.Flapping.ConsecutiveEvaluations.

func (*PendingResourceStatus) DeepCopy added in v1.16.0

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

func (*PendingResourceStatus) DeepCopyInto added in v1.16.0

func (in *PendingResourceStatus) DeepCopyInto(out *PendingResourceStatus)

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

type PolicyRef

type PolicyRef struct {
	// Namespace of the referenced resource.
	// Namespace can be left empty. In such a case, namespace will
	// be implicit set to cluster's namespace.
	Namespace string `json:"namespace"`

	// Name of the referenced resource.
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`

	// Kind of the resource. Supported kinds are: Secrets and ConfigMaps.
	// +kubebuilder:validation:Enum=Secret;ConfigMap
	Kind string `json:"kind"`
}

PolicyRef specifies a resource containing one or more policy to deploy in matching Clusters.

func (*PolicyRef) DeepCopy

func (in *PolicyRef) DeepCopy() *PolicyRef

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

func (*PolicyRef) DeepCopyInto

func (in *PolicyRef) DeepCopyInto(out *PolicyRef)

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

func (PolicyRef) String

func (r PolicyRef) String() string

type ReferencedResourceKind

type ReferencedResourceKind string

ReferencedResourceKind is a string representation of allowed kind of resources that can be referenced in a ClusterProfile

const (
	SecretReferencedResourceKind    ReferencedResourceKind = "Secret"
	ConfigMapReferencedResourceKind ReferencedResourceKind = "ConfigMap"
)

Define the ReferencedResourceKind constants.

type Reloader

type Reloader struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ReloaderSpec `json:"spec,omitempty"`
}

Reloader is the Schema for the Reloader API

func (*Reloader) DeepCopy

func (in *Reloader) DeepCopy() *Reloader

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

func (*Reloader) DeepCopyInto

func (in *Reloader) DeepCopyInto(out *Reloader)

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

func (*Reloader) DeepCopyObject

func (in *Reloader) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ReloaderInfo

type ReloaderInfo struct {
	// Namespace of the referenced resource.
	// +kubebuilder:validation:MinLength=1
	Namespace string `json:"namespace"`

	// Name of the referenced resource.
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`

	// Kind of the resource. Supported kinds are: Deployment StatefulSet DaemonSet.
	// +kubebuilder:validation:Enum=Deployment;StatefulSet;DaemonSet
	Kind string `json:"kind"`

	// +optional
	Value string `json:"value,omitempty"`
}

ReloaderInfo represents a resource that need to be reloaded if any mounted ConfigMap/Secret changes.

func (*ReloaderInfo) DeepCopy

func (in *ReloaderInfo) DeepCopy() *ReloaderInfo

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

func (*ReloaderInfo) DeepCopyInto

func (in *ReloaderInfo) DeepCopyInto(out *ReloaderInfo)

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

type ReloaderList

type ReloaderList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Reloader `json:"items"`
}

ReloaderList contains a list of Reloader

func (*ReloaderList) DeepCopy

func (in *ReloaderList) DeepCopy() *ReloaderList

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

func (*ReloaderList) DeepCopyInto

func (in *ReloaderList) DeepCopyInto(out *ReloaderList)

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

func (*ReloaderList) DeepCopyObject

func (in *ReloaderList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ReloaderReport

type ReloaderReport struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ReloaderReportSpec   `json:"spec,omitempty"`
	Status ReloaderReportStatus `json:"status,omitempty"`
}

ReloaderReport is the Schema for the ReloaderReport API

func (*ReloaderReport) DeepCopy

func (in *ReloaderReport) DeepCopy() *ReloaderReport

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

func (*ReloaderReport) DeepCopyInto

func (in *ReloaderReport) DeepCopyInto(out *ReloaderReport)

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

func (*ReloaderReport) DeepCopyObject

func (in *ReloaderReport) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ReloaderReportList

type ReloaderReportList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ReloaderReport `json:"items"`
}

ReloaderReportList contains a list of ReloaderReport

func (*ReloaderReportList) DeepCopy

func (in *ReloaderReportList) DeepCopy() *ReloaderReportList

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

func (*ReloaderReportList) DeepCopyInto

func (in *ReloaderReportList) DeepCopyInto(out *ReloaderReportList)

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

func (*ReloaderReportList) DeepCopyObject

func (in *ReloaderReportList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ReloaderReportSpec

type ReloaderReportSpec struct {
	// ClusterNamespace is the namespace of the Cluster this
	// ReloaderReport is for.
	ClusterNamespace string `json:"clusterNamespace"`

	// ClusterName is the name of the Cluster this ReloaderReport
	// is for.
	ClusterName string `json:"clusterName"`

	// ClusterType is the type of Cluster this ReloaderReport
	// is for.
	ClusterType ClusterType `json:"clusterType"`

	// ResourcesToReload contains a list of resources that requires
	// rolling upgrade
	// +optional
	ResourcesToReload []ReloaderInfo `json:"resourcesToReload,omitempty"`
}

func (*ReloaderReportSpec) DeepCopy

func (in *ReloaderReportSpec) DeepCopy() *ReloaderReportSpec

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

func (*ReloaderReportSpec) DeepCopyInto

func (in *ReloaderReportSpec) DeepCopyInto(out *ReloaderReportSpec)

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

type ReloaderReportStatus

type ReloaderReportStatus struct {
	// Phase represents the current phase of report.
	// +optional
	Phase *ReportPhase `json:"phase,omitempty"`
}

ReloaderReportStatus defines the observed state of ReloaderReport

func (*ReloaderReportStatus) DeepCopy

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

func (*ReloaderReportStatus) DeepCopyInto

func (in *ReloaderReportStatus) DeepCopyInto(out *ReloaderReportStatus)

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

type ReloaderSpec

type ReloaderSpec struct {
	// +optional
	ReloaderInfo []ReloaderInfo `json:"reloaderInfo,omitempty"`
}

ReloaderSpec defines the desired state of Reloader

func (*ReloaderSpec) DeepCopy

func (in *ReloaderSpec) DeepCopy() *ReloaderSpec

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

func (*ReloaderSpec) DeepCopyInto

func (in *ReloaderSpec) DeepCopyInto(out *ReloaderSpec)

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

type ReportPhase

type ReportPhase string

ReportPhase describes the state of a classifierReport/healthReport/eventReport/reloaderReport. +kubebuilder:validation:Enum:=WaitingForDelivery;Delivering;Processed

type RequestType

type RequestType string

RequestType specifies the type of AccessRequest +kubebuilder:validation:Enum:=SveltosAgent;Different

type Resource

type Resource struct {
	// Name of the resource deployed in the Cluster.
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`

	// Namespace of the resource deployed in the Cluster.
	// Empty for resources scoped at cluster level.
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// Group of the resource deployed in the Cluster.
	Group string `json:"group"`

	// Kind of the resource deployed in the Cluster.
	// +kubebuilder:validation:MinLength=1
	Kind string `json:"kind"`

	// Version of the resource deployed in the Cluster.
	// +kubebuilder:validation:MinLength=1
	Version string `json:"version"`

	// IgnoreForConfigurationDrift indicates to not track resource
	// for configuration drift detection.
	// This field has a meaning only when mode is ContinuousWithDriftDetection
	// +kubebuilder:default:=false
	// +optional
	IgnoreForConfigurationDrift bool `json:"ignoreForConfigurationDrift,omitempty"`

	// LastAppliedTime identifies when this resource was last applied to the cluster.
	// +optional
	LastAppliedTime *metav1.Time `json:"lastAppliedTime,omitempty"`
}

func (*Resource) DeepCopy

func (in *Resource) DeepCopy() *Resource

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

func (*Resource) DeepCopyInto

func (in *Resource) DeepCopyInto(out *Resource)

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

type ResourceAction added in v1.0.0

type ResourceAction string
const (
	NoResourceAction       ResourceAction = "No Action"
	CreateResourceAction   ResourceAction = "Create"
	UpdateResourceAction   ResourceAction = "Update"
	DeleteResourceAction   ResourceAction = "Delete"
	ConflictResourceAction ResourceAction = "Conflict"
	ErrorResourceAction    ResourceAction = "Error"
)

Define the Action constants.

type ResourceHash

type ResourceHash struct {
	// Resource specifies a resource.
	Resource `json:",inline"`

	// Hash is the hash of a resource's data.
	Hash string `json:"hash,omitempty"`

	// HelmChartRef identifies which Helm release this resource was deployed by.
	// Only set when this ResourceHash was generated for a Helm-deployed resource
	// (i.e. as part of HelmResourceHashes).
	// +optional
	HelmChartRef *HelmChartRef `json:"helmChartRef,omitempty"`
}

func (*ResourceHash) DeepCopy

func (in *ResourceHash) DeepCopy() *ResourceHash

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

func (*ResourceHash) DeepCopyInto

func (in *ResourceHash) DeepCopyInto(out *ResourceHash)

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

type ResourceReport added in v1.0.0

type ResourceReport struct {
	// Resource contains information about Kubernetes Resource
	Resource Resource `json:"resource"`

	// Action represent the type of operation on the Kubernetes resource.
	// +kubebuilder:validation:Enum=No Action;Create;Update;Delete;Conflict;Error
	Action string `json:"action,omitempty"`

	// Message is for any message that needs to added to better
	// explain the action.
	// +optional
	Message string `json:"message,omitempty"`
}

func (*ResourceReport) DeepCopy added in v1.0.0

func (in *ResourceReport) DeepCopy() *ResourceReport

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

func (*ResourceReport) DeepCopyInto added in v1.0.0

func (in *ResourceReport) DeepCopyInto(out *ResourceReport)

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

type ResourceSelector

type ResourceSelector struct {
	// Group of the resource deployed in the Cluster.
	Group string `json:"group"`

	// Version of the resource deployed in the Cluster.
	Version string `json:"version"`

	// Kind of the resource deployed in the Cluster.
	// +kubebuilder:validation:MinLength=1
	Kind string `json:"kind"`

	// LabelFilters allows to filter resources based on current labels.
	// +optional
	LabelFilters []LabelFilter `json:"labelFilters,omitempty"`

	// Selector is a standard Kubernetes label selector. Resources are selected
	// if their labels match the selector. This field uses the standard
	// Kubernetes label matching syntax (e.g., {"environment": "production"}).
	// If both LabelFilters and Selector are specified, the requirements from
	// both are logically ANDed.
	// +optional
	Selector *metav1.LabelSelector `json:"selector,omitempty"`

	// Namespace of the resource deployed in the  Cluster.
	// Empty for resources scoped at cluster level.
	// For namespaced resources, an empty string "" indicates all namespaces.
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// Name of the resource deployed in the  Cluster.
	// +optional
	Name string `json:"name,omitempty"`

	// Evaluate contains a function "evaluate" in lua language.
	// The function will be passed one of the object selected based on
	// above criteria.
	// Must return struct with field "matching" representing whether
	// object is a match and an optional "message" field.
	// +optional
	Evaluate string `json:"evaluate,omitempty"`

	// EvaluateCEL contains a list of named CEL (Common Expression Language) rules.
	// Each rule will be evaluated in order against each object selected based on
	// the criteria defined above. Each rule's expression must return a boolean value
	// indicating whether the object is a match.
	//
	// Evaluation stops at the first rule that returns true; subsequent
	// rules will not be evaluated.
	// +optional
	EvaluateCEL []CELRule `json:"evaluateCEL,omitempty"`

	// IncludeDeletingResources indicates whether resources with a non-zero
	// metadata.deletionTimestamp should still be considered for a match.
	// By default, such resources are excluded. Set this to true to react
	// while a resource is being deleted but still exists, for instance to
	// run cleanup logic before it is fully removed.
	// +kubebuilder:default:=false
	// +optional
	IncludeDeletingResources bool `json:"includeDeletingResources,omitempty"`
}

ResourceSelector defines what resources are a match

func (*ResourceSelector) DeepCopy

func (in *ResourceSelector) DeepCopy() *ResourceSelector

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

func (*ResourceSelector) DeepCopyInto

func (in *ResourceSelector) DeepCopyInto(out *ResourceSelector)

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

type ResourceStatus

type ResourceStatus struct {
	// ObjectRef for which status is reported
	ObjectRef corev1.ObjectReference `json:"objectRef"`

	// If HealthCheck Spec.CollectResources is set to true, resource
	// will be collected and contained in the Resource field.
	// +optional
	Resource []byte `json:"resource,omitempty"`

	// HealthStatus is the health status of the object
	HealthStatus HealthStatus `json:"healthStatus"`

	// Message is an extra message for human consumption
	// +optional
	Message string `json:"message,omitempty"`
}

func (*ResourceStatus) DeepCopy

func (in *ResourceStatus) DeepCopy() *ResourceStatus

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

func (*ResourceStatus) DeepCopyInto

func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus)

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

type ResourceSummary

type ResourceSummary struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ResourceSummarySpec   `json:"spec,omitempty"`
	Status ResourceSummaryStatus `json:"status,omitempty"`
}

ResourceSummary is the Schema for the ResourceSummary API

func (*ResourceSummary) DeepCopy

func (in *ResourceSummary) DeepCopy() *ResourceSummary

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

func (*ResourceSummary) DeepCopyInto

func (in *ResourceSummary) DeepCopyInto(out *ResourceSummary)

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

func (*ResourceSummary) DeepCopyObject

func (in *ResourceSummary) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceSummaryList

type ResourceSummaryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ResourceSummary `json:"items"`
}

ResourceSummaryList contains a list of ResourceSummary

func (*ResourceSummaryList) DeepCopy

func (in *ResourceSummaryList) DeepCopy() *ResourceSummaryList

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

func (*ResourceSummaryList) DeepCopyInto

func (in *ResourceSummaryList) DeepCopyInto(out *ResourceSummaryList)

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

func (*ResourceSummaryList) DeepCopyObject

func (in *ResourceSummaryList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceSummaryResource added in v1.0.0

type ResourceSummaryResource struct {
	// Name of the resource deployed in the Cluster.
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`

	// Namespace of the resource deployed in the Cluster.
	// Empty for resources scoped at cluster level.
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// Group of the resource deployed in the Cluster.
	Group string `json:"group"`

	// Kind of the resource deployed in the Cluster.
	// +kubebuilder:validation:MinLength=1
	Kind string `json:"kind"`

	// Version of the resource deployed in the Cluster.
	Version string `json:"version"`

	// IgnoreForConfigurationDrift indicates to not track resource
	// for configuration drift detection.
	// +kubebuilder:default:=false
	IgnoreForConfigurationDrift bool `json:"ignoreForConfigurationDrift"`
}

func (*ResourceSummaryResource) DeepCopy added in v1.0.0

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

func (*ResourceSummaryResource) DeepCopyInto added in v1.0.0

func (in *ResourceSummaryResource) DeepCopyInto(out *ResourceSummaryResource)

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

type ResourceSummarySpec

type ResourceSummarySpec struct {
	// Resources deployed by ClusterSummary because of referenced ConfigMaps/Secrets
	// +optional
	Resources []Resource `json:"resources,omitempty"`

	// KustomizeResources deployed by ClusterSummary because of referenced
	// KustomizationRef
	// +optional
	KustomizeResources []Resource `json:"kustomizeResources,omitempty"`

	// Resources deployed by ClusterSummary because of referenced Helm charts
	// +optional
	ChartResources []HelmResources `json:"chartResources,omitempty"`

	// Defines additional inline patches specifically designed to exclude certain fields from
	// configuration drift evaluation.
	// +optional
	Patches []Patch `json:"patches,omitempty"`
}

ResourceSummarySpec defines the desired state of ResourceSummary

func (*ResourceSummarySpec) DeepCopy

func (in *ResourceSummarySpec) DeepCopy() *ResourceSummarySpec

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

func (*ResourceSummarySpec) DeepCopyInto

func (in *ResourceSummarySpec) DeepCopyInto(out *ResourceSummarySpec)

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

type ResourceSummaryStatus

type ResourceSummaryStatus struct {
	// Resources changed.
	// +optional
	ResourcesChanged bool `json:"resourcesChanged,omitempty"`

	// KustomizeResources changed.
	// +optional
	KustomizeResourcesChanged bool `json:"kustomizeResourcesChanged,omitempty"`

	// Helm Resources changed.
	// +optional
	HelmResourcesChanged bool `json:"helmResourcesChanged,omitempty"`

	// DriftedHelmCharts lists the Helm releases that had at least one deployed resource
	// change out of band since this status was last consumed. Set alongside HelmResourcesChanged,
	// scoped to only the charts actually affected (as opposed to HelmResourcesChanged, which
	// only says some Helm-deployed resource changed, without saying which chart). The consumer
	// is expected to clear this list after acting on it, the same way it resets HelmResourcesChanged.
	// +optional
	DriftedHelmCharts []HelmChartRef `json:"driftedHelmCharts,omitempty"`

	// ResourceHashes specifies a list of resource plus hash
	ResourceHashes []ResourceHash `json:"resourceHashes,omitempty"`

	// KustomizeResourceHashes specifies a list of resource plus hash
	KustomizeResourceHashes []ResourceHash `json:"kustomizeResourceHashes,omitempty"`

	// HelmResourceHashes specifies list of resource plus hash.
	HelmResourceHashes []ResourceHash `json:"helmResourceHashes,omitempty"`
}

ResourceSummaryStatus defines the status of ResourceSummary

func (*ResourceSummaryStatus) DeepCopy

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

func (*ResourceSummaryStatus) DeepCopyInto

func (in *ResourceSummaryStatus) DeepCopyInto(out *ResourceSummaryStatus)

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

type RoleRequest

type RoleRequest struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   RoleRequestSpec   `json:"spec,omitempty"`
	Status RoleRequestStatus `json:"status,omitempty"`
}

RoleRequest is the Schema for the rolerequest API

func (*RoleRequest) DeepCopy

func (in *RoleRequest) DeepCopy() *RoleRequest

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

func (*RoleRequest) DeepCopyInto

func (in *RoleRequest) DeepCopyInto(out *RoleRequest)

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

func (*RoleRequest) DeepCopyObject

func (in *RoleRequest) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RoleRequestList

type RoleRequestList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []RoleRequest `json:"items"`
}

RoleRequestList contains a list of RoleRequest

func (*RoleRequestList) DeepCopy

func (in *RoleRequestList) DeepCopy() *RoleRequestList

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

func (*RoleRequestList) DeepCopyInto

func (in *RoleRequestList) DeepCopyInto(out *RoleRequestList)

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

func (*RoleRequestList) DeepCopyObject

func (in *RoleRequestList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RoleRequestSpec

type RoleRequestSpec struct {
	// Selector identifies clusters to associate to.
	// +optional
	ClusterSelector Selector `json:"clusterSelector,omitempty"`

	// RoleRefs references all the Secret/ConfigMaps containing kubernetes
	// Roles/ClusterRoles that need to be deployed in the matching clusters.
	// +optional
	RoleRefs []PolicyRef `json:"roleRefs,omitempty"`

	// ExpirationSeconds is the requested duration of validity of the TokenRequest
	// associated to ServiceAccount. If not specified, default value is used
	// +optional
	ExpirationSeconds *int64 `json:"expirationSeconds,omitempty"`

	// ServiceAccountName is the name of the ServiceAccount representing a tenant admin for which
	// those permissions are requested
	ServiceAccountName string `json:"serviceAccountName"`

	// ServiceAccountNamespace is the name of the ServiceAccount representing a tenant admin
	// for which those permissions are requested
	ServiceAccountNamespace string `json:"serviceAccountNamespace"`
}

RoleRequestSpec defines the desired state of RoleRequest

func (*RoleRequestSpec) DeepCopy

func (in *RoleRequestSpec) DeepCopy() *RoleRequestSpec

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

func (*RoleRequestSpec) DeepCopyInto

func (in *RoleRequestSpec) DeepCopyInto(out *RoleRequestSpec)

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

type RoleRequestStatus

type RoleRequestStatus struct {
	// MatchingClusterRefs reference all the cluster currently matching
	// RoleRequest ClusterSelector
	MatchingClusterRefs []corev1.ObjectReference `json:"matchingClusters,omitempty"`

	// ClusterInfo represents the hash of the ClusterRoles/Roles deployed in
	// a matching cluster for the admin.
	// +optional
	ClusterInfo []ClusterInfo `json:"clusterInfo,omitempty"`

	// FailureMessage provides more information if an error occurs.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`
}

RoleRequestStatus defines the status of RoleRequest

func (*RoleRequestStatus) DeepCopy

func (in *RoleRequestStatus) DeepCopy() *RoleRequestStatus

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

func (*RoleRequestStatus) DeepCopyInto

func (in *RoleRequestStatus) DeepCopyInto(out *RoleRequestStatus)

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

type SchedulingConfig added in v0.45.0

type SchedulingConfig struct {
	// Schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
	Schedule string `json:"schedule"`

	// Optional deadline in seconds for starting the job if it misses scheduled
	// time for any reason.  Missed jobs executions will be counted as failed ones.
	// +optional
	StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"`
}

func (*SchedulingConfig) DeepCopy added in v0.45.0

func (in *SchedulingConfig) DeepCopy() *SchedulingConfig

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

func (*SchedulingConfig) DeepCopyInto added in v0.45.0

func (in *SchedulingConfig) DeepCopyInto(out *SchedulingConfig)

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

type Selector

type Selector struct {
	metav1.LabelSelector `json:",inline"`
}

func (*Selector) DeepCopy

func (in *Selector) DeepCopy() *Selector

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

func (*Selector) DeepCopyInto

func (in *Selector) DeepCopyInto(out *Selector)

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

func (*Selector) ToSelector

func (cs *Selector) ToSelector() (labels.Selector, error)

ToSelector converts ClusterSelector to labels.Selector

type Set

type Set struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   Spec   `json:"spec,omitempty"`
	Status Status `json:"status,omitempty"`
}

Set is the Schema for the sets API

func (*Set) DeepCopy

func (in *Set) DeepCopy() *Set

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

func (*Set) DeepCopyInto

func (in *Set) DeepCopyInto(out *Set)

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

func (*Set) DeepCopyObject

func (in *Set) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SetList

type SetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Set `json:"items"`
}

SetList contains a list of Set

func (*SetList) DeepCopy

func (in *SetList) DeepCopy() *SetList

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

func (*SetList) DeepCopyInto

func (in *SetList) DeepCopyInto(out *SetList)

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

func (*SetList) DeepCopyObject

func (in *SetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SourceStatus added in v1.0.0

type SourceStatus string

SourceStatus defines the lifecycle status of a source resource. +kubebuilder:validation:Enum=Active;Deleted

const (
	// SourceStatusActive indicates the source resource is active.
	SourceStatusActive SourceStatus = "Active"
	// SourceStatusDeleted indicates the source resource has been deleted.
	SourceStatusDeleted SourceStatus = "Deleted"
)

type Spec

type Spec struct {
	// ClusterSelector identifies clusters to associate to
	// +optional
	ClusterSelector Selector `json:"clusterSelector,omitempty"`

	// ClusterRefs identifies clusters to associate to.
	// +optional
	ClusterRefs []corev1.ObjectReference `json:"clusterRefs,omitempty"`

	// MaxReplicas specifies the maximum number of clusters to be selected
	// from the pool matching the clusterSelector.
	MaxReplicas int `json:"maxReplicas,omitempty"`
}

func (*Spec) DeepCopy

func (in *Spec) DeepCopy() *Spec

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

func (*Spec) DeepCopyInto

func (in *Spec) DeepCopyInto(out *Spec)

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

type Status

type Status struct {
	// MatchingClusterRefs reference all the clusters currently matching
	// ClusterSet/Set ClusterSelector
	MatchingClusterRefs []corev1.ObjectReference `json:"matchingClusterRefs,omitempty"`

	// SelectedClusters reference all the cluster currently selected among
	// all the ones matching
	SelectedClusterRefs []corev1.ObjectReference `json:"selectedClusterRefs,omitempty"`
}

Status defines the observed state of ClusterSet/Set

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

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

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

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

type SveltosCluster

type SveltosCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SveltosClusterSpec   `json:"spec,omitempty"`
	Status SveltosClusterStatus `json:"status,omitempty"`
}

SveltosCluster is the Schema for the SveltosCluster API

func (*SveltosCluster) DeepCopy

func (in *SveltosCluster) DeepCopy() *SveltosCluster

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

func (*SveltosCluster) DeepCopyInto

func (in *SveltosCluster) DeepCopyInto(out *SveltosCluster)

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

func (*SveltosCluster) DeepCopyObject

func (in *SveltosCluster) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SveltosClusterList

type SveltosClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SveltosCluster `json:"items"`
}

SveltosClusterList contains a list of SveltosCluster

func (*SveltosClusterList) DeepCopy

func (in *SveltosClusterList) DeepCopy() *SveltosClusterList

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

func (*SveltosClusterList) DeepCopyInto

func (in *SveltosClusterList) DeepCopyInto(out *SveltosClusterList)

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

func (*SveltosClusterList) DeepCopyObject

func (in *SveltosClusterList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SveltosClusterSpec

type SveltosClusterSpec struct {
	// KubeconfigName allows overriding the default Sveltos convention which expected a valid kubeconfig
	// to be hosted in a secret with the pattern ${sveltosClusterName}-sveltos-kubeconfig.
	//
	// When a value is specified, the referenced Kubernetes Secret object must exist,
	// and will be used to connect to the Kubernetes cluster.
	// +optional
	KubeconfigName string `json:"kubeconfigName,omitempty"`

	// KubeconfigKeyName specifies the key within the Secret that holds the kubeconfig.
	// If not specified, Sveltos will use first key in the Secret.
	// +optional
	KubeconfigKeyName string `json:"kubeconfigKeyName,omitempty"`

	// Paused can be used to prevent controllers from processing the
	// SveltosCluster and all its associated objects.
	// +optional
	Paused bool `json:"paused,omitempty"`

	// TokenRequestRenewalOption contains options describing how to renew TokenRequest
	// +optional
	TokenRequestRenewalOption *TokenRequestRenewalOption `json:"tokenRequestRenewalOption,omitempty"`

	// ArbitraryData allows for arbitrary nested structures
	// +optional
	ArbitraryData map[string]string `json:"data,omitempty"`

	// ActiveWindow is an optional field for automatically pausing and unpausing
	// the cluster.
	// If not specified, the cluster will not be paused or unpaused automatically.
	ActiveWindow *ActiveWindow `json:"activeWindow,omitempty"`

	// ConsecutiveFailureThreshold is the maximum number of consecutive connection
	// failures before setting the problem status in Status.ConnectionStatus
	// +kubebuilder:default:=3
	// +optional
	ConsecutiveFailureThreshold int `json:"consecutiveFailureThreshold,omitempty"`

	// ReadinessChecks is an optional list of custom checks to verify cluster
	// readiness
	// +optional
	ReadinessChecks []ClusterCheck `json:"readinessChecks,omitempty"`

	// LivenessChecks is an optional list of custom checks to verify cluster
	// is healthy
	// +optional
	LivenessChecks []ClusterCheck `json:"livenessChecks,omitempty"`

	// PullMode indicates whether the cluster is in pull mode.
	// If true, the agent in the managed cluster will fetch the configuration.
	// If false (default), the management cluster will push the configuration.
	//+kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
	// +kubebuilder:default:=false
	// +optional
	PullMode bool `json:"pullMode,omitempty"`

	// WorkloadIdentity configures authentication to the managed cluster via the
	// cloud provider's workload identity mechanism. When set, Sveltos does not
	// read a kubeconfig Secret; instead it obtains short-lived credentials from
	// the cloud provider at runtime.
	// Mutually exclusive with KubeconfigName/KubeconfigKeyName.
	// +optional
	WorkloadIdentity *WorkloadIdentityConfig `json:"workloadIdentity,omitempty"`

	// CleanupGracePeriod delays removal of the SveltosCluster finalizer after
	// deletion is requested, keeping the object present (with a non-zero
	// deletionTimestamp) for this long before it is actually removed.
	// This is useful when some cleanup needs to happen while the cluster is
	// still considered registered, for instance running a job that depends
	// on the SveltosCluster still existing.
	// If not specified, the finalizer is removed immediately.
	// +optional
	CleanupGracePeriod *metav1.Duration `json:"cleanupGracePeriod,omitempty"`
}

SveltosClusterSpec defines the desired state of SveltosCluster +kubebuilder:validation:XValidation:rule="!has(self.workloadIdentity) || !has(self.kubeconfigName)",message="workloadIdentity, kubeconfigName: conflict"

func (*SveltosClusterSpec) DeepCopy

func (in *SveltosClusterSpec) DeepCopy() *SveltosClusterSpec

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

func (*SveltosClusterSpec) DeepCopyInto

func (in *SveltosClusterSpec) DeepCopyInto(out *SveltosClusterSpec)

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

type SveltosClusterStatus

type SveltosClusterStatus struct {
	// The Kubernetes version of the cluster.
	// +optional
	Version string `json:"version,omitempty"`

	// Ready is the state of the cluster.
	// +optional
	Ready bool `json:"ready,omitempty"`

	// ConnectionStatus indicates whether connection from the management cluster
	// to the managed cluster is healthy
	// +optional
	ConnectionStatus ConnectionStatus `json:"connectionStatus,omitempty"`

	// FailureMessage is a human consumable message explaining the
	// misconfiguration
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`

	// LastReconciledTokenRequestAt is the last time the TokenRequest
	// was renewed.
	// +optional
	LastReconciledTokenRequestAt string `json:"lastReconciledTokenRequestAt,omitempty"`

	// AgentLastReportTime indicates the last time the Sveltos agent in the managed cluster
	// successfully reported its status to the management cluster's API server.
	// This field is updated exclusively when Sveltos operates in pull mode,
	// serving as a heartbeat from the agent's perspective.
	// +optional
	AgentLastReportTime *metav1.Time `json:"agentLastReportTime,omitempty"`

	// Information when next unpause cluster is scheduled
	// +optional
	NextUnpause *metav1.Time `json:"nextUnpause,omitempty"`

	// Information when next pause cluster is scheduled
	// +optional
	NextPause *metav1.Time `json:"nextPause,omitempty"`

	// ActiveWindowHash is the hash of the SveltosCluster Spec.ActiveWindow.
	// This is used to detect if the ActiveWindow configuration has changed
	// and requires recalculation of NextPause and NextUnpause.
	// +optional
	ActiveWindowHash []byte `json:"activeWindowHash,omitempty"`

	// connectionFailures is the number of consecutive failed attempts to connect
	// to the remote cluster.
	// +kubebuilder:default:=0
	// +optional
	ConnectionFailures int `json:"connectionFailures,omitempty"`
}

SveltosClusterStatus defines the status of SveltosCluster

func (*SveltosClusterStatus) DeepCopy

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

func (*SveltosClusterStatus) DeepCopyInto

func (in *SveltosClusterStatus) DeepCopyInto(out *SveltosClusterStatus)

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

type SveltosFeatureStatus

type SveltosFeatureStatus string

+kubebuilder:validation:Enum:=Provisioning;Provisioned;Failed;FailedNonRetriable;Removing;Removed

type SveltosLicense added in v1.0.0

type SveltosLicense struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Status SveltosLicenseStatus `json:"status,omitempty"`
}

SveltosLicense is the Schema for the clustersets API

func (*SveltosLicense) DeepCopy added in v1.0.0

func (in *SveltosLicense) DeepCopy() *SveltosLicense

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

func (*SveltosLicense) DeepCopyInto added in v1.0.0

func (in *SveltosLicense) DeepCopyInto(out *SveltosLicense)

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

func (*SveltosLicense) DeepCopyObject added in v1.0.0

func (in *SveltosLicense) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SveltosLicenseList added in v1.0.0

type SveltosLicenseList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SveltosLicense `json:"items"`
}

SveltosLicenseList contains a list of SveltosLicense

func (*SveltosLicenseList) DeepCopy added in v1.0.0

func (in *SveltosLicenseList) DeepCopy() *SveltosLicenseList

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

func (*SveltosLicenseList) DeepCopyInto added in v1.0.0

func (in *SveltosLicenseList) DeepCopyInto(out *SveltosLicenseList)

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

func (*SveltosLicenseList) DeepCopyObject added in v1.0.0

func (in *SveltosLicenseList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SveltosLicenseStatus added in v1.0.0

type SveltosLicenseStatus struct {
	// Status indicates the overall state of the license.
	// Possible values:
	// - Valid: License secret found, valid signature, not expired.
	// - Expired: License secret found, valid signature, but expired.
	// - Invalid: License secret found, but signature invalid or data malformed.
	// - NotFound: No license secret found at the specified reference.
	// +kubebuilder:validation:Enum=Valid;Expired;Invalid;NotFound
	Status LicenseStatusType `json:"status,omitempty"`

	// Message provides a human-readable explanation of the current license status.
	Message string `json:"message,omitempty"`

	// ExpirationDate is the exact expiration timestamp from the license payload,
	// if a license was found and successfully parsed. This field will be present
	// even if the license is expired or invalid, as long as the date could be extracted.
	// +kubebuilder:validation:Format=date-time
	ExpirationDate *metav1.Time `json:"expirationDate,omitempty"`

	// Features is a list of feature strings enabled by this license.
	// +optional
	Features []string `json:"features,omitempty"`

	// MaxClusters is the maximum number of clusters allowed for this license.
	// +optional
	MaxClusters *int `json:"maxClusters,omitempty"`
}

SveltosLicenseStatus defines the observed state of SveltosLicense

func (*SveltosLicenseStatus) DeepCopy added in v1.0.0

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

func (*SveltosLicenseStatus) DeepCopyInto added in v1.0.0

func (in *SveltosLicenseStatus) DeepCopyInto(out *SveltosLicenseStatus)

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

type Techsupport added in v0.45.0

type Techsupport struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   TechsupportSpec   `json:"spec,omitempty"`
	Status TechsupportStatus `json:"status,omitempty"`
}

Techsupport is the Schema for the techsupport API

func (*Techsupport) DeepCopy added in v0.45.0

func (in *Techsupport) DeepCopy() *Techsupport

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

func (*Techsupport) DeepCopyInto added in v0.45.0

func (in *Techsupport) DeepCopyInto(out *Techsupport)

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

func (*Techsupport) DeepCopyObject added in v0.45.0

func (in *Techsupport) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TechsupportList added in v0.45.0

type TechsupportList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Techsupport `json:"items"`
}

TechsupportList contains a list of Techsupport instances

func (*TechsupportList) DeepCopy added in v0.45.0

func (in *TechsupportList) DeepCopy() *TechsupportList

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

func (*TechsupportList) DeepCopyInto added in v0.45.0

func (in *TechsupportList) DeepCopyInto(out *TechsupportList)

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

func (*TechsupportList) DeepCopyObject added in v0.45.0

func (in *TechsupportList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TechsupportSpec added in v0.45.0

type TechsupportSpec struct {
	// FromManagement identifies which resources and logs to collect
	// from the management cluster
	// +optional
	FromManagement FromManagement `json:"fromManagement,omitempty"`

	// FromManaged specifies which resources and logs to collect from
	// matching managed cluster.
	// +optional
	FromManaged FromManaged `json:"fromManaged,omitempty"`

	// OnDemand indicates if tech support should be collected immediately.
	// +optional
	OnDemand bool `json:"onDemand,omitempty"`

	// SchedulingConfig defines a schedule options for recurring tech support
	// collections.
	// +optional
	SchedulingConfig *SchedulingConfig `json:"schedulingConfig,omitempty"`

	// Notification is a list of delivery mechanisms.
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	DeliveryMethods []DeliveryMethod `json:"deliveryMethods"`
}

TechsupportSpec defines the desired state of Techsupport

func (*TechsupportSpec) DeepCopy added in v0.45.0

func (in *TechsupportSpec) DeepCopy() *TechsupportSpec

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

func (*TechsupportSpec) DeepCopyInto added in v0.45.0

func (in *TechsupportSpec) DeepCopyInto(out *TechsupportSpec)

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

type TechsupportStatus added in v0.45.0

type TechsupportStatus struct {
	// Information when next techsupport is scheduled
	// +optional
	NextScheduleTime *metav1.Time `json:"nextScheduleTime,omitempty"`

	// Information when was the last time a techsupport was successfully scheduled.
	// +optional
	LastRunTime *metav1.Time `json:"lastRunTime,omitempty"`

	// Status indicates what happened to last techsupport collection.
	LastRunStatus *CollectionStatus `json:"lastRunStatus,omitempty"`

	// FailureMessage provides more information about the error, if
	// any occurred
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`

	// Hash represents of a unique value for techsupport Spec at a fixed point in
	// time
	// +optional
	Hash []byte `json:"hash,omitempty"`
}

TechsupportStatus defines the observed state of Techsupport

func (*TechsupportStatus) DeepCopy added in v0.45.0

func (in *TechsupportStatus) DeepCopy() *TechsupportStatus

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

func (*TechsupportStatus) DeepCopyInto added in v0.45.0

func (in *TechsupportStatus) DeepCopyInto(out *TechsupportStatus)

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

type TokenRequestRenewalOption

type TokenRequestRenewalOption struct {
	// RenewTokenRequestInterval is the interval at which to renew the TokenRequest
	RenewTokenRequestInterval metav1.Duration `json:"renewTokenRequestInterval"`

	// TokenDuration is the duration the requested token will be valid for.
	// If not specified, the value of RenewTokenRequestInterval will be used.
	// This allows the token to remain valid beyond the renewal interval,
	// providing a buffer in case of connectivity loss.
	// Example: renew every hour, token lasts 3 hours (buffer for disconnection)
	//   renewTokenRequestInterval: 1h
	//   tokenDuration: 3h
	// +optional
	TokenDuration metav1.Duration `json:"tokenDuration,omitempty"`

	// SANamespace is the namespace of the ServiceAccount to renew the token for.
	// For clusters in push mode, this ServiceAccount must exist in the managed cluster,
	// and if not specified, sveltos will try to deduce it from the current kubeconfig.
	// For clusters in pull mode, this ServiceAccount must exist in the management cluster
	// (sveltosctl creates it there when registering the cluster).
	// +optional
	SANamespace string `json:"saNamespace,omitempty"`

	// SAName is name of the ServiceAccount to renew the token for.
	// For clusters in push mode, this ServiceAccount must exist in the managed cluster,
	// and if not specified, sveltos will try to deduce it from the current kubeconfig.
	// For clusters in pull mode, this ServiceAccount must exist in the management cluster
	// (sveltosctl creates it there when registering the cluster).
	// +optional
	SAName string `json:"saName,omitempty"`

	// KubeconfigKeyName is the name of the key in the Secret where the renewed
	// kubeconfig will be stored.
	// If nil, Sveltos defaults to "re-kubeconfig" and updates SveltosCluster.Spec.KubeconfigKeyName.
	// If set, Sveltos writes to this key. To prevent GitOps drift, set this to the
	// same value as SveltosCluster.Spec.KubeconfigKeyName.
	// +optional
	KubeconfigKeyName *string `json:"kubeconfigKeyName,omitempty"`
}

func (*TokenRequestRenewalOption) DeepCopy

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

func (*TokenRequestRenewalOption) DeepCopyInto

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

type UnManagedLabel

type UnManagedLabel struct {
	// Key represents a label Classifier would like to manage
	// but cannot because currently managed by different instance
	Key string `json:"key"`

	// FailureMessage is a human consumable message explaining the
	// misconfiguration
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`
}

func (*UnManagedLabel) DeepCopy

func (in *UnManagedLabel) DeepCopy() *UnManagedLabel

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

func (*UnManagedLabel) DeepCopyInto

func (in *UnManagedLabel) DeepCopyInto(out *UnManagedLabel)

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

type UpdatePhase added in v1.0.0

type UpdatePhase string

+kubebuilder:validation:Enum:=Ready;Preparing

type ValidateHealth added in v1.0.0

type ValidateHealth struct {
	// Name is the name of this check
	Name string `json:"name"`

	// FeatureID is an identifier of the feature (Helm/Kustomize/Resources)
	// This field indicates when to run this check.
	// For instance:
	// - if set to Helm this check will be run after all helm
	// charts specified in the ClusterProfile are deployed.
	// - if set to Resources this check will be run after the content
	// of all the ConfigMaps/Secrets referenced by ClusterProfile in the
	// PolicyRef sections is deployed
	FeatureID FeatureID `json:"featureID"`

	// Group of the resource to fetch in the managed Cluster.
	// Required when Kind is set. Leave empty for metric-only checks.
	// +optional
	Group string `json:"group,omitempty"`

	// Version of the resource to fetch in the managed Cluster.
	// Required when Kind is set. Leave empty for metric-only checks.
	// +optional
	Version string `json:"version,omitempty"`

	// Kind of the resource to fetch in the managed Cluster.
	// Leave empty for metric-only checks.
	// +optional
	Kind string `json:"kind,omitempty"`

	// LabelFilters allows to filter resources based on current labels.
	// +optional
	LabelFilters []LabelFilter `json:"labelFilters,omitempty"`

	// Namespace of the resource to fetch in the managed Cluster.
	// Empty for resources scoped at cluster level.
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// MetricSource identifies the Prometheus-compatible endpoint to query.
	// Required when MetricQueries is set.
	// +optional
	MetricSource *MetricSource `json:"metricSource,omitempty"`

	// MetricQueries lists the PromQL instant queries to execute against
	// MetricSource. Results are injected into the evaluation script as a
	// "metrics" map keyed by each query's Name field, value is the scalar
	// float result. Scripts access results via metrics["<name>"].
	// +optional
	MetricQueries []MetricQuery `json:"metricQueries,omitempty"`

	// Script is a text containing a lua script.
	// Must return struct with field "health"
	// representing whether object is a match (true or false)
	// +optional
	Script string `json:"script,omitempty"`

	// EvaluateCEL contains a list of named CEL (Common Expression Language) rules.
	// Each rule will be evaluated in order against each object selected based on
	// the criteria defined above. Each rule's expression must return a boolean value
	// indicating whether the object is a match.
	//
	// Evaluation stops at the first rule that returns true; subsequent
	// rules will not be evaluated.
	//
	// +optional
	EvaluateCEL []CELRule `json:"evaluateCEL,omitempty"`

	// JobCheck runs a Job in the managed cluster and uses its Complete/Failed
	// outcome as the check result. Mutually exclusive with Script and EvaluateCEL.
	// +optional
	JobCheck *JobHealthCheck `json:"jobCheck,omitempty"`
}

+kubebuilder:validation:XValidation:rule="!has(self.jobCheck) || (!has(self.script) && !has(self.evaluateCEL))",message="jobCheck cannot be set together with script or evaluateCEL"

func (*ValidateHealth) DeepCopy added in v1.0.0

func (in *ValidateHealth) DeepCopy() *ValidateHealth

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

func (*ValidateHealth) DeepCopyInto added in v1.0.0

func (in *ValidateHealth) DeepCopyInto(out *ValidateHealth)

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

type WorkloadIdentityConfig added in v1.12.0

type WorkloadIdentityConfig struct {
	// Provider is the cloud provider, or generic OIDC IdP, implementing the workload
	// identity mechanism.
	// +kubebuilder:validation:Required
	Provider WorkloadIdentityProvider `json:"provider"`

	// Endpoint is the API server endpoint of the managed cluster (e.g. https://…).
	// +kubebuilder:validation:MinLength=1
	Endpoint string `json:"endpoint"`

	// CASecretRef references a Secret in the management cluster containing the
	// CA certificate of the managed cluster's API server under the key "ca.crt".
	// If not set, the system certificate pool is used.
	// +optional
	CASecretRef *corev1.LocalObjectReference `json:"caSecretRef,omitempty"`

	// AWS contains configuration specific to AWS IRSA / EKS Pod Identity.
	// Required when Provider is AWS.
	// +optional
	AWS *AWSWorkloadIdentityConfig `json:"aws,omitempty"`

	// GCP contains configuration specific to GCP Workload Identity Federation.
	// Required when Provider is GCP.
	// +optional
	GCP *GCPWorkloadIdentityConfig `json:"gcp,omitempty"`

	// Azure contains configuration specific to Azure Workload Identity.
	// Required when Provider is Azure.
	// +optional
	Azure *AzureWorkloadIdentityConfig `json:"azure,omitempty"`

	// OIDC contains configuration for a generic OIDC client credentials grant.
	// Required when Provider is OIDC.
	// +optional
	OIDC *OIDCWorkloadIdentityConfig `json:"oidc,omitempty"`
}

WorkloadIdentityConfig specifies how Sveltos authenticates to the managed cluster using the cloud provider's workload identity mechanism, or a generic OIDC client credentials grant, instead of a static kubeconfig Secret. +kubebuilder:validation:XValidation:rule="(self.provider == 'AWS') == has(self.aws)",message="aws must be set if and only if provider is AWS" +kubebuilder:validation:XValidation:rule="(self.provider == 'GCP') == has(self.gcp)",message="gcp must be set if and only if provider is GCP" +kubebuilder:validation:XValidation:rule="(self.provider == 'Azure') == has(self.azure)",message="azure must be set if and only if provider is Azure" +kubebuilder:validation:XValidation:rule="(self.provider == 'OIDC') == has(self.oidc)",message="oidc must be set if and only if provider is OIDC"

func (*WorkloadIdentityConfig) DeepCopy added in v1.12.0

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

func (*WorkloadIdentityConfig) DeepCopyInto added in v1.12.0

func (in *WorkloadIdentityConfig) DeepCopyInto(out *WorkloadIdentityConfig)

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

type WorkloadIdentityProvider added in v1.12.0

type WorkloadIdentityProvider string

WorkloadIdentityProvider identifies the cloud provider, or generic OIDC IdP, for workload identity. +kubebuilder:validation:Enum=AWS;GCP;Azure;OIDC

const (
	WorkloadIdentityProviderAWS   WorkloadIdentityProvider = "AWS"
	WorkloadIdentityProviderGCP   WorkloadIdentityProvider = "GCP"
	WorkloadIdentityProviderAzure WorkloadIdentityProvider = "Azure"
	WorkloadIdentityProviderOIDC  WorkloadIdentityProvider = "OIDC"
)

Jump to

Keyboard shortcuts

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