-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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
test/e2e/manifest:remove unused function #89678
Conversation
/priority backlog |
/assign @alejandrox1 |
i think we can avoid this refactor, having a common function for the read / parse is not really needed here. |
} | ||
|
||
// RoleFromManifest returns a Role from a manifest stored in fileName in the Namespace indicated by ns. | ||
func RoleFromManifest(fileName, ns string) (*rbacv1.Role, error) { |
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.
was this function unused?
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 is unused .
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.
Unused since the commit 38efff5
@@ -105,9 +71,8 @@ func StatefulSetFromManifest(fileName, ns string) (*appsv1.StatefulSet, error) { | |||
return &ss, nil | |||
} | |||
|
|||
// DaemonSetFromManifest returns a DaemonSet from a manifest stored in fileName in the Namespace indicated by ns. | |||
func DaemonSetFromManifest(fileName, ns string) (*appsv1.DaemonSet, error) { |
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.
also unused?
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 is unused .
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.
Unused since the commit 38efff5
test/e2e/manifest/manifest.go
Outdated
} | ||
|
||
json, err := utilyaml.ToJSON(data) | ||
json, err := parseDataFromManifest(fileName) |
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 think the function should be called readJSONFromManifest
@@ -45,33 +39,10 @@ func PodFromManifest(filename string) (*v1.Pod, error) { | |||
return &pod, nil | |||
} | |||
|
|||
// RcFromManifest reads a .json/yaml file and returns the rc in it. | |||
func RcFromManifest(fileName string) (*v1.ReplicationController, error) { |
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.
unused?
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 is unused .
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.
Since the commit d8a7025 RcFromManifest()
has been unused.
/test pull-kubernetes-verify |
/test pull-kubernetes-kubemark-e2e-gce-big |
/cc @neolit123 |
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.
/cc @oomichi
/approve
@@ -45,33 +39,10 @@ func PodFromManifest(filename string) (*v1.Pod, error) { | |||
return &pod, nil | |||
} | |||
|
|||
// RcFromManifest reads a .json/yaml file and returns the rc in it. | |||
func RcFromManifest(fileName string) (*v1.ReplicationController, error) { |
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.
Since the commit d8a7025 RcFromManifest()
has been unused.
@@ -105,9 +71,8 @@ func StatefulSetFromManifest(fileName, ns string) (*appsv1.StatefulSet, error) { | |||
return &ss, nil | |||
} | |||
|
|||
// DaemonSetFromManifest returns a DaemonSet from a manifest stored in fileName in the Namespace indicated by ns. | |||
func DaemonSetFromManifest(fileName, ns string) (*appsv1.DaemonSet, error) { |
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.
Unused since the commit 38efff5
} | ||
|
||
// RoleFromManifest returns a Role from a manifest stored in fileName in the Namespace indicated by ns. | ||
func RoleFromManifest(fileName, ns string) (*rbacv1.Role, error) { |
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.
Unused since the commit 38efff5
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: oomichi, tanjunchen 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 |
/lgtm |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
test/e2e/manifest:remove unused function and extract common function
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: