Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshasselberg committed Apr 28, 2023
1 parent 7472313 commit 42fed12
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions cli/cmd/config/read/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,22 +139,3 @@ func getInitializedCommand(t *testing.T, buf io.Writer) *ReadCommand {
c.init()
return c
}

func createServers(name, namespace string, replicas, readyReplicas int32, k8s kubernetes.Interface) error {
servers := appsv1.StatefulSet{
ObjectMeta: metav1.ObjectMeta{
Name: name,
Namespace: namespace,
Labels: map[string]string{"app": "consul", "chart": "consul-helm", "component": "server"},
},
Spec: appsv1.StatefulSetSpec{
Replicas: &replicas,
},
Status: appsv1.StatefulSetStatus{
Replicas: replicas,
ReadyReplicas: readyReplicas,
},
}
_, err := k8s.AppsV1().StatefulSets(namespace).Create(context.Background(), &servers, metav1.CreateOptions{})
return err
}

0 comments on commit 42fed12

Please sign in to comment.