Skip to content

Commit 6abbb02

Browse files
committed
Apply nothing but secrets on api.ci
1 parent e88f19d commit 6abbb02

12 files changed

+12
-158
lines changed

README.md

+7-16
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,13 @@ and are split into the following categories:
3535

3636
### Core Services and Configuration
3737

38-
Manifests for important services (like [OpenShift CI cluster](https://api.ci.openshift.org/)
39-
and the CI service components that run on it) are present in the
40-
[`core-services`](./core-services) directory. The services configured in this
41-
directory are critical for some part of the OpenShift project development
42-
workflow, must meet basic quality criteria and must be deployed to the cluster
43-
automatically by a postsubmit job. See its [README](./core-services/README.md)
44-
for details.
45-
46-
### Additional Services and Configuration
47-
48-
The [`services`](./services) directory contains manifests for services that run
49-
on [OpenShift CI cluster](https://api.ci.openshift.org/) and are not critical
50-
for the OpenShift project development workflow, but want to follow the same
51-
quality criteria and automated check and deployment process that the [core
52-
services](#core-services-and-configuration) do (DPTP intends to support only
53-
these additional services). See its [README](./services/README.md) for details.
38+
_Only `core-services/secrets` folder is applied to the cluster api.ci._
39+
40+
Except [user secret management](https://docs.ci.openshift.org/docs/how-tos/adding-a-new-secret-to-ci/), no services are running on `api.ci`.
41+
42+
### Additional Services and Configuration (legacy)
43+
44+
_This folder is no longer applied to the cluster api.ci which is going to be offline soon._
5445

5546
### Cluster Configuration Manifests (legacy)
5647

ci-operator/jobs/infra-periodics.yaml

+1-40
Original file line numberDiff line numberDiff line change
@@ -830,8 +830,7 @@ periodics:
830830
spec:
831831
containers:
832832
- args:
833-
- --config-dir=core-services
834-
- --config-dir=clusters/build-clusters/common
833+
- --config-dir=core-services/secrets
835834
- --confirm=true
836835
- --kubeconfig=/etc/build-farm-credentials/kubeconfig
837836
- --as=
@@ -861,44 +860,6 @@ periodics:
861860
- key: sa.config-updater.api.ci.config
862861
path: kubeconfig
863862
secretName: build-farm-credentials
864-
- agent: kubernetes
865-
cluster: app.ci
866-
decorate: true
867-
extra_refs:
868-
- base_ref: master
869-
org: openshift
870-
repo: release
871-
interval: 12h
872-
labels:
873-
ci.openshift.io/role: infra
874-
name: periodic-openshift-release-master-services-apply
875-
spec:
876-
containers:
877-
- args:
878-
- --config-dir=services
879-
- --confirm=true
880-
- --kubeconfig=/etc/build-farm-credentials/kubeconfig
881-
- --as=
882-
command:
883-
- applyconfig
884-
image: applyconfig:latest
885-
imagePullPolicy: Always
886-
name: ""
887-
resources:
888-
requests:
889-
cpu: 10m
890-
volumeMounts:
891-
- mountPath: /etc/build-farm-credentials
892-
name: build-farm-credentials
893-
readOnly: true
894-
serviceAccountName: config-updater
895-
volumes:
896-
- name: build-farm-credentials
897-
secret:
898-
items:
899-
- key: sa.config-updater.api.ci.config
900-
path: kubeconfig
901-
secretName: build-farm-credentials
902863
- agent: kubernetes
903864
cluster: app.ci
904865
decorate: true

ci-operator/jobs/openshift/release/openshift-release-master-postsubmits.yaml

+1-38
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,7 @@ postsubmits:
229229
spec:
230230
containers:
231231
- args:
232-
- --config-dir=core-services
233-
- --config-dir=clusters/build-clusters/common
232+
- --config-dir=core-services/secrets
234233
- --confirm=true
235234
- --kubeconfig=/etc/build-farm-credentials/kubeconfig
236235
- --as=
@@ -318,39 +317,3 @@ postsubmits:
318317
requests:
319318
cpu: 10m
320319
serviceAccountName: config-updater
321-
- agent: kubernetes
322-
branches:
323-
- ^master$
324-
cluster: app.ci
325-
decorate: true
326-
labels:
327-
ci.openshift.io/role: infra
328-
max_concurrency: 1
329-
name: branch-ci-openshift-release-master-services-apply
330-
spec:
331-
containers:
332-
- args:
333-
- --config-dir=services
334-
- --confirm=true
335-
- --kubeconfig=/etc/build-farm-credentials/kubeconfig
336-
- --as=
337-
command:
338-
- applyconfig
339-
image: registry.ci.openshift.org/ci/applyconfig:latest
340-
imagePullPolicy: Always
341-
name: ""
342-
resources:
343-
requests:
344-
cpu: 10m
345-
volumeMounts:
346-
- mountPath: /etc/build-farm-credentials
347-
name: build-farm-credentials
348-
readOnly: true
349-
serviceAccountName: config-updater
350-
volumes:
351-
- name: build-farm-credentials
352-
secret:
353-
items:
354-
- key: sa.config-updater.api.ci.config
355-
path: kubeconfig
356-
secretName: build-farm-credentials

ci-operator/jobs/openshift/release/openshift-release-master-presubmits.yaml

+1-50
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,7 @@ presubmits:
424424
containers:
425425
- args:
426426
- --config-dir
427-
- core-services
428-
- --config-dir
429-
- clusters/build-clusters/common
427+
- core-services/secrets
430428
- --kubeconfig
431429
- /etc/build-farm-credentials/kubeconfig
432430
- --as=
@@ -839,53 +837,6 @@ presubmits:
839837
requests:
840838
cpu: 10m
841839
trigger: (?m)^/test( | .* )secret-generator-config-valid,?($|\s.*)
842-
- agent: kubernetes
843-
always_run: true
844-
branches:
845-
- master
846-
cluster: app.ci
847-
context: ci/prow/services-dry
848-
decorate: true
849-
labels:
850-
pj-rehearse.openshift.io/can-be-rehearsed: "true"
851-
name: pull-ci-openshift-release-master-services-dry
852-
rerun_command: /test services-dry
853-
spec:
854-
containers:
855-
- args:
856-
- --config-dir
857-
- services
858-
- --kubeconfig
859-
- /etc/build-farm-credentials/kubeconfig
860-
- --as=
861-
command:
862-
- applyconfig
863-
env:
864-
- name: HOME
865-
value: /tmp
866-
image: registry.ci.openshift.org/ci/applyconfig:latest
867-
imagePullPolicy: Always
868-
name: ""
869-
resources:
870-
requests:
871-
cpu: 10m
872-
volumeMounts:
873-
- mountPath: /etc/build-farm-credentials
874-
name: build-farm-credentials
875-
readOnly: true
876-
- mountPath: /tmp
877-
name: tmp
878-
serviceAccountName: config-updater
879-
volumes:
880-
- name: build-farm-credentials
881-
secret:
882-
items:
883-
- key: sa.config-updater.api.ci.config
884-
path: kubeconfig
885-
secretName: build-farm-credentials
886-
- emptyDir: {}
887-
name: tmp
888-
trigger: (?m)^/test( | .* )services-dry,?($|\s.*)
889840
- agent: kubernetes
890841
always_run: true
891842
branches:

clusters/app.ci/common_except_api.ci

-1
This file was deleted.

clusters/build-clusters/01_cluster/common_except_api.ci

-1
This file was deleted.

clusters/build-clusters/02_cluster/common_except_api.ci

-1
This file was deleted.

clusters/build-clusters/vsphere/common_except_api.ci

-1
This file was deleted.

core-services/README.md

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
# Core Services and Configuration
22

3-
Manifests for important services (like [OpenShift CI cluster](https://api.ci.openshift.org/)
4-
and the CI service components that run on it) are present in this directory. The
5-
services configured here are critical for some part of the OpenShift project
6-
development workflow, must meet basic quality criteria and must be deployed to
7-
the cluster automatically by a postsubmit job.
3+
_Only `core-services/secrets` folder is applied to the cluster api.ci._
84

9-
## How to add new service
10-
11-
Create a new directory for your service, containing all [necessary files](#quality-criteria-and-conventions).
12-
You may copy the `_TEMPLATE` directory and start using the files there. Add
13-
manifests and other configuration as needed.
5+
Except [user secret management](https://docs.ci.openshift.org/docs/how-tos/adding-a-new-secret-to-ci/), no services are running on `api.ci`.
146

157
## Quality criteria and conventions
168

0 commit comments

Comments
 (0)