-
Notifications
You must be signed in to change notification settings - Fork 49
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
chore: format code about exported function should have comment #183
base: main
Are you sure you want to change the base?
Conversation
so sorry that I tagged the wrong person ! |
Signed-off-by: chaosi-zju <[email protected]>
1ef3193
to
309fd9a
Compare
@warjiang thanks for reviewing besides, here may still be some |
glad to handle kind of lint errors reported by Lines 54 to 85 in 5648666
like splitting task by rule name |
good advice ! |
/assign |
@@ -107,6 +108,7 @@ func CheckAppStatus(c *gin.Context) { | |||
c.JSON(http.StatusOK, statusMap) | |||
} | |||
|
|||
// HandleSyncOperation handles the sync operation for a specific app or all apps. |
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.
// HandleSyncOperation handles the sync operation for a specific app, if not specified, it handles the sync operation for all apps
@@ -24,8 +24,10 @@ import ( | |||
|
|||
// The code below allows to perform complex data section on []api.ConfigMap | |||
|
|||
// ConfigMapCell is a cell in the table of configmaps. |
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.
ConfigMapCell wraps api.ConfigMap for data selection.
@@ -24,8 +24,10 @@ import ( | |||
|
|||
// The code below allows to perform complex data section on []extensions.Ingress | |||
|
|||
// IngressCell is a cell in the table of ingress. |
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.
// IngressCell wraps v1.Ingress for data selection.
@@ -27,8 +27,10 @@ import ( | |||
|
|||
// The code below allows to perform complex data section on []apps.StatefulSet | |||
|
|||
// StatefulSetCell is a cell in the table of statefulsets. |
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.
// StatefulSetCell wraps apps.StatefulSet for data selection.
@@ -22,8 +22,10 @@ import ( | |||
"github.com/karmada-io/dashboard/pkg/dataselect" | |||
) | |||
|
|||
// PodCell is a cell for pod. |
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.
// PodCell wraps api.Pod for data selection.
@@ -42,6 +42,7 @@ type OverridePolicyList struct { | |||
Errors []error `json:"errors"` | |||
} | |||
|
|||
// OverridePolicy contains information about a single propagation. |
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.
a single propagation
should be corrected to a single override
.
@@ -22,8 +22,10 @@ import ( | |||
"github.com/karmada-io/dashboard/pkg/dataselect" | |||
) | |||
|
|||
// NodeCell represents a cell in the table of nodes. |
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.
// NodeCell wraps api.Node for data selection.
@@ -128,6 +130,7 @@ func GetJobListFromChannels(channels *common.ResourceChannels, dsQuery *datasele | |||
return jobList, nil | |||
} | |||
|
|||
// ToJobList returns a list of all Jobs in the cluster reading required resource list once from the channel. |
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.
what about the following description
// ToJobList returns a list of Jobs in the cluster by reading required resource list returned from the channel.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I've just reviewed the PR, a great deal of contributions 🔥 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
chore: format code about exported function should have comment
Which issue(s) this PR fixes:
Fixes part of karmada-io/karmada#6078
Special notes for your reviewer:
Does this PR introduce a user-facing change?: