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

e2e: create namespace and annotate based on distro #1931

Merged
merged 2 commits into from
Mar 24, 2025

Conversation

parikshithb
Copy link
Member

@parikshithb parikshithb commented Mar 17, 2025

This change exports distro constants in config package and based on distro creates namespace/annotates during deploy and protection.

Fixes #1919

@parikshithb parikshithb marked this pull request as draft March 17, 2025 10:54
@parikshithb parikshithb removed the request for review from raghavendra-talur March 17, 2025 10:54
@nirs
Copy link
Member

nirs commented Mar 17, 2025

@parikshithb please link to issue

Copy link
Member

@nirs nirs left a comment

Choose a reason for hiding this comment

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

@parikshithb please rebase

@parikshithb parikshithb marked this pull request as ready for review March 18, 2025 14:53
@parikshithb parikshithb marked this pull request as draft March 18, 2025 14:54
Copy link
Member

@nirs nirs left a comment

Choose a reason for hiding this comment

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

Changes since the last review looks good, added some more comments.

@parikshithb parikshithb reopened this Mar 20, 2025
@parikshithb parikshithb marked this pull request as ready for review March 20, 2025 14:46
- Create namespace only on DRCluster(c1) before deploying
  discovered app instead of using CreateNamespaceAndAddAnnotation
  which is not required.
- Add CreateNamespacesDiscoveredApps() after protecting
  discovered app to handle create namespace and annotate
  or just creates the app namespace on target dr cluster
  based on Kubernetes distribution.
- In EnableProtection for managed apps, create namespaces
  only for Kubernetes (DistroK8s) with VolSync annotation
  using the helper function createNamespaces().
  since it is not required of openshift since ACM handles it.
- Ignore cyclomatic complexity check for EnableProtection
  which needs refactoring in future.

Signed-off-by: Parikshith <[email protected]>
@nirs nirs merged commit 81c8242 into RamenDR:main Mar 24, 2025
23 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.

e2e: issue during annotating namespaces
2 participants