-
Notifications
You must be signed in to change notification settings - Fork 319
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
Implement resources and data sources for GitLab Agent for Kubernetes API #1073
Implement resources and data sources for GitLab Agent for Kubernetes API #1073
Conversation
Hey @timofurrer - I saw you requested a review after flagging this as blocked. Are you looking for a first round review? |
@PatrickRice-KSC Yes, please. The code shouldn't be affected by the draft state ;) |
@timofurrer Good question. I don't have a very strong opinion, but a would prefer to call it The project relationship is there really only to store the agent configurations and management views. The idea is to have agents that maintain a connection with a cluster, and this is independent of the concept of a project. At the same time, to keep consistency, I don't mind the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't make it though all the files yet, but I have a couple comments/questions so far 🙂
examples/data-sources/gitlab_project_cluster_agent/data-source.tf
Outdated
Show resolved
Hide resolved
internal/provider/data_source_gitlab_project_cluster_agent_test.go
Outdated
Show resolved
Hide resolved
internal/provider/data_source_gitlab_project_cluster_agent_test.go
Outdated
Show resolved
Hide resolved
ad36bf6
to
15e37d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One one (more general) comment, otherwise it's a bit difficult to confirm with all the compile issues, but it overall looks solid to me :)
@armsnyder you've put a 👍 there ... What was your preference, |
Both are okay. 👍 If I had to choose I would go with |
15e37d0
to
c267422
Compare
I've renamed the resources to |
e2b14bb
to
ac4bd8c
Compare
blocked by: #1095 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
We're green across the board, I assume you're still waiting for 1095 though before you merge, is that the plan? |
ac4bd8c
to
b86a179
Compare
b86a179
to
d2b37fd
Compare
This resource implements the API for GitLab Agents for Kubernetes: https://docs.gitlab.com/ee/api/cluster_agents.html
d2b37fd
to
0f4b954
Compare
This functionality has been released in v3.15.0 of the Terraform GitLab Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue. Thank you! |
This change set adds the following new resources / data sources:
resource gitlab_project_cluster_agent
data gitlab_project_cluster_agent
data gitlab_project_cluster_agents
Corresponding to the new API here: https://docs.gitlab.com/ee/api/cluster_agents.html
This PR is currently blocked by:
@nagyv I had quite some discussions about the naming of that API over at GitLab. In the provider we usually name resources / data sources similar to the API path, thus
/projects/:id/cluster_agents
becomesgitlab_project_cluster_agent
... Is that okay with you, too? Or do you have any other preference for that particular resource name?