-
Notifications
You must be signed in to change notification settings - Fork 30
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
Ensure control plane is deployed immediately when the target namespace is created #65
Conversation
revision := getReferencedRevisionFromNamespace(ns.GetLabels()) | ||
if revision != "" { | ||
return []reconcile.Request{{NamespacedName: types.NamespacedName{Name: revision}}} | ||
requests = append(requests, reconcile.Request{NamespacedName: types.NamespacedName{Name: revision}}) |
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.
does it make sense to use a set instead of raw arrays? Is there any chance to get duplicated entries here? if yes, would that be a problem?
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.
The queue handles duplicates.
…e is created Signed-off-by: Marko Lukša <mluksa@redhat.com>
…ator@main * upstream/main: Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64)
…ator@main * upstream/main: Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64)
…ator@main * upstream/main: Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64)
…ator@main * upstream/main: Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#66) Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64)
…ator@main * upstream/main: Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#66) Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64)
…ator@main * upstream/main: Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#66) Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64)
…ator@main * upstream/main: Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#66) Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64)
* upstream/main: Make lint-watches ignore ValidatingAdmissionPolicy(Binding) (istio-ecosystem#71) Ensure CI highlights failure in lint-watches.sh (istio-ecosystem#70) Update SetDefaultEventuallyTimeout for e2e test (istio-ecosystem#69) Automator: Update dependencies in istio-ecosystem/sail-operator@main (istio-ecosystem#66) Ensure control plane is deployed immediately when the target namespace is created (istio-ecosystem#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (istio-ecosystem#64) Signed-off-by: openshift-service-mesh-bot <> # Conflicts: # bundle/manifests/servicemeshoperator3.clusterserviceversion.yaml
* upstream/main: Make lint-watches ignore ValidatingAdmissionPolicy(Binding) (istio-ecosystem#71) Ensure CI highlights failure in lint-watches.sh (istio-ecosystem#70) Update SetDefaultEventuallyTimeout for e2e test (istio-ecosystem#69) Automator: Update dependencies in istio-ecosystem/sail-operator@main (istio-ecosystem#66) Ensure control plane is deployed immediately when the target namespace is created (istio-ecosystem#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (istio-ecosystem#64) Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
* upstream/main: Refactor (istio-ecosystem#76) Make bundle generation work during merges (istio-ecosystem#73) Wrap errors to provide context (istio-ecosystem#68) Ensure update-istio.sh updates version field in versions.yaml (istio-ecosystem#72) Make lint-watches ignore ValidatingAdmissionPolicy(Binding) (istio-ecosystem#71) Ensure CI highlights failure in lint-watches.sh (istio-ecosystem#70) Update SetDefaultEventuallyTimeout for e2e test (istio-ecosystem#69) Automator: Update dependencies in istio-ecosystem/sail-operator@main (istio-ecosystem#66) Ensure control plane is deployed immediately when the target namespace is created (istio-ecosystem#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (istio-ecosystem#64) Signed-off-by: openshift-service-mesh-bot <null> # Conflicts: # bundle/manifests/servicemeshoperator3.clusterserviceversion.yaml
* upstream/main: Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#67) Refactor (openshift-service-mesh#76) Make bundle generation work during merges (openshift-service-mesh#73) Wrap errors to provide context (openshift-service-mesh#68) Ensure update-istio.sh updates version field in versions.yaml (openshift-service-mesh#72) Make lint-watches ignore ValidatingAdmissionPolicy(Binding) (openshift-service-mesh#71) Ensure CI highlights failure in lint-watches.sh (openshift-service-mesh#70) Update SetDefaultEventuallyTimeout for e2e test (openshift-service-mesh#69) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#66) Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64) # Conflicts: # bundle/manifests/servicemeshoperator3.clusterserviceversion.yaml
* upstream/main: Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#67) Refactor (openshift-service-mesh#76) Make bundle generation work during merges (openshift-service-mesh#73) Wrap errors to provide context (openshift-service-mesh#68) Ensure update-istio.sh updates version field in versions.yaml (openshift-service-mesh#72) Make lint-watches ignore ValidatingAdmissionPolicy(Binding) (openshift-service-mesh#71) Ensure CI highlights failure in lint-watches.sh (openshift-service-mesh#70) Update SetDefaultEventuallyTimeout for e2e test (openshift-service-mesh#69) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#66) Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64) # Conflicts: # bundle/manifests/servicemeshoperator3.clusterserviceversion.yaml
…ator@main (#17) * Use INFO level to log missing namespace in IstioRevision/IstioCNI (#64) Signed-off-by: Marko Lukša <mluksa@redhat.com> * Ensure control plane is deployed immediately when the target namespace is created (#65) Signed-off-by: Marko Lukša <mluksa@redhat.com> * Automator: Update dependencies in istio-ecosystem/sail-operator@main (#66) Signed-off-by: istio-testing <istio-testing-bot@google.com> * Update SetDefaultEventuallyTimeout for e2e test (#69) Signed-off-by: frherrer <frherrer@redhat.com> * Ensure CI highlights failure in lint-watches.sh (#70) Signed-off-by: Marko Lukša <mluksa@redhat.com> * Make lint-watches ignore ValidatingAdmissionPolicy(Binding) (#71) Signed-off-by: Marko Lukša <mluksa@redhat.com> * Ensure update-istio.sh updates version field in versions.yaml (#72) Signed-off-by: Marko Lukša <mluksa@redhat.com> * Wrap errors to provide context (#68) * Wrap errors to provide context Signed-off-by: Marko Lukša <mluksa@redhat.com> * Add called function instead of the caller to error message Signed-off-by: Marko Lukša <mluksa@redhat.com> * Fix lint errors Signed-off-by: Marko Lukša <mluksa@redhat.com> * Fix test Signed-off-by: Marko Lukša <mluksa@redhat.com> --------- Signed-off-by: Marko Lukša <mluksa@redhat.com> * Make bundle generation work during merges (#73) This is required for #14 Signed-off-by: Daniel Grimm <dgrimm@redhat.com> * Refactor (#76) * Merge if statements Signed-off-by: Marko Lukša <mluksa@redhat.com> * Replace multiple ifs with switch Signed-off-by: Marko Lukša <mluksa@redhat.com> --------- Signed-off-by: Marko Lukša <mluksa@redhat.com> * Automator: Update dependencies in istio-ecosystem/sail-operator@main (#67) Signed-off-by: istio-testing <istio-testing-bot@google.com> --------- Signed-off-by: Marko Lukša <mluksa@redhat.com> Signed-off-by: istio-testing <istio-testing-bot@google.com> Signed-off-by: frherrer <frherrer@redhat.com> Signed-off-by: Daniel Grimm <dgrimm@redhat.com> Co-authored-by: Marko Lukša <mluksa@redhat.com> Co-authored-by: Istio Automation <istio-testing-bot@google.com> Co-authored-by: Francisco Herrera <frherrer@redhat.com> Co-authored-by: Daniel Grimm <dgrimm@redhat.com> Co-authored-by: openshift-service-mesh-bot <null>
* upstream/main: Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#67) Refactor (openshift-service-mesh#76) Make bundle generation work during merges (openshift-service-mesh#73) Wrap errors to provide context (openshift-service-mesh#68) Ensure update-istio.sh updates version field in versions.yaml (openshift-service-mesh#72) Make lint-watches ignore ValidatingAdmissionPolicy(Binding) (openshift-service-mesh#71) Ensure CI highlights failure in lint-watches.sh (openshift-service-mesh#70) Update SetDefaultEventuallyTimeout for e2e test (openshift-service-mesh#69) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#66) Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64) # Conflicts: # bundle/manifests/servicemeshoperator3.clusterserviceversion.yaml
…ator@main (#18) * Use INFO level to log missing namespace in IstioRevision/IstioCNI (#64) Signed-off-by: Marko Lukša <mluksa@redhat.com> * Ensure control plane is deployed immediately when the target namespace is created (#65) Signed-off-by: Marko Lukša <mluksa@redhat.com> * Automator: Update dependencies in istio-ecosystem/sail-operator@main (#66) Signed-off-by: istio-testing <istio-testing-bot@google.com> * Update SetDefaultEventuallyTimeout for e2e test (#69) Signed-off-by: frherrer <frherrer@redhat.com> * Ensure CI highlights failure in lint-watches.sh (#70) Signed-off-by: Marko Lukša <mluksa@redhat.com> * Make lint-watches ignore ValidatingAdmissionPolicy(Binding) (#71) Signed-off-by: Marko Lukša <mluksa@redhat.com> * Ensure update-istio.sh updates version field in versions.yaml (#72) Signed-off-by: Marko Lukša <mluksa@redhat.com> * Wrap errors to provide context (#68) * Wrap errors to provide context Signed-off-by: Marko Lukša <mluksa@redhat.com> * Add called function instead of the caller to error message Signed-off-by: Marko Lukša <mluksa@redhat.com> * Fix lint errors Signed-off-by: Marko Lukša <mluksa@redhat.com> * Fix test Signed-off-by: Marko Lukša <mluksa@redhat.com> --------- Signed-off-by: Marko Lukša <mluksa@redhat.com> * Make bundle generation work during merges (#73) This is required for #14 Signed-off-by: Daniel Grimm <dgrimm@redhat.com> * Refactor (#76) * Merge if statements Signed-off-by: Marko Lukša <mluksa@redhat.com> * Replace multiple ifs with switch Signed-off-by: Marko Lukša <mluksa@redhat.com> --------- Signed-off-by: Marko Lukša <mluksa@redhat.com> * Automator: Update dependencies in istio-ecosystem/sail-operator@main (#67) Signed-off-by: istio-testing <istio-testing-bot@google.com> --------- Signed-off-by: Marko Lukša <mluksa@redhat.com> Signed-off-by: istio-testing <istio-testing-bot@google.com> Signed-off-by: frherrer <frherrer@redhat.com> Signed-off-by: Daniel Grimm <dgrimm@redhat.com> Co-authored-by: Marko Lukša <mluksa@redhat.com> Co-authored-by: Istio Automation <istio-testing-bot@google.com> Co-authored-by: Francisco Herrera <frherrer@redhat.com> Co-authored-by: Daniel Grimm <dgrimm@redhat.com> Co-authored-by: openshift-service-mesh-bot <null>
* upstream/main: Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#67) Refactor (openshift-service-mesh#76) Make bundle generation work during merges (openshift-service-mesh#73) Wrap errors to provide context (openshift-service-mesh#68) Ensure update-istio.sh updates version field in versions.yaml (openshift-service-mesh#72) Make lint-watches ignore ValidatingAdmissionPolicy(Binding) (openshift-service-mesh#71) Ensure CI highlights failure in lint-watches.sh (openshift-service-mesh#70) Update SetDefaultEventuallyTimeout for e2e test (openshift-service-mesh#69) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#66) Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64) # Conflicts: # bundle/manifests/servicemeshoperator3.clusterserviceversion.yaml
* upstream/main: Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#67) Refactor (openshift-service-mesh#76) Make bundle generation work during merges (openshift-service-mesh#73) Wrap errors to provide context (openshift-service-mesh#68) Ensure update-istio.sh updates version field in versions.yaml (openshift-service-mesh#72) Make lint-watches ignore ValidatingAdmissionPolicy(Binding) (openshift-service-mesh#71) Ensure CI highlights failure in lint-watches.sh (openshift-service-mesh#70) Update SetDefaultEventuallyTimeout for e2e test (openshift-service-mesh#69) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#66) Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64) # Conflicts: # bundle/manifests/servicemeshoperator3.clusterserviceversion.yaml
* upstream/main: Don't log error when namespace is being deleted (openshift-service-mesh#88) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#89) Introduce a central way to get the project's root directory (openshift-service-mesh#83) Remove duplicates of oneMinuteAgo() (openshift-service-mesh#82) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#81) Deploy CNI DaemonSet immediately when namespace is created (openshift-service-mesh#80) Remove unused fields from BaseConfig (openshift-service-mesh#79) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#77) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#67) Refactor (openshift-service-mesh#76) Make bundle generation work during merges (openshift-service-mesh#73) Wrap errors to provide context (openshift-service-mesh#68) Ensure update-istio.sh updates version field in versions.yaml (openshift-service-mesh#72) Make lint-watches ignore ValidatingAdmissionPolicy(Binding) (openshift-service-mesh#71) Ensure CI highlights failure in lint-watches.sh (openshift-service-mesh#70) Update SetDefaultEventuallyTimeout for e2e test (openshift-service-mesh#69) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#66) Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64) # Conflicts: # bundle/manifests/servicemeshoperator3.clusterserviceversion.yaml
* upstream/main: Don't log error when namespace is being deleted (openshift-service-mesh#88) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#89) Introduce a central way to get the project's root directory (openshift-service-mesh#83) Remove duplicates of oneMinuteAgo() (openshift-service-mesh#82) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#81) Deploy CNI DaemonSet immediately when namespace is created (openshift-service-mesh#80) Remove unused fields from BaseConfig (openshift-service-mesh#79) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#77) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#67) Refactor (openshift-service-mesh#76) Make bundle generation work during merges (openshift-service-mesh#73) Wrap errors to provide context (openshift-service-mesh#68) Ensure update-istio.sh updates version field in versions.yaml (openshift-service-mesh#72) Make lint-watches ignore ValidatingAdmissionPolicy(Binding) (openshift-service-mesh#71) Ensure CI highlights failure in lint-watches.sh (openshift-service-mesh#70) Update SetDefaultEventuallyTimeout for e2e test (openshift-service-mesh#69) Automator: Update dependencies in istio-ecosystem/sail-operator@main (openshift-service-mesh#66) Ensure control plane is deployed immediately when the target namespace is created (openshift-service-mesh#65) Use INFO level to log missing namespace in IstioRevision/IstioCNI (openshift-service-mesh#64) # Conflicts: # bundle/manifests/servicemeshoperator3.clusterserviceversion.yaml
…/none-main-merge_upstream_main-38a843ce Automator: merge upstream changes to openshift-service-mesh/sail-operator@main
No description provided.