Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Apr 14, 2020
1 parent 48ef073 commit 86d80c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/app/kubernetes/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

// GetDeployments gets a list of deployments
func (c *Cluster) GetDeployments(ctx context.Context, namespace string, labels string) ([]model.Deployment, error) {
func (c *Cluster) GetDeployments(ctx context.Context, namespace string, label string) ([]model.Deployment, error) {
result := []model.Deployment{}

fs := module.FileSystem{}
Expand All @@ -44,7 +44,7 @@ func (c *Cluster) GetDeployments(ctx context.Context, namespace string, labels s
}

data, err := clientset.AppsV1().Deployments(namespace).List(ctx, metav1.ListOptions{
LabelSelector: labels,
LabelSelector: label,
})

if err != nil {
Expand Down

0 comments on commit 86d80c2

Please sign in to comment.