AlexsJones/gravitywell

View on GitHub
platform/kubernetes.go

Summary

Maintainability
B
4 hrs
Test Coverage

Function GenerateDeploymentPlan has 59 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func GenerateDeploymentPlan(k kubernetes.Interface,
    files []string, namespace string, opts configuration.Options,
    commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) error {

    var kubernetesResources []runtime.Object
Severity: Minor
Found in platform/kubernetes.go - About 1 hr to fix

    Function DeployFromObject has 57 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func DeployFromObject(k kubernetes.Interface, obj runtime.Object,
        namespace string, opts configuration.Options,
        commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
    
        var response state.State
    Severity: Minor
    Found in platform/kubernetes.go - About 1 hr to fix

      Function GenerateDeploymentPlan has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func GenerateDeploymentPlan(k kubernetes.Interface,
          files []string, namespace string, opts configuration.Options,
          commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) error {
      Severity: Minor
      Found in platform/kubernetes.go - About 45 mins to fix

        Function DeployFromObject has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        func DeployFromObject(k kubernetes.Interface, obj runtime.Object,
            namespace string, opts configuration.Options,
            commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
        Severity: Minor
        Found in platform/kubernetes.go - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status