ykulazhenkov / network-attachment-definition-client

A Golang Kubernetes client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NetworkAttachmentDefinition CRD Client

Based on https://github.com/openshift-evangelists/crd-code-generation

Getting Started

First register the custom resource definition:

kubectl apply -f artifacts/network-crd.yaml

For old kubernetes version (<1.16), please use artifacts/networks-crd-v1beta1.yaml:

kubectl apply -f artifacts/networks-crd-v1beta1.yaml

Then add an example of the NetworkAttachmentDefinition kind:

kubectl apply -f artifacts/my-network.yaml

Finally build and run the example:

go build
./example -kubeconfig ~/.kube/config

About

A Golang Kubernetes client

License:Apache License 2.0


Languages

Language:Go 97.1%Language:Shell 2.9%