kots icon indicating copy to clipboard operation
kots copied to clipboard

Support `when` in ConfigOptions `groups`

Open aj-jester opened this issue 6 years ago • 2 comments

Currently the groups in ConfigOptions does not seem to support when and this seems to be a pretty common request.

https://github.com/replicatedhq/kots/blob/master/kotskinds/apis/kots/v1beta1/config_types.go#L59

spec:
  groups:
   - name: advanced_configuration
      title: Advanced Configuration
      when:  'repl{{ ConfigOptionEquals "advanced_configuration" "1"}}' <<<<----- Need to support this.
      items:
        - name: manager_cpu
          title: Manager CPU
          type: text
          default: "2000"
        - name: verification_cpu
          title: Verification Service CPU
          type: text
          default: "2000"

aj-jester avatar Jul 02 '20 11:07 aj-jester

Possible PR https://github.com/replicatedhq/kots/pull/326

aj-jester avatar Jul 02 '20 13:07 aj-jester

Fixed in 1.17

marccampbell avatar Jul 08 '20 02:07 marccampbell