You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
package verify doesn't evaluate the code inside the range syntax in templates
having:
{{ range $i, $v := until (int .Params.BROKER_COUNT) }}
- containerPort: {{ add (int $.Params.EXTERNAL_NODE_PORT) $v}}
name: node-port-{{ $v }}
{{ end }}
will complain on kubectl kudo package verify with warning
Warnings
parameter "EXTERNAL_NODE_PORT" defined but not used.
package is valid
Using $.Params.EXTERNAL_NODE_PORT outside the range fixes the issue.
What you expected to happen:
package verify to also use the parameters used inside the ranges How to reproduce it (as minimally and precisely as possible):
KUDO Kafka operator package verify Anything else we need to know?: #1255 introduced the ability to verify parameters used through $
Environment:
Kubernetes version (use kubectl version): 1.17.0
Kudo version (use kubectl kudo version): 0.11.0
Operator:
operatorVersion:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:
The text was updated successfully, but these errors were encountered:
What happened:
package
verify
doesn't evaluate the code inside therange
syntax in templateshaving:
will complain on
kubectl kudo package verify
with warningUsing
$.Params.EXTERNAL_NODE_PORT
outside the range fixes the issue.What you expected to happen:
package verify to also use the parameters used inside the ranges
How to reproduce it (as minimally and precisely as possible):
KUDO Kafka operator package verify
Anything else we need to know?:
#1255 introduced the ability to verify parameters used through
$
Environment:
kubectl version
): 1.17.0kubectl kudo version
): 0.11.0uname -a
):The text was updated successfully, but these errors were encountered: