AlexsJones/gravitywell

View on GitHub

Showing 92 of 92 total issues

Function execV1Beta1DeploymentResource has 128 lines of code (exceeds 50 allowed). Consider refactoring.
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 4 hrs to fix

    Function execV1StatefulSetResource has 128 lines of code (exceeds 50 allowed). Consider refactoring.
    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 4 hrs to fix

      Function execV2BetaDeploymentResource has 128 lines of code (exceeds 50 allowed). Consider refactoring.
      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 4 hrs to fix

        Function execV1Beta1StatefulSetResource has 128 lines of code (exceeds 50 allowed). Consider refactoring.
        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 4 hrs to fix

          Function execV1BetaDeploymentResource has 128 lines of code (exceeds 50 allowed). Consider refactoring.
          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 4 hrs to fix

            Function execV1DaemonSetResource has 108 lines of code (exceeds 50 allowed). Consider refactoring.
            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 3 hrs to fix

              Function execV1RbacRoleResouce has 101 lines of code (exceeds 50 allowed). Consider refactoring.
              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 3 hrs to fix

                Function execV1Beta1StorageResouce has 101 lines of code (exceeds 50 allowed). Consider refactoring.
                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 3 hrs to fix

                  Function execV1ServiceAccountResource has 101 lines of code (exceeds 50 allowed). Consider refactoring.
                  Open

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

                    Function execV1HorizontalPodAutoscaler has 101 lines of code (exceeds 50 allowed). Consider refactoring.
                    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 3 hrs to fix

                      Function execV1RbacRoleBindingResouce has 101 lines of code (exceeds 50 allowed). Consider refactoring.
                      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 3 hrs to fix

                        Function execV1PersistentVolumeResource has 101 lines of code (exceeds 50 allowed). Consider refactoring.
                        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 3 hrs to fix

                          Function execV1AuthClusterRoleResouce has 101 lines of code (exceeds 50 allowed). Consider refactoring.
                          Open

                          func execV1AuthClusterRoleResouce(k kubernetes.Interface, objdep *auth_v1.ClusterRole, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                              name := "ClusterRole"
                          
                              client := k.RbacV1().ClusterRoles()
                          
                          
                          Severity: Major
                          Found in platform/v1auth-clusterrole.go - About 3 hrs to fix

                            Function execV1ServiceResouce has 101 lines of code (exceeds 50 allowed). Consider refactoring.
                            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 3 hrs to fix

                              Function execV1RbacClusterRoleBindingResouce has 101 lines of code (exceeds 50 allowed). Consider refactoring.
                              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 3 hrs to fix

                                Function execV1StorageResource has 101 lines of code (exceeds 50 allowed). Consider refactoring.
                                Open

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

                                  Function execV1Beta1PodDisruptionBudgetResouce has 101 lines of code (exceeds 50 allowed). Consider refactoring.
                                  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 3 hrs to fix

                                    Function execV1SecretResource has 101 lines of code (exceeds 50 allowed). Consider refactoring.
                                    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 3 hrs to fix

                                      Function execV1Beta1IngressResouce has 101 lines of code (exceeds 50 allowed). Consider refactoring.
                                      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 3 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language