e2e/rotations_utils.go
Function CopyFileIntoPod
has 7 return statements (exceeds 4 allowed). Open
Open
func CopyFileIntoPod(client klient.Client, podName string, namespace string, containerName string, src string, dst string) error {
// create client-go clientset
clientset, err := kubernetes.NewForConfig(client.RESTConfig())
if err != nil {
return fmt.Errorf("unable to initialize K8s client: %v", err)
Function CopyFileIntoPod
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func CopyFileIntoPod(client klient.Client, podName string, namespace string, containerName string, src string, dst string) error {
Function LoadPolicy
has 5 return statements (exceeds 4 allowed). Open
Open
func LoadPolicy(client klient.Client, filename string) error {
// create generated file from template
fileName, src, err := GeneratePolicyFromTemplate(client, filename)
if err != nil {
return err