v1alpha1

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 11

Documentation

Overview

Package v1 contains API Schema definitions for the apps v1 API group +k8s:deepcopy-gen=package,register +groupName=apps.open-cluster-management.io

Package v1 contains API Schema definitions for the apps v1 API group +k8s:deepcopy-gen=package,register +groupName=apps.open-cluster-management.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: "apps.open-cluster-management.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme adds to the SchemeBuilder.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource.

Types

type PackagePhase

type PackagePhase string

PackagePhase defines the phasing of a Package

const (
	// PackageUnknown means the status of the package is unknown
	PackageUnknown PackagePhase = ""
	// PackageDeployed means this packaged is deployed on the manage cluster
	PackageDeployed PackagePhase = "Deployed"
	// PackageDeployFailed means this package failed to deploy on the manage cluster
	PackageDeployFailed PackagePhase = "Failed"
	// PackagePropagationFailed means this package failed to propagate to the manage cluster
	PackagePropagationFailed PackagePhase = "PropagationFailed"
)

type SubscriptionClusterStatusMap

type SubscriptionClusterStatusMap struct {
	SubscriptionPackageStatus []SubscriptionUnitStatus  `json:"packages,omitempty"`
	SubscriptionStatus        SubscriptionOverallStatus `json:"subscription,omitempty"`
}

SubscriptionClusterStatusMap defines the status of packages in a cluster.

func (*SubscriptionClusterStatusMap) DeepCopy

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

func (*SubscriptionClusterStatusMap) DeepCopyInto

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

type SubscriptionOverallStatus added in v0.13.0

type SubscriptionOverallStatus struct {
	Phase          SubscriptionPhase `json:"phase,omitempty"`
	Message        string            `json:"message,omitempty"`
	LastUpdateTime metav1.Time       `json:"lastUpdateTime,omitempty"`
}

func (*SubscriptionOverallStatus) DeepCopy added in v0.13.0

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

func (*SubscriptionOverallStatus) DeepCopyInto added in v0.13.0

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

type SubscriptionPhase added in v0.13.0

type SubscriptionPhase string

SubscriptionPhase defines the phase of the overall subscription

const (
	// SubscriptionUnknown means the status of the subscription is unknown
	SubscriptionUnknown SubscriptionPhase = ""
	// SubscriptionDeployed means this subscription is deployed on the manage cluster
	SubscriptionDeployed SubscriptionPhase = "Deployed"
	// SubscriptionDeployFailed means this subscription failed to deploy on the manage cluster
	SubscriptionDeployFailed SubscriptionPhase = "Failed"
)

type SubscriptionReport

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

	// ReportType is the name or identifier of the type of report
	ReportType SubscriptionReportType `json:"reportType"`

	// SubscriptionReportSummary provides a summary of results
	// +optional
	Summary SubscriptionReportSummary `json:"summary,omitempty"`

	// SubscriptionReportResult provides result details
	// +optional
	Results []*SubscriptionReportResult `json:"results,omitempty"`

	// Resources is an optional reference to the subscription resources
	// +optional
	Resources []*corev1.ObjectReference `json:"resources,omitempty"`
}

SubscriptionReport is the Schema for the subscriptionreports API

func (*SubscriptionReport) DeepCopy

func (in *SubscriptionReport) DeepCopy() *SubscriptionReport

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

func (*SubscriptionReport) DeepCopyInto

func (in *SubscriptionReport) DeepCopyInto(out *SubscriptionReport)

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

func (*SubscriptionReport) DeepCopyObject

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

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

type SubscriptionReportList

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

SubscriptionReportList contains a list of SubscriptionReport +kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*SubscriptionReportList) DeepCopy

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

func (*SubscriptionReportList) DeepCopyInto

func (in *SubscriptionReportList) DeepCopyInto(out *SubscriptionReportList)

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

func (*SubscriptionReportList) DeepCopyObject

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

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

type SubscriptionReportResult

type SubscriptionReportResult struct {

	// Source is an identifier for the subscription
	// +optional
	Source string `json:"source"`

	// Timestamp indicates the time the result was found
	Timestamp metav1.Timestamp `json:"timestamp,omitempty"`

	// Result indicates the outcome of the subscription deployment
	Result SubscriptionResult `json:"result,omitempty"`
}

SubscriptionReportResult provides the result for an individual subscription

func (*SubscriptionReportResult) DeepCopy

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

func (*SubscriptionReportResult) DeepCopyInto

func (in *SubscriptionReportResult) DeepCopyInto(out *SubscriptionReportResult)

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

type SubscriptionReportSummary

type SubscriptionReportSummary struct {

	// Deployed provides the count of subscriptions that deployed successfully
	// +optional
	Deployed string `json:"deployed"`

	// InProgress provides the count of subscriptions that are in the process of being deployed
	// +optional
	InProgress string `json:"inProgress"`

	// Failed provides the count of subscriptions that failed to deploy
	// +optional
	Failed string `json:"failed"`

	// PropagationFailed provides the count of subscriptions that failed to propagate to a managed cluster
	// +optional
	PropagationFailed string `json:"propagationFailed"`

	// Clusters provides the count of all managed clusters the subscription is deployed to
	// +optional
	Clusters string `json:"clusters"`
}

func (*SubscriptionReportSummary) DeepCopy

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

func (*SubscriptionReportSummary) DeepCopyInto

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

type SubscriptionReportType

type SubscriptionReportType string

SubscriptionReportType has one of the following values:

  • Application: an appsub across all managed clusters
  • Cluster: all appsubs on a managed cluster

+kubebuilder:validation:Enum=Application;Cluster

type SubscriptionResult

type SubscriptionResult string

SubscriptionResult has one of the following values:

  • deployed: the subscription deployed successfully
  • failed: the subscription failed to deploy
  • propagationFailed: the subscription failed to propagate

+kubebuilder:validation:Enum=deployed;failed;propagationFailed

type SubscriptionStatus

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

	// Statuses represents all the resources deployed by the subscription per cluster
	Statuses SubscriptionClusterStatusMap `json:"statuses,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:scope="Namespaced" +kubebuilder:resource:shortName=appsubstatus SubscriptionStatus defines the status of package deployments

func (*SubscriptionStatus) DeepCopy

func (in *SubscriptionStatus) DeepCopy() *SubscriptionStatus

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

func (*SubscriptionStatus) DeepCopyInto

func (in *SubscriptionStatus) DeepCopyInto(out *SubscriptionStatus)

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

func (*SubscriptionStatus) DeepCopyObject

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

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

type SubscriptionStatusList

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

+kubebuilder:object:root=true SubscriptionStatusList contains a list of SubscriptionStatus.

func (*SubscriptionStatusList) DeepCopy

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

func (*SubscriptionStatusList) DeepCopyInto

func (in *SubscriptionStatusList) DeepCopyInto(out *SubscriptionStatusList)

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

func (*SubscriptionStatusList) DeepCopyObject

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

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

type SubscriptionUnitStatus

type SubscriptionUnitStatus struct {
	Name           string       `json:"name,omitempty"`
	APIVersion     string       `json:"apiVersion,omitempty"`
	Kind           string       `json:"kind,omitempty"`
	Namespace      string       `json:"namespace,omitempty"`
	Phase          PackagePhase `json:"phase,omitempty"`
	Message        string       `json:"message,omitempty"`
	LastUpdateTime metav1.Time  `json:"lastUpdateTime"`
}

SubscriptionUnitStatus defines status of a package deployment.

func (*SubscriptionUnitStatus) DeepCopy

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

func (*SubscriptionUnitStatus) DeepCopyInto

func (in *SubscriptionUnitStatus) DeepCopyInto(out *SubscriptionUnitStatus)

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

Jump to

Keyboard shortcuts

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