Closed padiazg closed 4 years ago
@padiazg docker swarm doesn't support updating secrets unfortunately
This is the problem @bartsmykla, rather than the lack of update:
func_faas-swarm.1.0v8o3foxei7o@docker03 | 2019/01/29 17:52:12 http: panic serving 10.0.0.172:44428: runtime error: invalid memory address or nil pointer dereference
This needs fixing in the faas-swarm code.
Please could one of you raise an issue for this and label it with Derek?
I think maybe we need to reassess here. The nil pointer error is coming out of the call to c.SecretUpdate
- rem it out and you get a 200. However, my understanding of this method is that it only allows update to Labels. Attempts to update the Data field will result in the Label message also seen in @padiazg's output. So, we could track down the nil pointer error to make the message go away but I'm not sure this will subsequently enable the desired action.
Swarm secrets cannot be updated.
We tried to update one secret that is used by 14 functions, but we get error 502.
Expected Behaviour
A successful update to the secret
Current Behaviour
We get
server returned unexpected status code: 502
.This is the log from func_faas-swarm:
Context
Your Environment
faas-cli version
):Gateway uri: http://127.0.0.1:8080 version: 0.10.2 sha: bfa869ec8c0c04c26c5b0ed434bc367e712dcaef commit: Revert docker tag bump to 0.10.0
Provider name: faas-swarm orchestration: swarm version: 0.6.1 sha: 3cac0ccc2e8bb7f567739a33f7d414cdb58440aa
Client: Version: 18.03.1-ce API version: 1.37 Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:20:16 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm
Server: Engine: Version: 18.03.1-ce API version: 1.37 (minimum version 1.12) Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:23:58 2018 OS/Arch: linux/amd64 Experimental: false