Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeploymentStatus ¶ added in v1.1.1
type DeploymentStatus struct {
ProfileName string `json:"profileName" jsonschema:"The name of the Sveltos profile that is failing"`
ProfileKind string `json:"profileKind" jsonschema:"The profile kind (ClusterProfile vs Profile)"`
IsSuccessfull bool `json:"isSuccessful" jsonschema:"Indicates if the profile was deployed without any errors."`
Causes []string `json:"causes,omitempty" jsonschema:"The reasons for the deployment failure"`
}
DeploymentError represents a single deployment failure for a Sveltos profile.
func CheckProfileDeploymentOnCluster ¶
func CheckProfileDeploymentOnCluster(ctx context.Context, url string, clusterRef, profileRef *corev1.ObjectReference, logger logr.Logger) (*DeploymentStatus, error)
type EventPipelineStatus ¶ added in v1.4.0
type EventPipelineStatus struct {
// Stage 1: Detection
ClusterReady bool `json:"clusterReady"`
ClusterPaused bool `json:"clusterPaused"`
ClusterMatched bool `json:"clusterMatched"`
ClusterProvisioned bool `json:"clusterProvisioned"`
EventSourceName string `json:"eventSourceName"`
EventSourceFoundInControlCluster bool `json:"eventSourceFoundInControlCluster"`
EventSourceFoundInManagedCluster bool `json:"eventSourceFoundInManagedCluster"`
EventReportFoundInManagedCluster bool `json:"eventReportFoundInManagedCluster"`
EventReportFoundInControlCluster bool `json:"eventReportFoundInControlCluster"`
ResourcesDetected int `json:"resourcesDetected"`
LastEventReportTime string `json:"lastEventReportTime,omitempty"`
// Stage 2: Result
InstantiatedProfile string `json:"instantiatedProfile,omitempty"`
// Issue Reporting: contains all detected issues
Issues []string `json:"issues,omitempty"`
}
type FailedDeployments ¶ added in v1.1.1
type FailedDeployments struct {
FailedProfiles []DeploymentStatus `json:"failedProfiles" jsonschema:"List of all profiles failing to deploy or whose deployment has failed."`
}
func CheckClusterDeploymentStatuses ¶
func CheckClusterDeploymentStatuses(ctx context.Context, url string, clusterRef *corev1.ObjectReference, logger logr.Logger) (*FailedDeployments, error)
type SveltosInstallationResult ¶
type SveltosInstallationResult struct {
IsCorrectlyInstalled bool `json:"is_correctly_installed"`
Details []string `json:"details,omitempty"`
}
SveltosInstallationResult reports the outcome of the Sveltos installation verification.
func CheckInstallation ¶
Click to show internal directories.
Click to hide internal directories.