Install CRDs with kubectl #196
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
name: CI | ||
on: | ||
pull_request: | ||
branches: | ||
- "*" | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install link checker | ||
run: | | ||
curl -fsSL -o liche https://github.com/appscodelabs/liche/releases/download/v0.1.0/liche-linux-amd64 | ||
chmod +x liche | ||
sudo mv liche /usr/local/bin/liche | ||
- name: Install codespan schema checker | ||
run: | | ||
curl -fsSL -o codespan-schema-checker https://github.com/kmodules/codespan-schema-checker/releases/download/v0.0.1/codespan-schema-checker-linux-amd64 | ||
chmod +x codespan-schema-checker | ||
sudo mv codespan-schema-checker /usr/local/bin/codespan-schema-checker | ||
- name: Check links | ||
run: | | ||
liche -r docs -d $(pwd) -c 10 -p -h -l -x '^(.*/docs/{{<.*>}}/.*|.*github.com.*|.*api.slack.com.*|.*askapache.com.*|.*twitter.com.*|.*dev.mysql.com.*|.*linux.die.net.*)$' | ||
- name: Create Kubernetes cluster | ||
id: kind | ||
uses: engineerd/[email protected] | ||
with: | ||
version: v0.24.0 | ||
# - name: Setup upterm session | ||
# uses: lhotari/action-upterm@v1 | ||
- name: Prepare cluster for testing | ||
id: local-path | ||
run: | | ||
echo "waiting for nodes to be ready ..." | ||
kubectl wait --for=condition=Ready nodes --all --timeout=5m | ||
kubectl get nodes | ||
echo | ||
echo "install helm 3" | ||
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash | ||
echo "install kubestash-crds chart" | ||
sleep 10 | ||
kubectl get pods -A | ||
kubectl create -f https://github.com/kubestash/installer/raw/verification/crds/kubestash-crds.yaml || true | ||
kubectl get crds | ||
kubectl create -f https://github.com/kubedb/installer/raw/master/crds/kubedb-crds.yaml | ||
# cd ../../ | ||
# mkdir kubestash.dev | ||
# cd kubestash.dev | ||
# git clone https://github.com/kubestash/apimachinery.git | ||
# cd apimachinery | ||
# git checkout verification # Remove this line, when this installer branch merged. | ||
# kubectl create -f crds/ || true | ||
# kubectl get crds | ||
# | ||
# cd ../../ | ||
# mkdir kubedb.dev | ||
# cd kubedb.dev | ||
# git clone https://github.com/kubedb/installer.git | ||
# cd installer | ||
# kubectl create -f charts/kubedb-crds/crds/ | ||
# | ||
# cd ../../ | ||
helm repo add appscode https://charts.appscode.com/stable/ | ||
helm repo update | ||
helm install kmodules-crds appscode/kmodules-crds | ||
- name: Check codespan schema | ||
run: | | ||
codespan-schema-checker --content=./docs |