Skip to content
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 controller #559

Merged
merged 3 commits into from
Jan 17, 2024

Conversation

Xieql
Copy link
Contributor

@Xieql Xieql commented Jan 11, 2024

What type of PR is this?

/kind design

/kind feature

What this PR does / why we need it:

part of #493

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Copy link

netlify bot commented Jan 11, 2024

Deploy Preview for kurator-dev canceled.

Name Link
🔨 Latest commit 320fe6e
🔍 Latest deploy log https://app.netlify.com/sites/kurator-dev/deploys/65a68bdf7be78a0008bfe97f

Copy link
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally lgtm

pkg/fleet-manager/pipeline/controller.go Outdated Show resolved Hide resolved
pkg/fleet-manager/pipeline/controller.go Show resolved Hide resolved
pkg/fleet-manager/pipeline/controller.go Outdated Show resolved Hide resolved
pkg/fleet-manager/pipeline/controller.go Outdated Show resolved Hide resolved
@Xieql Xieql force-pushed the pipeline-controller branch 2 times, most recently from 6f47fd5 to 4946731 Compare January 15, 2024 12:56
@Xieql Xieql force-pushed the pipeline-controller branch from 4946731 to 8e5ccff Compare January 15, 2024 12:57
pkg/fleet-manager/pipeline/controller.go Outdated Show resolved Hide resolved

const (
PipelineFinalizer = "pipeline.kurator.dev"
TektonPipelineLabel = "tekton.dev/pipeline"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kurator.dev, lets keep align with other labels

Copy link
Contributor Author

@Xieql Xieql Jan 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think so. This label is tekton label. I add it here because the pod is create by tekton and they have tekton label.

If I want to delete them esaily, I need client.MatchingLabels{TektonPipelineLabel: pipelineName} to find those pod.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IC, can we use it from pipelineapi if It exists there

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right

return nil
}

// getListenerServiceName get the name of event listener service name. This naming way is origin from tekton controller.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add associated link

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my test case, the name adheres to this pattern. It is not a functional function, and it is just displayed in the status.

I tried searching for it directly, but couldn't find it. I suppose I need to delve into the code to examine its logic. I will provide the link when I have time later on.

Copy link
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@kurator-bot
Copy link
Collaborator

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kurator-bot kurator-bot merged commit fded0e7 into kurator-dev:main Jan 17, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants