Repository navigation
feat: tags and labels standard for auth, components, and bulk selection - #2738
Conversation
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
Dependency Review✅ No vulnerabilities or license issues found.Scanned FilesNone |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (4)
📝 WalkthroughWalkthroughIntroduces "tags" and "labels" as first-class metadata for components, auth providers, and identities. Adds a shared ChangesTags and labels support
Estimated code review effort: 4 (Complex) | ~75 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (9)
pkg/tags/tags_test.go (1)
1-33: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueLGTM! Good table-driven coverage of the core matching semantics.
💡 Optional: add edge-case tests for ALL-mode duplicates and unknown mode
{"any: duplicate filter tags", []string{"a"}, []string{"a", "a"}, TagModeAny, true}, + {"all: duplicate filter tags", []string{"a"}, []string{"a", "a"}, TagModeAll, true}, + {"unknown mode defaults to any", []string{"a", "b"}, []string{"b"}, TagMode("unknown"), true}, }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/tags/tags_test.go` around lines 1 - 33, Add optional table-driven cases to TestMatchesTags covering duplicate filter tags in TagModeAll and an unsupported or unknown TagMode, with expected results matching the intended MatchesTags behavior; keep the existing core matching cases unchanged.cmd/helm/helm.go (1)
98-99: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueConsider using
flags.NewStandardParser()for flag registration.The coding guidelines require
cmd/**/*.gofiles to useflags.NewStandardParser()for command-specific flags. The new--tagsand--labelsflags are registered viacmd.Flags()directly, whilecmd/kubernetes/kubernetes.goregisters the same flags through the standard parser. This is a pre-existing pattern inhelm.go(all flags at lines 87-99 usecmd.Flags()), so a focused fix would create intra-file inconsistency — a broader refactor of this file's flag registration would be needed.As per coding guidelines: "Commands must use flags.NewStandardParser() for command-specific flags and must never call viper.BindEnv() or viper.BindPFlag() directly."
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cmd/helm/helm.go` around lines 98 - 99, Refactor command-specific flag registration in the Helm command to use flags.NewStandardParser(), including the existing flags and the new tags and labels flags, instead of cmd.Flags(). Preserve all current flag names, defaults, descriptions, and parsing behavior while keeping registration consistent throughout helm.go.Source: Coding guidelines
internal/exec/yaml_func_utils.go (1)
369-394: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueDispatch order comment is misleading but harmless.
The comment says to check
.keys/.valuessuffixes before the bare!labelsmatch to avoid ambiguity, but every check here uses exact equality (input == u.AtmosYamlFuncLabels), not a prefix match — so order genuinely doesn't matter for correctness. Consider rewording the comment to avoid implying an ordering dependency that doesn't exist, since it could confuse future maintainers into thinking reordering is unsafe.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@internal/exec/yaml_func_utils.go` around lines 369 - 394, The dispatch-order comment above the tag checks incorrectly implies that `.keys` and `.values` must precede the bare `!labels` match. Reword it to state that these tags are handled as distinct exact matches, without claiming ordering is required; leave the dispatch logic unchanged.cmd/container/container.go (1)
120-122: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAvoid the slice→string→slice round-trip for
--tags.GetStringSlice("tags")already returns the parsed values, and rejoining them beforetags.ParseTagsFlagdrops pflag’s CSV quoting behavior. Assign the slice directly, or add a slice-based helper if you still need normalization.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cmd/container/container.go` around lines 120 - 122, Update the --tags handling in the command flag parsing block to pass the slice returned by GetStringSlice directly into info.Tags, avoiding strings.Join and the tags.ParseTagsFlag round-trip. If normalization is required, use or add a helper that accepts []string while preserving pflag’s CSV quoting behavior.cmd/container/dispatch_test.go (1)
59-60: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueComment is missing a trailing period.
Per coding guidelines, all comments must end with periods. The comment on line 59 also reads slightly awkwardly — "A verb without withAllFlag" should likely be "A verb without the
withAllFlag".✏️ Suggested fix
- // A verb without withAllFlag (e.g. exec) never registers --tags/--labels; - // buildConfigAndStacksInfo must be nil-safe. + // A verb without the withAllFlag (e.g., exec) never registers --tags/--labels; + // buildConfigAndStacksInfo must be nil-safe.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cmd/container/dispatch_test.go` around lines 59 - 60, Update the comment above the nil-safety assertion in the dispatch tests to say “A verb without the withAllFlag” and ensure the comment ends with a period.Source: Coding guidelines
cmd/auth/logout.go (1)
676-679: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd browser and external credential warnings for consistency with
performLogoutAll.
performLogoutAllcallsdisplayBrowserWarning()anddisplayExternalCredentialWarnings()after logout (lines 606–611).performTagsLogoutomits both, so users who log out via--tagsmiss the reminder that their IdP browser session may still be active.♻️ Proposed addition
ui.Success(fmt.Sprintf("Logged out from %d provider(s) matching tags %v", successCount, filterTags)) ui.Writeln("") + + // Display browser session warning. + displayBrowserWarning() + + // Display external credential warnings. + displayExternalCredentialWarnings() return nil🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cmd/auth/logout.go` around lines 676 - 679, Update performTagsLogout to call displayBrowserWarning() and displayExternalCredentialWarnings() after reporting the logout result, matching the post-logout behavior in performLogoutAll. Keep the existing success message, blank line, and return flow intact.pkg/component/graph_tags_test.go (1)
53-100: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd a test case for both Tags and Labels set simultaneously.
No subtest exercises
ConfigAndStacksInfowith bothTagsandLabelspopulated at once. ThematchesGraphTagsAndLabelsfunction ANDs the two checks, but this composition isn't directly verified.♻️ Suggested additional subtest
t.Run("no matches returns empty graph, not an error", func(t *testing.T) { filtered := FilterGraph(graph, &schema.ConfigAndStacksInfo{Tags: []string{"nonexistent"}}, nil) require.Equal(t, 0, filtered.Size()) }) + + t.Run("tags and labels compose (both must match)", func(t *testing.T) { + filtered := FilterGraph(graph, &schema.ConfigAndStacksInfo{ + Tags: []string{"production"}, + Labels: map[string]string{"compliance": "sox"}, + }, nil) + require.Equal(t, 1, filtered.Size()) + require.Contains(t, filtered.Nodes, GraphNodeID("api", "prod")) + }) }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/component/graph_tags_test.go` around lines 53 - 100, Add a subtest to TestFilterGraphByTagsAndLabels that populates both Tags and Labels in ConfigAndStacksInfo, then verify FilterGraph applies both criteria with AND semantics by asserting only the node matching the tag and every label remains.pkg/tags/convert_test.go (1)
60-78: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win
TestSortedKeysAndValuescould panic on unexpected length.The test indexes into
keysandvalueswithout first checkinglen(keys) != len(wantKeys). IfSortedKeysreturns fewer elements, this panics rather than failing gracefully. Add a length check before the loop, consistent with the pattern inTestToStringSlice.♻️ Proposed fix to add length guards
keys := SortedKeys(m) wantKeys := []string{"a", "b", "c"} + if len(keys) != len(wantKeys) { + t.Fatalf("SortedKeys() = %v, want %v", keys, wantKeys) + } for i := range wantKeys { if keys[i] != wantKeys[i] { t.Fatalf("SortedKeys() = %v, want %v", keys, wantKeys) } } values := SortedValues(m) wantValues := []string{"1", "2", "3"} + if len(values) != len(wantValues) { + t.Fatalf("SortedValues() = %v, want %v", values, wantValues) + } for i := range wantValues { if values[i] != wantValues[i] { t.Fatalf("SortedValues() = %v, want %v", values, wantValues) } }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/tags/convert_test.go` around lines 60 - 78, Update TestSortedKeysAndValues to compare the lengths of keys and wantKeys before indexing, and likewise values and wantValues, failing with a test error on mismatch; preserve the existing element-by-element comparisons after these guards.internal/exec/yaml_func_tags.go (1)
13-19: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
componentMetadatasilently returns nil on type assertion failure.The
metadata, _ := stackInfo.ComponentSection[cfg.MetadataSectionName].(map[string]any)discards the ok flag. IfComponentSectionreturns a non-map[string]anyvalue (e.g., a typed struct), this silently produces a nil map. Consider logging or handling the assertion failure explicitly, especially during debugging when metadata is expected but not found.However, since all callers already handle nil returns gracefully, this is a minor robustness concern.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@internal/exec/yaml_func_tags.go` around lines 13 - 19, Update componentMetadata to handle a failed assertion of ComponentSection[cfg.MetadataSectionName] explicitly instead of discarding the ok flag; preserve the existing nil result for absent or invalid metadata while adding appropriate diagnostic logging when the value is present but not a map[string]any.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@cmd/auth/logout.go`:
- Around line 668-674: Update performTagsLogout so that after reporting
collected provider errors, it returns a non-nil aggregated error when errs is
non-empty, using the existing errors.Join pattern if available; retain nil for
fully successful logout. Keep performLogoutAll’s existing non-partial failure
behavior consistent with this change.
In `@cmd/helm/helm_test.go`:
- Around line 236-248: Update the expected selection error wording in
validateSelectionFlags to mention --all, --affected, --tags, and --labels. Add a
table-driven test alongside the existing component cannot combine with tags case
covering a component combined with --labels and asserting the broadened error
message.
In `@cmd/kubernetes/kubernetes_test.go`:
- Around line 155-173: Update the validation error expected by the “component
cannot be combined with tags” case in the Kubernetes command tests so it
includes --tags/--labels alongside --all and --affected. Ensure the
corresponding validation behavior and related Helm test expectation remain
consistent.
---
Nitpick comments:
In `@cmd/auth/logout.go`:
- Around line 676-679: Update performTagsLogout to call displayBrowserWarning()
and displayExternalCredentialWarnings() after reporting the logout result,
matching the post-logout behavior in performLogoutAll. Keep the existing success
message, blank line, and return flow intact.
In `@cmd/container/container.go`:
- Around line 120-122: Update the --tags handling in the command flag parsing
block to pass the slice returned by GetStringSlice directly into info.Tags,
avoiding strings.Join and the tags.ParseTagsFlag round-trip. If normalization is
required, use or add a helper that accepts []string while preserving pflag’s CSV
quoting behavior.
In `@cmd/container/dispatch_test.go`:
- Around line 59-60: Update the comment above the nil-safety assertion in the
dispatch tests to say “A verb without the withAllFlag” and ensure the comment
ends with a period.
In `@cmd/helm/helm.go`:
- Around line 98-99: Refactor command-specific flag registration in the Helm
command to use flags.NewStandardParser(), including the existing flags and the
new tags and labels flags, instead of cmd.Flags(). Preserve all current flag
names, defaults, descriptions, and parsing behavior while keeping registration
consistent throughout helm.go.
In `@internal/exec/yaml_func_tags.go`:
- Around line 13-19: Update componentMetadata to handle a failed assertion of
ComponentSection[cfg.MetadataSectionName] explicitly instead of discarding the
ok flag; preserve the existing nil result for absent or invalid metadata while
adding appropriate diagnostic logging when the value is present but not a
map[string]any.
In `@internal/exec/yaml_func_utils.go`:
- Around line 369-394: The dispatch-order comment above the tag checks
incorrectly implies that `.keys` and `.values` must precede the bare `!labels`
match. Reword it to state that these tags are handled as distinct exact matches,
without claiming ordering is required; leave the dispatch logic unchanged.
In `@pkg/component/graph_tags_test.go`:
- Around line 53-100: Add a subtest to TestFilterGraphByTagsAndLabels that
populates both Tags and Labels in ConfigAndStacksInfo, then verify FilterGraph
applies both criteria with AND semantics by asserting only the node matching the
tag and every label remains.
In `@pkg/tags/convert_test.go`:
- Around line 60-78: Update TestSortedKeysAndValues to compare the lengths of
keys and wantKeys before indexing, and likewise values and wantValues, failing
with a test error on mismatch; preserve the existing element-by-element
comparisons after these guards.
In `@pkg/tags/tags_test.go`:
- Around line 1-33: Add optional table-driven cases to TestMatchesTags covering
duplicate filter tags in TagModeAll and an unsupported or unknown TagMode, with
expected results matching the intended MatchesTags behavior; keep the existing
core matching cases unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: ebb6bfce-c624-4baa-90c8-4587a925aca3
📒 Files selected for processing (107)
cmd/auth/list.gocmd/auth/list_test.gocmd/auth/login.gocmd/auth/login_test.gocmd/auth/logout.gocmd/auth/logout_test.gocmd/container/container.gocmd/container/dispatch_test.gocmd/container/verbs.gocmd/helm/helm.gocmd/helm/helm_test.gocmd/kubernetes/kubernetes.gocmd/kubernetes/kubernetes_test.gocmd/list/components.gocmd/list/components_test.gocmd/list/flag_wrappers.gocmd/terraform/flags.gocmd/terraform/options.gocmd/terraform/utils.gocmd/terraform/utils_test.godemo/casts/atmos.d/examples/quick-start-advanced/list-instances.yamlerrors/errors.goexamples/demo-auth/README.mdexamples/demo-auth/atmos.yamlexamples/quick-start-advanced/README.mdexamples/quick-start-advanced/stacks/catalog/app-config/defaults.yamlexamples/quick-start-advanced/stacks/catalog/dynamodb-table/defaults.yamlexamples/quick-start-advanced/stacks/catalog/kms-key/defaults.yamlexamples/quick-start-advanced/stacks/catalog/s3-bucket/defaults.yamlexamples/quick-start-advanced/stacks/catalog/sns-topic/defaults.yamlexamples/quick-start-advanced/stacks/catalog/sqs-queue/defaults.yamlinternal/exec/yaml_func_tags.gointernal/exec/yaml_func_tags_test.gointernal/exec/yaml_func_utils.gopkg/component/container/bulk.gopkg/component/container/bulk_tags_test.gopkg/component/container/list.gopkg/component/graph.gopkg/component/graph_tags_test.gopkg/component/helm/executor.gopkg/component/kubernetes/executor.gopkg/datafetcher/schema/atmos/manifest/1.0.jsonpkg/datafetcher/schema/stacks/stack-config/1.0.jsonpkg/function/tag/tag.gopkg/function/tag/tag_test.gopkg/function/tags.gopkg/function/tags_test.gopkg/list/extract/components.gopkg/list/extract/components_test.gopkg/list/filter/filter.gopkg/list/filter/filter_test.gopkg/scheduler/adapters/terraform.gopkg/scheduler/adapters/terraform_tags_test.gopkg/schema/schema.gopkg/schema/schema_auth.gopkg/tags/convert.gopkg/tags/convert_test.gopkg/tags/flags.gopkg/tags/flags_test.gopkg/tags/labels.gopkg/tags/labels_test.gopkg/tags/tags.gopkg/tags/tags_test.gopkg/utils/yaml_utils.gopkg/utils/yaml_utils_test.gopkg/utils/yaml_utils_unsupported_test.gotests/snapshots/TestCLICommands_atmos_auth_login_--help.stdout.goldentests/snapshots/TestCLICommands_atmos_terraform_--help.stdout.goldentests/snapshots/TestCLICommands_atmos_terraform_--help_alias_subcommand_check.stdout.goldentests/snapshots/TestCLICommands_atmos_terraform_help.stdout.goldentests/snapshots/TestCLICommands_config_alias_tr_--help_shows_terraform_help.stdout.goldentests/snapshots/TestCLICommands_terraform_help_shows_stack_flag.stdout.goldentests/snapshots/TestCLICommands_terraform_provision_help_shows_inherited_stack_flag.stdout.goldentests/snapshots/TestCLICommands_tf_plan_help_shows_inherited_stack_flag.stdout.goldenwebsite/blog/2026-07-11-tags-and-labels.mdxwebsite/docs/cli/commands/auth/auth-list.mdxwebsite/docs/cli/commands/auth/auth-login.mdxwebsite/docs/cli/commands/auth/logout.mdxwebsite/docs/cli/commands/container/usage.mdxwebsite/docs/cli/commands/helm/helm-apply.mdxwebsite/docs/cli/commands/helm/helm-delete.mdxwebsite/docs/cli/commands/helm/helm-deploy.mdxwebsite/docs/cli/commands/helm/helm-diff.mdxwebsite/docs/cli/commands/helm/helm-plan.mdxwebsite/docs/cli/commands/helm/helm-template.mdxwebsite/docs/cli/commands/helm/usage.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-apply.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-delete.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-deploy.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-diff.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-plan.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-render.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-validate.mdxwebsite/docs/cli/commands/kubernetes/usage.mdxwebsite/docs/cli/commands/list/list-components.mdxwebsite/docs/cli/commands/terraform/terraform-apply.mdxwebsite/docs/cli/commands/terraform/terraform-deploy.mdxwebsite/docs/cli/commands/terraform/terraform-plan.mdxwebsite/docs/cli/commands/terraform/usage.mdxwebsite/docs/functions/yaml/index.mdxwebsite/docs/functions/yaml/labels.keys.mdxwebsite/docs/functions/yaml/labels.mdxwebsite/docs/functions/yaml/labels.values.mdxwebsite/docs/functions/yaml/tags.mdxwebsite/docs/stacks/components/metadata.mdxwebsite/src/data/roadmap.jswebsite/static/casts/examples/quick-start-advanced/list-instances.cast
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2738 +/- ##
==========================================
+ Coverage 81.64% 81.67% +0.02%
==========================================
Files 1648 1653 +5
Lines 155530 156045 +515
==========================================
+ Hits 126988 127450 +462
- Misses 21583 21622 +39
- Partials 6959 6973 +14
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Implements the tags-and-labels-standard PRD: `tags` on auth identities/providers (filterable via `--tags` on auth list/login/logout); `metadata.tags`/`metadata.labels` on components (filterable via `atmos list components --tags/--labels`); new `!tags`/`!labels`/`!labels.keys`/`!labels.values` YAML functions for bridging metadata into vars; and `--tags`/`--labels` bulk selection on terraform, kubernetes, helm, and container operations, composing with `--all`/`--affected`. Adds a shared pkg/tags package for the ANY-match tag/AND-match label predicates used across all of the above, plus docs, a blog post, and roadmap updates.
…tion error performTagsLogout previously returned nil even when some per-provider logouts failed, masking failures in CI (exit code 0) despite printing an error summary. Now joins and returns the accumulated errors, matching performLogoutAll's existing behavior. Also broadens the helm/kubernetes "component argument cannot be used with --all or --affected" error to mention --tags/--labels, since those flags now trigger the same validation path. Addresses CodeRabbit review on #2738.
7d6ea7a to
31aa95d
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@cmd/auth/list_test.go`:
- Around line 252-266: Update the applyFilters tag test to request multiple
tags, such as “production” and “development,” and assert that providers and
identities matching either tag are retained while unrelated entries are
excluded. Preserve the existing assertions that verify the expected filtered
results and any-match semantics.
In `@pkg/component/container/bulk_tags_test.go`:
- Around line 142-163: The TestFilterByTagsAndLabels test lacks coverage for
combining tag and label filters. Add a subtest using the existing rows with Tags
set to production and Labels set to cost-center=data, then assert that
filterByTagsAndLabels returns no rows, verifying both criteria must match rather
than being combined with OR logic.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 9d135861-6071-4cbe-acdf-2526cd22347d
📒 Files selected for processing (107)
cmd/auth/list.gocmd/auth/list_test.gocmd/auth/login.gocmd/auth/login_test.gocmd/auth/logout.gocmd/auth/logout_test.gocmd/container/container.gocmd/container/dispatch_test.gocmd/container/verbs.gocmd/helm/helm.gocmd/helm/helm_test.gocmd/kubernetes/kubernetes.gocmd/kubernetes/kubernetes_test.gocmd/list/components.gocmd/list/components_test.gocmd/list/flag_wrappers.gocmd/terraform/flags.gocmd/terraform/options.gocmd/terraform/utils.gocmd/terraform/utils_test.godemo/casts/atmos.d/examples/quick-start-advanced/list-instances.yamlerrors/errors.goexamples/demo-auth/README.mdexamples/demo-auth/atmos.yamlexamples/quick-start-advanced/README.mdexamples/quick-start-advanced/stacks/catalog/app-config/defaults.yamlexamples/quick-start-advanced/stacks/catalog/dynamodb-table/defaults.yamlexamples/quick-start-advanced/stacks/catalog/kms-key/defaults.yamlexamples/quick-start-advanced/stacks/catalog/s3-bucket/defaults.yamlexamples/quick-start-advanced/stacks/catalog/sns-topic/defaults.yamlexamples/quick-start-advanced/stacks/catalog/sqs-queue/defaults.yamlinternal/exec/yaml_func_tags.gointernal/exec/yaml_func_tags_test.gointernal/exec/yaml_func_utils.gopkg/component/container/bulk.gopkg/component/container/bulk_tags_test.gopkg/component/container/list.gopkg/component/graph.gopkg/component/graph_tags_test.gopkg/component/helm/executor.gopkg/component/kubernetes/executor.gopkg/datafetcher/schema/atmos/manifest/1.0.jsonpkg/datafetcher/schema/stacks/stack-config/1.0.jsonpkg/function/tag/tag.gopkg/function/tag/tag_test.gopkg/function/tags.gopkg/function/tags_test.gopkg/list/extract/components.gopkg/list/extract/components_test.gopkg/list/filter/filter.gopkg/list/filter/filter_test.gopkg/scheduler/adapters/terraform.gopkg/scheduler/adapters/terraform_tags_test.gopkg/schema/schema.gopkg/schema/schema_auth.gopkg/tags/convert.gopkg/tags/convert_test.gopkg/tags/flags.gopkg/tags/flags_test.gopkg/tags/labels.gopkg/tags/labels_test.gopkg/tags/tags.gopkg/tags/tags_test.gopkg/utils/yaml_utils.gopkg/utils/yaml_utils_test.gopkg/utils/yaml_utils_unsupported_test.gotests/snapshots/TestCLICommands_atmos_auth_login_--help.stdout.goldentests/snapshots/TestCLICommands_atmos_terraform_--help.stdout.goldentests/snapshots/TestCLICommands_atmos_terraform_--help_alias_subcommand_check.stdout.goldentests/snapshots/TestCLICommands_atmos_terraform_help.stdout.goldentests/snapshots/TestCLICommands_config_alias_tr_--help_shows_terraform_help.stdout.goldentests/snapshots/TestCLICommands_terraform_help_shows_stack_flag.stdout.goldentests/snapshots/TestCLICommands_terraform_provision_help_shows_inherited_stack_flag.stdout.goldentests/snapshots/TestCLICommands_tf_plan_help_shows_inherited_stack_flag.stdout.goldenwebsite/blog/2026-07-11-tags-and-labels.mdxwebsite/docs/cli/commands/auth/auth-list.mdxwebsite/docs/cli/commands/auth/auth-login.mdxwebsite/docs/cli/commands/auth/logout.mdxwebsite/docs/cli/commands/container/usage.mdxwebsite/docs/cli/commands/helm/helm-apply.mdxwebsite/docs/cli/commands/helm/helm-delete.mdxwebsite/docs/cli/commands/helm/helm-deploy.mdxwebsite/docs/cli/commands/helm/helm-diff.mdxwebsite/docs/cli/commands/helm/helm-plan.mdxwebsite/docs/cli/commands/helm/helm-template.mdxwebsite/docs/cli/commands/helm/usage.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-apply.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-delete.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-deploy.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-diff.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-plan.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-render.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-validate.mdxwebsite/docs/cli/commands/kubernetes/usage.mdxwebsite/docs/cli/commands/list/list-components.mdxwebsite/docs/cli/commands/terraform/terraform-apply.mdxwebsite/docs/cli/commands/terraform/terraform-deploy.mdxwebsite/docs/cli/commands/terraform/terraform-plan.mdxwebsite/docs/cli/commands/terraform/usage.mdxwebsite/docs/functions/yaml/index.mdxwebsite/docs/functions/yaml/labels.keys.mdxwebsite/docs/functions/yaml/labels.mdxwebsite/docs/functions/yaml/labels.values.mdxwebsite/docs/functions/yaml/tags.mdxwebsite/docs/stacks/components/metadata.mdxwebsite/src/data/roadmap.jswebsite/static/casts/examples/quick-start-advanced/list-instances.cast
🚧 Files skipped from review as they are similar to previous changes (87)
- tests/snapshots/TestCLICommands_atmos_auth_login_--help.stdout.golden
- examples/quick-start-advanced/stacks/catalog/kms-key/defaults.yaml
- examples/quick-start-advanced/stacks/catalog/dynamodb-table/defaults.yaml
- examples/quick-start-advanced/stacks/catalog/sns-topic/defaults.yaml
- examples/quick-start-advanced/stacks/catalog/s3-bucket/defaults.yaml
- demo/casts/atmos.d/examples/quick-start-advanced/list-instances.yaml
- website/docs/cli/commands/list/list-components.mdx
- examples/quick-start-advanced/stacks/catalog/sqs-queue/defaults.yaml
- tests/snapshots/TestCLICommands_config_alias_tr_--help_shows_terraform_help.stdout.golden
- pkg/tags/tags.go
- website/docs/cli/commands/helm/helm-template.mdx
- website/docs/cli/commands/kubernetes/kubernetes-apply.mdx
- tests/snapshots/TestCLICommands_terraform_help_shows_stack_flag.stdout.golden
- pkg/component/kubernetes/executor.go
- cmd/list/flag_wrappers.go
- website/docs/cli/commands/helm/helm-deploy.mdx
- website/docs/cli/commands/helm/helm-delete.mdx
- pkg/tags/flags_test.go
- pkg/datafetcher/schema/atmos/manifest/1.0.json
- website/docs/cli/commands/auth/logout.mdx
- website/docs/cli/commands/helm/usage.mdx
- cmd/terraform/flags.go
- pkg/tags/labels.go
- tests/snapshots/TestCLICommands_atmos_terraform_--help_alias_subcommand_check.stdout.golden
- website/docs/cli/commands/helm/helm-diff.mdx
- website/docs/cli/commands/auth/auth-list.mdx
- website/docs/stacks/components/metadata.mdx
- pkg/schema/schema.go
- pkg/function/tags.go
- pkg/tags/flags.go
- pkg/tags/convert.go
- website/docs/cli/commands/kubernetes/kubernetes-plan.mdx
- website/docs/cli/commands/kubernetes/usage.mdx
- pkg/schema/schema_auth.go
- pkg/datafetcher/schema/stacks/stack-config/1.0.json
- website/src/data/roadmap.js
- website/docs/cli/commands/kubernetes/kubernetes-deploy.mdx
- internal/exec/yaml_func_tags.go
- tests/snapshots/TestCLICommands_atmos_terraform_help.stdout.golden
- pkg/tags/convert_test.go
- tests/snapshots/TestCLICommands_terraform_provision_help_shows_inherited_stack_flag.stdout.golden
- website/docs/cli/commands/kubernetes/kubernetes-validate.mdx
- examples/quick-start-advanced/README.md
- website/docs/cli/commands/kubernetes/kubernetes-delete.mdx
- website/docs/cli/commands/kubernetes/kubernetes-diff.mdx
- tests/snapshots/TestCLICommands_tf_plan_help_shows_inherited_stack_flag.stdout.golden
- website/docs/cli/commands/terraform/terraform-apply.mdx
- pkg/utils/yaml_utils_unsupported_test.go
- website/docs/cli/commands/helm/helm-apply.mdx
- pkg/function/tag/tag_test.go
- pkg/component/graph_tags_test.go
- pkg/list/extract/components_test.go
- pkg/utils/yaml_utils.go
- internal/exec/yaml_func_tags_test.go
- pkg/tags/labels_test.go
- pkg/utils/yaml_utils_test.go
- pkg/list/filter/filter_test.go
- cmd/auth/login_test.go
- examples/demo-auth/atmos.yaml
- internal/exec/yaml_func_utils.go
- pkg/function/tag/tag.go
- website/docs/cli/commands/terraform/terraform-plan.mdx
- pkg/scheduler/adapters/terraform_tags_test.go
- cmd/container/dispatch_test.go
- tests/snapshots/TestCLICommands_atmos_terraform_--help.stdout.golden
- cmd/kubernetes/kubernetes.go
- pkg/component/helm/executor.go
- cmd/auth/logout_test.go
- pkg/function/tags_test.go
- website/docs/cli/commands/terraform/terraform-deploy.mdx
- cmd/kubernetes/kubernetes_test.go
- cmd/helm/helm.go
- cmd/container/verbs.go
- pkg/list/filter/filter.go
- pkg/component/container/bulk.go
- pkg/component/container/list.go
- pkg/list/extract/components.go
- pkg/scheduler/adapters/terraform.go
- cmd/list/components_test.go
- website/docs/cli/commands/kubernetes/kubernetes-render.mdx
- cmd/auth/logout.go
- cmd/terraform/options.go
- cmd/helm/helm_test.go
- cmd/terraform/utils_test.go
- cmd/container/container.go
- cmd/terraform/utils.go
- website/static/casts/examples/quick-start-advanced/list-instances.cast
Adds targeted tests for the previously-undertested lines this PR introduced: listTagsFlagCompletion, the --tags dispatch branch in authenticateIdentity, the tags-mutually-exclusive and --tags dispatch paths in executeAuthLogoutCommand, the errors.Join partial-failure path in performTagsLogout, the --tags filter path in executeAuthListCommand, and parseLabelsFlag in cmd/terraform/options.go (previously untested).
Addresses CodeRabbit review on #2738: the applyFilters tags test only used a single tag, so it couldn't distinguish any-match from all-match; and TestFilterByTagsAndLabels never combined tags with labels, so an accidental OR between the two dimensions would have gone undetected.
Reframe the intro and section ordering around the everyday case (filtering components/stacks by tag) instead of opening with an auth-identity scenario most readers won't relate to. Auth is now presented as an extension of the same standard, not the headline. Co-Authored-By: Claude Sonnet 5 <[email protected]>
There was a problem hiding this comment.
🧹 Nitpick comments (2)
website/blog/2026-07-11-tags-and-labels.mdx (2)
86-100: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueClarify the count of new YAML functions.
Line 86 says "two new YAML functions" but the post goes on to introduce
!tags,!labels,!labels.keys, and!labels.values— four functions total. The "two" framing likely refers to!tagsand!labelsas the primary forms with.keys/.valuesas helpers, but this can confuse readers counting the functions.✏️ Suggested rewording
-**Bridging into your modules** — two new YAML functions read a component's own `metadata.tags`/`metadata.labels` without the usual `!template`/`toJson` boilerplate. The most common use is feeding `metadata.labels` into the `var.tags` a `terraform-null-label`-style module expects (Terraform and AWS call a map "tags"; Atmos calls it a "label" — same data, different name): +**Bridging into your modules** — new YAML functions read a component's own `metadata.tags`/`metadata.labels` without the usual `!template`/`toJson` boilerplate. The most common use is feeding `metadata.labels` into the `var.tags` a `terraform-null-label`-style module expects (Terraform and AWS call a map "tags"; Atmos calls it a "label" — same data, different name):🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@website/blog/2026-07-11-tags-and-labels.mdx` around lines 86 - 100, Update the opening description around the YAML tag/label helpers to clarify that there are four functions total: primary !tags and !labels forms plus the !labels.keys and !labels.values helpers. Keep the existing examples and behavior unchanged.
104-104: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueCapitalize "Terraform" in prose for consistency.
Line 104 uses lowercase "terraform" while line 18 capitalizes it as "Terraform" in the same prose context. CLI commands correctly use lowercase, but prose should be consistent.
✏️ Suggested fix
-Tags and labels are supported today on components across terraform, Kubernetes, Helm, and container components, and on auth identities and providers. +Tags and labels are supported today on components across Terraform, Kubernetes, Helm, and container components, and on auth identities and providers.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@website/blog/2026-07-11-tags-and-labels.mdx` at line 104, Update the prose in the tags-and-labels blog content to capitalize “terraform” as “Terraform” in the sentence listing supported components, matching the existing capitalization used elsewhere while leaving CLI command names unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@website/blog/2026-07-11-tags-and-labels.mdx`:
- Around line 86-100: Update the opening description around the YAML tag/label
helpers to clarify that there are four functions total: primary !tags and
!labels forms plus the !labels.keys and !labels.values helpers. Keep the
existing examples and behavior unchanged.
- Line 104: Update the prose in the tags-and-labels blog content to capitalize
“terraform” as “Terraform” in the sentence listing supported components,
matching the existing capitalization used elsewhere while leaving CLI command
names unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 7a671bbc-087a-4cd6-8a70-d775fba39d74
📒 Files selected for processing (1)
website/blog/2026-07-11-tags-and-labels.mdx
…o types Drop []string/map[string]string syntax in favor of plain English, and reframe The Problem around the actual use case (annotating infra to target slices of it, the same reason cloud tags and Kubernetes labels exist) instead of framing gaps in Atmos's own CLI flags as the problem. Co-Authored-By: Claude Sonnet 5 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@website/blog/2026-07-11-tags-and-labels.mdx`:
- Around line 8-10: Update the introductory paragraph around the sentence
beginning “Tags and labels give components” to remove unsupported claims about
stacks and accounts. Limit the stated tagging and labeling support to components
and auth identities/providers, while preserving the point that organizational
context enables selection by what infrastructure is rather than where it is
filed.
- Line 105: Update the supported-resource sentence in the blog content to
distinguish terminology accurately: refer to tags for auth identities and
providers, while retaining labels only for component types that expose labels.
Keep the surrounding cloud-provider metadata example and wording unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 98ef5785-5746-490c-9f1b-a50f182e616e
📒 Files selected for processing (1)
website/blog/2026-07-11-tags-and-labels.mdx
Verified against internal/exec/yaml_func_tags.go: there are four YAML functions (!tags, !labels, !labels.keys, !labels.values), not two. Also fix inconsistent lowercase "terraform" in the Get Involved paragraph to match "Terraform" used elsewhere in prose. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Verified against pkg/schema/schema_auth.go: Provider and Identity structs only define Tags []string, no Labels field, and no auth code path calls tags.MatchesLabels. Component metadata (terraform/ kubernetes/helm/container) supports both tags and labels via the generic metadata map. Corrected the Get Involved sentence to stop implying labels apply to auth. Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
CodeRabbit (@coderabbitai) full review |
✅ Action performedFull review finished. |
There was a problem hiding this comment.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
pkg/datafetcher/schema/atmos/manifest/1.0.json (1)
1365-1446: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winMirror
metadata.tagsandmetadata.labelsinpkg/datafetcher/schema/atmos/manifest/1.0.json.
Thismetadataobject is stilladditionalProperties: falseand doesn’t list the new fields, so component manifests usingtagsorlabelswill be rejected here even thoughpkg/datafetcher/schema/stacks/stack-config/1.0.jsonalready allows them.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/datafetcher/schema/atmos/manifest/1.0.json` around lines 1365 - 1446, Update the metadata.properties schema in the manifest definition to add tags and labels, matching the corresponding definitions in the stack-config schema. Keep metadata.additionalProperties set to false and preserve the existing field types and validation behavior.
♻️ Duplicate comments (1)
website/blog/2026-07-11-tags-and-labels.mdx (1)
10-10: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winLine 10 still overclaims scope: stacks, accounts, and labels for auth.
This sentence implies tags and labels are supported on stacks, accounts, and auth identities. Per line 103 and the PR scope, only components support both tags and labels; auth identities and providers support tags only; stacks and accounts are not supported at all. This was flagged in a previous review and marked addressed, but the current text still contains the overclaim.
Suggested fix:
-Tags and labels give components — and stacks, accounts, and auth identities — that organizational context directly, so you can select and act on infrastructure by what it is instead of by where you filed it. +Tags and labels give components — and auth identities and providers — that organizational context directly, so you can select and act on infrastructure by what it is instead of by where you filed it.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@website/blog/2026-07-11-tags-and-labels.mdx` at line 10, Update the introductory sentence near the opening of the article to accurately state that components support both tags and labels, auth identities and providers support tags only, and stacks and accounts are outside the supported scope; remove the implication that labels apply to all listed resource types.
🧹 Nitpick comments (9)
cmd/auth/login.go (1)
260-282: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winDRY:
buildNoIdentitiesMatchTagsErrorandbuildNoProvidersMatchTagsErrorare structural clones. Both functions aggregate tags from a map of items, sort them, and build a "no match" error with the same hint format — only the map type, sentinel, and entity name differ. Extract a genericCollectAvailableTagshelper intopkg/tagsto eliminate the duplication.
cmd/auth/login.go#L260-L282: Replace inline tag aggregation withtags.CollectAvailableTags(identities, func(id schema.Identity) []string { return id.Tags }).cmd/auth/logout.go#L683-L705: Replace inline tag aggregation withtags.CollectAvailableTags(providers, func(p schema.Provider) []string { return p.Tags }).♻️ Proposed shared helper
// pkg/tags/tags.go import "sort" // CollectAvailableTags gathers all unique tags from a map of items and returns them sorted. func CollectAvailableTags[T any](items map[string]T, getTags func(T) []string) []string { tagSet := make(map[string]struct{}) for name := range items { for _, tag := range getTags(items[name]) { tagSet[tag] = struct{}{} } } availableTags := make([]string, 0, len(tagSet)) for tag := range tagSet { availableTags = append(availableTags, tag) } sort.Strings(availableTags) return availableTags }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cmd/auth/login.go` around lines 260 - 282, Extract the shared sorted tag aggregation into pkg/tags as CollectAvailableTags[T any](items map[string]T, getTags func(T) []string), then update cmd/auth/login.go lines 260-282 in buildNoIdentitiesMatchTagsError to call tags.CollectAvailableTags with schema.Identity tags, and cmd/auth/logout.go lines 683-705 in buildNoProvidersMatchTagsError to call it with schema.Provider tags; preserve each function’s existing error sentinel and hint formatting.pkg/component/graph_tags_test.go (1)
102-120: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winConsider adding a combined tags+labels test case.
TestMatchesGraphTagsAndLabelscovers tags-only and labels-only paths, butmatchesGraphTagsAndLabelsalso handles both set simultaneously (graph.go lines 228-239). A combined case would close that gap.🧪 Suggested additional sub-test
t.Run("labels all-match", func(t *testing.T) { require.True(t, matchesGraphTagsAndLabels(node, &schema.ConfigAndStacksInfo{Labels: map[string]string{"compliance": "sox"}})) require.False(t, matchesGraphTagsAndLabels(node, &schema.ConfigAndStacksInfo{Labels: map[string]string{"compliance": "wrong"}})) }) + + t.Run("tags and labels combined", func(t *testing.T) { + require.True(t, matchesGraphTagsAndLabels(node, &schema.ConfigAndStacksInfo{ + Tags: []string{"production"}, + Labels: map[string]string{"cost-center": "platform"}, + })) + require.False(t, matchesGraphTagsAndLabels(node, &schema.ConfigAndStacksInfo{ + Tags: []string{"nonexistent"}, + Labels: map[string]string{"cost-center": "platform"}, + })) + require.False(t, matchesGraphTagsAndLabels(node, &schema.ConfigAndStacksInfo{ + Tags: []string{"production"}, + Labels: map[string]string{"cost-center": "wrong"}, + })) + }) }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/component/graph_tags_test.go` around lines 102 - 120, The TestMatchesGraphTagsAndLabels coverage lacks a case where tags and labels are provided together. Add a sub-test invoking matchesGraphTagsAndLabels with both matching tags and labels, asserting it succeeds, and another with one mismatched criterion asserting it fails.pkg/tags/flags_test.go (1)
32-67: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd test for values containing
=.
ParseLabelsFlagusesstrings.Cutwhich splits on the first=, so"key=val=ue"produces{"key": "val=ue"}. This is an important edge case worth a test to lock in the behavior.🧪 Suggested additional test case
+ t.Run("value containing equals sign", func(t *testing.T) { + got, err := ParseLabelsFlag("key=val=ue") + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + if got["key"] != "val=ue" { + t.Fatalf("ParseLabelsFlag() = %v, want key=val=ue", got) + } + }) + t.Run("missing equals sign errors", func(t *testing.T) {🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/tags/flags_test.go` around lines 32 - 67, Add a subtest to TestParseLabelsFlag covering a value containing an additional equals sign, such as key=val=ue; assert parsing succeeds and returns the key mapped to the complete value val=ue, preserving the first-equals-sign split behavior.cmd/helm/helm.go (1)
98-99: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse
flags.NewStandardParser()instead ofcmd.Flags()for command-specific flags.The new
--tagsand--labelsflags are registered viacmd.Flags().StringSlice()andcmd.Flags().String()directly, while the equivalent flags incmd/kubernetes/kubernetes.goandcmd/container/verbs.gouseflags.NewStandardParser(). The coding guidelines requireflags.NewStandardParser()for command-specific flags. Consider migrating all flags innewOperationCommandto the standard parser pattern (asoperationFlagOptionsdoes in the kubernetes file) for both guideline compliance and cross-file consistency.♻️ Suggested refactor: migrate to standard parser
func newOperationCommand(name, short string) *cobra.Command { cmd := &cobra.Command{ Use: name + " [component]", Args: validateOperationArgs, Short: short, RunE: func(cmd *cobra.Command, args []string) error { return runOperation(cmd, name, args) }, } - cmd.Flags().Bool("all", false, "Process all Helm components in dependency order.") - cmd.Flags().Bool("affected", false, "Process affected Helm components in dependency order.") - cmd.Flags().Bool("ci", false, "Enable CI mode for automated pipelines (writes job summary).") - cmd.Flags().Bool("include-dependents", false, "Include dependent components when processing affected Helm components.") - cmd.Flags().String("repo-path", "", "Path to the already cloned target repository to use as the affected baseline.") - cmd.Flags().String("base", "", "Git base ref or SHA to compare against for affected detection.") - cmd.Flags().String("ref", "", "Git ref to compare against for affected detection.") - cmd.Flags().String("sha", "", "Git SHA to compare against for affected detection.") - cmd.Flags().String("ssh-key", "", "Path to the SSH private key used to clone the target ref for affected detection.") - cmd.Flags().String("ssh-key-password", "", "Password for the SSH private key used to clone the target ref for affected detection.") - cmd.Flags().Bool("clone-target-ref", false, "Clone the target ref instead of checking it out in the current repository for affected detection.") - cmd.Flags().StringSlice("tags", nil, "Filter by tags (comma-separated, matches any): --tags=production,tier-1") - cmd.Flags().String("labels", "", "Filter by labels (comma-separated key=value pairs, matches all): --labels=cost-center=platform,compliance=sox") + options := []flags.Option{ + flags.WithBoolFlag("all", "", false, "Process all Helm components in dependency order."), + flags.WithBoolFlag("affected", "", false, "Process affected Helm components in dependency order."), + flags.WithBoolFlag("ci", "", false, "Enable CI mode for automated pipelines (writes job summary)."), + flags.WithBoolFlag("include-dependents", "", false, "Include dependent components when processing affected Helm components."), + flags.WithStringFlag("repo-path", "", "", "Path to the already cloned target repository to use as the affected baseline."), + flags.WithStringFlag("base", "", "", "Git base ref or SHA to compare against for affected detection."), + flags.WithStringFlag("ref", "", "", "Git ref to compare against for affected detection."), + flags.WithStringFlag("sha", "", "", "Git SHA to compare against for affected detection."), + flags.WithStringFlag("ssh-key", "", "", "Path to the SSH private key used to clone the target ref for affected detection."), + flags.WithStringFlag("ssh-key-password", "", "", "Password for the SSH private key used to clone the target ref for affected detection."), + flags.WithBoolFlag("clone-target-ref", "", false, "Clone the target ref instead of checking it out in the current repository for affected detection."), + flags.WithStringSliceFlag("tags", "", nil, "Filter by tags (comma-separated, matches any): --tags=production,tier-1"), + flags.WithStringFlag("labels", "", "", "Filter by labels (comma-separated key=value pairs, matches all): --labels=cost-center=platform,compliance=sox"), + } + if name == "template" { - cmd.Flags().String("output", "", "Write rendered manifests to a single multi-document YAML file.") - cmd.Flags().String("output-dir", "", "Write rendered manifests to a directory.") - cmd.Flags().Bool("split", false, "Write one rendered manifest file per object. Requires --output-dir.") + options = append(options, + flags.WithStringFlag("output", "", "", "Write rendered manifests to a single multi-document YAML file."), + flags.WithStringFlag("output-dir", "", "", "Write rendered manifests to a directory."), + flags.WithBoolFlag("split", "", false, "Write one rendered manifest file per object. Requires --output-dir."), + ) } if name == "apply" || name == "deploy" { - cmd.Flags().String("target", "", "Provision target to deliver to (e.g. a git deployment repository). Defaults to provision.default, otherwise the cluster.") + options = append(options, + flags.WithStringFlag("target", "", "", "Provision target to deliver to (e.g. a git deployment repository). Defaults to provision.default, otherwise the cluster."), + ) } if name == "diff" || name == "plan" { - cmd.Flags().String("against", "", "Baseline to diff against: 'release' (the deployed release, default), or 'target[:<name>]' for the git deployment-repo provision target (offline).") - cmd.Flags().String("from-manifest", "", "Diff against a local baseline manifest file instead of the cluster (offline).") - cmd.Flags().Int("context", 3, "Number of unchanged context lines to show around each change.") + options = append(options, + flags.WithStringFlag("against", "", "", "Baseline to diff against: 'release' (the deployed release, default), or 'target[:<name>]' for the git deployment-repo provision target (offline)."), + flags.WithStringFlag("from-manifest", "", "", "Diff against a local baseline manifest file instead of the cluster (offline)."), + flags.WithIntFlag("context", "", 3, "Number of unchanged context lines to show around each change."), + ) } + parser := flags.NewStandardParser(options...) + parser.RegisterFlags(cmd) + return cmd }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cmd/helm/helm.go` around lines 98 - 99, Update newOperationCommand to register the command-specific tags and labels options through flags.NewStandardParser(), following the operationFlagOptions pattern in the Kubernetes command, and migrate its other command-specific flags to the same parser where applicable. Remove direct cmd.Flags() registration while preserving the existing flag names, types, defaults, and descriptions.Source: Coding guidelines
cmd/list/components.go (1)
106-148: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win
parseTagsFlag/parseLabelsFlagand their tests are duplicated frompkg/tags. The root cause is that these parsing functions were copied intocmd/listinstead of being exported frompkg/tagsand imported, violating the guideline to extend existing code rather than duplicate it.
cmd/list/components.go#L106-L148: ExportParseTagsFlagandParseLabelsFlagfrompkg/tagsand import them here instead of defining local copies. Remove the localparseTagsFlagandparseLabelsFlagfunctions.cmd/list/components_test.go#L342-L391: RemoveTestParseTagsFlagandTestParseLabelsFlag— the identical tests inpkg/tags/flags_test.goalready cover the exported functions.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cmd/list/components.go` around lines 106 - 148, The tag and label parsers are duplicated in cmd/list instead of being reused from pkg/tags. In cmd/list/components.go lines 106-148, export the existing pkg/tags parser functions as ParseTagsFlag and ParseLabelsFlag, import and use them in place of the local parseTagsFlag and parseLabelsFlag definitions, and remove those local functions. In cmd/list/components_test.go lines 342-391, remove TestParseTagsFlag and TestParseLabelsFlag because pkg/tags/flags_test.go already covers the exported implementations.Source: Coding guidelines
cmd/terraform/options.go (1)
97-129: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse the shared label parser.
pkg/tags.ParseLabelsFlagalready covers this comma-separatedkey=valueformat and is used by the other command families, so keeping a second implementation here just risks drift in trimming and error text.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cmd/terraform/options.go` around lines 97 - 129, The local parseLabelsFlag implementation duplicates shared behavior; replace its use and remove the duplicate helper by importing and calling pkg/tags.ParseLabelsFlag when parsing the labels option. Preserve the existing error propagation and opts.Labels assignment, relying on the shared parser’s trimming and validation behavior.Source: Coding guidelines
pkg/tags/convert_test.go (1)
60-78: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueConsider adding nil and empty-map edge cases to
TestSortedKeysAndValues.
SortedKeysandSortedValueshandle nil and empty maps correctly (Go'slen(nil)returns 0 andrangeover a nil map is a no-op), but these paths aren't exercised by the current test. Adding them would guard against future regressions.♻️ Proposed additional test cases
func TestSortedKeysAndValues(t *testing.T) { m := map[string]string{"b": "2", "a": "1", "c": "3"} keys := SortedKeys(m) wantKeys := []string{"a", "b", "c"} for i := range wantKeys { if keys[i] != wantKeys[i] { t.Fatalf("SortedKeys() = %v, want %v", keys, wantKeys) } } values := SortedValues(m) wantValues := []string{"1", "2", "3"} for i := range wantValues { if values[i] != wantValues[i] { t.Fatalf("SortedValues() = %v, want %v", values, wantValues) } } + + t.Run("nil map returns empty slices", func(t *testing.T) { + assert.Empty(t, SortedKeys(nil)) + assert.Empty(t, SortedValues(nil)) + }) + + t.Run("empty map returns empty slices", func(t *testing.T) { + assert.Empty(t, SortedKeys(map[string]string{})) + assert.Empty(t, SortedValues(map[string]string{})) + }) }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/tags/convert_test.go` around lines 60 - 78, Extend TestSortedKeysAndValues with nil-map and empty-map cases, asserting that both SortedKeys and SortedValues return empty results without errors. Keep the existing non-empty ordering assertions unchanged.pkg/component/container/list.go (1)
149-161: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueConsider returning empty slices/maps instead of nil for consistency.
tagsAndLabelsFromComponentreturnsnil, nilwhen metadata is missing, buttags.ToStringSlice/tags.ToStringMapreturn empty non-nil values when metadata exists but tags/labels don't. This meansinstanceRow.tagscan be eithernilor[]string{}depending on whether the component has a metadata block. While functionally equivalent for filtering, the inconsistency could surface in JSON output (nullvs[]) or equality assertions.♻️ Proposed refactor for consistent empty values
func tagsAndLabelsFromComponent(compData any) ([]string, map[string]string) { compMap, ok := compData.(map[string]any) if !ok { - return nil, nil + return []string{}, map[string]string{} } metadata, ok := compMap["metadata"].(map[string]any) if !ok { - return nil, nil + return []string{}, map[string]string{} } return tags.ToStringSlice(metadata["tags"]), tags.ToStringMap(metadata["labels"]) }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/component/container/list.go` around lines 149 - 161, Update tagsAndLabelsFromComponent to return empty non-nil slices and maps whenever compData is not a map or metadata is absent, matching the values produced by tags.ToStringSlice and tags.ToStringMap for missing fields. Preserve the existing extraction behavior when metadata is present.pkg/tags/tags_test.go (1)
13-23: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winConsider adding edge cases for
TagModeAllwith empty filter and duplicate tags.The table covers
TagModeAnywith empty filter and duplicate filter tags, but the equivalentTagModeAllcases are missing. SinceMatchesTagsreturnstruefor emptyfilterTagsregardless of mode, anTagModeAllempty-filter case would lock that contract.♻️ Suggested additional test cases
{"any: duplicate filter tags", []string{"a"}, []string{"a", "a"}, TagModeAny, true}, + {"all: empty filter matches all", []string{"a"}, nil, TagModeAll, true}, + {"all: empty filter matches entity with no tags", nil, nil, TagModeAll, true}, + {"all: duplicate filter tags", []string{"a", "b"}, []string{"a", "a"}, TagModeAll, true}, }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/tags/tags_test.go` around lines 13 - 23, The MatchesTags table-driven tests should also cover TagModeAll edge cases. Add cases for an empty filter matching both tagged and untagged entities, plus duplicate filter tags under TagModeAll, preserving the expected true/false results consistent with MatchesTags behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@cmd/auth/logout.go`:
- Around line 615-681: Reduce the funlen violation in performTagsLogout by
either adding a targeted //nolint:funlen annotation or extracting the dry-run
and keychain-confirmation branches into focused helpers. Preserve the existing
provider matching, confirmation, logout, error aggregation, and success
behavior.
In `@internal/exec/yaml_func_tags.go`:
- Around line 10-12: Update the multi-line comment for componentMetadata so its
final line ends with a period, without changing the surrounding description or
implementation.
In `@website/docs/stacks/components/metadata.mdx`:
- Line 246: Add a route slug for the list-components documentation page
identified by its frontmatter `id: components`, using
`/cli/commands/list/components` so the existing link resolves; preserve the
current document content and metadata.
---
Outside diff comments:
In `@pkg/datafetcher/schema/atmos/manifest/1.0.json`:
- Around line 1365-1446: Update the metadata.properties schema in the manifest
definition to add tags and labels, matching the corresponding definitions in the
stack-config schema. Keep metadata.additionalProperties set to false and
preserve the existing field types and validation behavior.
---
Duplicate comments:
In `@website/blog/2026-07-11-tags-and-labels.mdx`:
- Line 10: Update the introductory sentence near the opening of the article to
accurately state that components support both tags and labels, auth identities
and providers support tags only, and stacks and accounts are outside the
supported scope; remove the implication that labels apply to all listed resource
types.
---
Nitpick comments:
In `@cmd/auth/login.go`:
- Around line 260-282: Extract the shared sorted tag aggregation into pkg/tags
as CollectAvailableTags[T any](items map[string]T, getTags func(T) []string),
then update cmd/auth/login.go lines 260-282 in buildNoIdentitiesMatchTagsError
to call tags.CollectAvailableTags with schema.Identity tags, and
cmd/auth/logout.go lines 683-705 in buildNoProvidersMatchTagsError to call it
with schema.Provider tags; preserve each function’s existing error sentinel and
hint formatting.
In `@cmd/helm/helm.go`:
- Around line 98-99: Update newOperationCommand to register the command-specific
tags and labels options through flags.NewStandardParser(), following the
operationFlagOptions pattern in the Kubernetes command, and migrate its other
command-specific flags to the same parser where applicable. Remove direct
cmd.Flags() registration while preserving the existing flag names, types,
defaults, and descriptions.
In `@cmd/list/components.go`:
- Around line 106-148: The tag and label parsers are duplicated in cmd/list
instead of being reused from pkg/tags. In cmd/list/components.go lines 106-148,
export the existing pkg/tags parser functions as ParseTagsFlag and
ParseLabelsFlag, import and use them in place of the local parseTagsFlag and
parseLabelsFlag definitions, and remove those local functions. In
cmd/list/components_test.go lines 342-391, remove TestParseTagsFlag and
TestParseLabelsFlag because pkg/tags/flags_test.go already covers the exported
implementations.
In `@cmd/terraform/options.go`:
- Around line 97-129: The local parseLabelsFlag implementation duplicates shared
behavior; replace its use and remove the duplicate helper by importing and
calling pkg/tags.ParseLabelsFlag when parsing the labels option. Preserve the
existing error propagation and opts.Labels assignment, relying on the shared
parser’s trimming and validation behavior.
In `@pkg/component/container/list.go`:
- Around line 149-161: Update tagsAndLabelsFromComponent to return empty non-nil
slices and maps whenever compData is not a map or metadata is absent, matching
the values produced by tags.ToStringSlice and tags.ToStringMap for missing
fields. Preserve the existing extraction behavior when metadata is present.
In `@pkg/component/graph_tags_test.go`:
- Around line 102-120: The TestMatchesGraphTagsAndLabels coverage lacks a case
where tags and labels are provided together. Add a sub-test invoking
matchesGraphTagsAndLabels with both matching tags and labels, asserting it
succeeds, and another with one mismatched criterion asserting it fails.
In `@pkg/tags/convert_test.go`:
- Around line 60-78: Extend TestSortedKeysAndValues with nil-map and empty-map
cases, asserting that both SortedKeys and SortedValues return empty results
without errors. Keep the existing non-empty ordering assertions unchanged.
In `@pkg/tags/flags_test.go`:
- Around line 32-67: Add a subtest to TestParseLabelsFlag covering a value
containing an additional equals sign, such as key=val=ue; assert parsing
succeeds and returns the key mapped to the complete value val=ue, preserving the
first-equals-sign split behavior.
In `@pkg/tags/tags_test.go`:
- Around line 13-23: The MatchesTags table-driven tests should also cover
TagModeAll edge cases. Add cases for an empty filter matching both tagged and
untagged entities, plus duplicate filter tags under TagModeAll, preserving the
expected true/false results consistent with MatchesTags behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 29f9f94f-c7e1-45aa-859f-8562fe478679
📒 Files selected for processing (108)
cmd/auth/list.gocmd/auth/list_test.gocmd/auth/login.gocmd/auth/login_test.gocmd/auth/logout.gocmd/auth/logout_test.gocmd/container/container.gocmd/container/dispatch_test.gocmd/container/verbs.gocmd/helm/helm.gocmd/helm/helm_test.gocmd/kubernetes/kubernetes.gocmd/kubernetes/kubernetes_test.gocmd/list/components.gocmd/list/components_test.gocmd/list/flag_wrappers.gocmd/terraform/flags.gocmd/terraform/options.gocmd/terraform/options_test.gocmd/terraform/utils.gocmd/terraform/utils_test.godemo/casts/atmos.d/examples/quick-start-advanced/list-instances.yamlerrors/errors.goexamples/demo-auth/README.mdexamples/demo-auth/atmos.yamlexamples/quick-start-advanced/README.mdexamples/quick-start-advanced/stacks/catalog/app-config/defaults.yamlexamples/quick-start-advanced/stacks/catalog/dynamodb-table/defaults.yamlexamples/quick-start-advanced/stacks/catalog/kms-key/defaults.yamlexamples/quick-start-advanced/stacks/catalog/s3-bucket/defaults.yamlexamples/quick-start-advanced/stacks/catalog/sns-topic/defaults.yamlexamples/quick-start-advanced/stacks/catalog/sqs-queue/defaults.yamlinternal/exec/yaml_func_tags.gointernal/exec/yaml_func_tags_test.gointernal/exec/yaml_func_utils.gopkg/component/container/bulk.gopkg/component/container/bulk_tags_test.gopkg/component/container/list.gopkg/component/graph.gopkg/component/graph_tags_test.gopkg/component/helm/executor.gopkg/component/kubernetes/executor.gopkg/datafetcher/schema/atmos/manifest/1.0.jsonpkg/datafetcher/schema/stacks/stack-config/1.0.jsonpkg/function/tag/tag.gopkg/function/tag/tag_test.gopkg/function/tags.gopkg/function/tags_test.gopkg/list/extract/components.gopkg/list/extract/components_test.gopkg/list/filter/filter.gopkg/list/filter/filter_test.gopkg/scheduler/adapters/terraform.gopkg/scheduler/adapters/terraform_tags_test.gopkg/schema/schema.gopkg/schema/schema_auth.gopkg/tags/convert.gopkg/tags/convert_test.gopkg/tags/flags.gopkg/tags/flags_test.gopkg/tags/labels.gopkg/tags/labels_test.gopkg/tags/tags.gopkg/tags/tags_test.gopkg/utils/yaml_utils.gopkg/utils/yaml_utils_test.gopkg/utils/yaml_utils_unsupported_test.gotests/snapshots/TestCLICommands_atmos_auth_login_--help.stdout.goldentests/snapshots/TestCLICommands_atmos_terraform_--help.stdout.goldentests/snapshots/TestCLICommands_atmos_terraform_--help_alias_subcommand_check.stdout.goldentests/snapshots/TestCLICommands_atmos_terraform_help.stdout.goldentests/snapshots/TestCLICommands_config_alias_tr_--help_shows_terraform_help.stdout.goldentests/snapshots/TestCLICommands_terraform_help_shows_stack_flag.stdout.goldentests/snapshots/TestCLICommands_terraform_provision_help_shows_inherited_stack_flag.stdout.goldentests/snapshots/TestCLICommands_tf_plan_help_shows_inherited_stack_flag.stdout.goldenwebsite/blog/2026-07-11-tags-and-labels.mdxwebsite/docs/cli/commands/auth/auth-list.mdxwebsite/docs/cli/commands/auth/auth-login.mdxwebsite/docs/cli/commands/auth/logout.mdxwebsite/docs/cli/commands/container/usage.mdxwebsite/docs/cli/commands/helm/helm-apply.mdxwebsite/docs/cli/commands/helm/helm-delete.mdxwebsite/docs/cli/commands/helm/helm-deploy.mdxwebsite/docs/cli/commands/helm/helm-diff.mdxwebsite/docs/cli/commands/helm/helm-plan.mdxwebsite/docs/cli/commands/helm/helm-template.mdxwebsite/docs/cli/commands/helm/usage.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-apply.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-delete.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-deploy.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-diff.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-plan.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-render.mdxwebsite/docs/cli/commands/kubernetes/kubernetes-validate.mdxwebsite/docs/cli/commands/kubernetes/usage.mdxwebsite/docs/cli/commands/list/list-components.mdxwebsite/docs/cli/commands/terraform/terraform-apply.mdxwebsite/docs/cli/commands/terraform/terraform-deploy.mdxwebsite/docs/cli/commands/terraform/terraform-plan.mdxwebsite/docs/cli/commands/terraform/usage.mdxwebsite/docs/functions/yaml/index.mdxwebsite/docs/functions/yaml/labels.keys.mdxwebsite/docs/functions/yaml/labels.mdxwebsite/docs/functions/yaml/labels.values.mdxwebsite/docs/functions/yaml/tags.mdxwebsite/docs/stacks/components/metadata.mdxwebsite/src/data/roadmap.jswebsite/static/casts/examples/quick-start-advanced/list-instances.cast
Verified against current code; only still-valid CodeRabbit findings applied (funlen and comment-period findings from the earlier review were already resolved, and the docs-slug finding was a false positive — build with onBrokenLinks: 'throw' already succeeds). - pkg/datafetcher/schema/atmos/manifest/1.0.json: add tags/labels to the metadata definition, matching stacks/stack-config/1.0.json (was rejecting metadata.tags/labels under additionalProperties: false). - website/blog/2026-07-11-tags-and-labels.mdx: fix intro sentence that implied labels apply to stacks/accounts/auth (only components support both; auth identities/providers support tags only). - cmd/helm/helm.go: migrate newOperationCommand to flags.NewStandardParser() via an operationFlagOptions helper, matching the kubernetes command's established pattern instead of direct cmd.Flags() registration. - cmd/list/components.go, cmd/terraform/options.go: replace local parseTagsFlag/parseLabelsFlag duplicates with the shared, already-exported pkg/tags.ParseTagsFlag/ParseLabelsFlag; drop now-redundant local tests (coverage already exists in pkg/tags), adding the one edge case (blank segments) that wasn't already covered there. - pkg/tags/tags.go: add CollectAvailableTags[T] to dedup the identical sorted-tag-aggregation logic in cmd/auth/login.go and cmd/auth/logout.go's no-match error builders. - pkg/component/container/list.go: tagsAndLabelsFromComponent now returns non-nil empty slice/map consistently across all no-metadata branches (previously nil in the early-return paths, empty in the fallthrough path); updated the two tests whose expected values encoded the old inconsistency. - Added missing test coverage: combined tags+labels graph filtering, nil/empty map SortedKeys/SortedValues, extra-equals-sign label parsing, and TagModeAll edge cases (empty filter, duplicate filter tags). Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
|
These changes were released in v1.223.0-rc.11. |
what
tagsto auth identities/providers, filterable via--tagsonatmos auth list/login/logout(composes with--providers/--identities).metadata.tags(list, any-match) andmetadata.labels(map, all-match) to components, filterable viaatmos list components --tags/--labels.!tags,!labels,!labels.keys,!labels.values— that return the current component's ownmetadata.tags/metadata.labels, typed, for bridging intovars(e.g.vars.tags: !labelsforterraform-null-label-style modules).--tags/--labelsbulk-selection filtering toterraform,kubernetes,helm, andcontainercommands, composing with (not replacing)--all/--affected, via a new sharedpkg/tagspackage.examples/demo-authandexamples/quick-start-advancedexamples and their casts to demonstrate the new tags/labels filtering.why
docs/prd/tags-and-labels-standard.mddesign (previously merged docs-only) so users can categorize and bulk-select components and identities without maintaining static name lists per stack/region/environment.atmos vendor pull --tags.references
docs/prd/tags-and-labels-standard.md.mcalhoun's open PR addingmetadata.labels+ a--selectorflag tolist/describecommands) — this PR is broader in scope (adds tags, auth tags, YAML functions, and--tags/--labelsonterraform/kubernetes/helm/container) but shares themetadata.labelsfoundation.