-
Notifications
You must be signed in to change notification settings - Fork 423
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
fix(example): update default branch name in examples #1748
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -14,6 +14,7 @@ spec: | |||||||||||||||||
default: This is the default message | ||||||||||||||||||
- name: contenttype | ||||||||||||||||||
description: The Content-Type of the event | ||||||||||||||||||
default: text/plain | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In this demo, without a default value and without assigning value in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean to say we get There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I understand that this value should be declared in the So my current solution is to give it a default value first, which will not affect other There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I referred to the code here and also added a configuration in triggers/examples/v1beta1/trigger-ref/triggerbinding.yaml Lines 5 to 12 in 87e123e
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey @l-qing when there is not default value what is the issue There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If there is no default value, it will not necessarily cause a problem. |
||||||||||||||||||
resourcetemplates: | ||||||||||||||||||
- apiVersion: tekton.dev/v1beta1 | ||||||||||||||||||
kind: PipelineRun | ||||||||||||||||||
|
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.
In this demo, cloning the
master
branch will fail because it has been renamed tomain
.