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

Eliminate channel name configuration #1779

Merged
merged 3 commits into from
Feb 5, 2025
Merged

Conversation

nirs
Copy link
Member

@nirs nirs commented Jan 28, 2025

Generate the channel name from the git URL instead of complicating the config file and improve channel namespace name.

@nirs nirs force-pushed the e2e-channel-name branch 3 times, most recently from 0a62530 to 151a25f Compare January 29, 2025 00:38
@nirs nirs requested a review from parikshithb January 29, 2025 00:51
@nirs nirs force-pushed the e2e-channel-name branch from 151a25f to bc77d4a Compare January 29, 2025 21:29
Copy link
Member

@parikshithb parikshithb left a comment

Choose a reason for hiding this comment

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

Changes looks great!

e2e/util/config.go Outdated Show resolved Hide resolved
@nirs nirs force-pushed the e2e-channel-name branch from bc77d4a to d7b49e2 Compare February 4, 2025 03:38
@nirs nirs marked this pull request as ready for review February 4, 2025 03:39
@nirs nirs force-pushed the e2e-channel-name branch from d7b49e2 to 07e0f9d Compare February 4, 2025 03:42
@nirs nirs requested a review from ELENAGER February 5, 2025 17:04
nirs added 3 commits February 5, 2025 19:22
Instead of configuring channel name, generate the name from the repo
url. This makes the configuration simpler and make it easy to test
multiple channels.

Example channel name:

    gitURL: https://github.com/RamenDR/ocm-ramen-samples.git
    channel: https-github-com-ramendr-ocm-ramen-samples-git

Signed-off-by: Nir Soffer <[email protected]>
Use e2e- prefix so the namespace sorts with other namespaces created by
e2e, and change ramen-samples to gitops to reflect better the purpose of
the namespace.

Signed-off-by: Nir Soffer <[email protected]>
- Unify state change messages (Create channel, Deleted channel)
- Log also channel namespace
- Log debug logs (already exists, not found) in DEBUG level

Signed-off-by: Nir Soffer <[email protected]>
@nirs nirs force-pushed the e2e-channel-name branch from 07e0f9d to ac3557b Compare February 5, 2025 17:23
@nirs
Copy link
Member Author

nirs commented Feb 5, 2025

This version rebase on main and resolved trivial conflict.

@nirs nirs merged commit 0fd2352 into RamenDR:main Feb 5, 2025
23 checks passed
@nirs nirs deleted the e2e-channel-name branch February 5, 2025 19:02
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.

3 participants