-
Notifications
You must be signed in to change notification settings - Fork 49
Feature flags for calico with CRDs and optionally typha #683
Feature flags for calico with CRDs and optionally typha #683
Conversation
0b8ffa6
to
de5ebed
Compare
/unassign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from this extra type for backend, I am happy
/assign @JoshVanL
/unassign
pkg/apis/cluster/v1alpha1/cluster.go
Outdated
@@ -228,6 +229,12 @@ type ClusterKubernetesControllerManager struct { | |||
FeatureGates map[string]bool `json:"featureGates,omitempty"` | |||
} | |||
|
|||
type ClusterKubernetesCalico struct { | |||
Backend string `json:"backend"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be it's own type
type ClusterKubernetesCalcioBackend string
@@ -71,6 +71,22 @@ func SetDefaults_Cluster(obj *Cluster) { | |||
obj.Kubernetes.Dashboard = &ClusterKubernetesDashboard{} | |||
} | |||
|
|||
if obj.Kubernetes.Calico == nil { | |||
obj.Kubernetes.Calico = &ClusterKubernetesCalico{ | |||
Backend: "etcd", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we define a const
instead?
pkg/tarmak/cluster/cluster.go
Outdated
@@ -589,6 +598,35 @@ func (c *Cluster) validatePrometheusMode() error { | |||
return result | |||
} | |||
|
|||
func (c *Cluster) validateCalico() error { | |||
var result *multierror.Error | |||
backends := []string{"etcd", "kubernetes"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get it from constants
@@ -0,0 +1,179 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you not using the other file and just template out some parts?
# chosen from this range. Changing this value after installation will have | ||
# no effect. This should fall within `--cluster-cidr`. | ||
- name: CALICO_IPV4POOL_CIDR | ||
value: "192.168.0.0/16" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Configure the IP Pool from which Pod IPs will be chosen.
- name: CALICO_IPV4POOL_CIDR
value: "<%= @ipv4_pool_cidr %>"`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once you enable it right now this break cross AZ connectivity
value: "192.168.0.0/16" | ||
# Enable IPIP | ||
- name: CALICO_IPV4POOL_IPIP | ||
value: "Always" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: CALICO_IPV4POOL_IPIP
value: "<%= @ipv4_pool_ipip_mode %>"
a3f3427
to
e6de841
Compare
/unassign |
7af8360
to
34a3ebe
Compare
c1f511d
to
efb40e9
Compare
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Improve Calico backend API types Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: Christian Simon <simon@swine.de>
Correct handling for our addon-manager check Signed-off-by: Christian Simon <simon@swine.de>
Signed-off-by: Christian Simon <simon@swine.de>
Signed-off-by: Christian Simon <simon@swine.de>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
efb40e9
to
bcba5ce
Compare
/unassign |
Thanks this looks good /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoshVanL, simonswine The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
fixes #435
/assign