OVN: use config file via ConfigMap rather than environment variables#217
OVN: use config file via ConfigMap rather than environment variables#217pecameron wants to merge 1 commit intoopenshift:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: pecameron The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@dcbw This has the changes we talked about. PTAL |
…bles The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
…bles The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
abfafd1 to
7cd3578
Compare
…bles The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
There was a problem hiding this comment.
Same as above, now passed in config file.
There was a problem hiding this comment.
Same comment as above.
There was a problem hiding this comment.
@pecameron for OpenShift this value will always be "openshift-ovn-kubernetes" so I think we can just hardcode it here for the CNO. Upstream of course it needs to be configurable but will default to "ovn-kubernetes".
|
@dcbw made the config file change. The yaml file change will need a change to ovn-config configmap to pass it namespace in. I'll get to that next. |
…bles The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
|
@dcbw added namespace to the ovn-config configmap and and removed OVN_KUBERNETES_NAMESPACE from the daemonsets. PTAL |
There was a problem hiding this comment.
For all the cert variables, let's just remove them from the config for now, since the default is empty anyway. When we figure out what needs to be done for SSL we can add them back.
There was a problem hiding this comment.
Indeed, we should not be putting secrets in configmaps.
The typical solution is to write them on disk via Secrets, and just configure the path to them via config files.
pkg/network/ovn_kubernetes.go
Outdated
There was a problem hiding this comment.
The config file hardcodes the loglevel, so we should be consistent. Either hardcode it in the config and don't bother templating, or template it all the way through and not hardcode it in the config file.
…bles The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
…bles The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
…bles The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
|
/hold |
The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
|
@pecameron: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
Create a new daemonset version that passes the ovn-config configMap into the container as a file. Create the ovnkube-config configMap to create the ovnkube config-file. Modify master and node daemonsets. OVN_DAEMONSET_VERSION 4 This must merge after ovn-kubernetes/ovn-kubernetes#748 which sets up daemonset version 4 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
|
@pecameron: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
The ovn-config configMap can be mounted into the container and values taken from there rather than using the environment variables. The config-file for ovnkube can be passed by a configMap and mounted into the container. This limits the need for environment variables. This change in API results in OVN_DAEMONSET_VERSION 4 Version 3 is still supported. Eliminated v1 and v2 support. The environment variables in V3 are preserved for existing users. See also: openshift/cluster-network-operator#217 SDN-456 https://jira.coreos.com/browse/SDN-456 Signed-off-by: Phil Cameron <pcameron@redhat.com>
Create a new daemonset version that passes the ovn-config configMap
into the container as a file. Modify master and node daemonsets.
Create a ovnkube config file using a configMap.
This must merge after ovn-kubernetes/ovn-kubernetes#748
which sets up daemonset version 4
SDN-456
https://jira.coreos.com/browse/SDN-456
Signed-off-by: Phil Cameron pcameron@redhat.com