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

Adapt Quality Dashboard to RHTAP #152

Closed
wants to merge 81 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
7e716c4
Add authenticated routes (#69)
flacatus May 3, 2023
7786232
Add authenticated routes with dex to quality-dashboard (#73)
flacatus May 16, 2023
f45fbc7
Frontend dex oauth (#74)
albarbaro May 16, 2023
98c3256
add database connections
flacatus May 22, 2023
6bc51b2
Add backend connections to db
flacatus May 22, 2023
ad9c41b
go tidy
flacatus May 22, 2023
ccfafa8
Red Hat Trusted App Pipeline update backend-quality-dashboard-owhw (#77)
red-hat-konflux[bot] May 22, 2023
e59865b
Red Hat Trusted App Pipeline update database-quality-dashboard-v7sc (…
red-hat-konflux[bot] May 22, 2023
507c5eb
Add new demo endpoint to my quality demo (#79)
flacatus May 22, 2023
aa35cfd
Change endpoint return (#80)
flacatus May 22, 2023
f16cc82
Change PVC to ReadWriteOnce to ReadWriteMany (#81)
flacatus May 22, 2023
72e8616
Remove tekton files
flacatus May 22, 2023
f6b51e4
Merge branch 'try_auth' of github.com:redhat-appstudio/quality-dashbo…
flacatus May 22, 2023
fa16aaa
fix perms
flacatus May 22, 2023
9909b60
fix port
flacatus May 22, 2023
a4922f5
Red Hat Trusted App Pipeline update database-quality-dashboard-np6h (…
red-hat-konflux[bot] May 22, 2023
7e2d4b3
Red Hat Trusted App Pipeline update backend-quality-dashboard-okqr (#84)
red-hat-konflux[bot] May 22, 2023
d41185f
Appstudio purge database-quality-dashboard-np6h (#87)
red-hat-konflux[bot] May 22, 2023
a4833d1
Appstudio purge backend-quality-dashboard-okqr (#86)
red-hat-konflux[bot] May 22, 2023
307b5b6
Read many
flacatus May 22, 2023
dc5d74e
Read once
flacatus May 22, 2023
d1ce02a
Red Hat Trusted App Pipeline update backend-quality-dashboard-ljbq (#88)
red-hat-konflux[bot] May 22, 2023
358fd37
Change demo endpoint output (#89)
flacatus May 22, 2023
d6b6f57
Change output of demo endpoint (#90)
flacatus May 23, 2023
3f414b0
Test demo endpoint in arch call (#91)
flacatus May 23, 2023
f032d44
Appstudio purge backend-quality-dashboard-ljbq (#92)
red-hat-konflux[bot] May 24, 2023
f8454db
merge
flacatus Jul 13, 2023
7b6fd9b
merge
flacatus Jul 13, 2023
6a3685e
add urls
flacatus Jul 13, 2023
9d2aa04
fixes
flacatus Jul 13, 2023
1224583
testing: change fetch to axios (#102)
rsoaresd Jul 13, 2023
a63da7e
Red Hat Trusted App Pipeline update backend-quality-dashboard (#101)
red-hat-konflux[bot] Jul 13, 2023
b1ff1af
Red Hat Trusted App Pipeline update frontend-quality-dashboard (#103)
red-hat-konflux[bot] Jul 13, 2023
e731a2e
remove manually.tekton
flacatus Jul 13, 2023
04b4d94
Red Hat Trusted App Pipeline update backend-quality-dashboard (#105)
red-hat-konflux[bot] Jul 13, 2023
de13d62
Red Hat Trusted App Pipeline update frontend-quality-dashboard (#106)
red-hat-konflux[bot] Jul 13, 2023
5aed727
upgrade dependencies
flacatus Jul 13, 2023
1d8de22
downgrade webpack (#108)
flacatus Jul 14, 2023
51704d6
chore(deps): update rhtap references (#107)
red-hat-konflux[bot] Jul 14, 2023
fd89bb5
rollout dependencies (#109)
flacatus Jul 14, 2023
64529ab
Add dex server to authentications (#111)
flacatus Jul 18, 2023
091847b
Red Hat Trusted App Pipeline update qd-authenticator-quality-dashboar…
red-hat-konflux[bot] Jul 18, 2023
36fc630
add true to clair
flacatus Jul 18, 2023
38574e8
add true to clair
flacatus Jul 18, 2023
52ac1d7
Add replacements
flacatus Jul 18, 2023
00f2b05
Add env (#114)
flacatus Jul 18, 2023
ff913e1
revert
flacatus Jul 18, 2023
3aa489b
chore(deps): update rhtap references (#121)
red-hat-konflux[bot] Aug 6, 2023
5f80e3e
upgrade dex names (#126)
flacatus Aug 9, 2023
058d1dc
fixes
flacatus Aug 9, 2023
0794c7d
Red Hat Trusted App Pipeline purge qd-authenticator-quality-dashboard…
red-hat-konflux[bot] Aug 9, 2023
81b569c
fixes
flacatus Aug 9, 2023
7d1322b
Red Hat Trusted App Pipeline update frontend-quality-dashboard (#128)
red-hat-konflux[bot] Aug 9, 2023
31392db
remove clair check
flacatus Aug 9, 2023
d9e8563
Red Hat Trusted App Pipeline update dex-quality-dashboard (#135)
red-hat-konflux[bot] Sep 5, 2023
a38124c
Red Hat Trusted App Pipeline update backend-quality-dashboard (#136)
red-hat-konflux[bot] Sep 5, 2023
4fa7a63
Red Hat Trusted App Pipeline update frontend-quality-dashboard (#137)
red-hat-konflux[bot] Sep 5, 2023
c0394e2
Red Hat Trusted App Pipeline purge frontend-quality-dashboard (#138)
red-hat-konflux[bot] Sep 5, 2023
438dc27
Delete .tekton directory
flacatus Sep 12, 2023
1f1362a
Red Hat Trusted App Pipeline update dex-quality-dashboard (#140)
red-hat-konflux[bot] Sep 12, 2023
3baa019
Red Hat Trusted App Pipeline update backend-quality-dashboard (#139)
red-hat-konflux[bot] Sep 12, 2023
afde733
Red Hat Trusted App Pipeline update frontend-quality-dashboard (#142)
red-hat-konflux[bot] Sep 12, 2023
c2c85d9
skip frontend tasks
flacatus Sep 12, 2023
5ab9c1c
remove ws
flacatus Sep 13, 2023
3630dcc
Red Hat Trusted App Pipeline purge backend-quality-dashboard (#143)
red-hat-konflux[bot] Sep 13, 2023
2d37e2e
Red Hat Trusted App Pipeline purge frontend-quality-dashboard (#145)
red-hat-konflux[bot] Sep 13, 2023
d56f470
Red Hat Trusted App Pipeline purge dex-quality-dashboard (#144)
red-hat-konflux[bot] Sep 13, 2023
b9fc2d0
Red Hat Trusted App Pipeline update frontend-quality-dashboard (#149)
red-hat-konflux[bot] Sep 13, 2023
c3a0ea3
remove clamav
flacatus Sep 13, 2023
2b79607
Red Hat Trusted App Pipeline update dex-quality-dashboard (#150)
red-hat-konflux[bot] Sep 13, 2023
d3ee8bf
remove clamav
flacatus Sep 13, 2023
9311613
merge
flacatus Sep 13, 2023
cd3d62b
replace rotationFrequency to the right value (#153)
rsoaresd Sep 14, 2023
b96babd
Update RHTAP references (#154)
red-hat-konflux[bot] Sep 14, 2023
8c49d41
fixes
flacatus Sep 15, 2023
17e303a
fix after review
flacatus Sep 28, 2023
1c9858d
Update RHTAP references (#158)
red-hat-konflux[bot] Oct 2, 2023
f930b1d
Red Hat Trusted App Pipeline update backend-quality-dashboard (#161)
red-hat-konflux[bot] Oct 2, 2023
60f81af
Red Hat Trusted App Pipeline purge backend-quality-dashboard (#164)
red-hat-konflux[bot] Oct 3, 2023
8c0a08e
Red Hat Trusted App Pipeline update backend-quality-dashboard (#165)
red-hat-konflux[bot] Oct 3, 2023
5bf7a2b
Add dex configuration
flacatus Oct 3, 2023
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
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ storybook-static
.DS_Store
.idea
*.sql
.env
.vscode
389 changes: 389 additions & 0 deletions .tekton/backend-quality-dashboard-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,389 @@
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/redhat-appstudio/quality-dashboard?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}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-event: '[pull_request]'
pipelinesascode.tekton.dev/on-target-branch: '[try_auth]'
creationTimestamp: null
labels:
appstudio.openshift.io/application: quality-dashboard
appstudio.openshift.io/component: backend-quality-dashboard
pipelines.appstudio.openshift.io/type: build
name: backend-quality-dashboard-on-pull-request
namespace: rhtap-qe-shared-tenant
spec:
params:
- name: dockerfile
value: Dockerfile
- name: git-url
value: '{{repo_url}}'
- name: image-expires-after
value: 5d
- name: output-image
value: quay.io/redhat-user-workloads/rhtap-qe-shared-tenant/quality-dashboard/backend-quality-dashboard:on-pr-{{revision}}
- name: path-context
value: backend
- name: revision
value: '{{revision}}'
pipelineSpec:
finally:
- name: show-sbom
params:
- name: IMAGE_URL
value: $(tasks.build-container.results.IMAGE_URL)
taskRef:
params:
- name: name
value: show-sbom
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-show-sbom:0.1@sha256:7db0af43dcebaeb33e34413148370e17078c30fd2fc78fb84c8941b444199f36
- name: kind
value: task
resolver: bundles
- name: show-summary
params:
- name: pipelinerun-name
value: $(context.pipelineRun.name)
- name: git-url
value: $(tasks.clone-repository.results.url)?rev=$(tasks.clone-repository.results.commit)
- name: image-url
value: $(params.output-image)
- name: build-task-status
value: $(tasks.build-container.status)
taskRef:
params:
- name: name
value: summary
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-summary:0.1@sha256:9d43202379cb83358942ce2e936c0297e30faaa0c73811324318c6260a6edc25
- name: kind
value: task
resolver: bundles
params:
- description: Source Repository URL
name: git-url
type: string
- default: ""
description: Revision of the Source Repository
name: revision
type: string
- description: Fully Qualified Output Image
name: output-image
type: string
- default: .
description: Path to the source code of an application's component from where
to build image.
name: path-context
type: string
- default: Dockerfile
description: Path to the Dockerfile inside the context specified by parameter
path-context
name: dockerfile
type: string
- default: "false"
description: Force rebuild image
name: rebuild
type: string
- default: "false"
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
type: string
- default: ""
description: Build dependencies to be prefetched by Cachi2
name: prefetch-input
type: string
- default: "false"
description: Java build
name: java
type: string
- default: ""
description: Image tag expiration time, time values could be something like
1h, 2d, 3w for hours, days, and weeks, respectively.
name: image-expires-after
results:
- description: ""
name: IMAGE_URL
value: $(tasks.build-container.results.IMAGE_URL)
- description: ""
name: IMAGE_DIGEST
value: $(tasks.build-container.results.IMAGE_DIGEST)
- description: ""
name: CHAINS-GIT_URL
value: $(tasks.clone-repository.results.url)
- description: ""
name: CHAINS-GIT_COMMIT
value: $(tasks.clone-repository.results.commit)
- description: ""
name: JAVA_COMMUNITY_DEPENDENCIES
value: $(tasks.build-container.results.JAVA_COMMUNITY_DEPENDENCIES)
tasks:
- name: init
params:
- name: image-url
value: $(params.output-image)
- name: rebuild
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.1@sha256:26586a7ef08c3e86dfdaf0a5cc38dd3d70c4c02db1331b469caaed0a0f5b3d86
- name: kind
value: task
resolver: bundles
- name: clone-repository
params:
- name: url
value: $(params.git-url)
- name: revision
value: $(params.revision)
runAfter:
- init
taskRef:
params:
- name: name
value: git-clone
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-git-clone:0.1@sha256:1f84973a21aabea38434b1f663abc4cb2d86565a9c7aae1f90decb43a8fa48eb
- name: kind
value: task
resolver: bundles
when:
- input: $(tasks.init.results.build)
operator: in
values:
- "true"
workspaces:
- name: output
workspace: workspace
- name: basic-auth
workspace: git-auth
- name: prefetch-dependencies
params:
- name: input
value: $(params.prefetch-input)
runAfter:
- clone-repository
taskRef:
params:
- name: name
value: prefetch-dependencies
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-prefetch-dependencies:0.1@sha256:c7b7f13d5d2a1545e95c2d56521327001d56ba54645900db41aa414607eff1e5
- name: kind
value: task
resolver: bundles
when:
- input: $(params.hermetic)
operator: in
values:
- "true"
workspaces:
- name: source
workspace: workspace
- name: build-container
params:
- name: IMAGE
value: $(params.output-image)
- name: DOCKERFILE
value: $(params.dockerfile)
- name: CONTEXT
value: $(params.path-context)
- name: HERMETIC
value: $(params.hermetic)
- name: PREFETCH_INPUT
value: $(params.prefetch-input)
- name: IMAGE_EXPIRES_AFTER
value: $(params.image-expires-after)
- name: COMMIT_SHA
value: $(tasks.clone-repository.results.commit)
runAfter:
- prefetch-dependencies
taskRef:
params:
- name: name
value: buildah
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-buildah:0.1@sha256:97f21661e237735af04b37feeeaedd328424bfa0ebd4cd0f79ac39cde17137f6
- name: kind
value: task
resolver: bundles
when:
- input: $(tasks.init.results.build)
operator: in
values:
- "true"
workspaces:
- name: source
workspace: workspace
- name: inspect-image
params:
- name: IMAGE_URL
value: $(tasks.build-container.results.IMAGE_URL)
- name: IMAGE_DIGEST
value: $(tasks.build-container.results.IMAGE_DIGEST)
runAfter:
- build-container
taskRef:
params:
- name: name
value: inspect-image
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-inspect-image:0.1@sha256:bbc286f0a2ad94e671ceb9d0f1debd96f36b8c38c1147c5030957820b4125fc6
- name: kind
value: task
resolver: bundles
when:
- input: $(params.skip-checks)
operator: in
values:
- "false"
workspaces:
- name: source
workspace: workspace
- name: deprecated-base-image-check
params:
- name: BASE_IMAGES_DIGESTS
value: $(tasks.build-container.results.BASE_IMAGES_DIGESTS)
taskRef:
params:
- name: name
value: deprecated-image-check
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-deprecated-image-check:0.3@sha256:0f62d3583a2aad17af1e8af511751701a926bf53835574d47781a40945b59381
- name: kind
value: task
resolver: bundles
when:
- input: $(params.skip-checks)
operator: in
values:
- "false"
- name: clair-scan
params:
- 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: clair-scan
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:d9ac3dfb3537b6061599337c103f07cd508751f5c5dc24f30632ea25c136aca8
- name: kind
value: task
resolver: bundles
when:
- input: $(params.skip-checks)
operator: in
values:
- "false"
- name: sast-snyk-check
runAfter:
- clone-repository
taskRef:
params:
- name: name
value: sast-snyk-check
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-sast-snyk-check:0.1@sha256:dbddd5c8d413245cdd5f9666cf5129e43f5841ddece3fdf57d7dc18bf8fd988a
- name: kind
value: task
resolver: bundles
when:
- input: $(params.skip-checks)
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)
runAfter:
- build-container
taskRef:
params:
- name: name
value: clamav-scan
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-clamav-scan:0.1@sha256:cd4e301dd849cbdf7b8e38fd8f4915970b5b60174770df632a6b38ea93028d44
- name: kind
value: task
resolver: bundles
when:
- input: $(params.skip-checks)
operator: in
values:
- "false"
- name: sbom-json-check
params:
- name: IMAGE_URL
value: $(tasks.build-container.results.IMAGE_URL)
- name: IMAGE_DIGEST
value: $(tasks.build-container.results.IMAGE_DIGEST)
runAfter:
- build-container
taskRef:
params:
- name: name
value: sbom-json-check
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-sbom-json-check:0.1@sha256:397cb2fb20f413dec9653134231bec86edb80806a3441081fbf473677fc40917
- name: kind
value: task
resolver: bundles
when:
- input: $(params.skip-checks)
operator: in
values:
- "false"
workspaces:
- name: workspace
- name: git-auth
optional: true
workspaces:
- name: workspace
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}
Loading
Loading