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

Add support Kubernetes Provider #3

Closed
sergeylanzman opened this issue May 3, 2019 · 4 comments
Closed

Add support Kubernetes Provider #3

sergeylanzman opened this issue May 3, 2019 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sergeylanzman
Copy link
Collaborator

Kubernetes provider can be supported by terraformer.
Use kubernetes go client for get IDs.
Use kubectl config default file.

docs: https://www.terraform.io/docs/providers/kubernetes/index.html

@sergeylanzman sergeylanzman added enhancement New feature or request help wanted Extra attention is needed labels May 3, 2019
@pdecat
Copy link
Contributor

pdecat commented May 5, 2019

On the kubernetes YAML to terraform configuration generation front, there's https://github.com/sl1pm4t/k2tf which is quite effective.

@osdemah
Copy link
Contributor

osdemah commented May 5, 2019

I'm going for implementing it. to make GetSupportedService more flexible, we can use client-go discovery methods such as ServerPreferredResources. Then It's quite straightforward to extract resources of each type via clientset apis.

@sergeylanzman
Copy link
Collaborator Author

Ok GetSupportedService it's part of interface, you can change implementation in kubernetes provider.
GetSupportedService - return list of terraformer support services, not provider.

@osdemah
Copy link
Contributor

osdemah commented May 5, 2019

Yeah, I was saying about the supported services as well. The ServerPreferredResources will return list of resources that are supported by k8s server. I was saying instead of hardcoding the list of supported k8s resources, I can use client-go to return a list of available k8s resources from k8s api-server.

sergeylanzman pushed a commit that referenced this issue Feb 7, 2023
* [WIP] add ionoscloud support

* [WIP] add ionoscloud support

* fix: fix set dcId for servers and lan

* vendor update

* docs: added documentations for ionoscloud

* feat: add nic and volume

* fix: remove unnecessary prints from server.go file (#3)

* feat: implement IP Block (#4)

* feat: implement backup unit (#2)

* feat: Implement K8s cluster (#5)

* feat: implement Kubernetes Nodepool (#6)

* fix: resolve import inconsistency (#7)

* fix: fix IONOS_TOKEN authentication (#9)

* feat: add extra checks for resources (#10)

* feat: implement target group (#8)

* fix: remove unnecessary check and test statement (#13)

* feat: implement network load balancer (#14)

* feat: implement NAT gateway (#12)

* feat: implement group (#11)

* feat: implement application load balancer (#15)

* feat: fix server corner cases. k8s server should not be written to plan.

* Implement firewall resource, fix name typo, change nic logic (#16)

* implement NLB forwarding rule (#17)

* Implement load balancer (#18)

* feat: implement NAT gateway rule (#19)

* fix: rename generator string (#20)

* feat: rename variable, add condition if server valid, firewall link to other resources

* feat: improve doc

* feat: use variables for hardcoded strings

* feat: link remaining resources

* doc: update README.md

* fix: add links to supported resources

* fix: add links to supported resources

* fix: remove 'Printf' calls from utils.go (#23)

* refactor: fix linter errors (#24)

---------

Co-authored-by: iblindu <iuliaioana.blindu@gmail.com>
Co-authored-by: cristi <cristian.mihai.guran@ionos.com>
Co-authored-by: cguran-ionos <cristian-mihai.guran@ionos.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants