Skip to content

Commit

Permalink
Merge pull request #49 from portainer/fix-all-deployments
Browse files Browse the repository at this point in the history
fix: fix an issue when listing deployments
  • Loading branch information
deviantony authored Sep 5, 2023
2 parents 71ff327 + 9291186 commit fad219a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/adapter/filters/filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ import (
// filter := AllDeployments("default")
// // Now 'filter' can be used in Docker API calls to filter Deployment resources in the 'default' Kubernetes namespace.
func AllDeployments(namespace string) filters.Args {
filter := filters.NewArgs()
filter := ByNamespace(namespace)
filter.Add("label", fmt.Sprintf("%s=%s", types.WorkloadLabelKey, types.DeploymentWorkloadType))
filter.Add("label", fmt.Sprintf("%s=%s", types.NamespaceLabelKey, namespace))
return filter
}

Expand Down

0 comments on commit fad219a

Please sign in to comment.