Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spirosoik/go-kubernetes-crud
Kubernetes CRUD library in Go
https://github.com/spirosoik/go-kubernetes-crud
Last synced: about 5 hours ago
JSON representation
Kubernetes CRUD library in Go
- Host: GitHub
- URL: https://github.com/spirosoik/go-kubernetes-crud
- Owner: spirosoik
- License: apache-2.0
- Created: 2019-06-14T06:24:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-02T14:20:33.000Z (over 4 years ago)
- Last Synced: 2024-06-20T08:14:28.074Z (5 months ago)
- Language: Go
- Homepage:
- Size: 15.1 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Kubernetes CRUD
A library for running kubernetes CRUD operations.## Example
You can find a working example how to use it with your own cluster
[here](./examples).```bash
go run examples/example.go -kubecontext=
```## Usage
Passing nil in the service will try to build a kubernetes client in cluster.
```go
svc := kubecrud.NewService(nil)```
Passing the context you want will try to build a kubernetes client for the provided context.
```go
kcontext := "my-example"
svc := kubecrud.NewService(&kcontext)
```## Development
The library is currently compatible with golang version from 1.13+.
Use a [minikube](https://kubernetes.io/docs/tasks/tools/install-minikube/) or [microk8](https://microk8s.io/) for local development with a Kubernetes cluster.
The library uses Go modules so it can be located outside the Go path.
```bash
# Setup with extra tools
make setup# Run linter for Go
make lint# Run the example
make example
```