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

[ST] Remove usage of examples from our template classes and add namespaceName parameter #10418

Merged
merged 7 commits into from
Aug 16, 2024

Conversation

im-konge
Copy link
Member

@im-konge im-konge commented Aug 5, 2024

Type of change

  • Enhancement

Description

In this PR I'm removing the usage of examples (from packaging/examples) from all of our *Templates classes.
The examples caused us a few issues, especially in upgrade/downgrade scenario where we had to handle which files we should use, for NodePools we had to get the examples from the multi resource YAML file and then edit them.
However, I found out that in most of the cases, we actually replaced almost whole resource in the template classes, keeping just few fields of the configuration from the example files.

Additionally, I wanted to refactor the classes a bit and add namespaceName parameter as a first parameter of each of the method, which removes the need of special specification in the .editMetadata.withNamespace().endMetadata config block in most of the tests. This is also prerequisite for removal of setNamespace() method in ResourceManager, which can cause issues when we don't know what Namespace was actually set for the resource.

Checklist

  • Make sure all tests pass

@im-konge im-konge changed the title Remove usage of examples from our template classes and add namespaceName parameter [ST] Remove usage of examples from our template classes and add namespaceName parameter Aug 5, 2024
@im-konge
Copy link
Member Author

im-konge commented Aug 5, 2024

/packit test --labels regression

@im-konge
Copy link
Member Author

im-konge commented Aug 5, 2024

/packit test --labels upgrade

@im-konge
Copy link
Member Author

im-konge commented Aug 6, 2024

/packit test --labels regression

2 similar comments
@im-konge
Copy link
Member Author

im-konge commented Aug 6, 2024

/packit test --labels regression

@im-konge
Copy link
Member Author

im-konge commented Aug 7, 2024

/packit test --labels regression

@im-konge
Copy link
Member Author

im-konge commented Aug 7, 2024

/azp run feature-gates-regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge
Copy link
Member Author

im-konge commented Aug 7, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge
Copy link
Member Author

im-konge commented Aug 8, 2024

/packit test --labels regression

@im-konge
Copy link
Member Author

im-konge commented Aug 8, 2024

/azp run feature-gates-regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge
Copy link
Member Author

im-konge commented Aug 8, 2024

/packit test --labels regression

@im-konge
Copy link
Member Author

im-konge commented Aug 8, 2024

/azp run feature-gates-regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge
Copy link
Member Author

im-konge commented Aug 9, 2024

/azp run regression

@im-konge
Copy link
Member Author

im-konge commented Aug 9, 2024

/azp run upgrade

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge im-konge self-assigned this Aug 9, 2024
@im-konge im-konge marked this pull request as ready for review August 9, 2024 06:48
@im-konge im-konge requested a review from a team August 9, 2024 06:56
@im-konge im-konge added this to the 0.43.0 milestone Aug 9, 2024
Copy link
Member

@see-quick see-quick left a comment

Choose a reason for hiding this comment

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

LGTM, Assuming all tests will pass. Good Job for doing this Lukas 💯 👍

…ame parameter

Signed-off-by: Lukas Kral <lukywill16@gmail.com>

fixups

Signed-off-by: Lukas Kral <lukywill16@gmail.com>

move the ZK related method from KRaft method 🤦

Signed-off-by: Lukas Kral <lukywill16@gmail.com>

fixups

Signed-off-by: Lukas Kral <lukywill16@gmail.com>

another fixups

Signed-off-by: Lukas Kral <lukywill16@gmail.com>

fix rolling update 🤦

Signed-off-by: Lukas Kral <lukywill16@gmail.com>

fix metrics

Signed-off-by: Lukas Kral <lukywill16@gmail.com>

changes after rebase

Signed-off-by: Lukas Kral <lukywill16@gmail.com>
Signed-off-by: Lukas Kral <lukywill16@gmail.com>
@im-konge im-konge force-pushed the remove-examples-from-templates branch from 46cb6d7 to 66b889f Compare August 11, 2024 21:49
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge
Copy link
Member Author

/packit test --labels regression

Signed-off-by: Lukas Kral <lukywill16@gmail.com>
@im-konge
Copy link
Member Author

/azp run feature-gates-regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@henryZrncik henryZrncik left a comment

Choose a reason for hiding this comment

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

Great work! just nits and questions rather than serious suggestions.

Signed-off-by: Lukas Kral <lukywill16@gmail.com>
Signed-off-by: Lukas Kral <lukywill16@gmail.com>
@im-konge
Copy link
Member Author

/packit test --labels regression

@im-konge
Copy link
Member Author

/azp run feature-gates-regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

…out it

Signed-off-by: Lukas Kral <lukywill16@gmail.com>
@im-konge
Copy link
Member Author

/packit test --labels regression

Signed-off-by: stiglitz <stiglitz@dev.io>
@im-konge
Copy link
Member Author

/azp run migration

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge
Copy link
Member Author

/packit test --labels regression

@im-konge
Copy link
Member Author

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge
Copy link
Member Author

/azp run upgrade

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge
Copy link
Member Author

/azp run kraft-regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge
Copy link
Member Author

/azp run feature-gates-regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge
Copy link
Member Author

FG pipeline fails because of issue with Connection refused when doing HTTP request on Keycloak endpoint - it will be fixed as part of #10452

@im-konge im-konge merged commit 4b54ddc into strimzi:main Aug 16, 2024
43 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants