Remove stack configs on stack removal

Signed-off-by: John Stephens <johnstep@docker.com>
This commit is contained in:
John Stephens
2017-05-26 17:30:33 -07:00
parent 1b8b63be5c
commit f05cd11ee2
4 changed files with 88 additions and 1 deletions

View File

@ -61,3 +61,13 @@ func getStackSecrets(
ctx,
types.SecretListOptions{Filters: getStackFilter(namespace)})
}
func getStackConfigs(
ctx context.Context,
apiclient client.APIClient,
namespace string,
) ([]swarm.Config, error) {
return apiclient.ConfigList(
ctx,
types.ConfigListOptions{Filters: getStackFilter(namespace)})
}