Merge pull request #30144 from dnephin/add-secrets-to-stack-deploy

Add secrets to stack deploy
This commit is contained in:
Victor Vieux 2017-01-26 14:54:04 -08:00 committed by GitHub
commit 477652e2b5
1 changed files with 1 additions and 2 deletions

View File

@ -8,8 +8,7 @@ import (
"golang.org/x/net/context" "golang.org/x/net/context"
) )
// SecretUpdate updates a Secret. Currently, the only part of a secret spec // SecretUpdate attempts to updates a Secret
// which can be updated is Labels.
func (cli *Client) SecretUpdate(ctx context.Context, id string, version swarm.Version, secret swarm.SecretSpec) error { func (cli *Client) SecretUpdate(ctx context.Context, id string, version swarm.Version, secret swarm.SecretSpec) error {
query := url.Values{} query := url.Values{}
query.Set("version", strconv.FormatUint(version.Index, 10)) query.Set("version", strconv.FormatUint(version.Index, 10))