Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-27731

Add policy template linter for unused variables

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Critical Critical
    • ACM 2.16.0
    • None
    • GRC
    • None
    • Product / Portfolio Work
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • Workloads - Train 35 - 2
    • None

      Value Statement

      Tracking work for https://issues.redhat.com/browse/ACM-24872 . The linter should detect variables that are declared and not used, or variables that are defined in one scope and referenced in the wrong template scope (eg hub vs managed).

      The linter should also detect invalid syntax using a variable inside a dot operator, eg {{ $vm.annotations.$annotationName }}

      Definition of Done for Engineering Story Owner (Checklist)

      • ...

      Development Complete

      • The code is complete.
      • Functionality is working.
      • Any required downstream Docker file changes are made.

      Tests Automated

      • [ ] Unit/function tests have been automated and incorporated into the build.
      • [ ] 100% automated unit/function test coverage for new or changed APIs.

      Secure Design

      • [ ] Security has been assessed and incorporated into your threat model.

      Multidisciplinary Teams Readiness

      • [ ] Create an informative documentation issue using the Customer Portal Doc template that you can access from The Playbook, and ensure doc acceptance criteria is met.
      • Call out this sentence as it's own action:
      • [ ] Link the development issue to the doc issue.

      Support Readiness

      • [ ] The must-gather script has been updated.

              jalaw@redhat.com Janelle Law
              jalaw@redhat.com Janelle Law
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: