Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Processing gitlab.ChangeRegistryToGitLab - empty secret #188

Closed
6za opened this issue Aug 4, 2022 · 0 comments
Closed

Error Processing gitlab.ChangeRegistryToGitLab - empty secret #188

6za opened this issue Aug 4, 2022 · 0 comments

Comments

@6za
Copy link
Contributor

6za commented Aug 4, 2022

panic: error creating argocd repository credentials template the object provided is unrecognized (must be of type Secret): couldn't get version/kind; json parse error: unexpected end of JSON input (<empty>)

goroutine 1 [running]:
log.Panicf({0x1ccfa77, 0x0}, {0xc0009874f8, 0x0, 0x0})
  /usr/local/go/src/log/log.go:361 +0x67
github.com/kubefirst/kubefirst/internal/gitlab.ChangeRegistryToGitLab(0x0)
  /home/developer/app/internal/gitlab/gitlab.go:430 +0x58e
github.com/kubefirst/kubefirst/cmd.glob..func6(0x2f6a100, {0x2fb7958, 0x0, 0x0})
  /home/developer/app/cmd/create.go:297 +0x2065
github.com/spf13/cobra.(*Command).execute(0x2f6a100, {0x2fb7958, 0x0, 0x0})
  /go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:860 +0x5f8
github.com/spf13/cobra.(*Command).ExecuteC(0x2f6a380)
  /go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974 +0x3bc
github.com/spf13/cobra.(*Command).Execute(...)
  /go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:902
github.com/kubefirst/kubefirst/cmd.Execute()
  /home/developer/app/cmd/root.go:26 +0x25
main.main()
  /home/developer/app/main.go:65 +0x425

Logs

LOG: 2022/08/04 00:12:19.362648 /home/developer/app/internal/gitlab/gitlab.go:638: successfully pushed metaphor to gitlab
LOG: 2022/08/04 00:12:20.378060 /home/developer/app/cmd/createUtils.go:295: Adding the registry application registered against gitlab
LOG: 2022/08/04 00:12:20.381526 /home/developer/app/internal/gitlab/gitlab.go:425: error unmarshalling yaml during argocd repository secret create error converting YAML to JSON: yaml: line 2: found character that cannot start any token
LOG: 2022/08/04 00:12:20.978156 /home/developer/app/internal/gitlab/gitlab.go:430: error creating argocd repository credentials template the object provided is unrecognized (must be of type Secret): couldn't get version/kind; json parse error: unexpected end of JSON input (<empty>)
@6za 6za mentioned this issue Aug 4, 2022
@6za 6za closed this as completed Aug 4, 2022
6za added a commit that referenced this issue Aug 4, 2022
Signed-off-by: 6za <53096417+6za@users.noreply.github.com>
6za added a commit that referenced this issue Aug 4, 2022
* #188 2nd try

Signed-off-by: 6za <53096417+6za@users.noreply.github.com>

* update gitlab

Signed-off-by: 6za <53096417+6za@users.noreply.github.com>

* update gitlab

Signed-off-by: 6za <53096417+6za@users.noreply.github.com>

* lock argocd version

Signed-off-by: 6za <53096417+6za@users.noreply.github.com>

* lock argocd version

Signed-off-by: 6za <53096417+6za@users.noreply.github.com>

* Error out on missing secrets

Signed-off-by: 6za <53096417+6za@users.noreply.github.com>

* try fix #192

Signed-off-by: 6za <53096417+6za@users.noreply.github.com>

* try fix #192

Signed-off-by: 6za <53096417+6za@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant