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

Repository creation failed. [{Resource:Repository Field:name Code:custom Message:name already exists on this account}] #2153

Open
1 task done
simontechdev opened this issue Apr 15, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@simontechdev
Copy link

Which version of kubefirst are you using?

v2.4.3

Which cloud provider?

DigitalOcean

Which DNS?

Cloudflare

Which installation type?

UI (Console app)

Which distributed Git provider?

GitHub

Did you use a fork of gitops-template?

No

Which Operating System?

None specific

What is the issue?

When importing existing repo, it won't allow me and claims the name already exist:
Legend:
[organisation] = redacted
[reponame] = redacted

running "/atlantis-data/bin/terraform1.3.8 apply -input=false "/atlantis-data/repos/[organisation]/gitops/16/default/terraform/github/default.tfplan"" in "/atlantis-data/repos/[organisation]/gitops/16/default/terraform/github": exit status 1
module.[reponame].github_repository.repo: Creating...

│ Error: POST https://api.github.com/orgs/organisation/repos: 422 Repository creation failed. [{Resource:Repository Field:name Code:custom Message:name already exists on this account}]

│ with module.[reponame].github_repository.repo,
│ on modules/repository/main.tf line 1, in resource "github_repository" "repo":
│ 1: resource "github_repository" "repo" {

Code of Conduct

  • I agree to follow this project's Code of Conduct
@simontechdev simontechdev added the bug Something isn't working label Apr 15, 2024
@fharper
Copy link
Member

fharper commented Apr 17, 2024

Following-up with you on Slack. I will report the conclusion of our discussion in this issue for transparency and making the information available for all.

@fharper fharper self-assigned this Apr 17, 2024
@simontechdev
Copy link
Author

I believe I misunderstood how it works, and had an expectation that currently is outside of the scope of Kubefirst and Terraform with gitops.

Maybe this should've been a feature request instead, for the ability to import existing repositories into terraform through something like a declaration in repos.tf without terraform creating the repository if it already exist, but accepting it as a part of the cluster and applications managed through kubefirst technology stack anyhow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants