Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Check for a terraform based replacement for this provider #83

Closed
a-thaler opened this issue Jan 14, 2022 · 7 comments
Closed

Check for a terraform based replacement for this provider #83

a-thaler opened this issue Jan 14, 2022 · 7 comments

Comments

@a-thaler
Copy link
Collaborator

a-thaler commented Jan 14, 2022

Description
The provider is used in the Kyma CLI to provision a gardener cluster in a simple way for a demo/development scenarios. The indirection via terraform turned out to be cumbersome and for our scenario not bringing much value, and we replaced the setup with a simple implementation based on kubernetes API to just directly create a shoot spec.

With that the provider is not needed anymore in the kyma project. As the provider seem to be used outside of the project, we should see if there is a terraform specific replacement available.

The https://github.com/hashicorp/terraform-provider-kubernetes introduced CRD support a while ago and should in theory be a drop-in replacement.

Reasons

Attachments

@linuxbsdfreak
Copy link

@a-thaler I had tried the https://github.com/hashicorp/terraform-provider-kubernetes for launching a gardener shoot. However it worked with the alpha provider. I have used above provider and it does not work since the new provider tries to validate the CR and it does not work since there is no Shoot.yaml CR on the Seed using the Robot acccount. I am using the kubectl tf provider which works.

@a-thaler
Copy link
Collaborator Author

a-thaler commented Mar 3, 2022

@linuxbsdfreak thanks a lot for the info. I remember that the alpha version had problems to detect the changeset properly, it treated some generated values on the remote side as a change to the local plan.
Do you encounter any problems with the kubectl provider? Are you talking about that one https://github.com/gavinbunney/terraform-provider-kubectl?
If not I will give it a try and then see if we officially deprecate the provider here.

@a-thaler a-thaler changed the title Verify if terraform-provider-kubernetes can be a replacement Check for a terraform based replacement for this provider Mar 24, 2022
@linuxbsdfreak
Copy link

@a-thaler . The https://github.com/gavinbunney/terraform-provider-kubectl provider works very well. However it does not have any support for querying the status field of a CR. I see that someone has implemented it. But the Maintainer of the plugin has not looked at it to get it officially in the provider

gavinbunney/terraform-provider-kubectl#41

@tobiscr
Copy link

tobiscr commented Apr 13, 2022

@clebs - jfyi

@tuxgoose
Copy link

tuxgoose commented Jul 19, 2022

I am at bit torn on whether to look into updating this terraform or spend the cycles on landscaper. Currently we are using helm to deploy/maintain shoot yaml, and like @a-thaler mentioned use the apply in kubectl to create gardener clusters.

https://github.com/gardener/landscaper

@kyma-bot
Copy link

This issue or PR has been automatically marked as stale due to the lack of recent activity.
Thank you for your contributions.

This bot triages issues and PRs according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied
  • After 7d of inactivity since lifecycle/stale was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Close this issue or PR with /close

If you think that I work incorrectly, kindly raise an issue with the problem.

/lifecycle stale

@kyma-bot kyma-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 25, 2022
@a-thaler a-thaler removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 26, 2022
@a-thaler
Copy link
Collaborator Author

It seems that there is no direct replacement available. It is recommended to work with the plain gardener resources directly. As the repository effectively is not maintained anymore, I will archive the repository to be most transparent on that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants