|
|
@ -37,34 +37,34 @@ jobs:
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
- name: Build
|
|
|
|
- name: Build
|
|
|
|
run: sudo go build -o ./bin/gotk ./cmd/gotk
|
|
|
|
run: sudo go build -o ./bin/flux ./cmd/flux
|
|
|
|
- name: gotk check --pre
|
|
|
|
- name: flux check --pre
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk check --pre
|
|
|
|
./bin/flux check --pre
|
|
|
|
- name: gotk install --manifests
|
|
|
|
- name: flux install --manifests
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk install --manifests ./manifests/install/
|
|
|
|
./bin/flux install --manifests ./manifests/install/
|
|
|
|
- name: gotk create source git
|
|
|
|
- name: flux create source git
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk create source git podinfo \
|
|
|
|
./bin/flux create source git podinfo \
|
|
|
|
--url https://github.com/stefanprodan/podinfo \
|
|
|
|
--url https://github.com/stefanprodan/podinfo \
|
|
|
|
--tag-semver=">=3.2.3"
|
|
|
|
--tag-semver=">=3.2.3"
|
|
|
|
- name: gotk create source git export apply
|
|
|
|
- name: flux create source git export apply
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk create source git podinfo-export \
|
|
|
|
./bin/flux create source git podinfo-export \
|
|
|
|
--url https://github.com/stefanprodan/podinfo \
|
|
|
|
--url https://github.com/stefanprodan/podinfo \
|
|
|
|
--tag-semver=">=3.2.3" \
|
|
|
|
--tag-semver=">=3.2.3" \
|
|
|
|
--export | kubectl apply -f -
|
|
|
|
--export | kubectl apply -f -
|
|
|
|
./bin/gotk delete source git podinfo-export --silent
|
|
|
|
./bin/flux delete source git podinfo-export --silent
|
|
|
|
- name: gotk get sources git
|
|
|
|
- name: flux get sources git
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk get sources git
|
|
|
|
./bin/flux get sources git
|
|
|
|
- name: gotk get sources git --all-namespaces
|
|
|
|
- name: flux get sources git --all-namespaces
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk get sources git --all-namespaces
|
|
|
|
./bin/flux get sources git --all-namespaces
|
|
|
|
- name: gotk create kustomization
|
|
|
|
- name: flux create kustomization
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk create kustomization podinfo \
|
|
|
|
./bin/flux create kustomization podinfo \
|
|
|
|
--source=podinfo \
|
|
|
|
--source=podinfo \
|
|
|
|
--path="./deploy/overlays/dev" \
|
|
|
|
--path="./deploy/overlays/dev" \
|
|
|
|
--prune=true \
|
|
|
|
--prune=true \
|
|
|
@ -73,75 +73,75 @@ jobs:
|
|
|
|
--health-check="Deployment/frontend.dev" \
|
|
|
|
--health-check="Deployment/frontend.dev" \
|
|
|
|
--health-check="Deployment/backend.dev" \
|
|
|
|
--health-check="Deployment/backend.dev" \
|
|
|
|
--health-check-timeout=3m
|
|
|
|
--health-check-timeout=3m
|
|
|
|
- name: gotk reconcile kustomization --with-source
|
|
|
|
- name: flux reconcile kustomization --with-source
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk reconcile kustomization podinfo --with-source
|
|
|
|
./bin/flux reconcile kustomization podinfo --with-source
|
|
|
|
- name: gotk get kustomizations
|
|
|
|
- name: flux get kustomizations
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk get kustomizations
|
|
|
|
./bin/flux get kustomizations
|
|
|
|
- name: gotk get kustomizations --all-namespaces
|
|
|
|
- name: flux get kustomizations --all-namespaces
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk get kustomizations --all-namespaces
|
|
|
|
./bin/flux get kustomizations --all-namespaces
|
|
|
|
- name: gotk suspend kustomization
|
|
|
|
- name: flux suspend kustomization
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk suspend kustomization podinfo
|
|
|
|
./bin/flux suspend kustomization podinfo
|
|
|
|
- name: gotk resume kustomization
|
|
|
|
- name: flux resume kustomization
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk resume kustomization podinfo
|
|
|
|
./bin/flux resume kustomization podinfo
|
|
|
|
- name: gotk export
|
|
|
|
- name: flux export
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk export source git --all
|
|
|
|
./bin/flux export source git --all
|
|
|
|
./bin/gotk export kustomization --all
|
|
|
|
./bin/flux export kustomization --all
|
|
|
|
- name: gotk delete kustomization
|
|
|
|
- name: flux delete kustomization
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk delete kustomization podinfo --silent
|
|
|
|
./bin/flux delete kustomization podinfo --silent
|
|
|
|
- name: gotk create source helm
|
|
|
|
- name: flux create source helm
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk create source helm podinfo \
|
|
|
|
./bin/flux create source helm podinfo \
|
|
|
|
--url https://stefanprodan.github.io/podinfo
|
|
|
|
--url https://stefanprodan.github.io/podinfo
|
|
|
|
- name: gotk create helmrelease --source=HelmRepository/podinfo
|
|
|
|
- name: flux create helmrelease --source=HelmRepository/podinfo
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk create hr podinfo-helm \
|
|
|
|
./bin/flux create hr podinfo-helm \
|
|
|
|
--target-namespace=default \
|
|
|
|
--target-namespace=default \
|
|
|
|
--source=HelmRepository/podinfo \
|
|
|
|
--source=HelmRepository/podinfo \
|
|
|
|
--chart=podinfo \
|
|
|
|
--chart=podinfo \
|
|
|
|
--chart-version=">4.0.0 <5.0.0"
|
|
|
|
--chart-version=">4.0.0 <5.0.0"
|
|
|
|
- name: gotk create helmrelease --source=GitRepository/podinfo
|
|
|
|
- name: flux create helmrelease --source=GitRepository/podinfo
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk create hr podinfo-git \
|
|
|
|
./bin/flux create hr podinfo-git \
|
|
|
|
--target-namespace=default \
|
|
|
|
--target-namespace=default \
|
|
|
|
--source=GitRepository/podinfo \
|
|
|
|
--source=GitRepository/podinfo \
|
|
|
|
--chart=./charts/podinfo
|
|
|
|
--chart=./charts/podinfo
|
|
|
|
- name: gotk reconcile helmrelease --with-source
|
|
|
|
- name: flux reconcile helmrelease --with-source
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk reconcile helmrelease podinfo-git --with-source
|
|
|
|
./bin/flux reconcile helmrelease podinfo-git --with-source
|
|
|
|
- name: gotk get helmreleases
|
|
|
|
- name: flux get helmreleases
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk get helmreleases
|
|
|
|
./bin/flux get helmreleases
|
|
|
|
- name: gotk get helmreleases --all-namespaces
|
|
|
|
- name: flux get helmreleases --all-namespaces
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk get helmreleases --all-namespaces
|
|
|
|
./bin/flux get helmreleases --all-namespaces
|
|
|
|
- name: gotk export helmrelease
|
|
|
|
- name: flux export helmrelease
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk export hr --all
|
|
|
|
./bin/flux export hr --all
|
|
|
|
- name: gotk delete helmrelease podinfo-helm
|
|
|
|
- name: flux delete helmrelease podinfo-helm
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk delete hr podinfo-helm --silent
|
|
|
|
./bin/flux delete hr podinfo-helm --silent
|
|
|
|
- name: gotk delete helmrelease podinfo-git
|
|
|
|
- name: flux delete helmrelease podinfo-git
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk delete hr podinfo-git --silent
|
|
|
|
./bin/flux delete hr podinfo-git --silent
|
|
|
|
- name: gotk delete source helm
|
|
|
|
- name: flux delete source helm
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk delete source helm podinfo --silent
|
|
|
|
./bin/flux delete source helm podinfo --silent
|
|
|
|
- name: gotk delete source git
|
|
|
|
- name: flux delete source git
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk delete source git podinfo --silent
|
|
|
|
./bin/flux delete source git podinfo --silent
|
|
|
|
- name: gotk check
|
|
|
|
- name: flux check
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk check
|
|
|
|
./bin/flux check
|
|
|
|
- name: gotk uninstall
|
|
|
|
- name: flux uninstall
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
./bin/gotk uninstall --crds --silent
|
|
|
|
./bin/flux uninstall --crds --silent
|
|
|
|
- name: Debug failure
|
|
|
|
- name: Debug failure
|
|
|
|
if: failure()
|
|
|
|
if: failure()
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|