-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValidateParamArrayIndex for taskSpec should check beta flag. #6607
Comments
/assign |
This commit closes tektoncd#6607. TaskSpec's member function ValidateParamArrayIndex checks alpha feature flag, but array indexing is promoted to beta feature and we should check beta flag instead. This commit fixes this issue. Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
This commit closes tektoncd#6607. V1 TaskSpec's member function ValidateParamArrayIndex checks alpha feature flag, but array indexing is promoted to beta feature and we should check beta flag instead. And for v1beta1 the beta is on by default so we don't check the beta flag. This commit fixes this issue. Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
This commit closes tektoncd#6607. V1 TaskSpec's member function ValidateParamArrayIndex checks alpha feature flag, but array indexing is promoted to beta feature and we should check beta flag instead. And for v1beta1 the beta is on by default so we don't check the beta flag. This commit fixes this issue. Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
This is a bit more complicated; see #6616 for more detail. Here's what I think the logic should look like:
|
wouldn't skipping the validation result in referenced pipelines and in cluster pipelines being validated differently? |
This commit closes tektoncd#6607. V1 TaskSpec's member function ValidateParamArrayIndex checks alpha feature flag, but array indexing is promoted to beta feature and we should check beta flag instead. And for v1beta1 the beta is on by default so we don't check the beta flag. This commit fixes this issue and also update doc. Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
This commit closes #6607. V1 TaskSpec's member function ValidateParamArrayIndex checks alpha feature flag, but array indexing is promoted to beta feature and we should check beta flag instead. And for v1beta1 the beta is on by default so we don't check the beta flag. This commit fixes this issue and also update doc. Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
Expected Behavior
pipeline/pkg/apis/pipeline/v1/task_validation.go
Lines 611 to 615 in a0fb784
should check beta flag instead of alpha flag.
Thanks @dibyom for catching this bug.
Actual Behavior
taskSpec's ValidateParamArrayIndex checks alpha flag.
Additional Info
Array indexing (Tep 76) is promoted by #6103, yet the feature flag check for taskSpec's ValidateParamArrayIndex is not updated. The resulting consequence is that the validation is skipped for taskSpec when this feature is used and the api feature flag is set to
beta
Kubernetes version:
Output of
kubectl version
:Version since v0.46
The text was updated successfully, but these errors were encountered: