Skip to content

Commit

Permalink
Merge pull request #40 from harche/singleton
Browse files Browse the repository at this point in the history
Prevent multiple KataConfig CRs
  • Loading branch information
jensfr committed Dec 3, 2020
2 parents 95864b2 + b838f0a commit d78c702
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
Original file line number Diff line number Diff line change
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 d78c702

Please sign in to comment.