Skip to content

improve: mapping from annotation depends on type #2599

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

Closed
wants to merge 96 commits into from

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Nov 20, 2024

compiles

csviri and others added 30 commits November 19, 2024 18:24
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
* feat: move name is directly to dependent resource

- use this name when throwing aggregate exception

Signed-off-by: Attila Mészáros <csviri@gmail.com>

* refactor to use a dedicated interface for setting the name

Signed-off-by: Attila Mészáros <csviri@gmail.com>

* refactor: add default implementation for name() (#2255)

Signed-off-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>

---------

Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Chris Laprun <claprun@redhat.com>
Co-authored-by: Chris Laprun <metacosm@users.noreply.github.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Chris Laprun <claprun@redhat.com>
Co-authored-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
…2308)

Signed-off-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
…ed (#2297)

Signed-off-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
…2321)

Fixes #2311

Overriding getPrimaryResourceType should allow to make things work even
in deeper hierarchies.

Signed-off-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
10000-ki and others added 16 commits November 19, 2024 21:24
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
* imporve diff logging

Signed-off-by: bachmanity1 <bachmanity138@gmail.com>

* compute diff only when actual doesn't match desired

Signed-off-by: bachmanity1 <bachmanity138@gmail.com>

* slight improvements

Signed-off-by: bachmanity1 <bachmanity138@gmail.com>

* increase context size

Signed-off-by: bachmanity1 <bachmanity138@gmail.com>

* fix style

Signed-off-by: bachmanity1 <bachmanity138@gmail.com>

* calculate diff only if debug is enabled

Signed-off-by: bachmanity1 <bachmanity138@gmail.com>

* print actual resources when trace is enabled

Signed-off-by: bachmanity1 <bachmanity138@gmail.com>

* use java-diff-utils

Signed-off-by: bachmanity1 <bachmanity138@gmail.com>

* add unit tests

---------

Signed-off-by: bachmanity1 <bachmanity138@gmail.com>
Signed-off-by: Chris Laprun <claprun@redhat.com>
* feat(build): split ITs by category, parallel CRD generation

Also avoid generating CRDs when not needed by default, summarizes test
results.

* chore(deps): bump actions-setup-minikube to 2.13.0
* feat: default to use vertx client
* chore(ci): reduce tested combinations, only run client tests on baseapi
* fix: increase deletion timeout

---------

Signed-off-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Chris Laprun <claprun@redhat.com>
…resource requirements (#2565)

* refactor: clean up SSABasedGenericKubernetesResourceMatcher

Signed-off-by: David Sondermann <david.sondermann@hivemq.com>

* test: add missing tests for StatefulSet with VolumeClaimTemplates for SSABasedGenericKubernetesResourceMatcher

Signed-off-by: David Sondermann <david.sondermann@hivemq.com>

* fix: Fix infinite resource updates due to canonical format conversion of resource requirements

Signed-off-by: David Sondermann <david.sondermann@hivemq.com>

* test: Add test cases with init containers to ResourceRequirementsSanitizerTest

Signed-off-by: David Sondermann <david.sondermann@hivemq.com>

---------

Signed-off-by: David Sondermann <david.sondermann@hivemq.com>
Signed-off-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Chris Laprun <claprun@redhat.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>

compiles

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
@csviri csviri requested a review from metacosm November 20, 2024 12:52
@openshift-ci openshift-ci bot requested a review from adam-sandor November 20, 2024 12:52
@csviri csviri requested review from xstefank and removed request for adam-sandor November 20, 2024 12:52
@csviri
Copy link
Collaborator Author

csviri commented Nov 20, 2024

If this is merged, I will do a separate PR that improved on the API, namely that SecondaryToPrimary mapper will have a setter for primary type, so it can be set under the hood, so user won't have to do it.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 20, 2024
@openshift-merge-robot
Copy link

PR needs rebase.

Instructions 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-sigs/prow repository.

@xstefank
Copy link
Collaborator

@csviri some rebase went wrong :)

@csviri
Copy link
Collaborator Author

csviri commented Nov 22, 2024

@csviri some rebase went wrong :)

This happens when we reabase new PRs on next, but after the next is rebased again on main. Then only trivial solution is just (squash+) cherry-pick commits on a new branch. Maybe would be good to sync when we do rebases of next on top of main. Ideally if there are no complex PRs targeting next. cc @metacosm

@csviri csviri self-assigned this Nov 22, 2024
@csviri
Copy link
Collaborator Author

csviri commented Nov 22, 2024

replaced by: #2606

@csviri csviri closed this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants