In this guide we will cover two main cases:
- Ember specific library
- vendor library
The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"github.com/pkg/errors" | |
) |
OpenEBS must be installed.
To provision a CSPC using dao you need to install cspc-operator from alpha feature
Sample cstorpoolauto DAO operator yaml is given below.
NOTE:- you can install it in any namespace.
apiVersion: v1
FROM golang:1.13.5 as tester | |
LABEL type=intermediate-container | |
COPY main.go /go/src/main.go | |
COPY Makefile /go/src/Makefile | |
WORKDIR /go/src | |
RUN make test | |
FROM golang:1.13.5 as builder | |
LABEL type=intermediate-container | |
COPY main.go /go/src/main.go |
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition | |
metadata: | |
name: hellos.hello.k8s.io | |
annotations: | |
api-approved.kubernetes.io: unapproved | |
spec: | |
group: hello.k8s.io | |
names: | |
kind: Hello |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: data-source-validator | |
namespace: kube-system | |
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: data-source-validator |