-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tamal Saha <[email protected]>
- Loading branch information
Showing
18 changed files
with
124 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,43 @@ jobs: | |
run: | | ||
docker login --username ${USERNAME} --password ${DOCKER_TOKEN} | ||
make push | ||
- name: Create Kubernetes cluster | ||
id: kind | ||
uses: engineerd/[email protected] | ||
with: | ||
config: hack/kubernetes/kind.yaml | ||
|
||
- name: Prepare cluster for testing | ||
id: local-path | ||
env: | ||
DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
USERNAME: 1gtm | ||
REGISTRY_SECRET: regcred | ||
run: | | ||
export KUBECONFIG="$(kind get kubeconfig-path)" | ||
echo | ||
echo "waiting for nodes to be ready ..." | ||
kubectl wait --for=condition=Ready nodes --all --timeout=5m | ||
kubectl get nodes | ||
echo | ||
echo "installing local-path provisioner ..." | ||
kubectl delete storageclass --all | ||
kubectl apply -f https://github.com/rancher/local-path-provisioner/raw/v0.0.11/deploy/local-path-storage.yaml | ||
kubectl wait --for=condition=Ready pods -n local-path-storage --all --timeout=5m | ||
kubectl apply -f hack/kubernetes/storageclass/standard.yaml | ||
echo | ||
echo "create docker-registry secret" | ||
kubectl create secret docker-registry ${REGISTRY_SECRET} --namespace=kube-system --docker-server=https://index.docker.io/v1/ --docker-username=${USERNAME} --docker-password=${DOCKER_TOKEN} | ||
- name: Install CRDs | ||
run: | | ||
export KUBECONFIG="$(kind get kubeconfig-path)" | ||
kubectl apply -f https://github.com/stashed/stash/raw/master/api/crds/stash.appscode.com_functions.yaml | ||
kubectl apply -f https://github.com/stashed/stash/raw/master/api/crds/stash.appscode.com_tasks.yaml | ||
kubectl wait --for=condition=NamesAccepted crds --all --timeout=5m | ||
- name: Test charts | ||
run: | | ||
export KUBECONFIG="$(kind get kubeconfig-path)" | ||
make ct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
chart/stash-mongodb/Chart.yaml → charts/stash-mongodb/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
kind: Cluster | ||
apiVersion: kind.sigs.k8s.io/v1alpha3 | ||
nodes: | ||
# the control plane node | ||
- role: control-plane | ||
extraMounts: | ||
- containerPath: /opt/local-path-provisioner | ||
hostPath: /mnt | ||
readOnly: false | ||
- role: worker | ||
extraMounts: | ||
- containerPath: /opt/local-path-provisioner | ||
hostPath: /mnt | ||
readOnly: false | ||
- role: worker | ||
extraMounts: | ||
- containerPath: /opt/local-path-provisioner | ||
hostPath: /mnt | ||
readOnly: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: standard | ||
annotations: | ||
storageclass.beta.kubernetes.io/is-default-class: "true" | ||
provisioner: rancher.io/local-path | ||
volumeBindingMode: WaitForFirstConsumer | ||
reclaimPolicy: Delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters