Merge pull request #453 from lfbear/issues-450

Change APIEnablement.Resources to an optional field
This commit is contained in:
karmada-bot 2021-06-21 15:55:16 +08:00 committed by GitHub
commit 26b9fcb272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,6 @@ spec:
type: array
required:
- groupVersion
- resources
type: object
type: array
conditions:

View File

@ -139,7 +139,8 @@ type APIEnablement struct {
// GroupVersion is the group and version this APIEnablement is for.
GroupVersion string `json:"groupVersion"`
// Resources contains the name of the resources.
Resources []string `json:"resources"`
// +optional
Resources []string `json:"resources,omitempty"`
}
// NodeSummary represents the summary of nodes status in a specific cluster.