Skip to content

Commit 3488244

Browse files
authored
Merge pull request #2426 from minrk/ovh-no-chart
ovh2 doesn't actually need chart in registry
2 parents 3436034 + 42f03a9 commit 3488244

File tree

2 files changed

+0
-64
lines changed

2 files changed

+0
-64
lines changed

.github/workflows/cd.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ jobs:
237237
- federation_member: ovh2
238238
binder_url: https://ovh2.mybinder.org
239239
hub_url: https://hub.ovh2.mybinder.org
240-
# image-prefix should match ovh registry config in secrets/config/ovh.yaml
241-
chartpress_args: "--push --image-prefix=2lmrrh8f.gra7.container-registry.ovh.net/mybinder-chart/mybinder-"
242240
helm_version: ""
243241
experimental: false
244242

@@ -304,15 +302,6 @@ jobs:
304302
username: ${{ secrets.DOCKER_USERNAME_OVH }}
305303
password: ${{ secrets.DOCKER_PASSWORD_OVH }}
306304

307-
- name: "Stage 3: Login to Docker registry (OVH2)"
308-
if: matrix.federation_member == 'ovh2'
309-
uses: azure/docker-login@v1
310-
with:
311-
login-server: 2lmrrh8f.gra7.container-registry.ovh.net
312-
username: ${{ secrets.DOCKER_USERNAME_OVH2 }}
313-
# terraform output registry_chartpress_token
314-
password: ${{ secrets.DOCKER_PASSWORD_OVH2 }}
315-
316305
- name: "Stage 3: Run chartpress to update values.yaml"
317306
run: |
318307
chartpress ${{ matrix.chartpress_args || '--skip-build' }}

terraform/ovh/main.tf

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -168,39 +168,12 @@ provider "harbor" {
168168
password = ovh_cloud_project_containerregistry_user.admin.password
169169
}
170170

171-
# chart images go in mybinder-chart
172-
resource "harbor_project" "mybinder-chart" {
173-
name = "mybinder-chart"
174-
# chart images need to be public
175-
# because we can't have two pull secrets for one registry,
176-
# and harbor < 2.2 can't grant read-only access to more than one project
177-
# on the same registry
178-
public = true
179-
}
180-
181171
# user builds go in mybinder-builds
182172
# these are separate for easier separation of retention policies
183173
resource "harbor_project" "mybinder-builds" {
184174
name = "mybinder-builds"
185175
}
186176

187-
188-
# TODO: robot accounts change with harbor 2.2 / harbor-provider 3.0
189-
# in particular, we can drop the two separate pullers
190-
resource "harbor_robot_account" "chartpress" {
191-
name = "chartpress"
192-
description = "mybinder chartpress: access to push new chart images"
193-
project_id = harbor_project.mybinder-chart.id
194-
actions = ["push", "pull"]
195-
}
196-
197-
resource "harbor_robot_account" "chart-puller" {
198-
name = "chart-puller"
199-
description = "pull mybinder chart images"
200-
project_id = harbor_project.mybinder-chart.id
201-
actions = ["pull"]
202-
}
203-
204177
resource "harbor_robot_account" "builder" {
205178
name = "builder"
206179
description = "BinderHub builder: push new user images"
@@ -230,22 +203,6 @@ resource "harbor_robot_account" "user-puller" {
230203
# n_days_since_last_push = 7
231204
# }
232205
# }
233-
#
234-
# resource "harbor_retention_policy" "chart" {
235-
# scope = harbor_project.mybinder-chart.id
236-
# schedule = "weekly"
237-
# # keep the most recent 5 versions
238-
# # (by both push and pull, which should usually be the same)
239-
# rule {
240-
# most_recently_pulled = 5
241-
# }
242-
# rule {
243-
# most_recently_pushed = 5
244-
# }
245-
# rule {
246-
# n_days_since_last_push = 7
247-
# }
248-
# }
249206

250207
resource "harbor_garbage_collection" "gc" {
251208
schedule = "weekly"
@@ -269,16 +226,6 @@ output "registry_admin_password" {
269226
sensitive = true
270227
}
271228

272-
output "registry_chartpress_token" {
273-
value = harbor_robot_account.chartpress.token
274-
sensitive = true
275-
}
276-
277-
output "registry_chart_puller_token" {
278-
value = harbor_robot_account.chart-puller.token
279-
sensitive = true
280-
}
281-
282229
output "registry_builder_token" {
283230
value = harbor_robot_account.builder.token
284231
sensitive = true

0 commit comments

Comments
 (0)