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

[Feature]: Support for repo contexts (ex gitlab ) #126

Open
brunotorrente opened this issue Oct 10, 2023 · 0 comments
Open

[Feature]: Support for repo contexts (ex gitlab ) #126

brunotorrente opened this issue Oct 10, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@brunotorrente
Copy link

What would you like to be added?

Support for repo contexts (gitlab example)

Using the API it is possible to consult repos registered in codefresh, but the terraform provider does not support this context

API https://g.codefresh.io/api/contexts/gitlab

API response for git contexts

{
        "apiVersion": "v1",
        "kind": "context",
	"owner": "account",
	"metadata": {
		"default": true,
		"system": false,
		"name": "gitlab"
	},
	"spec": {
		"type": "git.gitlab",
		"data": {
			"sharingPolicy": "AllUsersInAccount",
			"auth": {
				"type": "basic",
				"password": "*****",
				"apiURL": "https://teste.com/api/v4/"
			},
			"behindFirewall": false,
			"sshClone": false,
			"secretStoreReferences": []
		}
	}
}

Would it be possible to add a data and resource to manage git repos in codefresh?

Exemple

resource "codefresh_context" "repos" {
    name = "gitlab"
    spec {
        git{ 
            gitlab {
                data = {
                   "auth_type = "basic"
                   "password" = "xxxxxx",
                   "apiURL" = "https://teste.com/api/v4/"
                   }
            }
    }
}

https://g.codefresh.io/api/#operation/repos-git-get-repo

@brunotorrente brunotorrente added the enhancement New feature or request label Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant