Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Add support for defining Tolerations in the ClusterSpec #222

Merged
merged 1 commit into from
Sep 18, 2018

Conversation

KashifSaadat
Copy link

Fixes: #214

Support adding tolerations to the Cluster Spec, for example:

apiVersion: mysql.oracle.com/v1alpha1
kind: Cluster
metadata:
  name: test-mysql-db
spec:
  multiMaster: true
  members: 3
  tolerations:
  - key: "key"
    operator: "Equal"
    value: "value"
    effect: "NoSchedule"
  ...

Signed-off-by: Kashif Saadat <kashifsaadat@gmail.com>
@KashifSaadat
Copy link
Author

Similar to PR #218, the review comments will still apply here also.

@@ -66,6 +66,9 @@ type ClusterSpec struct {
SSLSecret *corev1.LocalObjectReference `json:"sslSecret,omitempty"`
// SecurityContext holds pod-level security attributes and common container settings.
SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"`
// Tolerations allows specifying a list of tolerations for controlling which
// set of nodes a pod can be scheduled on
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit (not worth blocking merge): s/nodes/Nodes/ s/pod/Pod/ and a full-stop.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah sorry! I'll fix it up in a follow-up PR.

@prydie prydie added this to the 0.4.0 milestone Sep 18, 2018
@prydie prydie merged commit 9aa1d88 into oracle:master Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants