-
Notifications
You must be signed in to change notification settings - Fork 122
comments for K8 describe package #294
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
Conversation
Signed-off-by: Philip-21 <[email protected]>
Signed-off-by: Philip-21 <[email protected]>
Signed-off-by: Philip-21 <[email protected]>
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.
Can we only include the code comments for describe.go
? Before we confirm the scope of the mocking test, we could merge that test case
@Aisuko from what you are saying, do you want me to only comment on the role for the describe.go so it could tally with describe_test.go and should i also take out some of the comments i wrote for the codes in the describe.go ? |
Please keep the code comments in the |
Please do not forget to update to the latest version code. |
Yes this pr only includes code comments for the describe.go . The previous Pr is for the Mock testing |
Please how do you mean by this |
We need to only include the |
Signed-off-by: Philip Obiora <[email protected]>
ok i have removed the |
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.
Thank you, please take a look and help me replace these code comments. We use code comment //
in the file.
} | ||
|
||
/* |
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.
Replace to // DescribeType is an integer value that represents the Kubernetes resource that needs to be described.
@@ -57,6 +64,12 @@ const ( | |||
EndpointSlice | |||
) | |||
|
|||
/* |
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.
Replace to // The ResourceMap variable contains the GroupKind information of all the Kubernetes resources that can be described.
@@ -88,22 +101,30 @@ var ResourceMap = map[DescribeType]schema.GroupKind{ | |||
EndpointSlice: {Group: discoveryv1.GroupName, Kind: "EndpointSlice"}, | |||
} | |||
|
|||
/* |
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.
Replace to // The Describe() function takes a meshkitkube.Client object and a DescriberOptions object as input. // And it returns the description of the specified Kubernetes resource as a string.
output, err := describer.Describe(options.Namespace, options.Name, describerSetting) | ||
if err != nil { | ||
return "", err | ||
} | ||
|
||
/* |
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.
Please remove this code comment.
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, i have made the changes
making adjustments to comments Signed-off-by: Philip Obiora <[email protected]>
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.
After remove these blanks and pass CI. We can merge it. You can get more detail from https://stackoverflow.com/questions/69049182/file-is-not-gofmt-ed-with-s-why-is-this-happening-and-how-to-resolve-it
} | ||
|
||
// DescribeType is an integer value that represents the Kubernetes resource that needs to be described. |
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.
Here is a blank at the beginning, CI cannot run succeed. So, please remove it.
@@ -57,6 +60,7 @@ const ( | |||
EndpointSlice | |||
) | |||
|
|||
// The ResourceMap variable contains the GroupKind information of all the Kubernetes resources that can be described. |
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.
Here.
@@ -88,22 +92,23 @@ var ResourceMap = map[DescribeType]schema.GroupKind{ | |||
EndpointSlice: {Group: discoveryv1.GroupName, Kind: "EndpointSlice"}, | |||
} | |||
|
|||
// The Describe() function takes a meshkitkube.Client object and a DescriberOptions object as input. | |||
// And it returns the description of the specified Kubernetes resource as a string. |
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.
Here.
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.
You want me to remove the comments or the spaces in between the comments ?
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.
The space at the second comment
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 have removed the spaces
Signed-off-by: Philip Obiora <[email protected]>
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.
LGTM
Signed-off-by: Philip Obiora <[email protected]>
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.
LGTM
Signed-off-by: Philip-21 [email protected]
Description
Created comments for k8 describe package
This PR fixes #287
Signed commits