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

feat: samples for Confluent operator tutorial #725

Merged
merged 28 commits into from
Sep 6, 2023

Conversation

ganochenkodg
Copy link
Contributor

No description provided.

@ganochenkodg ganochenkodg requested review from a team and yoshi-approver as code owners July 17, 2023 10:32
@snippet-bot
Copy link

snippet-bot bot commented Jul 17, 2023

Here is the summary of changes.

You are about to add 10 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@ganochenkodg ganochenkodg marked this pull request as draft July 17, 2023 10:32
@aburhan aburhan marked this pull request as ready for review September 1, 2023 19:06
@aburhan aburhan self-requested a review as a code owner September 1, 2023 19:06
@bourgeoisor bourgeoisor self-assigned this Sep 2, 2023
@bourgeoisor bourgeoisor changed the title Confluent operator - Terraform code and Manifests feat: samples for Confluent operator tutorial Sep 3, 2023
Copy link
Collaborator

@NimJay NimJay Sep 5, 2023

Choose a reason for hiding this comment

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

Issue:
The /streaming/kafka-confluent/terraform folder and its contents that we're adding in this pull-request is mostly identical to the existing /streaming/kafka-strimzi/terraform folder and its contents. Could we please reduce this duplication (all or most)? For instance, could we reuse the existing /streaming/kafka-strimzi/terraform/ directory and consider moving /streaming/kafka-confluent/terraform/ to a new folder /streaming/kafka/terraform/ (so that it's clear that it's not Strimzi-specific)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, the only difference in tf code is terraform tags (could be the same, it doesn't matter), the "component" label for the cluster (can fix with component = "strimzi-operator" -> component = "${var.cluster_prefix}-operator") and ingress rule for replicator (different ports, can add both in the rule to work with any operator)
@aburhan @NimJay your opinion?

Also these changes will affect the documentation, so i will need to fix Basic and Replication guides

Copy link
Collaborator

@aburhan aburhan Sep 6, 2023

Choose a reason for hiding this comment

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

@ganochenkodg I think its a good idea to pull out the terraform into its own folder as @NimJay mentioned since the code is identical (/streaming/kafka/terraform/). The manifest files for each are different so we can have operator specific folders for those manifests under streaming/kafka/confluent. I work later to rework the strimzi files

Copy link
Contributor Author

@ganochenkodg ganochenkodg Sep 6, 2023

Choose a reason for hiding this comment

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

Then i'll create an additional PR with only these changes and let you know

Copy link
Collaborator

@NimJay NimJay Sep 6, 2023

Choose a reason for hiding this comment

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

Thanks, you two, for working toward removing Terraform duplication.
As discussed with @aburhan, we can merge this pull-request as is (without the Terraform refactoring).
I've opened #861 to track the duplication issue.

@ganochenkodg if you want, you can just move the /streaming/kafka-confluent/terraform/ folder to /streaming/kafka/terraform/, and we can worry about updating the Strimzi tutorial later. Or merge as is.

Copy link
Collaborator

@NimJay NimJay left a comment

Choose a reason for hiding this comment

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

Hi @ganochenkodg,

Thank you so much for these samples.
(And sorry about the late review!)
I just have two immediate concerns/questions:

  1. For Kafka/Confluent-related issues, do we have a Googler that can debug any issues/bugs we'll encounter in these samples (in the future)?
  2. See my other comment about reducing Terraform duplication.

I have not tested these samples myself, but I trust you or the tech writers (or another sample author) have/will do the appropriate testing before publishing these samples.

Thanks again! :)

@ganochenkodg
Copy link
Contributor Author

@aburhan

For Kafka/Confluent-related issues, do we have a Googler that can debug any issues/bugs we'll encounter in these samples (in the future)?

What do you think?

@aburhan
Copy link
Collaborator

aburhan commented Sep 6, 2023

@aburhan

For Kafka/Confluent-related issues, do we have a Googler that can debug any issues/bugs we'll encounter in these samples (in the future)?

What do you think?

@NimJay I will be responsible for issues and bugs in the future

@aburhan aburhan requested a review from NimJay September 6, 2023 13:21
@NimJay
Copy link
Collaborator

NimJay commented Sep 6, 2023

Note: If the cla/google check is failing because of my personal email address, please ignore it (i.e., feel free to merge).
It's currently (at the time of commenting) passing because I have requested an override via Google-internal link: go/gh-prinfo. But it will fail again if a new commit is added.
Sorry for the inconvenience!

Copy link
Collaborator

@NimJay NimJay left a comment

Choose a reason for hiding this comment

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

Thanks again, @ganochenkodg and @aburhan, for your patience here (and for creating these samples!).
Approved. Feel free to merge.

@aburhan aburhan merged commit c7b725c into GoogleCloudPlatform:main Sep 6, 2023
3 checks passed
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.

5 participants