Skip to content
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

chore(k8s) Use a single scheme for all of k8s #2796

Merged
merged 2 commits into from
Sep 21, 2021

Conversation

lahabana
Copy link
Contributor

Summary

We were modifying the same scheme in many places when configuring the
controllers. This is unecessary and is likely to introduce bugs.
We now use the same scheme for everything and modify it at initialization

Documentation

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Backwards compatibility

  • Add backport-to-stable label if the code is backwards compatible. Otherwise, list breaking changes.

@lahabana lahabana requested a review from a team as a code owner September 20, 2021 13:09
@lahabana
Copy link
Contributor Author

Related to #2764

@lahabana lahabana force-pushed the schemaSimplification branch from 4ee6a30 to ecba9f2 Compare September 20, 2021 13:11
@codecov-commenter
Copy link

codecov-commenter commented Sep 20, 2021

Codecov Report

Merging #2796 (5b4733d) into master (868c71c) will increase coverage by 0.08%.
The diff coverage is 48.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2796      +/-   ##
==========================================
+ Coverage   52.00%   52.09%   +0.08%     
==========================================
  Files         881      882       +1     
  Lines       51341    51320      -21     
==========================================
+ Hits        26700    26734      +34     
+ Misses      22525    22460      -65     
- Partials     2116     2126      +10     
Impacted Files Coverage Δ
pkg/plugins/bootstrap/k8s/plugin.go 2.81% <0.00%> (ø)
pkg/plugins/config/k8s/plugin.go 20.00% <ø> (+3.33%) ⬆️
...ns/runtime/k8s/controllers/configmap_controller.go 10.07% <ø> (+0.22%) ⬆️
...plugins/runtime/k8s/controllers/mesh_controller.go 0.00% <ø> (ø)
...untime/k8s/controllers/mesh_defaults_controller.go 25.00% <ø> (+2.77%) ⬆️
...ns/runtime/k8s/controllers/namespace_controller.go 55.84% <ø> (+4.03%) ⬆️
.../plugins/runtime/k8s/controllers/pod_controller.go 42.64% <ø> (+0.61%) ⬆️
...s/runtime/k8s/controllers/pod_status_controller.go 45.16% <ø> (+2.08%) ⬆️
...gins/runtime/k8s/controllers/service_controller.go 33.33% <ø> (+4.16%) ⬆️
pkg/plugins/secrets/k8s/plugin.go 28.57% <ø> (+11.90%) ⬆️
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 868c71c...5b4733d. Read the comment docs.

Copy link
Contributor

@jpeach jpeach left a comment

Choose a reason for hiding this comment

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

Nice.

@lahabana lahabana force-pushed the schemaSimplification branch from abb924e to 00ba8c6 Compare September 21, 2021 07:23
@lahabana
Copy link
Contributor Author

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Sep 21, 2021

Command update: success

Branch has been successfully updated

lahabana and others added 2 commits September 21, 2021 10:08
We were modifying the same scheme in many places when configuring the
controllers. This is unecessary and is likely to introduce bugs.
We now use the same scheme for everything and modify it at initialization

Signed-off-by: Charly Molter <charly.molter@konghq.com>
Co-authored-by: James Peach <jpeach@apache.org>
Signed-off-by: Charly Molter <charly.molter@konghq.com>
@lahabana lahabana force-pushed the schemaSimplification branch from 3f8f469 to 5b4733d Compare September 21, 2021 08:10
@lahabana lahabana merged commit fdc5f1a into kumahq:master Sep 21, 2021
mergify bot pushed a commit that referenced this pull request Sep 21, 2021
* chore(k8s) Use a single scheme for all of k8s

We were modifying the same scheme in many places when configuring the
controllers. This is unecessary and is likely to introduce bugs.
We now use the same scheme for everything and modify it at initialization

Signed-off-by: Charly Molter <charly.molter@konghq.com>
(cherry picked from commit fdc5f1a)
lahabana added a commit that referenced this pull request Sep 22, 2021
We were modifying the same scheme in many places when configuring the
controllers. This is unecessary and is likely to introduce bugs.
We now use the same scheme for everything and modify it at initialization

Signed-off-by: Charly Molter <charly.molter@konghq.com>
(cherry picked from commit fdc5f1a)

Co-authored-by: Charly Molter <charly.molter@konghq.com>
nikita15p pushed a commit to nikita15p/kuma that referenced this pull request Sep 28, 2021
* chore(k8s) Use a single scheme for all of k8s

We were modifying the same scheme in many places when configuring the
controllers. This is unecessary and is likely to introduce bugs.
We now use the same scheme for everything and modify it at initialization

Signed-off-by: Charly Molter <charly.molter@konghq.com>
nikita15p pushed a commit to nikita15p/kuma that referenced this pull request Sep 28, 2021
* chore(k8s) Use a single scheme for all of k8s

We were modifying the same scheme in many places when configuring the
controllers. This is unecessary and is likely to introduce bugs.
We now use the same scheme for everything and modify it at initialization

Signed-off-by: Charly Molter <charly.molter@konghq.com>
@lahabana lahabana deleted the schemaSimplification branch March 29, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants