Skip to content

Commit

Permalink
Feat: Add node selector to instance overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
vimystic committed Nov 27, 2024
1 parent a27cdfd commit 9eb599b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/v1/cosmosfullnode_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,11 @@ type InstanceOverridesSpec struct {
// Sets an individual instance's external address.
// +optional
ExternalAddress *string `json:"externalAddress"`

// NodeSelector is a selector which must be true for the pod to fit on a node.
// Selector which must match a node's labels for the pod to be scheduled on that node.
// +optional
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
}

type DisableStrategy string
Expand Down
7 changes: 7 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,13 @@ spec:
image:
description: Overrides an individual instance's Image.
type: string
nodeSelector:
additionalProperties:
type: string
description: |-
NodeSelector is a selector which must be true for the pod to fit on a node.
Selector which must match a node's labels for the pod to be scheduled on that node.
type: object
volumeClaimTemplate:
description: Overrides an individual instance's PVC.
properties:
Expand Down

0 comments on commit 9eb599b

Please sign in to comment.