mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-09 13:40:06 +00:00
e2e: Install Flux on OpenShift
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
2dfb536600
commit
b3a29b56bb
6 changed files with 110 additions and 73 deletions
13
.github/workflows/e2e-openshift.yaml
vendored
13
.github/workflows/e2e-openshift.yaml
vendored
|
|
@ -39,13 +39,18 @@ jobs:
|
|||
kubernetes-version: "4.15.0-okd"
|
||||
ttl: 20m
|
||||
cluster-name: "${{ steps.prep.outputs.cluster }}"
|
||||
- name: Run flux check
|
||||
- name: Setup kubeconfig
|
||||
run: |
|
||||
echo "${{ steps.create-cluster.outputs.cluster-kubeconfig }}" > kubeconfig.yaml
|
||||
./bin/flux check --kubeconfig=kubeconfig.yaml
|
||||
- name: Apply openshift prerequisites
|
||||
- name: Install Flux
|
||||
run: |
|
||||
kubectl apply -k ./manifests/openshift --kubeconfig=kubeconfig.yaml
|
||||
./bin/flux install --manifests ./manifests/openshift/ --kubeconfig=kubeconfig.yaml
|
||||
- name: Debug
|
||||
run: |
|
||||
kubectl -n flux-system get all --kubeconfig=kubeconfig.yaml
|
||||
kubectl -n flux-system describe pods --kubeconfig=kubeconfig.yaml
|
||||
kubectl -n flux-system logs deploy/source-controller --kubeconfig=kubeconfig.yaml
|
||||
kubectl -n flux-system logs deploy/kustomize-controller --kubeconfig=kubeconfig.yaml
|
||||
- name: Remove cluster
|
||||
if: ${{ always() }}
|
||||
uses: replicatedhq/replicated-actions/remove-cluster@v1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue