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

Export all Sprig regex template functions for policy templating usage

XMLWordPrintable

    • 2
    • False
    • None
    • False
    • Hide

      Provide the required acceptance criteria using this template.
      * ...
      Show
      Provide the required acceptance criteria using this template. * ...
    • ACM-1281 - ACM ConfigurationController Improvements
    • GRC Sprint 2024-08
    • No

      Value Statement

      As a policy user, I'd like to use regex matching on the cluster name to determine which value to set.

      Definition of Done for Engineering Story Owner (Checklist)

      • go-template-utils is updated to export the regex related string functions from Sprig. Specifically, regexMatch, mustRegexMatch, regexFindAll, mustRegexFindAll, regexFind, mustRegexFind, and regexQuoteMeta.
      • config-policy-controller is updated to use the new go-template-utils version.
      • governance-policy-propagator is updated to use the new go-template-utils version.

      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

      Support Readiness

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

              dhaiduce Dale Haiducek
              mprahl Matthew Prahl
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: