AlexsJones/gravitywell

View on GitHub

Showing 92 of 92 total issues

Function execV1NamespaceResource has 94 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func execV1NamespaceResource(k kubernetes.Interface, objdep *v1.Namespace, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
    name := "Namespace"

    client := k.CoreV1().Namespaces()

Severity: Major
Found in platform/v1-namespace.go - About 2 hrs to fix

    Function execV1PodResource has 94 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func execV1PodResource(k kubernetes.Interface, objdep *v1.Pod, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
        name := "Pod"
    
        client := k.CoreV1().Pods(namespace)
    
    
    Severity: Major
    Found in platform/v1-pod.go - About 2 hrs to fix

      Function execV1ConfigMapResource has 94 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

      func execV1ConfigMapResource(k kubernetes.Interface, objdep *v1.ConfigMap, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
          name := "ConfigMap"
      
          client := k.CoreV1().ConfigMaps(namespace)
      
      
      Severity: Major
      Found in platform/v1-configmap.go - About 2 hrs to fix

        Function execV1Beta1CronJob has 94 lines of code (exceeds 50 allowed). Consider refactoring.
        Open

        func execV1Beta1CronJob(k kubernetes.Interface, objdep *v1beta1.CronJob, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
            name := "CronJob"
        
            client := k.BatchV1beta1().CronJobs(namespace)
        
        
        Severity: Major
        Found in platform/v1beta1-cronjob.go - About 2 hrs to fix

          Function execV1BetaDeploymentResource has 25 return statements (exceeds 4 allowed).
          Open

          func execV1BetaDeploymentResource(k kubernetes.Interface, objdep *v1betav1.Deployment, namespace string,
              opts configuration.Options, commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
              name := "Deployment"
          
              client := k.ExtensionsV1beta1().Deployments(namespace)
          Severity: Major
          Found in platform/v1betav1-deployment.go - About 2 hrs to fix

            Function execV1Beta1DeploymentResource has 25 return statements (exceeds 4 allowed).
            Open

            func execV1Beta1DeploymentResource(k kubernetes.Interface, objdep *v1beta1.Deployment, namespace string,
                opts configuration.Options, commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
                name := "Deployment"
            
                client := k.AppsV1beta1().Deployments(namespace)
            Severity: Major
            Found in platform/v1beta1-deployment.go - About 2 hrs to fix

              Function execV1Beta1StatefulSetResource has 25 return statements (exceeds 4 allowed).
              Open

              func execV1Beta1StatefulSetResource(k kubernetes.Interface, objdep *v1beta1.StatefulSet, namespace string,
                  opts configuration.Options, commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
                  name := "StatefulSet"
              
                  client := k.AppsV1beta1().StatefulSets(namespace)
              Severity: Major
              Found in platform/v1beta1-statefulset.go - About 2 hrs to fix

                Function execV2BetaDeploymentResource has 25 return statements (exceeds 4 allowed).
                Open

                func execV2BetaDeploymentResource(k kubernetes.Interface, objdep *v1beta2.Deployment, namespace string,
                    opts configuration.Options, commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
                    name := "Deployment"
                
                    client := k.AppsV1beta2().Deployments(namespace)
                Severity: Major
                Found in platform/v1beta2-deployment.go - About 2 hrs to fix

                  Function execV1StatefulSetResource has 25 return statements (exceeds 4 allowed).
                  Open

                  func execV1StatefulSetResource(k kubernetes.Interface, objdep *appsv1.StatefulSet, namespace string,
                      opts configuration.Options, commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
                      name := "StatefulSet"
                  
                      client := k.AppsV1().StatefulSets(namespace)
                  Severity: Major
                  Found in platform/v1-statefulset.go - About 2 hrs to fix

                    Function execV1DaemonSetResource has 23 return statements (exceeds 4 allowed).
                    Open

                    func execV1DaemonSetResource(k kubernetes.Interface, objdep *v1beta1.DaemonSet, namespace string,
                        opts configuration.Options, commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
                        name := "DaemonSet"
                    
                        client := k.ExtensionsV1beta1().DaemonSets(namespace)
                    Severity: Major
                    Found in platform/v1beta1-daemonset.go - About 2 hrs to fix

                      Function execV1RbacRoleResouce has 22 return statements (exceeds 4 allowed).
                      Open

                      func execV1RbacRoleResouce(k kubernetes.Interface, objdep *v1rbac.Role, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                          name := "Role"
                      
                          client := k.RbacV1().Roles(namespace)
                      
                      
                      Severity: Major
                      Found in platform/v1rbac-role.go - About 2 hrs to fix

                        Function execV1HorizontalPodAutoscaler has 22 return statements (exceeds 4 allowed).
                        Open

                        func execV1HorizontalPodAutoscaler(k kubernetes.Interface, objdep *autoscalingv1.HorizontalPodAutoscaler, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                            name := "HorizontalPodAutoscaler"
                        
                            client := k.AutoscalingV1().HorizontalPodAutoscalers(namespace)
                        
                        
                        Severity: Major
                        Found in platform/v1autoscaling-horizontalpodautoscaler.go - About 2 hrs to fix

                          Function execV1Beta1PodDisruptionBudgetResouce has 22 return statements (exceeds 4 allowed).
                          Open

                          func execV1Beta1PodDisruptionBudgetResouce(k kubernetes.Interface, objdep *v1polbeta.PodDisruptionBudget, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                              name := "PodDisruptionBudget"
                          
                              client := k.PolicyV1beta1().PodDisruptionBudgets(namespace)
                          
                          
                          Severity: Major
                          Found in platform/v1beta1-poddisruptionbudget.go - About 2 hrs to fix

                            Function execV1RbacClusterRoleBindingResouce has 22 return statements (exceeds 4 allowed).
                            Open

                            func execV1RbacClusterRoleBindingResouce(k kubernetes.Interface, objdep *v1rbac.ClusterRoleBinding, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                                name := "ClusterRoleBinding"
                            
                                client := k.RbacV1().ClusterRoleBindings()
                            
                            
                            Severity: Major
                            Found in platform/v1rbac-clusterrolebinding.go - About 2 hrs to fix

                              Function execV1Beta1StorageResouce has 22 return statements (exceeds 4 allowed).
                              Open

                              func execV1Beta1StorageResouce(k kubernetes.Interface, objdep *storagev1b1.StorageClass, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                                  name := "StorageClass"
                              
                                  client := k.StorageV1beta1().StorageClasses()
                              
                              
                              Severity: Major
                              Found in platform/v1beta1-storageclass.go - About 2 hrs to fix

                                Function execV1Beta1IngressResouce has 22 return statements (exceeds 4 allowed).
                                Open

                                func execV1Beta1IngressResouce(k kubernetes.Interface, objdep *v1beta1.Ingress, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                                    name := "Ingress"
                                
                                    client := k.ExtensionsV1beta1().Ingresses(namespace)
                                
                                
                                Severity: Major
                                Found in platform/v1beta1-ingress.go - About 2 hrs to fix

                                  Function execV1ServiceResouce has 22 return statements (exceeds 4 allowed).
                                  Open

                                  func execV1ServiceResouce(k kubernetes.Interface, objdep *v1.Service, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                                      name := "Service"
                                  
                                      client := k.CoreV1().Services(namespace)
                                  
                                  
                                  Severity: Major
                                  Found in platform/v1-service.go - About 2 hrs to fix

                                    Function execV1RbacRoleBindingResouce has 22 return statements (exceeds 4 allowed).
                                    Open

                                    func execV1RbacRoleBindingResouce(k kubernetes.Interface, objdep *v1rbac.RoleBinding, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                                        name := "RoleBinding"
                                    
                                        client := k.RbacV1().RoleBindings(namespace)
                                    
                                    
                                    Severity: Major
                                    Found in platform/v1rbac-rolebinding.go - About 2 hrs to fix

                                      Function execV1SecretResource has 22 return statements (exceeds 4 allowed).
                                      Open

                                      func execV1SecretResource(k kubernetes.Interface, objdep *v1.Secret, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                                          name := "Secret"
                                      
                                          client := k.CoreV1().Secrets(namespace)
                                      
                                      
                                      Severity: Major
                                      Found in platform/v1-secret.go - About 2 hrs to fix

                                        Function execV1PersistentVolumeResource has 22 return statements (exceeds 4 allowed).
                                        Open

                                        func execV1PersistentVolumeResource(k kubernetes.Interface, objdep *v1.PersistentVolume, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                                            name := "PersistentVolume"
                                        
                                            client := k.CoreV1().PersistentVolumes()
                                        
                                        
                                        Severity: Major
                                        Found in platform/v1-persistentvolume.go - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language