Skip to content

Add ability to pass Capabilities.APIVersions to template and lint #3377

Closed

Description

@mattfarina

When using the template and lint commands the Capabilities.APIVersions is an empty set because it uses defaults which are currently an empty set. Might be good to provide a set or provide the capability to pass in a set.

Note, lint doesn't let you pass in the version of k8s either. That may also be useful.

Activity

  1. munnerz commented on Jan 24, 2018

    @munnerz
    Contributor

    I've recently discovered the new helm template command (wooo!)

    I've used it to automatically generate some 'default' deployment manifests for cert-manager for users that wish to not use Helm. I've also created a verify script, to ensure these manifests are up to date during our CI process.

    We use Capabilities to determine whether to use CRDs or TPRs. We could soon remove that check however, but in the meantime it'd be great if I could do something to make this return true:

    {{- if .Capabilities.APIVersions.Has "apiextensions.k8s.io/v1beta1" -}}

  2. added a commit that references this issue on Jan 25, 2018
  3. fejta-bot commented on Apr 24, 2018

    @fejta-bot

    Issues go stale after 90d of inactivity.
    Mark the issue as fresh with /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.

    If this issue is safe to close now please do so with /close.

    Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
    /lifecycle stale

  4. fejta-bot commented on May 24, 2018

    @fejta-bot

    Stale issues rot after 30d of inactivity.
    Mark the issue as fresh with /remove-lifecycle rotten.
    Rotten issues close after an additional 30d of inactivity.

    If this issue is safe to close now please do so with /close.

    Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
    /lifecycle rotten
    /remove-lifecycle stale

  5. kramvan1 commented on Apr 10, 2019

    @kramvan1

    +1

  6. drewwells commented on Oct 6, 2020

    @drewwells

    @thomastaylor312 this issue also mentions lint. The PR only addressed template

  7. genofire commented on Apr 20, 2023

    @genofire
    Contributor

    Yes linting is still not solved (but needed)

  8. avneesh91 commented on Apr 5, 2024

    @avneesh91

    Is there an alternative for this or making link bypass this?

  9. genofire commented on Jul 9, 2024

    @genofire
    Contributor

    there is #10190 but also closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions