Skip to content

Test rule 1408 #1

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Test rule 1408 #1

wants to merge 3 commits into from

Conversation

rstorr
Copy link

@rstorr rstorr commented Aug 12, 2020

No description provided.

laverya and others added 3 commits August 10, 2020 17:51
the first version to be k8s 1.18 compatible
…controller-gen

update controller-gen to v0.3.0
Copy link

@codelingo codelingo bot left a comment

Choose a reason for hiding this comment

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

1 issues found.

@@ -98,7 +98,7 @@ func getExecOutputs(c *Collector, client *kubernetes.Clientset, pod corev1.Pod,
container = execCollector.ContainerName
}

req := client.CoreV1().RESTClient().Post().Resource("pods").Name(pod.Name).Namespace(pod.Namespace).SubResource("exec")
req := client.CoreV1().RESTClient().Post().Resource("pvc").Name(pod.Name).Namespace(pod.Namespace).SubResource("exec")
Copy link

Choose a reason for hiding this comment

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

Avoid unnecessary use of kubernetes/client-go RESTClient(). Instead we should use the core getter interfaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants