|
81 | 81 | path: envtest-existing.coverage.gz |
82 | 82 | retention-days: 1 |
83 | 83 |
|
84 | | - e2e-k3d-chainsaw: |
85 | | - runs-on: ubuntu-24.04 |
86 | | - needs: [go-test] |
87 | | - strategy: |
88 | | - fail-fast: false |
89 | | - matrix: |
90 | | - kubernetes: [v1.30, v1.34] |
91 | | - steps: |
92 | | - - uses: actions/checkout@v5 |
93 | | - - uses: actions/setup-go@v6 |
94 | | - with: { go-version: stable } |
95 | | - |
96 | | - - name: Start k3s |
97 | | - uses: ./.github/actions/k3d |
98 | | - with: |
99 | | - k3s-channel: "${{ matrix.kubernetes }}" |
100 | | - prefetch-images: | |
101 | | - registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi9-2.56.0-2547 |
102 | | - registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi9-17.7-2547 |
103 | | -
|
104 | | - - name: Get pgMonitor files. |
105 | | - run: make get-pgmonitor |
106 | | - env: |
107 | | - PGMONITOR_DIR: "${{ github.workspace }}/hack/tools/pgmonitor" |
108 | | - QUERIES_CONFIG_DIR: "${{ github.workspace }}/hack/tools/queries" |
109 | | - |
110 | | - # Start a Docker container with the working directory mounted. |
111 | | - - run: make build BUILDAH=docker |
112 | | - - name: Start PGO |
113 | | - run: | |
114 | | - kubectl apply --server-side -k ./config/namespace |
115 | | - kubectl apply --server-side -k ./config/dev |
116 | | - hack/create-kubeconfig.sh postgres-operator pgo |
117 | | - docker run --detach --network host --read-only \ |
118 | | - --volume "$(pwd):/mnt" --workdir '/mnt' \ |
119 | | - --env 'QUERIES_CONFIG_DIR=/mnt/hack/tools/queries' \ |
120 | | - --env 'KUBECONFIG=hack/.kube/postgres-operator/pgo' \ |
121 | | - --env 'RELATED_IMAGE_PGBACKREST=registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi9-2.56.0-2547' \ |
122 | | - --env 'RELATED_IMAGE_POSTGRES_17=registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi9-17.7-2547' \ |
123 | | - --env 'PGO_FEATURE_GATES=TablespaceVolumes=true,OpenTelemetryLogs=true,OpenTelemetryMetrics=true' \ |
124 | | - --name 'postgres-operator' localhost/postgres-operator |
125 | | -
|
126 | | - - run: | |
127 | | - make check-chainsaw && exit |
128 | | - failed=$? |
129 | | - echo '::group::PGO logs'; docker logs 'postgres-operator'; echo '::endgroup::' |
130 | | - exit $failed |
131 | | -
|
132 | | - - name: Stop PGO |
133 | | - run: docker stop 'postgres-operator' || true |
134 | | - |
135 | 84 | e2e-k3d-kuttl: |
136 | 85 | runs-on: ubuntu-24.04 |
137 | 86 | needs: [go-test] |
|
0 commit comments