Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from upstream #18

Merged
merged 67 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
3c02243
Consumer deletion (#154)
yanmxa Jul 11, 2024
cbb3d9f
fix creation and deletion timestamp for work metadata. (#159)
morvencao Jul 12, 2024
b651781
handle creationTimestamp and deletionTimestamp in work metadata. (#160)
morvencao Jul 15, 2024
8a87a7d
chore(deps): update openapitools/openapi-generator-cli docker tag to …
red-hat-konflux[bot] Jul 17, 2024
e4bce47
chore(deps): update konflux references (#151)
red-hat-konflux[bot] Jul 17, 2024
fdaabcd
upgrade sdk-go (#161)
skeeey Jul 17, 2024
c2b1c73
fix typo in service-template-aro-hc (#166)
skeeey Jul 24, 2024
fb5c036
chore(deps): update konflux references (#164)
red-hat-konflux[bot] Aug 7, 2024
c235e0c
add grpc broker. (#157)
morvencao Aug 7, 2024
7b6ccda
remove work eviction test. (#170)
morvencao Aug 7, 2024
b9e2822
chore(deps): update docker.io/library/postgres docker tag to v16.4 (#…
red-hat-konflux[bot] Aug 9, 2024
34c1aa2
chore(deps): update konflux references (#172)
red-hat-konflux[bot] Aug 13, 2024
835c653
avoid do full list on the client part (#167)
skeeey Aug 14, 2024
39b68cb
fix(KONFLUX-3663): format PipelineRun files and upload SAST results (…
ccronca Aug 14, 2024
87773f1
Fix integration issues (#174)
clyang82 Aug 14, 2024
4448bba
prevent resource update durating deletion. (#180)
morvencao Aug 29, 2024
043cc46
Support using outside context to request maestro RESTful api (#183)
skeeey Aug 29, 2024
7ac1d74
fix e2e testing. (#184)
morvencao Aug 29, 2024
f4d9da7
chore(deps): update openapitools/openapi-generator-cli docker tag to …
red-hat-konflux[bot] Aug 29, 2024
e9b98cc
chore(deps): update konflux references (#178)
red-hat-konflux[bot] Sep 5, 2024
9e32ca8
chore(deps): update konflux references (#187)
red-hat-konflux[bot] Sep 5, 2024
681b895
list resources with their event data type (#185)
skeeey Sep 5, 2024
908246a
support grpc auth for grpc server. (#168)
morvencao Sep 5, 2024
b340060
add aro-hpc scability test (#171)
skeeey Sep 5, 2024
d034b12
update ocm (#190)
skeeey Sep 9, 2024
9dd7f8e
ensure deletion event have different id and time. (#188)
morvencao Sep 11, 2024
5ccb4ea
support configuration for consistent hash. (#192)
morvencao Sep 11, 2024
22436c2
add basic metrics. (#186)
morvencao Sep 12, 2024
ea066c2
update cloudevent sdk (#194)
skeeey Sep 12, 2024
2ce9461
default orphan delete option for read only update strategy. (#189)
morvencao Sep 18, 2024
25831ec
update go-sdk (#196)
skeeey Sep 23, 2024
350adc0
enhance log format using zapr logger. (#195)
morvencao Oct 9, 2024
715e01d
upgrate sdk-go lib (#200)
skeeey Oct 9, 2024
7dbc0c6
fix template api version. (#202)
morvencao Oct 15, 2024
7b9534d
chore(deps): update openapitools/openapi-generator-cli docker tag to …
red-hat-konflux[bot] Oct 24, 2024
d94d00e
chore(deps): update docker.io/library/postgres docker tag to v17 (#197)
red-hat-konflux[bot] Oct 24, 2024
8ed6055
refine e2e testings. (#205)
morvencao Oct 24, 2024
85faa5f
add more examples. (#204)
morvencao Oct 24, 2024
28626e2
chore(deps): update konflux references (#191)
red-hat-konflux[bot] Oct 24, 2024
3774acd
chore(deps): update docker.io/library/eclipse-mosquitto docker tag to…
red-hat-konflux[bot] Oct 24, 2024
1300068
ganerate custom test report based on env. (#206)
morvencao Oct 28, 2024
3c09e09
chore(deps): update konflux references (#207)
red-hat-konflux[bot] Oct 28, 2024
1de63c6
add retry for source client in serverside apply e2e test. (#208)
morvencao Oct 28, 2024
dae3b67
The template to run maestro in ROSA (#209)
skeeey Nov 1, 2024
fbf6408
support run e2e in rosa env (#211)
skeeey Nov 1, 2024
f07dfc0
Upgrade open-cluster-management/go-sdk (#212)
skeeey Nov 1, 2024
34d57d5
use 2 braces for int type in templates (#213)
skeeey Nov 1, 2024
42899b6
add setup scripts and templates for aro-hcp. (#214)
morvencao Nov 5, 2024
8d6765a
run maestro with rosa (#215)
skeeey Nov 6, 2024
f088dc3
register cloud events metrics. (#217)
morvencao Nov 19, 2024
1e9b714
add aks metrics enable (#219)
hchenxa Nov 21, 2024
a72e9da
chore(deps): update openapitools/openapi-generator-cli docker tag to …
red-hat-konflux[bot] Nov 25, 2024
aa5ea95
chore(deps): update docker.io/library/postgres docker tag to v17.2 (#…
red-hat-konflux[bot] Nov 25, 2024
e26dd50
chore(deps): update konflux references (#210)
red-hat-konflux[bot] Nov 25, 2024
3b44db3
update sdk-go to fix resync unstable (#220)
skeeey Nov 25, 2024
3a56948
Support az-entra auth (#221)
clyang82 Nov 29, 2024
eb5580b
Red Hat Konflux update maestro-main
Apr 29, 2024
8182d82
Enable build with kafka
clyang82 May 17, 2024
6f7b916
Update Konflux references
Jun 10, 2024
23af57f
Migrate deprecated-base-image-check v0.3->v0.4
gurnben Jun 12, 2024
bda042d
use openshift-golang-builder to fix security issues
clyang82 Jun 13, 2024
da0f007
Update Konflux references
red-hat-konflux[bot] Jun 25, 2024
24219c3
Update Konflux references
red-hat-konflux[bot] Jun 27, 2024
b7de4a9
chore(deps): update konflux references
red-hat-konflux[bot] Jul 11, 2024
5ad74cb
chore(deps): update konflux references
red-hat-konflux[bot] Nov 30, 2024
fd5eb1b
Manually do migration
clyang82 Dec 6, 2024
4a5a5a1
fix conflicts
clyang82 Dec 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
make e2e-test
env:
container_tool: docker
SERVER_REPLICAS: 2
e2e-broadcast-subscription:
runs-on: ubuntu-latest
steps:
Expand All @@ -39,15 +40,29 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
# - name: Setup kind
# uses: engineerd/[email protected]
# with:
# version: v0.17.0
- name: install ginkgo
run: go install github.com/onsi/ginkgo/v2/[email protected]
- name: Test E2E
run: |
make e2e-test
env:
container_tool: docker
SERVER_REPLICAS: 2
ENABLE_BROADCAST_SUBSCRIPTION: true
e2e-grpc-broker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: install ginkgo
run: go install github.com/onsi/ginkgo/v2/[email protected]
- name: Test E2E
run: |
make e2e-test
env:
container_tool: docker
MESSAGE_DRIVER_TYPE: grpc
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ hack/mosquitto-passwd.txt
vendor/

# Ignore test data
_output
test/e2e/.kubeconfig
test/e2e/.consumer_id
test/e2e/.consumer_name
test/e2e/.external_host_ip
test/e2e/report/*
unit-test-results.json
integration-test-results.json
integration-test-results.json
test/e2e/setup/aro/aro-hcp
6 changes: 3 additions & 3 deletions .tekton/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
dnf -y install jq git make

# Install golang with a given version
export GOVERSION=1.22.4
export GOVERSION=1.22.5
curl -O -J https://dl.google.com/go/go$GOVERSION.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go$GOVERSION.linux-amd64.tar.gz

Expand Down Expand Up @@ -110,7 +110,7 @@ spec:
)
echo -n "$TEST_OUTPUT" | tee $(results.TEST_OUTPUT.path)
sidecars:
- image: docker.io/library/postgres:16.3
- image: docker.io/library/postgres:17.2
name: database-test
env:
- name: PGDATA
Expand All @@ -124,7 +124,7 @@ spec:
volumeMounts:
- mountPath: /work
name: pgdata
- image: docker.io/library/eclipse-mosquitto:2.0.18
- image: docker.io/library/eclipse-mosquitto:2.0.20
name: mqtt-test
volumeMounts:
- mountPath: /mosquitto/data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/openshift-online/maestro?rev={{revision}}
build.appstudio.openshift.io/repo: https://github.com/stolostron/maestro?rev={{revision}}
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
Expand All @@ -11,11 +11,11 @@ metadata:
== "main"
creationTimestamp: null
labels:
appstudio.openshift.io/application: maestro
appstudio.openshift.io/component: maestro
appstudio.openshift.io/application: maestro-main
appstudio.openshift.io/component: maestro-main
pipelines.appstudio.openshift.io/type: build
name: maestro-on-pull-request
namespace: maestro-rhtap-tenant
name: maestro-main-on-pull-request
namespace: crt-redhat-acm-tenant
spec:
params:
- name: dockerfile
Expand All @@ -25,7 +25,7 @@ spec:
- name: image-expires-after
value: 5d
- name: output-image
value: quay.io/redhat-user-workloads/maestro-rhtap-tenant/maestro/maestro:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/crt-redhat-acm-tenant/maestro-main/maestro-main:on-pr-{{revision}}
- name: path-context
value: .
- name: revision
Expand All @@ -41,7 +41,7 @@ spec:
- name: name
value: show-sbom
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-show-sbom:0.1@sha256:9cd4bf015b18621834f40ed02c8dccda1f7834c7d989521a8314bdb3a596e96b
value: quay.io/redhat-appstudio-tekton-catalog/task-show-sbom:0.1@sha256:8062d5b13b5236030407cbd620a75cb7c091f43be178eeefea58d2e3dddcaa74
- name: kind
value: task
resolver: bundles
Expand All @@ -60,10 +60,13 @@ spec:
- name: name
value: summary
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-summary:0.2@sha256:51d5aaa4e13e9fb4303f667e38d07e758820040032ed9fb3ab5f6afaaffc60d8
value: quay.io/redhat-appstudio-tekton-catalog/task-summary:0.2@sha256:ac5b078500566c204eaa23e3aea1e2f7e003ac750514198419cb322a2eaf177a
- name: kind
value: task
resolver: bundles
workspaces:
- name: workspace
workspace: workspace
params:
- description: Source Repository URL
name: git-url
Expand Down Expand Up @@ -93,10 +96,6 @@ spec:
description: Skip checks against built image
name: skip-checks
type: string
- default: "true"
description: Skip optional checks, set false if you want to run optional checks
name: skip-optional
type: string
- default: "false"
description: Execute the build with network isolation
name: hermetic
Expand All @@ -117,6 +116,11 @@ spec:
description: Build a source image.
name: build-source-image
type: string
- default: ""
description: Path to a file with build arguments which will be passed to podman
during build
name: build-args-file
type: string
results:
- description: ""
name: IMAGE_URL
Expand All @@ -142,18 +146,12 @@ spec:
value: $(params.rebuild)
- name: skip-checks
value: $(params.skip-checks)
- name: skip-optional
value: $(params.skip-optional)
- name: pipelinerun-name
value: $(context.pipelineRun.name)
- name: pipelinerun-uid
value: $(context.pipelineRun.uid)
taskRef:
params:
- name: name
value: init
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-init:0.2@sha256:b23c7a924f303a67b3a00b32a6713ae1a4fccbc5327daa76a6edd250501ea7a3
value: quay.io/redhat-appstudio-tekton-catalog/task-init:0.2@sha256:07b8eb6a9533525a397c296246d3eb6ec4771b520a1bfee817ce2b7ede25c43d
- name: kind
value: task
resolver: bundles
Expand All @@ -170,7 +168,7 @@ spec:
- name: name
value: git-clone
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-git-clone:0.1@sha256:2be7c9c83159c5247f1f9aab8fa1a2cb29d0df66f6c5bb48a012320bdcb03c7d
value: quay.io/redhat-appstudio-tekton-catalog/task-git-clone:0.1@sha256:a3e22f57fbf8398fbe93fbeeb38e03756cd073182d6d109fe8e8cde57b561603
- name: kind
value: task
resolver: bundles
Expand All @@ -195,7 +193,7 @@ spec:
- name: name
value: prefetch-dependencies
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-prefetch-dependencies:0.1@sha256:9aec3ae9f0f50a05abdc739faf4cbc82832cff16c77ac74e1d54072a882c0503
value: quay.io/redhat-appstudio-tekton-catalog/task-prefetch-dependencies:0.1@sha256:566dfa9cf802e78ee26f8aae57c70cb6aa90f84dfdc929e176db4bc67d596df4
- name: kind
value: task
resolver: bundles
Expand All @@ -207,6 +205,8 @@ spec:
workspaces:
- name: source
workspace: workspace
- name: git-basic-auth
workspace: git-auth
- name: build-container
params:
- name: IMAGE
Expand All @@ -223,14 +223,16 @@ spec:
value: $(params.image-expires-after)
- name: COMMIT_SHA
value: $(tasks.clone-repository.results.commit)
- name: BUILD_ARGS_FILE
value: $(params.build-args-file)
runAfter:
- prefetch-dependencies
taskRef:
params:
- name: name
value: buildah
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-buildah:0.1@sha256:021f7029d0d8a1834bc45a4cd3cc451c03d0f87a5793eb19e1902f8b00dd3d4c
value: quay.io/redhat-appstudio-tekton-catalog/task-buildah:0.2@sha256:60c99bd62dbdb0edcd8606639f653adf115433f47f0deb43e7eb3a847c10392f
- name: kind
value: task
resolver: bundles
Expand All @@ -246,16 +248,14 @@ spec:
params:
- name: BINARY_IMAGE
value: $(params.output-image)
- name: BASE_IMAGES
value: $(tasks.build-container.results.BASE_IMAGES_DIGESTS)
runAfter:
- build-container
taskRef:
params:
- name: name
value: source-build
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-source-build:0.1@sha256:83ee909cb8f7d659fac380a2521fb60f30c309e5ecb91f3aad2433936e690d98
value: quay.io/redhat-appstudio-tekton-catalog/task-source-build:0.1@sha256:a964e3b02902735fe7f6a5398d9a7caddf5c0a7cc9f01792c849ca6d69d5d1a1
- name: kind
value: task
resolver: bundles
Expand All @@ -273,8 +273,6 @@ spec:
workspace: workspace
- name: deprecated-base-image-check
params:
- name: BASE_IMAGES_DIGESTS
value: $(tasks.build-container.results.BASE_IMAGES_DIGESTS)
- name: IMAGE_URL
value: $(tasks.build-container.results.IMAGE_URL)
- name: IMAGE_DIGEST
Expand All @@ -286,7 +284,7 @@ spec:
- name: name
value: deprecated-image-check
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-deprecated-image-check:0.4@sha256:aaf998c36c66d2330cf45894f9cca52486fcdd73e030620e7107e28da247ed87
value: quay.io/redhat-appstudio-tekton-catalog/task-deprecated-image-check:0.4@sha256:566ae0df80f8447558595a996627bf0b5482dc0eaa9fbc33b8154587aed51a05
- name: kind
value: task
resolver: bundles
Expand All @@ -308,7 +306,7 @@ spec:
- name: name
value: clair-scan
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:de7d372d90939db203072a024f1b13869dd11fac9b196e2a485bdf2a20099902
value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.2@sha256:bcc01fe4689fbb87ca335d7efea88ec800e05d8796f0828fca984349b7844b09
- name: kind
value: task
resolver: bundles
Expand All @@ -317,15 +315,18 @@ spec:
operator: in
values:
- "false"
- name: sast-snyk-check
- name: ecosystem-cert-preflight-checks
params:
- name: image-url
value: $(tasks.build-container.results.IMAGE_URL)
runAfter:
- clone-repository
- build-container
taskRef:
params:
- name: name
value: sast-snyk-check
value: ecosystem-cert-preflight-checks
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-sast-snyk-check:0.1@sha256:5aa816e7d7f5e03448d658edfeb26e086aa8a2102c4c3c1113651cf5ccfe55b1
value: quay.io/redhat-appstudio-tekton-catalog/task-ecosystem-cert-preflight-checks:0.1@sha256:13a1013abebdd8dc398c41d2c72da41664086d390ea6ab9912905c1dfee08fbf
- name: kind
value: task
resolver: bundles
Expand All @@ -334,23 +335,15 @@ spec:
operator: in
values:
- "false"
workspaces:
- name: workspace
workspace: workspace
- name: clamav-scan
params:
- name: image-digest
value: $(tasks.build-container.results.IMAGE_DIGEST)
- name: image-url
value: $(tasks.build-container.results.IMAGE_URL)
- name: sast-snyk-check
runAfter:
- build-container
- clone-repository
taskRef:
params:
- name: name
value: clamav-scan
value: sast-snyk-check
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-clamav-scan:0.1@sha256:fc4f8cd9826cb0eef863237fdb15240a13c075f624f0c6f8433d1ba8e53725ac
value: quay.io/redhat-appstudio-tekton-catalog/task-sast-snyk-check:0.3@sha256:4ada9949fd195b50e33605ef06bb52a9bfb523d88529392972ac7a051d5bb549
- name: kind
value: task
resolver: bundles
Expand All @@ -359,20 +352,23 @@ spec:
operator: in
values:
- "false"
- name: sbom-json-check
workspaces:
- name: workspace
workspace: workspace
- name: clamav-scan
params:
- name: IMAGE_URL
value: $(tasks.build-container.results.IMAGE_URL)
- name: IMAGE_DIGEST
- name: image-digest
value: $(tasks.build-container.results.IMAGE_DIGEST)
- name: image-url
value: $(tasks.build-container.results.IMAGE_URL)
runAfter:
- build-container
taskRef:
params:
- name: name
value: sbom-json-check
value: clamav-scan
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-sbom-json-check:0.1@sha256:1f7ae5f2660ddfd447727cdc4a8311ce4d991e5fd8f0a23f1b13d6968d8a97e1
value: quay.io/redhat-appstudio-tekton-catalog/task-clamav-scan:0.1@sha256:3e2891c232dc03fb5c7746fc615e1827afbd6931843e42b19cb8a6c04276ed32
- name: kind
value: task
resolver: bundles
Expand Down
Loading
Loading