Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openshift-loki: Add config and image mirroring for branch release-5.9 (…
- Loading branch information
Showing
4 changed files
with
580 additions
and
0 deletions.
There are no files selected for viewing
147 changes: 147 additions & 0 deletions
147
ci-operator/config/openshift/loki/openshift-loki-release-5.9.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
base_images: | ||
base: | ||
name: "4.15" | ||
namespace: ocp | ||
tag: base-rhel9 | ||
loki: | ||
name: v2.9.6 | ||
namespace: logging | ||
tag: loki | ||
lokistack-gateway: | ||
name: mirror-5.y | ||
namespace: logging | ||
tag: lokistack-gateway | ||
ocp_builder_rhel-9-golang-1.21-openshift-4.16: | ||
name: builder | ||
namespace: ocp | ||
tag: rhel-9-golang-1.21-openshift-4.16 | ||
opa-openshift: | ||
name: mirror-5.y | ||
namespace: logging | ||
tag: opa-openshift | ||
build_root: | ||
image_stream_tag: | ||
name: builder | ||
namespace: ocp | ||
tag: rhel-9-golang-1.21-openshift-4.16 | ||
images: | ||
- context_dir: operator | ||
dockerfile_path: Dockerfile | ||
from: base | ||
inputs: | ||
ocp_builder_rhel-9-golang-1.21-openshift-4.16: | ||
as: | ||
- golang:1.21.7 | ||
to: loki-operator | ||
operator: | ||
bundles: | ||
- as: loki-operator-bundle | ||
context_dir: operator/bundle/openshift | ||
dockerfile_path: bundle.Dockerfile | ||
substitutions: | ||
- pullspec: quay.io/openshift-logging/loki-operator:0.1.0 | ||
with: pipeline:loki-operator | ||
- pullspec: quay.io/openshift-logging/loki:v2.9.6 | ||
with: pipeline:loki | ||
- pullspec: quay.io/observatorium/api:latest | ||
with: pipeline:lokistack-gateway | ||
- pullspec: quay.io/observatorium/opa-openshift:latest | ||
with: pipeline:opa-openshift | ||
promotion: | ||
to: | ||
- additional_images: | ||
loki-operator-bundle: loki-operator-bundle | ||
name: "5.9" | ||
namespace: logging | ||
releases: | ||
latest: | ||
release: | ||
channel: stable | ||
version: "4.15" | ||
resources: | ||
'*': | ||
requests: | ||
cpu: 100m | ||
memory: 200Mi | ||
tests: | ||
- as: lint | ||
steps: | ||
test: | ||
- as: lint | ||
commands: cd operator && GOFLAGS="" make lint | ||
from: src | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 200Mi | ||
- as: test | ||
steps: | ||
test: | ||
- as: unit | ||
commands: cd operator && GOFLAGS="" go test ./... | ||
from: src | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 200Mi | ||
- as: prometheus-rules | ||
commands: cd operator && make test-unit-prometheus | ||
from: src | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 200Mi | ||
- as: build | ||
steps: | ||
test: | ||
- as: manager | ||
commands: cd operator && GOFLAGS="" make manager | ||
from: src | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 200Mi | ||
- as: broker | ||
commands: cd operator && GOFLAGS="" make bin/loki-broker | ||
from: src | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 200Mi | ||
- as: storage-size-calculator | ||
commands: cd operator && GOFLAGS="" make size-calculator | ||
from: src | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 200Mi | ||
- as: test-operator | ||
cluster_claim: | ||
architecture: amd64 | ||
cloud: aws | ||
owner: openshift-ci | ||
product: ocp | ||
timeout: 1h0m0s | ||
version: "4.15" | ||
steps: | ||
dependencies: | ||
OO_INDEX: ci-index-loki-operator-bundle | ||
env: | ||
OO_CHANNEL: stable | ||
OO_INSTALL_NAMESPACE: openshift-operators-redhat | ||
OO_PACKAGE: loki-operator | ||
OO_TARGET_NAMESPACES: '!all' | ||
test: | ||
- as: install | ||
cli: latest | ||
commands: | | ||
oc -n openshift-operators-redhat rollout status deployment loki-operator-controller-manager | ||
from: src | ||
resources: | ||
requests: | ||
cpu: 100m | ||
workflow: optional-operators-ci-generic-claim | ||
zz_generated_metadata: | ||
branch: release-5.9 | ||
org: openshift | ||
repo: loki |
63 changes: 63 additions & 0 deletions
63
ci-operator/jobs/openshift/loki/openshift-loki-release-5.9-postsubmits.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
postsubmits: | ||
openshift/loki: | ||
- agent: kubernetes | ||
always_run: true | ||
branches: | ||
- ^release-5\.9$ | ||
cluster: build03 | ||
decorate: true | ||
decoration_config: | ||
skip_cloning: true | ||
labels: | ||
ci-operator.openshift.io/is-promotion: "true" | ||
ci.openshift.io/generator: prowgen | ||
max_concurrency: 1 | ||
name: branch-ci-openshift-loki-release-5.9-images | ||
spec: | ||
containers: | ||
- args: | ||
- --gcs-upload-secret=/secrets/gcs/service-account.json | ||
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson | ||
- --image-mirror-push-secret=/etc/push-secret/.dockerconfigjson | ||
- --promote | ||
- --report-credentials-file=/etc/report/credentials | ||
- --target=[images] | ||
- --target=loki-operator-bundle | ||
command: | ||
- ci-operator | ||
image: ci-operator:latest | ||
imagePullPolicy: Always | ||
name: "" | ||
resources: | ||
requests: | ||
cpu: 10m | ||
volumeMounts: | ||
- mountPath: /secrets/gcs | ||
name: gcs-credentials | ||
readOnly: true | ||
- mountPath: /secrets/manifest-tool | ||
name: manifest-tool-local-pusher | ||
readOnly: true | ||
- mountPath: /etc/pull-secret | ||
name: pull-secret | ||
readOnly: true | ||
- mountPath: /etc/push-secret | ||
name: push-secret | ||
readOnly: true | ||
- mountPath: /etc/report | ||
name: result-aggregator | ||
readOnly: true | ||
serviceAccountName: ci-operator | ||
volumes: | ||
- name: manifest-tool-local-pusher | ||
secret: | ||
secretName: manifest-tool-local-pusher | ||
- name: pull-secret | ||
secret: | ||
secretName: registry-pull-credentials | ||
- name: push-secret | ||
secret: | ||
secretName: registry-push-credentials-ci-central | ||
- name: result-aggregator | ||
secret: | ||
secretName: result-aggregator |
Oops, something went wrong.