Skip to content

Commit 3bc3b32

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
api: add affinity field to SmbCommonConfigPodSettings type
This will allow users & admins to customize pod affinity settings for the local cluster's needs. Signed-off-by: John Mulligan <[email protected]>
1 parent ba7af32 commit 3bc3b32

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api/v1alpha1/smbcommonconfig_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
package v1alpha1
1818

1919
import (
20+
corev1 "k8s.io/api/core/v1"
2021
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2122
)
2223

@@ -54,6 +55,10 @@ type SmbCommonNetworkSpec struct {
5455
type SmbCommonConfigPodSettings struct {
5556
// NodeSelector values will be assigned to a PodSpec's NodeSelector.
5657
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
58+
59+
// Affinity values will be used as defaults for pods created by the
60+
// samba operator.
61+
Affinity *corev1.Affinity `json:"affinity,omitempty"`
5762
}
5863

5964
// SmbCommonConfigStatus defines the observed state of SmbCommonConfig

0 commit comments

Comments
 (0)