/hypercloud-operator-go

Hypercloud Operator (GO Lang)

Primary LanguageGoApache License 2.0Apache-2.0

hypercloud-operator-go

Github All Releases License Go Report Card

This is hypercloud operator

Features

namespaceclaim roleBindingclaim resourceQuotaClaim namespace

To start developing hypercloud-operator

Prerequisites

0. You have a working Go environment

$ git clone https://github.com/tmax-cloud/hypercloud-operator-go
$ cd hypercloud-operator-go
$ export GO111MODULE=on
$ make

1. Install kubebuilder (version: 2.3.1)

$ release=2.3.1
$ os=$(go env GOOS)
$ arch=$(go env GOARCH)
$ curl -sL https://go.kubebuilder.io/dl/2.3.1/${os}/${arch} | tar -xz -C /tmp/
$ mv /tmp/kubebuilder_2.3.1_${os}_${arch} /usr/local/kubebuilder
$ export PATH=$PATH:/usr/local/kubebuilder/bin

2. Install operator-sdk (version: v1.0.0)

$ release=v1.0.0
$ os=$(go env GOOS)
$ arch=$(arch)
$ curl -OJL https://github.com/operator-framework/operator-sdk/releases/download/${release}/operator-sdk-${release}-${arch}-${os}-gnu
$ chmod +x operator-sdk-${release}-${arch}-${os}-gnu
$ mv operator-sdk-${release}-${arch}-${os}-gnu /usr/local/bin/operator-sdk

TEST

TEST