Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions crds/operators.coreos.com_clusterserviceversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,6 @@ spec:
type: string
version:
type: string
cleanup:
description: Cleanup specifies the cleanup behaviour when the CSV gets deleted
type: object
required:
- enabled
properties:
enabled:
type: boolean
customresourcedefinitions:
description: "CustomResourceDefinitions declares all of the CRDs managed or required by an operator being ran by ClusterServiceVersion. \n If the CRD is present in the Owned list, it is implicitly required."
type: object
Expand Down Expand Up @@ -4708,37 +4700,6 @@ spec:
description: Time the owned APIService certs will rotate next
type: string
format: date-time
cleanup:
description: CleanupStatus represents information about the status of cleanup while a CSV is pending deletion
type: object
properties:
pendingDeletion:
description: PendingDeletion is the list of custom resource objects that are pending deletion and blocked on finalizers. This indicates the progress of cleanup that is blocking CSV deletion or operator uninstall.
type: array
items:
description: ResourceList represents a list of resources which are of the same Group/Kind
type: object
required:
- group
- instances
- kind
properties:
group:
type: string
instances:
type: array
items:
type: object
required:
- name
properties:
name:
type: string
namespace:
description: Namespace can be empty for cluster-scoped resources
type: string
kind:
type: string
conditions:
description: List of conditions, a history of state transitions
type: array
Expand Down
16 changes: 8 additions & 8 deletions crds/zz_defs.go

Large diffs are not rendered by default.

32 changes: 0 additions & 32 deletions pkg/operators/v1alpha1/clusterserviceversion_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,6 @@ type ClusterServiceVersionSpec struct {
// +optional
Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"`

// Cleanup specifies the cleanup behaviour when the CSV gets deleted
// +optional
Cleanup CleanupSpec `json:"cleanup,omitempty"`

// The name(s) of one or more CSV(s) that should be skipped in the upgrade graph.
// Should match the `metadata.Name` field of the CSV that should be skipped.
// This field is only used during catalog creation and plays no part in cluster runtime.
Expand All @@ -321,10 +317,6 @@ type ClusterServiceVersionSpec struct {
RelatedImages []RelatedImage `json:"relatedImages,omitempty"`
}

type CleanupSpec struct {
Enabled bool `json:"enabled"`
}

type Maintainer struct {
Name string `json:"name,omitempty"`
Email string `json:"email,omitempty"`
Expand Down Expand Up @@ -521,30 +513,6 @@ type ClusterServiceVersionStatus struct {
// Time the owned APIService certs will rotate next
// +optional
CertsRotateAt *metav1.Time `json:"certsRotateAt,omitempty"`
// CleanupStatus represents information about the status of cleanup while a CSV is pending deletion
// +optional
Cleanup CleanupStatus `json:"cleanup,omitempty"`
}

// CleanupStatus represents information about the status of cleanup while a CSV is pending deletion
type CleanupStatus struct {
// PendingDeletion is the list of custom resource objects that are pending deletion and blocked on finalizers.
// This indicates the progress of cleanup that is blocking CSV deletion or operator uninstall.
// +optional
PendingDeletion []ResourceList `json:"pendingDeletion,omitempty"`
}

// ResourceList represents a list of resources which are of the same Group/Kind
type ResourceList struct {
Group string `json:"group"`
Kind string `json:"kind"`
Instances []ResourceInstance `json:"instances"`
}

type ResourceInstance struct {
Name string `json:"name"`
// Namespace can be empty for cluster-scoped resources
Namespace string `json:"namespace,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
74 changes: 0 additions & 74 deletions pkg/operators/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.