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

Add --app-namespace flag #814

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

praveenrewar
Copy link
Member

@praveenrewar praveenrewar commented Sep 1, 2023

What this PR does / why we need it:

Add --app-namespace flag to kapp deploy, inspect and delete commands. This can be used to specify the namespace to store kapp meta configmaps.

Which issue(s) this PR fixes:

Fixes #815

Does this PR introduce a user-facing change?

Add `--app-namespace` flag to kapp deploy, inspect and delete commands. This can be used to specify the namespace to store kapp configmaps for managing app state.

Additional Notes for your reviewer:

Review Checklist:
  • Follows the developer guidelines
  • Relevant tests are added or updated
  • Relevant docs in this repo added or updated
  • Relevant carvel.dev docs added or updated in a separate PR and there's
    a link to that PR
  • Code is at least as readable and maintainable as it was before this
    change

Additional documentation e.g., Proposal, usage docs, etc.:


@praveenrewar praveenrewar mentioned this pull request Sep 1, 2023
5 tasks
pkg/kapp/cmd/app/app_flags.go Show resolved Hide resolved
pkg/kapp/cmd/app/factory.go Outdated Show resolved Hide resolved
pkg/kapp/cmd/appgroup/delete.go Outdated Show resolved Hide resolved
test/e2e/app_namespace_test.go Show resolved Hide resolved
pkg/kapp/cmd/app/factory.go Outdated Show resolved Hide resolved
Signed-off-by: Praveen Rewar <[email protected]>
Copy link
Contributor

@100mik 100mik left a comment

Choose a reason for hiding this comment

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

Looks good!

@100mik
Copy link
Contributor

100mik commented Sep 14, 2023

Looks like the tests are not happy, not sure if it is a flake 🤔

@praveenrewar praveenrewar merged commit c6b6149 into carvel-dev:develop Sep 14, 2023
@praveenrewar praveenrewar deleted the app-namespace branch September 14, 2023 21:19
rcmadhankumar pushed a commit that referenced this pull request Oct 5, 2023
rcmadhankumar pushed a commit that referenced this pull request Oct 5, 2023
jfmontanaro added a commit to jfmontanaro/carvel that referenced this pull request Mar 5, 2024
…space.md

When using a dedicated namespace for state storage, the docs currently suggest specifying this namespace via the `-n` flag. However this can lead to undesirable behaviors, since the app is typically being deployed to a different namespace. In my case, I had a resource where I had neglected to specify the namespace, and it would have ended up getting deployed to the state-storage namespace rather than the same namespace as the rest of the app.

This was discussed in carvel-dev/kapp#815 and fixed in carvel-dev/kapp#814 with the introduction of the `--app-namespace` flag, which controls which is used for state storage independently of the app namespace. However the docs did not reflect this change.

This commit adjusts the documentation to recommend using `--app-namespace` when storing configs in a separate namespace.
jfmontanaro added a commit to jfmontanaro/carvel that referenced this pull request Mar 12, 2024
…space.md

When using a dedicated namespace for state storage, the docs currently suggest specifying this namespace via the  flag. However this can lead to undesirable behaviors, since the app is typically being deployed to a different namespace. In my case, I had a resource where I had neglected to specify the namespace, and it would have ended up getting deployed to the state-storage namespace rather than the same namespace as the rest of the app.

This was discussed in carvel-dev/kapp#815 and fixed in carvel-dev/kapp#814 with the introduction of the  flag, which controls which is used for state storage independently of the app namespace. However the docs did not reflect this change.

This commit adjusts the documentation to recommend using  when storing configs in a separate namespace.

Signed-off-by: Joseph Montanaro <[email protected]>
100mik pushed a commit to carvel-dev/carvel that referenced this pull request Mar 17, 2024
…space.md

When using a dedicated namespace for state storage, the docs currently suggest specifying this namespace via the  flag. However this can lead to undesirable behaviors, since the app is typically being deployed to a different namespace. In my case, I had a resource where I had neglected to specify the namespace, and it would have ended up getting deployed to the state-storage namespace rather than the same namespace as the rest of the app.

This was discussed in carvel-dev/kapp#815 and fixed in carvel-dev/kapp#814 with the introduction of the  flag, which controls which is used for state storage independently of the app namespace. However the docs did not reflect this change.

This commit adjusts the documentation to recommend using  when storing configs in a separate namespace.

Signed-off-by: Joseph Montanaro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Ability to set namespace for storing kapp meta configmaps
2 participants