feat!: replace --namespace and --context flags with --team and --environment#645
Merged
frodesundby merged 4 commits intomainfrom Feb 17, 2026
Merged
Conversation
…and --environment Replace the --namespace (-n) and --context (-c) flags across all postgres commands with --team (-t) and --environment (-e). - Remove the Namespace custom type and its autocomplete logic - Remove GetNamespaceForContext and GetNamespacesForContext from k8s client - Add RequiredTeam() helper to AdditionalFlags - Add UsesDeprecatedFlags() validation that errors when old flags are used - Update all internal functions to accept team/environment instead of namespace/context BREAKING CHANGE: The --namespace (-n) and --context (-c) flags for postgres commands have been removed. Use --team (-t) and --environment (-e) instead. Co-authored-by: Trong Nguyen <trong.huu.nguyen@nav.no> Co-authored-by: Frode Sundby <frode.sundby@nav.no>
Contributor
📝 Changelog previewBelow is a preview of the Changelog that will be added to the next release. Only commit messages that follow the Conventional Commits specification will be included in the Changelog. v4.0.0 - 2026-02-17Full Changelog: v3.32.1...v4.0.0 🚀 Features |
thokra-nav
added a commit
to nais/doc
that referenced
this pull request
Feb 16, 2026
Co-authored-by: Trong Huu Nguyen <trong.huu.nguyen@nav.no>
and aiven Replace --namespace/-n and --context/-c with --team/-t and --environment/-e across Aiven, Debug, and Postgres commands. Add validation to error on use of removed flags. Update internal usage to reference new flags.
Adds an --environment flag to Aiven commands, passing the selected environment to k8s client setup and resource operations. This enables targeting specific Kubernetes contexts for Aiven operations.
frodesundby
added a commit
to nais/doc
that referenced
this pull request
Feb 17, 2026
* Update docs after nais/cli#645 * Document environment flag for aiven CLI commands Co-authored-by: Trong Huu Nguyen <trong.huu.nguyen@nav.no> Co-authored-by: Frode Sundby <frode.sundby@nav.no>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the --namespace (-n) and --context (-c) flags across all commands with --team (-t) and --environment (-e).
BREAKING CHANGE: The --namespace (-n) and --context (-c) flags for commands have been removed. Use --team (-t) and --environment (-e) instead.