Skip to content

Commit

Permalink
fix: Fix tests & update generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyshevch committed Mar 23, 2024
1 parent f313cd9 commit f8f0a6d
Show file tree
Hide file tree
Showing 5 changed files with 1,641 additions and 18 deletions.
14 changes: 0 additions & 14 deletions api/v1alpha1/etcdcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package v1alpha1
import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/utils/ptr"
)

// EtcdClusterSpec defines the desired state of EtcdCluster
Expand Down Expand Up @@ -65,19 +64,6 @@ type EtcdCluster struct {
Status EtcdClusterStatus `json:"status,omitempty"`
}

func (e *EtcdCluster) AsOwner() []metav1.OwnerReference {
return []metav1.OwnerReference{
{
APIVersion: e.APIVersion,
Kind: e.Kind,
Name: e.Name,
UID: e.UID,
Controller: ptr.To(true),
BlockOwnerDeletion: ptr.To(true),
},
}
}

// +kubebuilder:object:root=true

// EtcdClusterList contains a list of EtcdCluster
Expand Down
82 changes: 82 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

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

Loading

0 comments on commit f8f0a6d

Please sign in to comment.