Skip to content

[Feature Request] Support multiple strategies on xpath #49

@yeahdongcn

Description

@yeahdongcn

For example, given

spec.template.spec.containers[0].ports[2]:
- strategy: append-with
  key: sharedValues.extraPorts
- strategy: control-if
  conditions:
  - key: "!sharedValues.webhook.disabled"
  - key: sharedValues.tls.enabled
  conditionOperator: and

I would want

{{- if and (not .Values.webhook.disabled) .Values.tls.enabled }}
- containerPort: 9443
  name: webhook-server
  protocol: TCP
{{- with .Values.extraPorts }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}

but it results to

- containerPort: 9443
  name: webhook-server
  protocol: TCP
{{- with .Values.extraPorts }}
{{- toYaml . | nindent 2 }}
{{- end }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions