Skip to content

Add support for uses_kubernetes_features metadata - #667

Open
ystros wants to merge 1 commit into
pivotal-cf:mainfrom
ystros:add-uses-kubernetes-features-support
Open

Add support for uses_kubernetes_features metadata#667
ystros wants to merge 1 commit into
pivotal-cf:mainfrom
ystros:add-uses-kubernetes-features-support

Conversation

@ystros

@ystros ystros commented Jul 24, 2026

Copy link
Copy Markdown
Member

uses_kubernetes_features is a new tile attribute that allows K8s consumer tiles to restrict which K8s distribution tiles can be assigned to it by matching those features against the distribution's features. This commit updates kiln carvel bake to pass through the new attribute.

ai-assisted=yes
[TNZ-120804] Define available_kubernetes_features / uses_kubernetes_features tile metadata schema

uses_kubernetes_features is a new tile attribute that allows K8s consumer tiles
to restrict which K8s distribution tiles can be assigned to it by matching
those features against the distribution's features. This commit updates `kiln
carvel bake` to pass through the new attribute.

ai-assisted=yes
[TNZ-120804] Define available_kubernetes_features / uses_kubernetes_features tile metadata schema
Copilot AI review requested due to automatic review settings July 24, 2026 23:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds pass-through support for the new uses_kubernetes_features tile metadata attribute in the Carvel baker flow, allowing baked K8s consumer tiles to express required/optional Kubernetes features in their output metadata.

Changes:

  • Extends Carvel metadata models (Metadata, MetadataOut) to include uses_kubernetes_features.
  • Updates kiln carvel bake base.yml generation to copy uses_kubernetes_features from input to baked output.
  • Expands baker tests (and sample tile testdata) to validate both presence and omission behavior for uses_kubernetes_features.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/carvel/testdata/sample-tile/base.yml Adds uses_kubernetes_features examples used by bake tests.
internal/carvel/models/metadata.go Adds UsesKubernetesFeatures to the input metadata model.
internal/carvel/models/metadata_out.go Adds UsesKubernetesFeatures to baked output metadata and introduces KubernetesFeature type.
internal/carvel/baker.go Copies UsesKubernetesFeatures into generated base.yml.
internal/carvel/baker_test.go Verifies correct baking of features and omission when absent in input metadata.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants