@@ -27,13 +27,16 @@ import (
27
27
// SmbCommonConfigSpec values act as a template for properties of the services
28
28
// that will host shares.
29
29
type SmbCommonConfigSpec struct {
30
- // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
31
- // Important: Run "make" to regenerate code after modifying this file
32
-
33
30
// Network specifies what kind of networking shares associated with
34
31
// this config will use.
35
32
// +kubebuilder:validation:Required
36
33
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"`
37
40
}
38
41
39
42
// SmbCommonNetworkSpec values define networking properties for the services
@@ -46,6 +49,13 @@ type SmbCommonNetworkSpec struct {
46
49
Publish string `json:"publish,omitempty"`
47
50
}
48
51
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
+
49
59
// SmbCommonConfigStatus defines the observed state of SmbCommonConfig
50
60
type SmbCommonConfigStatus struct {
51
61
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
0 commit comments