diff --git a/README.md b/README.md index 2605f60f3..0f2a4264b 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ Create a new repository (e.g. git@github.com:caos/my-orb.git) ```bash # Download latest orbctl -curl -s https://api.github.com/repos/caos/orbiter/releases/latest | grep "browser_download_url.*orbctl-linux-amd64" | cut -d '"' -f 4 | sudo wget -i - -O /usr/local/bin/orbctl - -sudo chmod +x /usr/local/bin/orbctl +curl -s https://api.github.com/repos/caos/orbiter/releases/latest | grep "browser_download_url.*orbctl-linux-amd64" | cut -d '"' -f 4 | sudo wget -i - -O /usr/local/bin/orbctl - && \ +sudo chmod +x /usr/local/bin/orbctl && \ sudo chown $(id -u):$(id -g) /usr/local/bin/orbctl # Set some environment variables in order to avoid too much retyping. diff --git a/internal/core/operator/operator.go b/internal/core/operator/operator.go index 3ba268498..bcdda8983 100644 --- a/internal/core/operator/operator.go +++ b/internal/core/operator/operator.go @@ -38,8 +38,9 @@ type Iterator struct { func New(args *Arguments) *Iterator { return &Iterator{ - args: args, - fired: make(chan struct{}), + args: args, + fired: make(chan struct{}), + secrets: make(map[string]interface{}), } } @@ -129,10 +130,8 @@ func (i *Iterator) iterate(stop <-chan struct{}) *IterationDone { return &IterationDone{Error: err} } - var ( - desired map[string]interface{} - current map[string]interface{} - ) + desired := make(map[string]interface{}) + current := make(map[string]interface{}) if err := yaml.Unmarshal(desiredBytes, &desired); err != nil { return &IterationDone{Error: err}