gcs-crd

module
v0.0.0-...-c01dae2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2019 License: Apache-2.0

README

GCS CRD

This is implementation of Kubernetes Custom Resrouce Definitions.
The Goal is to opearation GCS as a resource of Kubernetes.

Remember that GKE has Servive Broker.

Development using Kubebuilder.

Details of this repository are described at the following site. Sorry, it will be in Japanese. https://qiita.com/h-r-k-matsumoto/items/ab7ead01c89af60119aa

It is still in development.

How to use

Local Development

Prepare
  • install Kubebuilder.
  • set GOOGLE_APPLICATION_CREDENTIALS environemt.Please see here.
Running
$ make install
$ make run

Please change the following part of the manifest sample.

  bucketName: crd-gcs-example
  projectID: <<set-your-gcp-projectid>>
$ kubectl apply -f ./config/samples/

bucketName is crd target logical name.
The actual bucket name is generated by the controller.
e.g. logical name is crd-gcs-example2, actual name is crd-gcs-example2-cabjafbb-pllngz .

Deploy to GKE.

Prepare
Running
$ make deploy

Please change the following part of the manifest sample.

  bucketName: crd-gcs-example
  projectID: <<set-your-gcp-projectid>>
$ kubectl apply -f ./config/samples/

bucketName is crd target logical name.
The actual bucket name is generated by the controller.
e.g. logical name is crd-gcs-example2, actual name is crd-gcs-example2-cabjafbb-pllngz .

Directories

Path Synopsis
cmd
pkg
apis
Package apis contains Kubernetes API groups.
Package apis contains Kubernetes API groups.
apis/storage
Package storage contains storage API versions
Package storage contains storage API versions
apis/storage/v1alpha1
Package v1alpha1 contains API Schema definitions for the storage v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/h-r-k-matsumoto/gcs-crd/pkg/apis/storage +k8s:defaulter-gen=TypeMeta +groupName=storage.matsumo.dev Package v1alpha1 contains API Schema definitions for the storage v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/h-r-k-matsumoto/gcs-crd/pkg/apis/storage +k8s:defaulter-gen=TypeMeta +groupName=storage.matsumo.dev
Package v1alpha1 contains API Schema definitions for the storage v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/h-r-k-matsumoto/gcs-crd/pkg/apis/storage +k8s:defaulter-gen=TypeMeta +groupName=storage.matsumo.dev Package v1alpha1 contains API Schema definitions for the storage v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/h-r-k-matsumoto/gcs-crd/pkg/apis/storage +k8s:defaulter-gen=TypeMeta +groupName=storage.matsumo.dev

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL