@@ -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
183173resource "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-
204177resource "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
250207resource "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-
282229output "registry_builder_token" {
283230 value = harbor_robot_account. builder . token
284231 sensitive = true
0 commit comments