Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podSpreadConstraint action configurable #109

Merged
merged 1 commit into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apis/apps/v1alpha1/nebulacluster_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func generateStatefulSet(c NebulaClusterComponentter, cm *corev1.ConfigMap, enab
{
MaxSkew: int32(1),
TopologyKey: label.NodeHostnameLabelKey,
WhenUnsatisfiable: corev1.ScheduleAnyway,
WhenUnsatisfiable: nc.Spec.UnsatisfiableAction,
LabelSelector: label.Label(componentLabel).LabelSelector(),
},
}
Expand Down
4 changes: 4 additions & 0 deletions apis/apps/v1alpha1/nebulacluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ type NebulaClusterSpec struct {
// +optional
SchedulerName string `json:"schedulerName"`

// +kubebuilder:default=DoNotSchedule
// +optional
UnsatisfiableAction corev1.UnsatisfiableConstraintAction `json:"unsatisfiableAction"`

// Flag to enable/disable pv reclaim while the nebula cluster deleted , default false
// +optional
EnablePVReclaim *bool `json:"enablePVReclaim,omitempty"`
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/apps.nebula-graph.io_nebulaclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5549,6 +5549,9 @@ spec:
type: string
type: object
type: array
unsatisfiableAction:
default: DoNotSchedule
type: string
required:
- graphd
- metad
Expand Down