@@ -62,135 +62,135 @@ jobs:
62
62
bin/k8s
63
63
key : ${{ steps.cache-k8s-restore.outputs.cache-primary-key }}
64
64
65
- e2e-tests :
66
- runs-on : large_runner
67
- steps :
68
- - name : Self Hosted Runner Post Job Cleanup Action
69
-
70
- - name : Checkout
71
- uses : actions/checkout@v4
72
- - name : Setup Go
73
- uses : actions/setup-go@v5
74
- with :
75
- go-version-file : ' ${{ github.workspace }}/go.mod'
76
- cache : false
77
-
78
- - name : Get Go environment
79
- run : |
80
- echo "go_cache=$(go env GOCACHE)" >> $GITHUB_ENV
81
- echo "go_modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV
82
- - name : Set up cache
83
- # https://github.com/actions/setup-go/issues/358 - cache is not working with setup-go for multiple jobs
84
- uses : actions/cache@v4
85
- with :
86
- path : |
87
- ${{ env.go_cache }}
88
- ${{ env.go_modcache }}
89
- bin/k8s
90
- key : ${{ env.cache_name }}-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/go.mod') }}
91
- restore-keys : |
92
- ${{ env.cache_name }}-${{ runner.os }}-go-
93
- env :
94
- cache_name : integration-test
95
-
96
- - name : Create k8s Kind Cluster
97
- uses : helm/kind-action@v1
98
- with :
99
- config : test/e2e/config/kind-config.yaml
100
-
101
- - name : Install internal image registry
102
- run : |
103
- kubectl apply -f test/e2e/config/image-registry.yaml
104
- kubectl wait pod -l app=registry --for condition=Ready --timeout 5m
105
- kubectl wait pod -l app=protected-registry1 --for condition=Ready --timeout 5m
106
- kubectl wait pod -l app=protected-registry2 --for condition=Ready --timeout 5m
107
-
108
- - name : Install external CRDs
109
- run : kubectl apply --server-side -k https://github.com/openfluxcd/artifact//config/crd?ref=v0.1.1
110
-
111
- - name : Checkout helm-controller
112
- uses : actions/checkout@v4
113
- with :
114
- repository : openfluxcd/helm-controller
115
- path : helm-controller
116
-
117
- # TODO: Create helm-controller image in public repository to omit rebuilds
118
- - name : Install helm-controller
119
- env :
120
- IMG : localhost:31000/helm-controller:latest
121
- run : |
122
- make -C helm-controller docker-build
123
- make -C helm-controller docker-push
124
- make -C helm-controller install
125
- make -C helm-controller deploy
126
- kubectl wait deployment.apps/helm-controller --for condition=Available --namespace helm-system --timeout 5m
127
- kubectl logs --tail -1 -l app=helm-controller -n helm-system -f --ignore-errors &> helm-controller.log &
128
-
129
- - name : Checkout kustomize-controller
130
- uses : actions/checkout@v4
131
- with :
132
- repository : openfluxcd/kustomize-controller
133
- path : kustomize-controller
134
-
135
- # TODO: Create kustomize-controller image in public repository to omit rebuilds
136
- - name : Install kustomize-controller
137
- env :
138
- IMG : localhost:31000/kustomize-controller:latest
139
- run : |
140
- make -C kustomize-controller docker-build
141
- make -C kustomize-controller docker-push
142
- make -C kustomize-controller install
143
- make -C kustomize-controller deploy
144
- kubectl wait deployment.apps/kustomize-controller --for condition=Available --namespace kustomize-system --timeout 5m
145
- kubectl logs --tail -1 -l app=kustomize-controller -n kustomize-system -f --ignore-errors &> kustomize-controller.log &
146
-
147
- # TODO: Replace once the release with the 'skipDigestGeneration' field in the component constructor is available
148
- # uses: open-component-model/ocm-setup-action@main
149
- # with:
150
- # version: v0.19.0-rc.1
151
- - name : Set up cache for ocm (temporarily)
152
- uses : actions/cache@v4
153
- with :
154
- path : |
155
- ocm/bin
156
- key : ${{ env.cache_name }}-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/go.mod') }}
157
- restore-keys : |
158
- ${{ env.cache_name }}-${{ runner.os }}-go-
159
- env :
160
- cache_name : dummy-cache
161
- - name : Checkout OCM (temporarily)
162
- uses : actions/checkout@v4
163
- with :
164
- repository : open-component-model/ocm
165
- path : ocm
166
- - name : Build OCM (temporarily)
167
- run : |
168
- make -C ocm bin/ocm
169
- echo "${{ github.workspace }}/ocm/bin" >> "$GITHUB_PATH"
170
-
171
- - name : Run e2e test
172
- env :
173
- RESOURCE_TIMEOUT : 5m
174
- HELM_CHART : ghcr.io/stefanprodan/charts/podinfo:6.7.1
175
- IMAGE_REFERENCE : ghcr.io/stefanprodan/podinfo:6.7.1
176
- CONTROLLER_LOG_PATH : ./ocm-k8s-toolkit-controller.log
177
- IMAGE_REGISTRY_URL : http://localhost:31000
178
- INTERNAL_IMAGE_REGISTRY_URL : http://registry-internal.default.svc.cluster.local:5000
179
- PROTECTED_REGISTRY_URL : http://localhost:31001
180
- INTERNAL_PROTECTED_REGISTRY_URL : http://protected-registry1-internal.default.svc.cluster.local:5001
181
- PROTECTED_REGISTRY_URL2 : http://localhost:31002
182
- INTERNAL_PROTECTED_REGISTRY_URL2 : http://protected-registry2-internal.default.svc.cluster.local:5002
183
- run : make test-e2e
184
-
185
- - name : Publish logs on failure
186
- if : failure()
187
- uses : actions/upload-artifact@v4
188
- with :
189
- name : controller-logs
190
- # Currently, it is planned that the integration tests runs on every commit on a PR. Therefore, we could
191
- # produce a lot of logs. To note clutter the storage, the retention-days are reduced to 1.
192
- retention-days : 1
193
- path : |
194
- helm-controller.log
195
- kustomize-controller.log
196
- ocm-k8s-toolkit-controller.log
65
+ # e2e-tests:
66
+ # runs-on: large_runner
67
+ # steps:
68
+ # - name: Self Hosted Runner Post Job Cleanup Action
69
+ # uses: TooMuch4U/[email protected]
70
+ # - name: Checkout
71
+ # uses: actions/checkout@v4
72
+ # - name: Setup Go
73
+ # uses: actions/setup-go@v5
74
+ # with:
75
+ # go-version-file: '${{ github.workspace }}/go.mod'
76
+ # cache: false
77
+ #
78
+ # - name: Get Go environment
79
+ # run: |
80
+ # echo "go_cache=$(go env GOCACHE)" >> $GITHUB_ENV
81
+ # echo "go_modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV
82
+ # - name: Set up cache
83
+ # # https://github.com/actions/setup-go/issues/358 - cache is not working with setup-go for multiple jobs
84
+ # uses: actions/cache@v4
85
+ # with:
86
+ # path: |
87
+ # ${{ env.go_cache }}
88
+ # ${{ env.go_modcache }}
89
+ # bin/k8s
90
+ # key: ${{ env.cache_name }}-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/go.mod') }}
91
+ # restore-keys: |
92
+ # ${{ env.cache_name }}-${{ runner.os }}-go-
93
+ # env:
94
+ # cache_name: integration-test
95
+ #
96
+ # - name: Create k8s Kind Cluster
97
+ # uses: helm/kind-action@v1
98
+ # with:
99
+ # config: test/e2e/config/kind-config.yaml
100
+ #
101
+ # - name: Install internal image registry
102
+ # run: |
103
+ # kubectl apply -f test/e2e/config/image-registry.yaml
104
+ # kubectl wait pod -l app=registry --for condition=Ready --timeout 5m
105
+ # kubectl wait pod -l app=protected-registry1 --for condition=Ready --timeout 5m
106
+ # kubectl wait pod -l app=protected-registry2 --for condition=Ready --timeout 5m
107
+ #
108
+ # - name: Install external CRDs
109
+ # run: kubectl apply --server-side -k https://github.com/openfluxcd/artifact//config/crd?ref=v0.1.1
110
+ #
111
+ # - name: Checkout helm-controller
112
+ # uses: actions/checkout@v4
113
+ # with:
114
+ # repository: openfluxcd/helm-controller
115
+ # path: helm-controller
116
+ #
117
+ # # TODO: Create helm-controller image in public repository to omit rebuilds
118
+ # - name: Install helm-controller
119
+ # env:
120
+ # IMG: localhost:31000/helm-controller:latest
121
+ # run: |
122
+ # make -C helm-controller docker-build
123
+ # make -C helm-controller docker-push
124
+ # make -C helm-controller install
125
+ # make -C helm-controller deploy
126
+ # kubectl wait deployment.apps/helm-controller --for condition=Available --namespace helm-system --timeout 5m
127
+ # kubectl logs --tail -1 -l app=helm-controller -n helm-system -f --ignore-errors &> helm-controller.log &
128
+ #
129
+ # - name: Checkout kustomize-controller
130
+ # uses: actions/checkout@v4
131
+ # with:
132
+ # repository: openfluxcd/kustomize-controller
133
+ # path: kustomize-controller
134
+ #
135
+ # # TODO: Create kustomize-controller image in public repository to omit rebuilds
136
+ # - name: Install kustomize-controller
137
+ # env:
138
+ # IMG: localhost:31000/kustomize-controller:latest
139
+ # run: |
140
+ # make -C kustomize-controller docker-build
141
+ # make -C kustomize-controller docker-push
142
+ # make -C kustomize-controller install
143
+ # make -C kustomize-controller deploy
144
+ # kubectl wait deployment.apps/kustomize-controller --for condition=Available --namespace kustomize-system --timeout 5m
145
+ # kubectl logs --tail -1 -l app=kustomize-controller -n kustomize-system -f --ignore-errors &> kustomize-controller.log &
146
+ #
147
+ # # TODO: Replace once the release with the 'skipDigestGeneration' field in the component constructor is available
148
+ # # uses: open-component-model/ocm-setup-action@main
149
+ # # with:
150
+ # # version: v0.19.0-rc.1
151
+ # - name: Set up cache for ocm (temporarily)
152
+ # uses: actions/cache@v4
153
+ # with:
154
+ # path: |
155
+ # ocm/bin
156
+ # key: ${{ env.cache_name }}-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/go.mod') }}
157
+ # restore-keys: |
158
+ # ${{ env.cache_name }}-${{ runner.os }}-go-
159
+ # env:
160
+ # cache_name: dummy-cache
161
+ # - name: Checkout OCM (temporarily)
162
+ # uses: actions/checkout@v4
163
+ # with:
164
+ # repository: open-component-model/ocm
165
+ # path: ocm
166
+ # - name: Build OCM (temporarily)
167
+ # run: |
168
+ # make -C ocm bin/ocm
169
+ # echo "${{ github.workspace }}/ocm/bin" >> "$GITHUB_PATH"
170
+ #
171
+ # - name: Run e2e test
172
+ # env:
173
+ # RESOURCE_TIMEOUT: 5m
174
+ # HELM_CHART: ghcr.io/stefanprodan/charts/podinfo:6.7.1
175
+ # IMAGE_REFERENCE: ghcr.io/stefanprodan/podinfo:6.7.1
176
+ # CONTROLLER_LOG_PATH: ./ocm-k8s-toolkit-controller.log
177
+ # IMAGE_REGISTRY_URL: http://localhost:31000
178
+ # INTERNAL_IMAGE_REGISTRY_URL: http://registry-internal.default.svc.cluster.local:5000
179
+ # PROTECTED_REGISTRY_URL: http://localhost:31001
180
+ # INTERNAL_PROTECTED_REGISTRY_URL: http://protected-registry1-internal.default.svc.cluster.local:5001
181
+ # PROTECTED_REGISTRY_URL2: http://localhost:31002
182
+ # INTERNAL_PROTECTED_REGISTRY_URL2: http://protected-registry2-internal.default.svc.cluster.local:5002
183
+ # run: make test-e2e
184
+ #
185
+ # - name: Publish logs on failure
186
+ # if: failure()
187
+ # uses: actions/upload-artifact@v4
188
+ # with:
189
+ # name: controller-logs
190
+ # # Currently, it is planned that the integration tests runs on every commit on a PR. Therefore, we could
191
+ # # produce a lot of logs. To note clutter the storage, the retention-days are reduced to 1.
192
+ # retention-days: 1
193
+ # path: |
194
+ # helm-controller.log
195
+ # kustomize-controller.log
196
+ # ocm-k8s-toolkit-controller.log
0 commit comments