Skip to content

Panic when trying to migrate the git source to ArgoCD #13

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

Closed
nitishfy opened this issue Oct 9, 2024 · 0 comments · Fixed by #14
Closed

Panic when trying to migrate the git source to ArgoCD #13

nitishfy opened this issue Oct 9, 2024 · 0 comments · Fixed by #14

Comments

@nitishfy
Copy link
Member

nitishfy commented Oct 9, 2024

I've the following GitRepository manifest file that doesn't include the secretRef field

apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
  name: podinfo
  namespace: flux-system
spec:
  interval: 1m0s
  ref:
    branch: master
  url: https://github.com/stefanprodan/podinfo

However if I try to migrate this to Argo CD, I get the following error

>  mta kustomization --name podinfo                  
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x274a3f8]

goroutine 1 [running]:
github.com/akuity/mta/cmd.glob..func2(0xc0001d4a00?, {0x2c82acc?, 0x4?, 0x2c829dc?})
	/home/chernand/git/mta/cmd/kustomization.go:112 +0x538
github.com/spf13/cobra.(*Command).execute(0x40aa700, {0xc0002f9480, 0x2, 0x2})
	/home/chernand/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:944 +0x863
github.com/spf13/cobra.(*Command).ExecuteC(0x40aa9e0)
	/home/chernand/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
	/home/chernand/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992
github.com/akuity/mta/cmd.Execute()
	/home/chernand/git/mta/cmd/root.go:54 +0x1a
main.main()
	/home/chernand/git/mta/main.go:21 +0xf
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

Successfully merging a pull request may close this issue.

1 participant