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

Release/2.4.0 #265

Merged
merged 246 commits into from
Oct 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
246 commits
Select commit Hold shift + click to select a range
fd4396c
feature: bootstrapping airgap dependencies
zach-source Mar 13, 2021
6558837
chore: include demo instructions and makefile cmds
zach-source Mar 15, 2021
66800e1
split out services into FileServer, FileReceiver, AdminServer
mxpaspa Mar 30, 2021
7184de7
updated protoc command
mxpaspa Mar 30, 2021
5caf1f3
generated go code for newly split out services
mxpaspa Mar 30, 2021
90b1b41
renaming FileReceiver to FileRetrieve
mxpaspa Mar 30, 2021
0d4d8e4
make addlicenses
mxpaspa Mar 30, 2021
52ddfea
Merge pull request #152 from redhat-marketplace/feature/split-airgap-…
zach-source Apr 5, 2021
792bd77
Initial commit
rajat-godi Mar 22, 2021
df1879b
Added implementation for UploadFile, log changes
rajat-godi Mar 24, 2021
e8fcb1a
Added GORM models
rajat-godi Mar 24, 2021
146be22
Added wrapper for dqlite driver
rajat-godi Mar 24, 2021
74b9249
Added save file function under database.go, minor refactoring
rajat-godi Mar 25, 2021
a06dcc1
Refactored code, added interface for database functions
rajat-godi Mar 25, 2021
8eb8e37
Added input validations
rajat-godi Mar 25, 2021
6534f8e
Removed sql references from database struct
rajat-godi Mar 26, 2021
09714e5
Added unit test for server, changed package name
Mar 26, 2021
faf757c
Added license
Mar 26, 2021
c179bb2
Minor refactor
rajat-godi Mar 26, 2021
4bca8b1
Added license to generated file
rajat-godi Mar 29, 2021
ecf8af5
Refactored code to support new proto structure
rajat-godi Apr 1, 2021
40bf458
Comment/Log statement cleanup
rajat-godi Apr 2, 2021
70de78d
Added CLI implementation
rajat-godi Apr 2, 2021
81e5e4f
Refactored download code, added/modified unit tests.
rajat-godi Apr 2, 2021
534987e
Added table driven tests, refactored code
rajat-godi Apr 6, 2021
2ea816e
Additional error handling in the CLI
rajat-godi Apr 6, 2021
0ef10b2
Added comments for functions, modified makefile command
rajat-godi Apr 6, 2021
8b4e2ab
Implemented review comments
rajat-godi Apr 13, 2021
c0b5aa5
Merge pull request #153 from rajat-godi/feature/airgap-upload-download
zach-source Apr 15, 2021
3a74167
Added server implementation for list file feature, added test cases f…
Apr 19, 2021
dfb83be
Batch download changes
rajat-godi Apr 19, 2021
256df9a
Implemented review comments
Apr 19, 2021
55eff81
minor changes
Apr 20, 2021
e00752e
Merge pull request #4 from yuvraj-vansure/listfile
rajat-godi Apr 20, 2021
e93a4d4
Added client implementation for list file feature
Apr 20, 2021
900c483
added enable/disable logging using verbose flag
Apr 20, 2021
e2d8c53
Added enhancement to getfilemetadata and made changes in test files a…
isha-sangrolkar Apr 21, 2021
205ecf8
updated parseDateToEpoch to accept complete RFC3999 format
Apr 23, 2021
619bc19
added util package for client
Apr 27, 2021
e9a3776
minor changes
Apr 27, 2021
bff7631
minor change
Apr 27, 2021
d8693c4
implemented review comments
Apr 28, 2021
6586fd3
Implemented review comments for getfilemetadata
isha-sangrolkar Apr 28, 2021
e82f5db
Minor changes
isha-sangrolkar Apr 28, 2021
5c48517
Merge pull request #8 from isha-sangrolkar/getfilemetadata
rajat-godi Apr 28, 2021
d18091c
added implementation for upload/download checksum
Apr 28, 2021
2f979cb
added implementation for delete on download
Apr 29, 2021
760fcd0
Implemented tablewriter, added flag for listing files marked for dele…
May 3, 2021
e941520
Integrated GetFileMetadata server implementation
May 3, 2021
f3af752
added server test case for DeleteOnDownload and list file marked for …
May 3, 2021
3cb76ce
implement review comment
May 3, 2021
de32e77
implement review comments
May 4, 2021
ddb9fc3
updated database, server test
May 4, 2021
442ca3e
Merge pull request #9 from yuvraj-vansure/checksum-and-delete-on-down…
rajat-godi May 4, 2021
f40bbf7
Updated readme and comments
rajat-godi May 4, 2021
4846441
dataservice controller
dacleyra May 12, 2021
52016c3
dataservice image
dacleyra May 13, 2021
f11b318
Make airgap
dacleyra May 13, 2021
c91941c
added new target, grpc client as an uploader
mxpaspa May 14, 2021
a1c1acf
added airgap uploader target to wire provider
mxpaspa May 14, 2021
9f62fe8
Implement review comment
May 17, 2021
7279084
minor changes
May 17, 2021
599ca19
Merge pull request #10 from yuvraj-vansure/feature/airgap-list-and-ba…
rajat-godi May 17, 2021
00ea28a
airgap target in place
mxpaspa May 17, 2021
695c609
Merge pull request #161 from rajat-godi/feature/airgap-list-and-batch…
zach-source May 17, 2021
3e27b31
dataservice deploy
dacleyra May 17, 2021
40829ae
Merge branch 'feature/airgap' into feature/airgap-deployment
dacleyra May 17, 2021
41eaa8d
uploads to dataservice with an insecure connection, takes in deployed…
mxpaspa May 18, 2021
37c78ba
cleanup
mxpaspa May 18, 2021
70ced71
added implementation for UpdateFileMetadata, CleanTombstones, added u…
May 19, 2021
a6e02f7
updated clean tombstone
May 20, 2021
7999564
added server test cases for clean tombstone and update metadata, impl…
May 20, 2021
38a7a74
dqlite hostname resolv
dacleyra May 20, 2021
e3557aa
route
dacleyra May 21, 2021
40ece5f
Merge pull request #12 from yuvraj-vansure/feature/airgap-update-file…
rajat-godi May 24, 2021
86789f8
Minor refactor, updated comments
rajat-godi May 24, 2021
82c0de9
Updated comment
rajat-godi May 24, 2021
32ecc36
added implementation for scheduler
May 26, 2021
a5358a4
dqlite tls
dacleyra May 27, 2021
65a6595
dqlite tls
dacleyra May 27, 2021
cb5e93b
h2c rbac proxy
dacleyra Jun 2, 2021
43bb1e2
cleanup
dacleyra Jun 2, 2021
25e5a7f
kubebuild dataservice rbac
dacleyra Jun 2, 2021
1a68a8b
updated scheduler, server flags, added scheduler test cases
May 27, 2021
af5339f
updated scheduler and scheduler tests
Jun 2, 2021
b17e7e7
Merge branch 'feature/airgap-deployment' of github.com:redhat-marketp…
mxpaspa Jun 3, 2021
99ed863
dataservice test
dacleyra Jun 3, 2021
d30f730
Merge branch 'feature/airgap-deployment' of github.com:redhat-marketp…
mxpaspa Jun 3, 2021
98951e1
updated scheduler and scheduler tests
Jun 4, 2021
ff7e8a6
setup auth with serving-certs-ca bundle and sa token
mxpaspa Jun 6, 2021
491ae45
cleanup
mxpaspa Jun 6, 2021
d0b1f9c
cleanup uploader.go
mxpaspa Jun 6, 2021
154b83e
wire gen
mxpaspa Jun 6, 2021
2fee10e
modifying reporter job in factory if data-service upload target set
mxpaspa Jun 7, 2021
66d7e8e
arg change
mxpaspa Jun 7, 2021
ea1e03a
cleanup
mxpaspa Jun 7, 2021
e0fe826
serving certs ca bundle volume and volumemount
mxpaspa Jun 7, 2021
9fa5ce9
factory.go
mxpaspa Jun 7, 2021
6afd7de
UploadFile() refactor
mxpaspa Jun 7, 2021
1b59c5b
Merge pull request #13 from yuvraj-vansure/feature/scheduler
rajat-godi Jun 7, 2021
edebe3f
Removed unnecessary logs
rajat-godi Jun 7, 2021
d4cf214
Merge pull request #14 from rajat-godi/feature/airgap-scheduler
rajat-godi Jun 7, 2021
cfa7f5e
data-service flag in meterbase controller
mxpaspa Jun 7, 2021
eeee996
mTLS dqlite db port
dacleyra Jun 7, 2021
7792dfa
fix secret
dacleyra Jun 7, 2021
36abb7a
cleanup
mxpaspa Jun 8, 2021
cc111a8
Merge branch 'feature/airgap-deployment' of github.com:redhat-marketp…
mxpaspa Jun 8, 2021
b8540d8
env.go fix
mxpaspa Jun 8, 2021
ccc085d
removed reporter binary
mxpaspa Jun 9, 2021
4e262e6
Merge pull request #174 from rajat-godi/feature/airgap-update-metadat…
zach-source Jun 10, 2021
a2fadc2
data service upload in meterreport controller
mxpaspa Jun 11, 2021
68d87db
meterreport integration test
mxpaspa Jun 12, 2021
44898cc
Fixing makefile
zach-source Jun 17, 2021
fcc6de4
Merge branch 'feature/airgap' into feature/airgap-deployment
zach-source Jun 17, 2021
e584c9a
chore: updating go.sum
zach-source Jun 17, 2021
9c36961
Merge pull request #176 from redhat-marketplace/feature/airgap-deploy…
zach-source Jun 17, 2021
f702ae4
meterdefinition cleanup cc
dacleyra Jun 17, 2021
a4992b1
allowed for multiple upload targets on reporter job
mxpaspa Jun 17, 2021
52ed74c
marketplaceconfig cc cleanup 1st pass
dacleyra Jun 18, 2021
2b87a5a
Merge branch 'feature/airgap' into feature/airgap-client
mxpaspa Jun 22, 2021
de031ab
Filter for labels for MeterDefinitions
Ninani Jun 14, 2021
bc3538c
test meterbase reconciler
Ninani Jun 24, 2021
5eb4ab6
fix prometheus nil errors
Ninani Jun 24, 2021
eaa10e0
feature: split out meter report creator functionality
zach-source Jun 25, 2021
162a65b
change meter report name format + integration test
Ninani Jun 30, 2021
9519eef
uploadTargets extra arg
mxpaspa Jul 1, 2021
181ab9f
handling EOF
mxpaspa Jul 1, 2021
d0b55b9
--uploadTargets in int test
mxpaspa Jul 2, 2021
516dcb5
create meter report for meter definitions without category
Ninani Jul 6, 2021
69be297
dataservice cronjob
dacleyra Jul 9, 2021
f0405cf
deletefile
dacleyra Jul 9, 2021
a0151f1
cronjob upload
dacleyra Jul 12, 2021
91d2c43
Merge pull request #173 from redhat-marketplace/feature/airgap-client
zach-source Jul 14, 2021
dc70e8f
Merge pull request #197 from redhat-marketplace/release/2.3.0
zach-source Jul 14, 2021
5ac8ed5
Merge pull request #203 from redhat-marketplace/release/2.3.0
zach-source Jul 14, 2021
34c1de1
Merge branch 'release/2.4.0' into feature/MeterReportLabels
zach-source Jul 14, 2021
444a1b0
Merge pull request #182 from redhat-marketplace/feature/MeterReportLa…
zach-source Jul 14, 2021
b733041
update version to 2.4.0
Jul 16, 2021
8b03821
Merge pull request #209 from redhat-marketplace/feature/update_versio…
zach-source Jul 16, 2021
1cf3efc
Merge pull request #193 from redhat-marketplace/feature/dataservice-c…
zach-source Jul 16, 2021
2a0c687
updated prometheus operator to version 4.8
Aug 13, 2021
de498d2
updated prometheus operator command
Aug 13, 2021
8a7756e
Merge branch 'release/2.3.0' into release/2.4.0
zach-source Aug 16, 2021
3fca816
Merge branch 'release/2.3.0' into release/2.4.0
zach-source Aug 18, 2021
baf62e8
Merge branch 'release/2.4.0' into feature/meterDefinitionCCCleanup
zach-source Aug 18, 2021
d0d1a8b
chore: adding licenses
zach-source Aug 18, 2021
b14015f
chore: removing buildx cache
zach-source Aug 18, 2021
675dc0d
Merge pull request #185 from redhat-marketplace/feature/meterDefiniti…
zach-source Aug 18, 2021
1b76b71
Merge branch 'release/2.4.0' into feature/marketplaceConfigCCCleanup
zach-source Aug 18, 2021
21f0857
Merge pull request #186 from redhat-marketplace/feature/marketplaceCo…
zach-source Aug 19, 2021
721d4f8
Merge branch 'release/2.4.0' into feature/airgap
zach-source Aug 19, 2021
d878435
chore: fixing go vet for airgap
zach-source Aug 19, 2021
6c56f45
Merge branch 'develop' into release/2.4.0
zach-source Aug 30, 2021
03cdd4f
Merge branch 'release/2.4.0' into feature/upgrade_prometheus
Aug 30, 2021
84d443d
reporter v2alpha1
dacleyra Sep 2, 2021
8754bd2
Merge pull request #205 from redhat-marketplace/feature/airgap
zach-source Sep 3, 2021
2e1a849
reporterv2
dacleyra Sep 3, 2021
ac9dd9d
feature: start of adding drpc as default rpc
zach-source Sep 5, 2021
12a9753
use prometheus images for given ocp version
Sep 7, 2021
2432c4b
reverted some changes
Sep 7, 2021
27f760d
reverted back native deploy
Sep 7, 2021
08ba53b
set 4.6 prometheus in native deploy
Sep 7, 2021
c35e931
Merge branch 'release/2.4.0' into feature/upgrade_prometheus
Sep 7, 2021
14f8833
reporterv2 test
dacleyra Sep 7, 2021
d1068a3
handle dupekeys
dacleyra Sep 9, 2021
a734786
Merge pull request #240 from redhat-marketplace/feature/upgrade_prome…
zach-source Sep 9, 2021
8f8729e
cleanup
dacleyra Sep 9, 2021
797060c
resolve conflict
dacleyra Sep 9, 2021
b15e7e1
chore: rename dqlite to data service
zach-source Sep 13, 2021
8857619
Merge branch 'develop' into release-2.4.0-hardening
zach-source Sep 13, 2021
fa78147
bugfix: fixing configmap dependencies
zach-source Sep 13, 2021
c984a48
Merge branch 'release/2.4.0' into release-2.4.0-hardening
zach-source Sep 13, 2021
e41cb25
Merge pull request #244 from redhat-marketplace/release-2.4.0-hardening
zach-source Sep 13, 2021
6472cfa
chore: updating licenses
zach-source Sep 13, 2021
612783a
chore: fixing test
zach-source Sep 13, 2021
d81c57c
chore: updating licenses
zach-source Sep 13, 2021
ce70b28
chore: fixing test
zach-source Sep 13, 2021
2e1d765
Merge branch 'hotfix/2.3.2' into release-2.4.0-hardening
zach-source Sep 13, 2021
8b12dd2
cos-s3 uploadTarget
dacleyra Sep 14, 2021
3124b46
merge 2.4.0
dacleyra Sep 14, 2021
e3cba0c
bugfix: report cronjob working
zach-source Sep 15, 2021
ea0d656
Merge pull request #249 from redhat-marketplace/release-2.4.0-hardening
zach-source Sep 15, 2021
faa6e9e
chore: fixing tests
zach-source Sep 15, 2021
f5052a8
chore: fixing tests
zach-source Sep 15, 2021
f9569ba
chore: fixing deploy
zach-source Sep 15, 2021
8a43d3a
feat: data service added
zach-source Sep 15, 2021
d5a2296
reconcile flags
dacleyra Sep 15, 2021
448d884
Merge branch 'release/2.4.0' into feature/reporterv2schema
dacleyra Sep 15, 2021
f9a0d09
bugfix: making data service enabled by default
zach-source Sep 15, 2021
00cc929
struct yaml tags
dacleyra Sep 15, 2021
b2dd660
env override
dacleyra Sep 16, 2021
5936775
Merge branch 'hotfix/2.3.2' into release/2.4.0
zach-source Sep 16, 2021
13ab7ea
Merge branch 'release/2.4.1' into feature/reporterv2schema
dacleyra Sep 16, 2021
b8b2eed
set content-type
dacleyra Sep 17, 2021
ac8be08
fix reporterv2 metadata test
dacleyra Sep 17, 2021
18dbae6
Merge pull request #242 from redhat-marketplace/feature/reporterv2schema
zach-source Sep 17, 2021
41af7e8
fix: updating version
zach-source Sep 17, 2021
ad1b390
removed wildcards to get rid of RBACSpecifiesExplicitSCC
Sep 20, 2021
7b74e28
Merge branch 'develop' into release/2.4.0
zach-source Sep 22, 2021
212bb1e
Merge branch 'release/2.4.0' into release/2.4.1
zach-source Sep 22, 2021
5720d4c
bugfix: fixing continously running reports
zach-source Sep 23, 2021
601cc4a
chore: fix license
zach-source Sep 23, 2021
3381c59
Merge pull request #256 from redhat-marketplace/bugfix/reportRunningF…
zach-source Sep 23, 2021
05264c9
Merge branch 'hotfix/2.3.3' into release/2.4.0
zach-source Sep 23, 2021
1a7b290
Merge branch 'release/2.4.0' into release/2.4.1
zach-source Sep 23, 2021
604c716
bugfix: adding account and metricType to v2
zach-source Sep 28, 2021
4e8e7c9
InsightsDisabledEvent 2.4.1
dacleyra Sep 28, 2021
b2a64c0
recorder
dacleyra Sep 30, 2021
e6df135
bugfix: fixing account id and filetype
zach-source Sep 30, 2021
2eadd0d
chore: fixing test
zach-source Oct 1, 2021
073de10
event broadcaster
dacleyra Oct 1, 2021
e057f8e
broadcaster stop
dacleyra Oct 5, 2021
0f2f319
cleanup
dacleyra Oct 5, 2021
cddf9ae
use RunE
dacleyra Oct 5, 2021
a50e54d
move defer
dacleyra Oct 5, 2021
bc8cbff
Merge pull request #260 from redhat-marketplace/feature/InsightsDisab…
zach-source Oct 5, 2021
b793419
Merge pull request #253 from redhat-marketplace/feature/RBACSpecifies…
zach-source Oct 6, 2021
c3fde24
feat: converting data service to ubi
zach-source Oct 6, 2021
f929d90
chore: pc scan image to manifest list
zach-source Oct 13, 2021
b3c3327
chore: fix scan image
zach-source Oct 13, 2021
62fd0c3
Merge branch 'hotfix/2.3.4' into release/2.4.0
zach-source Oct 13, 2021
788822e
Merge pull request #269 from redhat-marketplace/bugfix/groupAggregation
zach-source Oct 13, 2021
c15590f
Merge branch 'develop' into release/2.4.0
zach-source Oct 13, 2021
6432db2
chore: fixing base buidl
zach-source Oct 13, 2021
43338aa
Merge branch 'hotfix/2.3.4' into release/2.4.0
zach-source Oct 15, 2021
82109d9
Merge branch 'hotfix/2.3.4' into release/2.4.0
zach-source Oct 15, 2021
fbb0a27
chore: fixing builds
zach-source Oct 15, 2021
1d8f105
Merge branch 'release/2.4.0' into feature/dataServiceUBI
zach-source Oct 15, 2021
cf33d03
chore: fixing bundle build
zach-source Oct 15, 2021
cd62440
Merge pull request #275 from redhat-marketplace/feature/dataServiceUBI
zach-source Oct 15, 2021
6e8b498
chore: updating dataservice image name
zach-source Oct 20, 2021
0e01d38
chore: adding data-service to cicd
zach-source Oct 21, 2021
6ec460d
chore: adding 4.9 as supported version range
zach-source Oct 21, 2021
ae69564
chore: adding base buidls
zach-source Oct 21, 2021
56160c4
Merge branch 'release/2.4.0' into develop
zach-source Oct 21, 2021
15fa112
Merge branch 'chore/addBaseBuilds' into develop
zach-source Oct 21, 2021
f8040ec
chore: adding base build trigger
zach-source Oct 21, 2021
e5db173
chore: fixing airgap docker build
zach-source Oct 21, 2021
e6174b9
chore: fixing base image repo
zach-source Oct 21, 2021
b96fc96
bugfix: fixing authchecker
zach-source Oct 21, 2021
62619b5
fix: cache size && proxy
zach-source Oct 22, 2021
39125c8
Merge branch 'develop' into release/2.4.0
zach-source Oct 22, 2021
27adca1
fix: fixing http proxy
zach-source Oct 22, 2021
d8f6e39
chore: fixing licenses
zach-source Oct 22, 2021
a5bf4eb
chore: fixing docker build
zach-source Oct 22, 2021
e88c03f
chore: fixing bundle targets
zach-source Oct 22, 2021
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
3 changes: 3 additions & 0 deletions .github/buildkitd.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# .github/buildkitd.toml
[worker.oci]
max-parallelism = 4
59 changes: 17 additions & 42 deletions .github/workflows/branch_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.7
go-version: 1.16.8
- name: Cache Go modules
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.7
go-version: 1.16.8
- name: Cache Go modules
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -144,51 +144,14 @@ jobs:
- metering
- reporter
- tests
base:
name: Build Base
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.7
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- id: buildx
name: Set up docker buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
registry: quay.io/rh-marketplace
username: ${{secrets['quayUser']}}
password: ${{secrets['quayPassword']}}
- id: build
name: Build images
run: make base/docker-build
env:
DOCKERBUILDXCACHE: /tmp/.buildx-cache
PUSH: "false"
- id: push
name: Push images
run: make base/docker-build
env:
DOCKERBUILDXCACHE: /tmp/.buildx-cache
IMAGE_PUSH: "true"
continue-on-error: true
images:
name: Build Images
needs:
- test
- base
runs-on: ubuntu-20.04
env:
VERSION: ${{ needs.test.outputs.tag }}
GO_VERSION: 1.16.8
defaults:
run:
shell: bash
Expand All @@ -198,12 +161,17 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.7
go-version: 1.16.8
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:qemu-v6.1.0
platforms: all
- id: buildx
name: Set up docker buildx
uses: docker/setup-buildx-action@v1
with:
config: .github/buildkitd.toml
- name: Cache Go modules
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -266,11 +234,13 @@ jobs:
- authchecker
- metering
- reporter
- airgap
include:
- project: operator
- project: authchecker
- project: metering
- project: reporter
- project: airgap
deploy:
name: Deploy
needs:
Expand All @@ -295,12 +265,17 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.7
go-version: 1.16.8
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:qemu-v6.1.0
platforms: all
- id: buildx
name: Set up docker buildx
uses: docker/setup-buildx-action@v1
with:
config: .github/buildkitd.toml
- name: Cache Go modules
uses: actions/cache@v2
with:
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/build_base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Generated by internal/ci/ci_tool.cue; do not edit
name: Build Bases
on:
workflow_dispatch: {}
schedule:
- cron: 0 0 * * *
jobs:
base:
name: Build Base
runs-on: ubuntu-20.04
env:
GO_VERSION: 1.16.8
IMAGE_REGISTRY: quay.io/rh-marketplace
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.8
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:qemu-v6.1.0
platforms: all
- id: buildx
name: Set up docker buildx
uses: docker/setup-buildx-action@v1
with:
config: .github/buildkitd.toml
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
registry: quay.io/rh-marketplace
username: ${{secrets['quayUser']}}
password: ${{secrets['quayPassword']}}
- id: build
name: Build images
run: make base/${{ matrix.command }}
env:
DOCKERBUILDXCACHE: /tmp/.buildx-cache
PUSH: "false"
- id: push
name: Push images
run: make base/${{ matrix.command }}
env:
DOCKERBUILDXCACHE: /tmp/.buildx-cache
IMAGE_PUSH: "true"
strategy:
matrix:
command:
- base
- data-service
129 changes: 26 additions & 103 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.7
go-version: 1.16.8
- name: Cache Go modules
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -144,110 +144,18 @@ jobs:
uses: actions/checkout@v2
- id: mirror
name: Scan images
run: |-
echo "::group::Scan quay.io/rh-marketplace/redhat-marketplace-operator"
id=$(curl -X GET "https://catalog.redhat.com/api/containers/v1/projects/certification/pid/ospid-c93f69b6-cb04-437b-89d6-e5220ce643cd" -H "accept: application/json" -H "X-API-KEY: $REDHAT_TOKEN" | jq -r '._id')
digest=$(skopeo --override-os=linux inspect docker://quay.io/rh-marketplace/redhat-marketplace-operator:$TAG --raw | jq -r '.manifests[] | select(.platform.architecture == $arch) | .digest' --arg arch amd64)
curl -X POST "https://catalog.redhat.com/api/containers/v1/projects/certification/id/$id/requests/scans" \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $REDHAT_TOKEN" \
--data-raw "{\"pull_spec\": \"quay.io/rh-marketplace/redhat-marketplace-operator@$digest\",\"tag\": \"$TAG-amd64\"}"
echo "::endgroup::"
echo "::group::Scan quay.io/rh-marketplace/redhat-marketplace-metric-state"
id=$(curl -X GET "https://catalog.redhat.com/api/containers/v1/projects/certification/pid/ospid-9b9b0dbe-7adc-448e-9385-a556714a09c4" -H "accept: application/json" -H "X-API-KEY: $REDHAT_TOKEN" | jq -r '._id')
digest=$(skopeo --override-os=linux inspect docker://quay.io/rh-marketplace/redhat-marketplace-metric-state:$TAG --raw | jq -r '.manifests[] | select(.platform.architecture == $arch) | .digest' --arg arch amd64)
curl -X POST "https://catalog.redhat.com/api/containers/v1/projects/certification/id/$id/requests/scans" \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $REDHAT_TOKEN" \
--data-raw "{\"pull_spec\": \"quay.io/rh-marketplace/redhat-marketplace-metric-state@$digest\",\"tag\": \"$TAG-amd64\"}"
echo "::endgroup::"
echo "::group::Scan quay.io/rh-marketplace/redhat-marketplace-reporter"
id=$(curl -X GET "https://catalog.redhat.com/api/containers/v1/projects/certification/pid/ospid-faa0f295-e195-4bcc-a3fc-a4b97ada317e" -H "accept: application/json" -H "X-API-KEY: $REDHAT_TOKEN" | jq -r '._id')
digest=$(skopeo --override-os=linux inspect docker://quay.io/rh-marketplace/redhat-marketplace-reporter:$TAG --raw | jq -r '.manifests[] | select(.platform.architecture == $arch) | .digest' --arg arch amd64)
curl -X POST "https://catalog.redhat.com/api/containers/v1/projects/certification/id/$id/requests/scans" \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $REDHAT_TOKEN" \
--data-raw "{\"pull_spec\": \"quay.io/rh-marketplace/redhat-marketplace-reporter@$digest\",\"tag\": \"$TAG-amd64\"}"
echo "::endgroup::"
echo "::group::Scan quay.io/rh-marketplace/redhat-marketplace-authcheck"
id=$(curl -X GET "https://catalog.redhat.com/api/containers/v1/projects/certification/pid/ospid-ffed416e-c18d-4b88-8660-f586a4792785" -H "accept: application/json" -H "X-API-KEY: $REDHAT_TOKEN" | jq -r '._id')
digest=$(skopeo --override-os=linux inspect docker://quay.io/rh-marketplace/redhat-marketplace-authcheck:$TAG --raw | jq -r '.manifests[] | select(.platform.architecture == $arch) | .digest' --arg arch amd64)
curl -X POST "https://catalog.redhat.com/api/containers/v1/projects/certification/id/$id/requests/scans" \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $REDHAT_TOKEN" \
--data-raw "{\"pull_spec\": \"quay.io/rh-marketplace/redhat-marketplace-authcheck@$digest\",\"tag\": \"$TAG-amd64\"}"
echo "::endgroup::"
echo "::group::Scan quay.io/rh-marketplace/redhat-marketplace-operator"
id=$(curl -X GET "https://catalog.redhat.com/api/containers/v1/projects/certification/pid/ospid-c93f69b6-cb04-437b-89d6-e5220ce643cd" -H "accept: application/json" -H "X-API-KEY: $REDHAT_TOKEN" | jq -r '._id')
digest=$(skopeo --override-os=linux inspect docker://quay.io/rh-marketplace/redhat-marketplace-operator:$TAG --raw | jq -r '.manifests[] | select(.platform.architecture == $arch) | .digest' --arg arch ppc64le)
curl -X POST "https://catalog.redhat.com/api/containers/v1/projects/certification/id/$id/requests/scans" \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $REDHAT_TOKEN" \
--data-raw "{\"pull_spec\": \"quay.io/rh-marketplace/redhat-marketplace-operator@$digest\",\"tag\": \"$TAG-ppc64le\"}"
echo "::endgroup::"
echo "::group::Scan quay.io/rh-marketplace/redhat-marketplace-metric-state"
id=$(curl -X GET "https://catalog.redhat.com/api/containers/v1/projects/certification/pid/ospid-9b9b0dbe-7adc-448e-9385-a556714a09c4" -H "accept: application/json" -H "X-API-KEY: $REDHAT_TOKEN" | jq -r '._id')
digest=$(skopeo --override-os=linux inspect docker://quay.io/rh-marketplace/redhat-marketplace-metric-state:$TAG --raw | jq -r '.manifests[] | select(.platform.architecture == $arch) | .digest' --arg arch ppc64le)
curl -X POST "https://catalog.redhat.com/api/containers/v1/projects/certification/id/$id/requests/scans" \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $REDHAT_TOKEN" \
--data-raw "{\"pull_spec\": \"quay.io/rh-marketplace/redhat-marketplace-metric-state@$digest\",\"tag\": \"$TAG-ppc64le\"}"
echo "::endgroup::"
echo "::group::Scan quay.io/rh-marketplace/redhat-marketplace-reporter"
id=$(curl -X GET "https://catalog.redhat.com/api/containers/v1/projects/certification/pid/ospid-faa0f295-e195-4bcc-a3fc-a4b97ada317e" -H "accept: application/json" -H "X-API-KEY: $REDHAT_TOKEN" | jq -r '._id')
digest=$(skopeo --override-os=linux inspect docker://quay.io/rh-marketplace/redhat-marketplace-reporter:$TAG --raw | jq -r '.manifests[] | select(.platform.architecture == $arch) | .digest' --arg arch ppc64le)
curl -X POST "https://catalog.redhat.com/api/containers/v1/projects/certification/id/$id/requests/scans" \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $REDHAT_TOKEN" \
--data-raw "{\"pull_spec\": \"quay.io/rh-marketplace/redhat-marketplace-reporter@$digest\",\"tag\": \"$TAG-ppc64le\"}"
echo "::endgroup::"
echo "::group::Scan quay.io/rh-marketplace/redhat-marketplace-authcheck"
id=$(curl -X GET "https://catalog.redhat.com/api/containers/v1/projects/certification/pid/ospid-ffed416e-c18d-4b88-8660-f586a4792785" -H "accept: application/json" -H "X-API-KEY: $REDHAT_TOKEN" | jq -r '._id')
digest=$(skopeo --override-os=linux inspect docker://quay.io/rh-marketplace/redhat-marketplace-authcheck:$TAG --raw | jq -r '.manifests[] | select(.platform.architecture == $arch) | .digest' --arg arch ppc64le)
curl -X POST "https://catalog.redhat.com/api/containers/v1/projects/certification/id/$id/requests/scans" \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $REDHAT_TOKEN" \
--data-raw "{\"pull_spec\": \"quay.io/rh-marketplace/redhat-marketplace-authcheck@$digest\",\"tag\": \"$TAG-ppc64le\"}"
echo "::endgroup::"
echo "::group::Scan quay.io/rh-marketplace/redhat-marketplace-operator"
id=$(curl -X GET "https://catalog.redhat.com/api/containers/v1/projects/certification/pid/ospid-c93f69b6-cb04-437b-89d6-e5220ce643cd" -H "accept: application/json" -H "X-API-KEY: $REDHAT_TOKEN" | jq -r '._id')
digest=$(skopeo --override-os=linux inspect docker://quay.io/rh-marketplace/redhat-marketplace-operator:$TAG --raw | jq -r '.manifests[] | select(.platform.architecture == $arch) | .digest' --arg arch s390x)
curl -X POST "https://catalog.redhat.com/api/containers/v1/projects/certification/id/$id/requests/scans" \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $REDHAT_TOKEN" \
--data-raw "{\"pull_spec\": \"quay.io/rh-marketplace/redhat-marketplace-operator@$digest\",\"tag\": \"$TAG-s390x\"}"
echo "::endgroup::"
echo "::group::Scan quay.io/rh-marketplace/redhat-marketplace-metric-state"
id=$(curl -X GET "https://catalog.redhat.com/api/containers/v1/projects/certification/pid/ospid-9b9b0dbe-7adc-448e-9385-a556714a09c4" -H "accept: application/json" -H "X-API-KEY: $REDHAT_TOKEN" | jq -r '._id')
digest=$(skopeo --override-os=linux inspect docker://quay.io/rh-marketplace/redhat-marketplace-metric-state:$TAG --raw | jq -r '.manifests[] | select(.platform.architecture == $arch) | .digest' --arg arch s390x)
curl -X POST "https://catalog.redhat.com/api/containers/v1/projects/certification/id/$id/requests/scans" \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $REDHAT_TOKEN" \
--data-raw "{\"pull_spec\": \"quay.io/rh-marketplace/redhat-marketplace-metric-state@$digest\",\"tag\": \"$TAG-s390x\"}"
echo "::endgroup::"
echo "::group::Scan quay.io/rh-marketplace/redhat-marketplace-reporter"
id=$(curl -X GET "https://catalog.redhat.com/api/containers/v1/projects/certification/pid/ospid-faa0f295-e195-4bcc-a3fc-a4b97ada317e" -H "accept: application/json" -H "X-API-KEY: $REDHAT_TOKEN" | jq -r '._id')
digest=$(skopeo --override-os=linux inspect docker://quay.io/rh-marketplace/redhat-marketplace-reporter:$TAG --raw | jq -r '.manifests[] | select(.platform.architecture == $arch) | .digest' --arg arch s390x)
curl -X POST "https://catalog.redhat.com/api/containers/v1/projects/certification/id/$id/requests/scans" \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $REDHAT_TOKEN" \
--data-raw "{\"pull_spec\": \"quay.io/rh-marketplace/redhat-marketplace-reporter@$digest\",\"tag\": \"$TAG-s390x\"}"
echo "::endgroup::"
echo "::group::Scan quay.io/rh-marketplace/redhat-marketplace-authcheck"
id=$(curl -X GET "https://catalog.redhat.com/api/containers/v1/projects/certification/pid/ospid-ffed416e-c18d-4b88-8660-f586a4792785" -H "accept: application/json" -H "X-API-KEY: $REDHAT_TOKEN" | jq -r '._id')
digest=$(skopeo --override-os=linux inspect docker://quay.io/rh-marketplace/redhat-marketplace-authcheck:$TAG --raw | jq -r '.manifests[] | select(.platform.architecture == $arch) | .digest' --arg arch s390x)
curl -X POST "https://catalog.redhat.com/api/containers/v1/projects/certification/id/$id/requests/scans" \
--header 'Content-Type: application/json' \
--header "X-API-KEY: $REDHAT_TOKEN" \
--data-raw "{\"pull_spec\": \"quay.io/rh-marketplace/redhat-marketplace-authcheck@$digest\",\"tag\": \"$TAG-s390x\"}"
echo "::endgroup::"
shell: bash {0}
run: .github/workflows/scripts/scan_images.sh
env:
REDHAT_TOKEN: ${{ secrets.redhat_api_key }}
- uses: peter-evans/create-or-update-comment@v1
with:
comment-id: ${{github.event.comment.id}}
reactions: rocket
- if: ${{ failure() }}
uses: peter-evans/create-or-update-comment@v1
with:
comment-id: ${{github.event.comment.id}}
reactions: "-1"
publish:
name: Publish Images
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -278,7 +186,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.7
go-version: 1.16.8
- name: Cache Go modules
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -394,7 +302,7 @@ jobs:
- name: Publish Operator Images
run: |-
make pc-tool
./bin/partner-connect-tool publish --username $RH_USER --password $RH_PASSWORD --images https://connect.redhat.com/projects/5e98b6fac77ce6fca8ac859c/images,,$TAG --images https://connect.redhat.com/projects/5e98b6fc32116b90fd024d06/images,,$TAG --images https://connect.redhat.com/projects/5f36ea2f74cc50b8f01a838d/images,,$TAG --images https://connect.redhat.com/projects/5f62b71018e80cdc21edf22f/images,,$TAG --images https://connect.redhat.com/projects/5f68c9457115dbd1183ccab6/images,,$TAG
./bin/partner-connect-tool publish --username $RH_USER --password $RH_PASSWORD --images https://connect.redhat.com/projects/5e98b6fac77ce6fca8ac859c/images,,$TAG --images https://connect.redhat.com/projects/5e98b6fc32116b90fd024d06/images,,$TAG --images https://connect.redhat.com/projects/5f36ea2f74cc50b8f01a838d/images,,$TAG --images https://connect.redhat.com/projects/5f62b71018e80cdc21edf22f/images,,$TAG --images https://connect.redhat.com/projects/61649f78d3e2f8d3bcfe30d5/images,,$TAG --images https://connect.redhat.com/projects/5f68c9457115dbd1183ccab6/images,,$TAG
env:
RH_USER: ${{ secrets['REDHAT_IO_USER'] }}
RH_PASSWORD: ${{ secrets['REDHAT_IO_PASSWORD'] }}
Expand All @@ -403,6 +311,11 @@ jobs:
with:
comment-id: ${{github.event.comment.id}}
reactions: rocket
- if: ${{ failure() }}
uses: peter-evans/create-or-update-comment@v1
with:
comment-id: ${{github.event.comment.id}}
reactions: "-1"
push-operator:
name: Push Operator
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -433,7 +346,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.7
go-version: 1.16.8
- name: Cache Go modules
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -557,6 +470,11 @@ jobs:
with:
comment-id: ${{github.event.comment.id}}
reactions: rocket
- if: ${{ failure() }}
uses: peter-evans/create-or-update-comment@v1
with:
comment-id: ${{github.event.comment.id}}
reactions: "-1"
publish-operator:
name: Publish Operator
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -587,7 +505,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.7
go-version: 1.16.8
- name: Cache Go modules
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -712,3 +630,8 @@ jobs:
with:
comment-id: ${{github.event.comment.id}}
reactions: rocket
- if: ${{ failure() }}
uses: peter-evans/create-or-update-comment@v1
with:
comment-id: ${{github.event.comment.id}}
reactions: "-1"
Loading