This message was deleted.
# general
s
This message was deleted.
m
Hi Hayden, I will have a look into
f
Awesome 🙂
The repo with all the code is private but that's all the stuff that's actually relevant to the issue
👍 1
m
I will do this in docker-desktop instead of symbiosis
or kind/rancher desktop
f
Yeah, sounds like it should work fine
m
Hi Hayden, it works for me: here is my code (I use GITHUB_TOKEN instead the deploy key) https://gist.github.com/dirien/7090994de83f063c68795d6d273f8ab6 And here is my flux deployment repo: https://github.com/dirien/my-flux-demo-deployments
The only part what differs is that i don't use the DeployKey code:
Copy code
_, err = github.NewRepositoryDeployKey(ctx, args.Name+"-flux-depkey", &github.RepositoryDeployKeyArgs{
  Title:      pulumi.String("flux deploy key " + args.Name),
  Key:        privkey.PrivateKeyOpenssh,
  Repository: pulumi.String("gitops"),
  ReadOnly:   pulumi.Bool(true),
 })
 if err != nil {
  return err
 }
Talk to you 2morrow!
f
@many-telephone-49025 okay. Wondering if this could be an issue with my version of Pulumi now. I’ve got a small amount of time to test the problem again this evening so I’ll take a look then.
m
Looking forward!
f
@many-telephone-49025 Still doesn't work, sadly...
m
I will run your gist on my side, at least the flux part!
and using deploykey instead PAT
f
👍
I think it might be a problem with the manifests that it’s generating
Or how ConfigGroup parses them
m
one thing! can u use
Metadata: &metav1.ObjectMetaArgs
instead of your
v1.ObjectMetaPtr
f
I’ll give that a try , thanks :)
m
the v1 or metav1 is not relevant.
f
Yeah
m
I saw you point to the same lib
f
Wait have I imported it twice?
Thought I did corev1 and metav1
m
not what i see in your gist
corev1 and metav1 are different packages
f
I know
🙇 1
😊 1