-
Notifications
You must be signed in to change notification settings - Fork 605
CORENET-6714: Enable Network Observability on Day 0 #2752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this | ||
| name: "Network" | ||
| crdName: networks.config.openshift.io | ||
| featureGates: | ||
| - NetworkObservabilityInstall | ||
| tests: | ||
| onCreate: | ||
| - name: Should be able to set NetworkObservability with empty string (default) | ||
| initial: | | ||
| apiVersion: config.openshift.io/v1 | ||
| kind: Network | ||
| spec: | ||
| networkObservability: | ||
| installationPolicy: "" | ||
| expected: | | ||
| apiVersion: config.openshift.io/v1 | ||
| kind: Network | ||
| spec: | ||
| networkObservability: | ||
| installationPolicy: "" | ||
| - name: Should be able to set NetworkObservability InstallAndEnable | ||
| initial: | | ||
| apiVersion: config.openshift.io/v1 | ||
| kind: Network | ||
| spec: | ||
| networkObservability: | ||
| installationPolicy: InstallAndEnable | ||
| expected: | | ||
| apiVersion: config.openshift.io/v1 | ||
| kind: Network | ||
| spec: | ||
| networkObservability: | ||
| installationPolicy: InstallAndEnable | ||
| - name: Should be able to set NetworkObservability DoNotInstall | ||
| initial: | | ||
| apiVersion: config.openshift.io/v1 | ||
| kind: Network | ||
| spec: | ||
| networkObservability: | ||
| installationPolicy: DoNotInstall | ||
| expected: | | ||
| apiVersion: config.openshift.io/v1 | ||
| kind: Network | ||
| spec: | ||
| networkObservability: | ||
| installationPolicy: DoNotInstall |
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
From a comment on the EP, it sounded like once this is set to
InstallAndEnablesetting it toDoNotInstallwill do nothing.Would it make sense to make this field immutable to prevent a false sense of being able to modify this behavior?
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.
No, this is how it behaves. I believe this is what you're referring to.
The setting could be:
or this:
or the configuration could not exist at all, which implies the first setting (i.e. enable by default).
Let's say you have the first setting. When OpenShift installs, it enables Network Observability. Now the user changes the configuration to
installationPolicy: DoNotInstallin the Network CR. What will it do? The answer is it will do nothing. It will not remove Network Observability.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.
Yes, that is what I am referring to.
If modifying the value does nothing, why should I be able to modify it after it has been set?