Skip to content

Commit c4ea5f7

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
api: add podSettings to SmbCommonConfig
Signed-off-by: John Mulligan <[email protected]>
1 parent 9849624 commit c4ea5f7

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

api/v1alpha1/smbcommonconfig_types.go

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@ import (
2727
// SmbCommonConfigSpec values act as a template for properties of the services
2828
// that will host shares.
2929
type SmbCommonConfigSpec struct {
30-
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
31-
// Important: Run "make" to regenerate code after modifying this file
32-
3330
// Network specifies what kind of networking shares associated with
3431
// this config will use.
3532
// +kubebuilder:validation:Required
3633
Network SmbCommonNetworkSpec `json:"network,omitempty"`
34+
35+
// PodSettings are configuration values that are applied to pods that
36+
// the operator may create in order to host shares. The values specified
37+
// under PodSettings allow admins and users to customize how pods
38+
// are scheduled in a kubernetes cluster.
39+
PodSettings *SmbCommonConfigPodSettings `json:"podSettings,omitempty"`
3740
}
3841

3942
// SmbCommonNetworkSpec values define networking properties for the services
@@ -46,6 +49,13 @@ type SmbCommonNetworkSpec struct {
4649
Publish string `json:"publish,omitempty"`
4750
}
4851

52+
// SmbCommonConfigPodSettings contains values pertaining to the customization
53+
// of pods created by the samba operator.
54+
type SmbCommonConfigPodSettings struct {
55+
// NodeSelector values will be assigned to a PodSpec's NodeSelector.
56+
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
57+
}
58+
4959
// SmbCommonConfigStatus defines the observed state of SmbCommonConfig
5060
type SmbCommonConfigStatus struct {
5161
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster

0 commit comments

Comments
 (0)