Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/udhos/eks
eks creates kubernetes client (client-go clientset) for EKS api-server from explicit cluster name, CA-data and endpoint.
https://github.com/udhos/eks
aws client-go eks go golang kubernetes
Last synced: 3 days ago
JSON representation
eks creates kubernetes client (client-go clientset) for EKS api-server from explicit cluster name, CA-data and endpoint.
- Host: GitHub
- URL: https://github.com/udhos/eks
- Owner: udhos
- License: mit
- Created: 2024-07-05T03:10:56.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-12-19T23:48:23.000Z (about 1 month ago)
- Last Synced: 2024-12-20T00:29:36.495Z (about 1 month ago)
- Topics: aws, client-go, eks, go, golang, kubernetes
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/udhos/eks/blob/main/LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/udhos/eks)](https://goreportcard.com/report/github.com/udhos/eks)
[![Go Reference](https://pkg.go.dev/badge/github.com/udhos/eks.svg)](https://pkg.go.dev/github.com/udhos/eks)# eks
[eks](https://github.com/udhos/eks) creates kubernetes client (client-go clientset) for EKS api-server from explicit cluster name, CA-data and endpoint.
# Build
```
git clone https://github.com/udhos/eks
cd eks
./build.sh
```# Test example program
Create an EKS cluster named `test`, then:
```
eksclient-example test
```# Usage
See example program: [cmd/eksclient-example/main.go](cmd/eksclient-example/main.go)
```golang
import "github.com/udhos/eks/eksclient"eksclientOptions := eksclient.Options{
ClusterName: clusterName,
ClusterCAData: clusterCAData,
ClusterEndpoint: clusterEndpoint,
}clientset, errClientset := eksclient.New(eksclientOptions)
if errClientset != nil {
log.Fatalf("clientset: %v", errClientset)
}
```