cyberark/secrets-provider-for-k8s

View on GitHub
e2e/helm_utils.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function DeployTestAppWithHelm has 66 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func DeployTestAppWithHelm(client klient.Client, id string) error {
    // create Deployment
    var replicas int32 = 1
    deployment := appsv1.Deployment{
        TypeMeta: metav1.TypeMeta{
Severity: Minor
Found in e2e/helm_utils.go - About 1 hr to fix

    Function CreateK8sRole has 61 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func CreateK8sRole(client klient.Client, id string) error {
        // create ServiceAccount
        serviceAccount := corev1.ServiceAccount{
            TypeMeta: metav1.TypeMeta{
                APIVersion: "v1",
    Severity: Minor
    Found in e2e/helm_utils.go - About 1 hr to fix

      Function DeploySecretsProviderJobWithHelm has 7 return statements (exceeds 4 allowed).
      Open

      func DeploySecretsProviderJobWithHelm(cfg *envconf.Config, id string, chartPaths ...string) error {
          // set conjur cert to file
          err := CreateConjurCertFile(cfg.Client())
          if err != nil {
              return err
      Severity: Major
      Found in e2e/helm_utils.go - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status