Skip to content

Instantly share code, notes, and snippets.

View shovanmaity's full-sized avatar
:octocat:

Shovan Maity shovanmaity

:octocat:
View GitHub Profile
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
@shovanmaity
shovanmaity / Dockerfile
Last active May 12, 2020 18:52
delete intermediate container images for docker multi-stage build
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

Prerequisite

OpenEBS must be installed.

Install cspc-operator

To provision a CSPC using dao you need to install cspc-operator from alpha feature

Install cstorpoolauto DAO operator

Sample cstorpoolauto DAO operator yaml is given below.

NOTE:- you can install it in any namespace.

apiVersion: v1
package main
import (
"encoding/json"
"fmt"
"log"
"github.com/pkg/errors"
)
@shovanmaity
shovanmaity / Converting libraries to Ember CLI addons.md
Created August 21, 2018 12:40 — forked from kristianmandrup/Converting libraries to Ember CLI addons.md
Guide to Developing Addons and Blueprints for Ember CLI

Converting libraries to Ember CLI addons

In this guide we will cover two main cases:

  • Ember specific library
  • vendor library

Ember 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.