-
Notifications
You must be signed in to change notification settings - Fork 38
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
pipeline: Init pipeline api #478
Conversation
✅ Deploy Preview for kurator-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@Xieql: The label(s) 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. |
f61fa72
to
906c3fd
Compare
906c3fd
to
fc9c562
Compare
Signed-off-by: Xieql <[email protected]>
Signed-off-by: Xieql <[email protected]>
Signed-off-by: Xieql <[email protected]>
fc9c562
to
0dc78fe
Compare
@hzxuzhonghu PTAL |
pkg/apis/pipeline/v1alpha1/type.go
Outdated
|
||
// Retries represents how many times this task should be retried in case of task failure. | ||
// +optional | ||
Retries *int `json:"retries,omitempty"` |
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.
Document the defaut retries, if no retry by default, this can be int
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.
yes, default is zero.
pkg/apis/pipeline/v1alpha1/type.go
Outdated
// TaskRef is a reference to a predefined task template. | ||
// Users should provide a TaskRef name from a predefined library. | ||
// +optional | ||
TaskRef *TaskRef `json:"taskRef,omitempty"` |
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.
Seems taskRef is not good, it is inner task spec. How about calling TaskTemplate *TaskTemplate
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.
ok
pkg/apis/pipeline/v1alpha1/type.go
Outdated
// Users don't need to configure additional repository information for this task, except for authentication details for private repositories. | ||
// This Predefined Task is origin from https://github.com/tektoncd/catalog/tree/main/task/git-clone/0.9 | ||
// Here are the params that user can config: | ||
// - git-secret-name: the secret name of git basic auth, Kurator use this git credential to clone private repo. |
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.
how should user provide such secret and with what format
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.
we can add more format details, and tell user how to create it with following Pipeline doc in kurator site
pkg/apis/pipeline/v1alpha1/type.go
Outdated
type TaskRef struct { | ||
// TaskType is used to specify the type of the predefined task. | ||
// This is a required field and determines which task template will be used. | ||
TaskType PredefinedTask `json:"taskType"` |
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.
I see it as the intree task template Name
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.
yes, it affects which task template will be executed actually
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.
I mean rename to Name
pkg/apis/pipeline/v1alpha1/type.go
Outdated
// Image specifies the Docker image name. | ||
// More info: https://kubernetes.io/docs/concepts/containers/images | ||
// +optional | ||
Image string `json:"image,omitempty" protobuf:"bytes,2,opt,name=image"` |
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.
remove all the protobuf tag
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.
yes,we don't need it
Signed-off-by: Xieql <[email protected]>
Signed-off-by: Xieql <[email protected]>
@hzxuzhonghu PTAL |
pkg/apis/pipeline/v1alpha1/type.go
Outdated
// https://kurator.dev/docs/fleet-manager/pipeline/ | ||
// .gitconfig example: | ||
// | [credential "https://<hostname>"] | ||
// | helper = store | ||
// .git-credentials example: | ||
// | https://<user>:<pass>@<hostname> |
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.
Your comments is not user provided format
This is the right auth secret format
https://tekton.dev/docs/pipelines/auth/#configuring-authentication-for-git
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.
ok
Signed-off-by: Xieql <[email protected]>
/label tide/merge-method-squash |
@hzxuzhonghu PTAL |
last comment #478 (comment) |
Signed-off-by: Xieql <[email protected]>
Signed-off-by: Xieql <[email protected]>
For all task, the so user don't need to set this value |
@hzxuzhonghu PTAL |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hzxuzhonghu 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 |
What type of PR is this?
/kind api-change
/kind design
/kind feature
What this PR does / why we need it:
pipeline api of #476