Giter VIP home page Giter VIP logo

kubernetes-crd-example's Introduction

Kubernetes Custom Resource Definition (CRD) Example

This repository contains the example files for my blog article on defining and accessing Kubernetes Custom Resources with the Kubernetes client-go package.

Setup

Building the example:

$ go get github.com/martin-helmich/kubernetes-crd-example

Setting up a custom resource definition (CRD) with an example object:

$ kubectl apply -f https://raw.githubusercontent.com/martin-helmich/kubernetes-crd-example/master/kubernetes/crd.yaml
$ kubectl apply -f https://raw.githubusercontent.com/martin-helmich/kubernetes-crd-example/master/kubernetes/project.yaml

kubernetes-crd-example's People

Contributors

luebken avatar martin-helmich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kubernetes-crd-example's Issues

go get github.com/martin-helmich/kubernetes-crd-example gives error

go get github.com/martin-helmich/kubernetes-crd-example
github.com/martin-helmich/kubernetes-crd-example/clientset/v1alpha1
go\src\github.com\martin-helmich\kubernetes-crd-example\clientset\v1alpha1\api.go:6:2: imported and not used: "k8s.io/apimachinery/pkg/runtime/serializer"
go\src\github.com\martin-helmich\kubernetes-crd-example\clientset\v1alpha1\projects.go:31:5: not enough arguments in call to c.restClient.Get().Namespace(c.ns).Resource("projects").VersionedParams(&opts, scheme.ParameterCodec).Do
have ()
want (context.Context)
go\src\github.com\martin-helmich\kubernetes-crd-example\clientset\v1alpha1\projects.go:45:5: not enough arguments in call to c.restClient.Get().Namespace(c.ns).Resource("projects").Name(name).VersionedParams(&opts, scheme.ParameterCodec).Do
have ()
want (context.Context)
go\src\github.com\martin-helmich\kubernetes-crd-example\clientset\v1alpha1\projects.go:58:5: not enough arguments in call to c.restClient.Post().Namespace(c.ns).Resource("projects").Body(project).Do
have ()
want (context.Context)
go\src\github.com\martin-helmich\kubernetes-crd-example\clientset\v1alpha1\projects.go:71:8: not enough arguments in call to c.restClient.Get().Namespace(c.ns).Resource("projects").VersionedParams(&opts, scheme.ParameterCodec).Watch
have ()
want (context.Context)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.