-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[ST] Remove usage of examples from our template classes and add namespaceName parameter #10418
Conversation
/packit test --labels regression |
/packit test --labels upgrade |
/packit test --labels regression |
2 similar comments
/packit test --labels regression |
/packit test --labels regression |
/azp run feature-gates-regression |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
/packit test --labels regression |
/azp run feature-gates-regression |
Azure Pipelines successfully started running 1 pipeline(s). |
/packit test --labels regression |
/azp run feature-gates-regression |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run regression |
/azp run upgrade |
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 1 pipeline(s). |
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.
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>
46cb6d7
to
66b889f
Compare
Azure Pipelines successfully started running 1 pipeline(s). |
/packit test --labels regression |
Signed-off-by: Lukas Kral <lukywill16@gmail.com>
/azp run feature-gates-regression |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Great work! just nits and questions rather than serious suggestions.
systemtest/src/main/java/io/strimzi/systemtest/templates/crd/KafkaRebalanceTemplates.java
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/bridge/HttpBridgeTlsST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/bridge/HttpBridgeTlsST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/bridge/HttpBridgeScramShaST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/connect/ConnectBuilderST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/connect/ConnectBuilderST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/connect/ConnectBuilderST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/connect/ConnectBuilderST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/operators/CustomResourceStatusST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/security/oauth/OauthPlainST.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Lukas Kral <lukywill16@gmail.com>
/packit test --labels regression |
/azp run feature-gates-regression |
Azure Pipelines successfully started running 1 pipeline(s). |
…out it Signed-off-by: Lukas Kral <lukywill16@gmail.com>
/packit test --labels regression |
systemtest/src/main/java/io/strimzi/systemtest/templates/crd/KafkaConnectTemplates.java
Outdated
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/templates/crd/KafkaConnectorTemplates.java
Outdated
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/templates/crd/KafkaConnectorTemplates.java
Outdated
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/templates/crd/KafkaMirrorMaker2Templates.java
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/templates/crd/KafkaMirrorMaker2Templates.java
Outdated
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/templates/crd/KafkaRebalanceTemplates.java
Outdated
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/templates/crd/KafkaTemplates.java
Outdated
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/templates/crd/KafkaTopicTemplates.java
Outdated
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/templates/crd/KafkaUserTemplates.java
Outdated
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/utils/kafkaUtils/KafkaTopicScalabilityUtils.java
Show resolved
Hide resolved
systemtest/src/main/java/io/strimzi/systemtest/templates/crd/KafkaTopicTemplates.java
Outdated
Show resolved
Hide resolved
Signed-off-by: stiglitz <stiglitz@dev.io>
/azp run migration |
Azure Pipelines successfully started running 1 pipeline(s). |
/packit test --labels regression |
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run upgrade |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run kraft-regression |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run feature-gates-regression |
Azure Pipelines successfully started running 1 pipeline(s). |
FG pipeline fails because of issue with Connection refused when doing HTTP request on Keycloak endpoint - it will be fixed as part of #10452 |
Type of change
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 ofsetNamespace()
method in ResourceManager, which can cause issues when we don't know what Namespace was actually set for the resource.Checklist