Add resource exists error on spec validate (#1506)
Co-authored-by: Anubhav <50611570+anubhav6663@users.noreply.github.com>
This commit is contained in:
@@ -19,6 +19,7 @@ package v1
|
||||
import (
|
||||
apiv1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
|
||||
//
|
||||
@@ -675,4 +676,11 @@ type (
|
||||
CanaryConfigStatus struct {
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
||||
// MetadataAccessor lets you work with object metadata and type metadata
|
||||
// from any of the versioned or internal API objects.
|
||||
MetadataAccessor interface {
|
||||
GetObjectKind() schema.ObjectKind
|
||||
GetObjectMeta() metav1.Object
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user