Skip to content

Commit

Permalink
Prevent multile KataConfig CRs
Browse files Browse the repository at this point in the history
Signed-off-by: Harshal Patil <harpatil@redhat.com>
  • Loading branch information
harche committed Dec 1, 2020
1 parent ca55933 commit b838f0a
Show file tree
Hide file tree
Showing 5 changed files with 375 additions and 220 deletions.
2 changes: 2 additions & 0 deletions api/v1/kataconfig_types.go
Expand Up @@ -26,6 +26,7 @@ type KataConfigSpec struct {
// KataConfigPoolSelector is used to filer the worker nodes
// if not specified, all worker nodes are selected
// +optional
// +nullable
KataConfigPoolSelector *metav1.LabelSelector `json:"kataConfigPoolSelector"`

// +optional
Expand Down Expand Up @@ -68,6 +69,7 @@ type KataConfig struct {
metav1.ObjectMeta `json:"metadata,omitempty"`

// +optional
// +nullable
Spec KataConfigSpec `json:"spec,omitempty"`
Status KataConfigStatus `json:"status,omitempty"`
}
Expand Down

0 comments on commit b838f0a

Please sign in to comment.