Skip to content
This repository was archived by the owner on Aug 14, 2021. It is now read-only.

Commit dd85b4e

Browse files
author
Kiran Mova
authored
chore(build): disable migrated provisioner build (#129)
The openebs-provisioner code has been migrated to https://github.com/openebs/openebs-k8s-provisioner This PR disables the build scripts for openebs-provisioner and also update the README with new repo information. Signed-off-by: kmova <[email protected]>
1 parent 7862ba6 commit dd85b4e

File tree

8 files changed

+20
-170
lines changed

8 files changed

+20
-170
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -31,53 +31,6 @@ jobs:
3131
pattern: '*.sh'
3232
exclude: './.git/*,./vendor/*'
3333

34-
openebs-provisioner:
35-
runs-on: ubuntu-latest
36-
needs: ['lint']
37-
steps:
38-
- name: Checkout
39-
uses: actions/checkout@v2
40-
41-
- name: Set tag
42-
run: |
43-
BRANCH="${GITHUB_REF##*/}"
44-
CI_TAG=${BRANCH#v}-ci
45-
if [ ${BRANCH} = "release" ]; then
46-
CI_TAG="ci"
47-
fi
48-
49-
echo "TAG=${CI_TAG}" >> $GITHUB_ENV
50-
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
51-
52-
- name: Print Tag info
53-
run: |
54-
echo "BRANCH: ${BRANCH}"
55-
echo "TAG: ${TAG}"
56-
57-
- name: Set up QEMU
58-
uses: docker/setup-qemu-action@v1
59-
with:
60-
platforms: all
61-
62-
- name: Set up Docker Buildx
63-
id: buildx
64-
uses: docker/setup-buildx-action@v1
65-
with:
66-
version: latest
67-
68-
- name: Login to Docker Hub
69-
uses: docker/login-action@v1
70-
with:
71-
username: ${{ secrets.DOCKERHUB_USERNAME }}
72-
password: ${{ secrets.DOCKERHUB_TOKEN }}
73-
74-
- name: Build & Push Image
75-
env:
76-
IMAGE_ORG: ${{ secrets.IMAGE_ORG}}
77-
run: |
78-
make docker.buildx.provisioner
79-
make buildx.push.provisioner
80-
8134
snapshot-controller:
8235
runs-on: ubuntu-latest
8336
needs: ['lint']

.github/workflows/pull_request.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,6 @@ jobs:
3737
pattern: '*.sh'
3838
exclude: './vendor/*'
3939

40-
openebs-provisioner:
41-
runs-on: ubuntu-latest
42-
needs: ['lint']
43-
steps:
44-
- name: Checkout
45-
uses: actions/checkout@v2
46-
47-
- name: Set up QEMU
48-
uses: docker/setup-qemu-action@v1
49-
with:
50-
platforms: all
51-
52-
- name: Set up Docker Buildx
53-
id: buildx
54-
uses: docker/setup-buildx-action@v1
55-
with:
56-
version: latest
57-
58-
- name: Build Image
59-
env:
60-
IMG_RESULT: cache
61-
run: make docker.buildx.provisioner
62-
6340
snapshot-controller:
6441
runs-on: ubuntu-latest
6542
needs: ['lint']

.github/workflows/release.yml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -19,46 +19,6 @@ on:
1919
- 'v*'
2020

2121
jobs:
22-
openebs-provisioner:
23-
runs-on: ubuntu-latest
24-
steps:
25-
- name: Checkout
26-
uses: actions/checkout@v1
27-
28-
- name: Set Tag
29-
run: |
30-
TAG="${GITHUB_REF#refs/*/v}"
31-
echo "TAG=${TAG}" >> $GITHUB_ENV
32-
echo "RELEASE_TAG=${TAG}" >> $GITHUB_ENV
33-
34-
- name: Print Tag info
35-
run: |
36-
echo "RELEASE TAG: ${RELEASE_TAG}"
37-
38-
- name: Set up QEMU
39-
uses: docker/setup-qemu-action@v1
40-
with:
41-
platforms: all
42-
43-
- name: Set up Docker Buildx
44-
id: buildx
45-
uses: docker/setup-buildx-action@v1
46-
with:
47-
version: latest
48-
49-
- name: Login to Docker Hub
50-
uses: docker/login-action@v1
51-
with:
52-
username: ${{ secrets.DOCKERHUB_USERNAME }}
53-
password: ${{ secrets.DOCKERHUB_TOKEN }}
54-
55-
- name: Build & Push Image
56-
env:
57-
IMAGE_ORG: ${{ secrets.IMAGE_ORG}}
58-
run: |
59-
make docker.buildx.provisioner
60-
make buildx.push.provisioner
61-
6222
snapshot-controller:
6323
runs-on: ubuntu-latest
6424
steps:

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ script:
9696

9797
REL_BRANCH=$(echo $(echo "$TRAVIS_TAG" | cut -d'-' -f1 | rev | cut -d'.' -f2- | rev).x$REL_SUFFIX);
9898

99-
./openebs/buildscripts/git-release "$REPO_ORG/maya" "$TRAVIS_TAG" "$REL_BRANCH" || travis_terminate 1;
99+
./openebs/buildscripts/git-release "$REPO_ORG/openebs-k8s-provisioner" "$TRAVIS_TAG" "$REL_BRANCH" || travis_terminate 1;
100100
fi
101101

102102
after_success:

README.md

Lines changed: 8 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,14 @@
1-
# External Storage
2-
[![Build Status](https://travis-ci.org/kubernetes-incubator/external-storage.svg?branch=master)](https://travis-ci.org/kubernetes-incubator/external-storage)
3-
[![GoDoc](https://godoc.org/github.com/kubernetes-incubator/external-storage?status.svg)](https://godoc.org/github.com/kubernetes-incubator/external-storage)
4-
[![Go Report Card](https://goreportcard.com/badge/github.com/kubernetes-incubator/external-storage)](https://goreportcard.com/report/github.com/kubernetes-incubator/external-storage)
1+
This repository is home for Kubenretes external-storage based Volume provisioners.
52

6-
## External Provisioners
7-
This repository houses community-maintained external provisioners plus a helper library for building them. Each provisioner is contained in its own directory so for information on how to use one, enter its directory and read its documentation. The library is contained in the `lib` directory.
3+
The early engines Jiva and cStor were using the provisioners built from this repository. As Kubernetes community has retired this upstream repository, OpenEBS community are in the process of migrating the code from this repo to component specific repositories.
84

9-
### What is an 'external provisioner'?
10-
An external provisioner is a dynamic PV provisioner whose code lives out-of-tree/external to Kubernetes. Unlike [in-tree dynamic provisioners](https://kubernetes.io/docs/concepts/storage/storage-classes/#provisioner) that run as part of the Kubernetes controller manager, external ones can be deployed & updated independently.
5+
If you are looking for the OpenEBS K8s Provisioner, it has already been migrated to https://github.com/openebs/openebs-k8s-provisioner.
116

12-
External provisioners work just like in-tree dynamic PV provisioners. A `StorageClass` object can specify an external provisioner instance to be its `provisioner` like it can in-tree provisioners. The instance will then watch for `PersistentVolumeClaims` that ask for the `StorageClass` and automatically create `PersistentVolumes` for them. For more information on how dynamic provisioning works, see [the docs](http://kubernetes.io/docs/user-guide/persistent-volumes/) or [this blog post](http://blog.kubernetes.io/2016/10/dynamic-provisioning-and-storage-in-kubernetes.html).
7+
This repository is only used for building the snapshot provionsers used by cStor pools provisioned with SPC.
138

14-
### How to use the library
15-
```go
16-
import (
17-
"github.com/kubernetes-incubator/external-storage/lib/controller"
18-
)
19-
```
20-
You need to implement the `Provisioner` interface then pass your implementation to a `ProvisionController` and run the controller. The controller takes care of deciding when to call your implementation's `Provision` or `Delete`. The interface and controller are defined in the above package.
9+
_Note: The snapshot provisioners are already deprecated by Kubernetes and will soon be deprecated by the OpenEBS community in favor of the cStor CSI Driver available at https://github.com/openebs/cstor-operators_
2110

22-
You will want to import a specific version of the library to ensure compatibility with certain versions of Kubernetes and to avoid breaking changes. This repo will be tagged according to the library's version (individual provisioners will need to version themselves independently, e.g. by in their documentation pointing to Docker Hub and using Docker tags), so to keep track of releases, go to this repo's [releases page](https://github.com/kubernetes-incubator/external-storage/releases).
11+
For further questions or if you need any help, please reach out to the maintainers via [Kubernetes Slack](https://kubernetes.slack.com).
12+
* Head to our user discussions at [#openebs](https://kubernetes.slack.com/messages/openebs/)
13+
* Head to our contributor discussions at [#openebs-dev](https://kubernetes.slack.com/messages/openebs-dev/)
2314

24-
Note that because your provisioner needs to depend also on [client-go](https://github.com/kubernetes/client-go) and the library itself depends on a specific version of client-go, to avoid a dependency conflict you must ensure you use the exact same version of client-go as the library. You can check what version of client-go the library depends on by looking at its [glide.yaml](lib/glide.yaml).
25-
26-
[For all documentation, including a full guide on how to write an external provisioner using the library that demonstrates the above, see here](./docs).
27-
28-
### `client-go` integration strategy
29-
This library is integrated with `client-go` `master` branch. As soon as the `client-go` `master` branch contains a new version of `client-go` vendor dependencies, dependencies of this library shall be updated to the tip of the `client-go` `master` branch.
30-
31-
## Roadmap
32-
33-
February
34-
* Finalize repo structure, release process, etc.
35-
36-
## Community, discussion, contribution, and support
37-
38-
Learn how to engage with the Kubernetes community on the [community page](http://kubernetes.io/community/).
39-
40-
You can reach the maintainers of this project at:
41-
42-
- Slack: #sig-storage
43-
44-
## Kubernetes Incubator
45-
46-
This is a [Kubernetes Incubator project](https://github.com/kubernetes/community/blob/master/incubator.md). The project was established 2016-11-15 (as nfs-provisioner). The incubator team for the project is:
47-
48-
- Sponsor: Clayton (@smarterclayton)
49-
- Champion: Jan (@jsafrane) & Brad (@childsb)
50-
- SIG: sig-storage
51-
52-
### Code of conduct
53-
54-
Participation in the Kubernetes community is governed by the [Kubernetes Code of Conduct](code-of-conduct.md).

openebs-build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ DST_REPO="$GOPATH/src/github.com/kubernetes-incubator"
2020
mkdir -p $DST_REPO
2121
cp -R $SRC_REPO/../external-storage $DST_REPO
2222

23-
echo "Building openebs-provisioner"
24-
cd $DST_REPO/external-storage/openebs
25-
make container
26-
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
23+
#echo "Building openebs-provisioner"
24+
#cd $DST_REPO/external-storage/openebs
25+
#make container
26+
#rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
2727

2828
echo "Building snapshot-controller and snapshot-provisioner"
2929
cd $DST_REPO/external-storage/snapshot

openebs-deploy.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ if [ -z "${IMAGE_ORG}" ]; then
2222
fi
2323

2424
if [ "${ARCH}" = "x86_64" ]; then
25-
export DIMAGE="${IMAGE_ORG}/openebs-k8s-provisioner"
26-
./openebs/buildscripts/push
25+
#export DIMAGE="${IMAGE_ORG}/openebs-k8s-provisioner"
26+
#./openebs/buildscripts/push
2727

2828
export DIMAGE="${IMAGE_ORG}/snapshot-controller"
2929
./openebs/buildscripts/push
3030

3131
export DIMAGE="${IMAGE_ORG}/snapshot-provisioner"
3232
./openebs/buildscripts/push
3333
elif [ "${ARCH}" = "aarch64" ]; then
34-
export DIMAGE="${IMAGE_ORG}/openebs-k8s-provisioner-arm64"
35-
./openebs/buildscripts/push
34+
#export DIMAGE="${IMAGE_ORG}/openebs-k8s-provisioner-arm64"
35+
#./openebs/buildscripts/push
3636

3737
export DIMAGE="${IMAGE_ORG}/snapshot-controller-arm64"
3838
./openebs/buildscripts/push

openebs/ci/build-images.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ echo "*****************************Retagging images and setting up env**********
88
# - during the release time, the image tags can be versioned like 0.7.0-RC..
99
# - from a branch, the image tags can be the branch names like v0.7.x-ci
1010
if [ ${CI_TAG} != "ci" ]; then
11-
sudo docker tag openebs/openebs-k8s-provisioner:ci openebs/openebs-k8s-provisioner:${CI_TAG}
11+
#sudo docker tag openebs/openebs-k8s-provisioner:ci openebs/openebs-k8s-provisioner:${CI_TAG}
1212
sudo docker tag openebs/snapshot-controller:ci openebs/snapshot-controller:${CI_TAG}
1313
sudo docker tag openebs/snapshot-provisioner:ci openebs/snapshot-provisioner:${CI_TAG}
1414
fi
1515

1616
#Tag the images with quay.io, since the operator can either have quay or docker images
17-
sudo docker tag openebs/openebs-k8s-provisioner:ci quay.io/openebs/openebs-k8s-provisioner:${CI_TAG}
17+
#sudo docker tag openebs/openebs-k8s-provisioner:ci quay.io/openebs/openebs-k8s-provisioner:${CI_TAG}
1818
sudo docker tag openebs/snapshot-controller:ci quay.io/openebs/snapshot-controller:${CI_TAG}
1919
sudo docker tag openebs/snapshot-provisioner:ci quay.io/openebs/snapshot-provisioner:${CI_TAG}
2020

@@ -23,4 +23,4 @@ echo "Installing iscsi packages"
2323
sudo apt-get update && sudo apt-get install open-iscsi
2424
sudo service iscsid start
2525
sudo service iscsid status
26-
echo "Installation complete"
26+
echo "Installation complete"

0 commit comments

Comments
 (0)