-
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
Allow dot character in resource names #3893
Conversation
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
@imjasonh after dropping the restriction for a |
Keeping it in a shared function seems useful, just to document what validation means right now. I don't feel that strongly though. |
Could I request we also add an example yaml in |
Good idea! |
I can do either option (add a new example or edit an existing one)... if we go with the latter, would the main pipelinerun.yaml one be a suitable candidate? Thinking I would update to use |
Absolutely, updating an existing one to use the format sounds good to me too. Edit: the main pipelinerun.yaml would work great for this. |
/test pull-tekton-pipeline-integration-tests |
The following is the coverage report on the affected files.
|
The integration tests are failing due to a version change in the cluster that gets spun up for the tests to run in. Folks in slack are exploring the problem atm. |
/retest |
So the integration tests are failing with the following error:
Looking closer at the Kubernetes docs, while a Assuming that the /meow |
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
PR description has been updated with more detail. This should be ready to go now. |
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment on the DNS1123 validation.
It appears the api server blocked it:
(tested on Pipelines v0.15.2) |
@psschwei indeed, it seems it is either the api-server or the generic validation knative.dev/pkg provides us. |
/test pull-tekton-pipeline-go-coverage |
The following is the coverage report on the affected files.
|
thanks @psschwei for all the work which started as a simple change 😜 /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pritidesai The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
Fixes #3891 to allow dot (
.
) characters in resource names.The basic approach here was to update
pkg/apis/validate/metadata.go
so that it checks if Tekton resource names meet the criteria of DNS Subdomain names (.
is a valid character in a DNS subdomain). It does this by using theIsDNS1123Subdomain()
function fromk8s.io/apimachinery/pkg/util/validation
.There had previously been a 63 character limit on resource names that, to my understanding, was put in place due to the fact that Tekton pod names are composed based on
pipelineRun + pipeline + pipelineTask
. For reference, a DNS subdomain can be up to 253 characters in length.Some updates were made to the tests as well:
.
was found in the resource name were updated to instead check for a commametadata.name
field -- capital letters are not valid formetadata.name
, and the new validation method will throw errors on any resource name in camelCase. I've updated the tests to use all lowercase letters for resource names. As this PR has been steadily increasing in size, I'll add new tests for camelCase in a separate PRexamples/v1beta1/pipelineruns/pipelinerun.yaml
was updated to include resource names with a.
in it, in order to catch any future issues that may arise with resource names containing a.
/kind feature
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes