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

Update #5

Closed
wants to merge 377 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
377 commits
Select commit Hold shift + click to select a range
5bbaf61
Remove code generation verify workflow
astefanutti Sep 8, 2023
c6afaf2
Clean up operator roles
astefanutti Sep 8, 2023
083ad2b
Use structured configuration
astefanutti Sep 13, 2023
2991661
Add quota API types to runtime scheme
astefanutti Sep 13, 2023
7857bb8
Add controller manager structured config
astefanutti Sep 18, 2023
73dcb21
Init and load operator ConfigMap
astefanutti Sep 18, 2023
2ae625d
Remove openshift-goimports from tools.go
astefanutti Sep 19, 2023
bba2c57
Update Go modules target in Makefile
astefanutti Sep 19, 2023
87d9561
ci: update release workflow to remove sed edits to instascale testcas…
dimakis Sep 20, 2023
2a8bcfe
Update dependency versions for release v1.0.0-rc.1 (#296)
codeflare-machine-account Sep 20, 2023
b191a16
build(deps): bump go.uber.org/zap from 1.24.0 to 1.26.0
dependabot[bot] Sep 20, 2023
0abc4c8
Fix E2E tests README
jiripetrlik Sep 21, 2023
c945a36
gsed support for MacOs
tedhtchang Sep 21, 2023
c8572e1
Add example in README
tedhtchang Sep 21, 2023
1fa4979
Release workflow: Update Readme sed commands to process any semver value
sutaakar Sep 21, 2023
65b8889
e2e test support: Store test pod logs and events
sutaakar Sep 20, 2023
28ffc85
Add missing OpenShift Config API to runtime scheme
astefanutti Sep 26, 2023
99d2fc8
Add missing OpenShift Machine API to runtime scheme
astefanutti Sep 26, 2023
11fc95c
refactor: addition of rbac needed for instascale controller
dimakis Sep 22, 2023
adf8329
refactor: remove duplicate permissions and remove wildcard for machin…
dimakis Sep 25, 2023
e99201b
refactor: limit resources for machine.openshift.io api group
dimakis Sep 25, 2023
dafc36b
refactor: removes unneccessary permissions
dimakis Sep 26, 2023
c3383c8
[275] Implement ExposeService method
jiripetrlik Sep 12, 2023
3bf1ba8
[263] Release Action can skip intermediate steps
jiripetrlik Sep 25, 2023
f3660db
Include InstaScale RBAC in kustomization.yaml
astefanutti Sep 27, 2023
de7fc9d
fix: e2e tests not passing
VanillaSpoon Sep 29, 2023
a68f9c4
Use 4 core runners
sutaakar Oct 4, 2023
aa4e403
fix: remove ServiceAccount binding to the edit role
VanillaSpoon Oct 3, 2023
37b0253
add: batch permissions
VanillaSpoon Oct 4, 2023
9ec9196
Change quota management API group version to v1alpha1
sutaakar Oct 4, 2023
bbe1c65
Adding instascale e2e test
Fiona-Waters Sep 4, 2023
1e39983
update to test
Fiona-Waters Sep 12, 2023
1d06ff6
refactored to check for specific machine names
Fiona-Waters Sep 22, 2023
f66ab20
updating machine sets functionality
Fiona-Waters Sep 25, 2023
0309a46
update vendor files
Fiona-Waters Sep 26, 2023
a778de2
refactored test just for machine pools
Fiona-Waters Sep 27, 2023
3ff5cac
moving common instascale test functions to separate file
Fiona-Waters Sep 28, 2023
843b290
addressing feedback
Fiona-Waters Oct 2, 2023
a975c0f
fixing PR checks
Fiona-Waters Oct 2, 2023
1fe7f16
Refactor Machine pool functions
sutaakar Oct 2, 2023
ac34d67
Move OSD cluster ID into codeflare.go
sutaakar Oct 3, 2023
0aa7a73
addressing feedback
Fiona-Waters Oct 4, 2023
c66f1d7
Add missing licence headers to InstaScale test files
sutaakar Oct 5, 2023
7d4eea3
skip test if not OSD
Fiona-Waters Oct 5, 2023
8c60290
addressing feedback
Fiona-Waters Oct 6, 2023
2ddc14f
fix typo in ocm secret name
Fiona-Waters Oct 9, 2023
25b9606
Update compute resources to account for MCAD and InstaScale
astefanutti Sep 25, 2023
b1e27de
Patch Deployment resources for e2e tests
astefanutti Sep 25, 2023
2b6f494
Overwrite Subscription resources in OLM e2e test
astefanutti Sep 25, 2023
2ed79fb
e2e: Upgrade OLM to version v0.25.0
astefanutti Sep 27, 2023
bd0c2b2
remove arg for quay org, IS and MCAD images no longer being built
KPostOffice Oct 11, 2023
04d4b43
add: Print out parameters used in CodeFlare release workflow
VanillaSpoon Oct 12, 2023
607ad9e
Update dependency versions for release v1.0.0-rc.2
codeflare-machine-account Oct 12, 2023
79221d8
Update go-toolset version for CVEs
anishasthana Oct 12, 2023
7c5efc0
Adjust the SDK PR link as a reason to skip SDK e2e test
sutaakar Oct 13, 2023
b6c1582
add ClusterRole and ClusterRoleBinding for KubeRay
Fiona-Waters Oct 16, 2023
4f21b11
Test Instascale machine set functionality
Fiona-Waters Oct 6, 2023
55be710
catching 404 error when machine sets not in use
Fiona-Waters Oct 11, 2023
4d1f8ec
Use generic function to retrieve machines
sutaakar Oct 11, 2023
24a400f
determining cluster type
Fiona-Waters Oct 12, 2023
b5f8b04
Use enum for cluster type in e2e tests
sutaakar Oct 12, 2023
90a0bbf
updating machinepool test skip
Fiona-Waters Oct 12, 2023
da0cf86
removing unused function
Fiona-Waters Oct 12, 2023
ea777c6
refactor to use aw.Name
Fiona-Waters Oct 16, 2023
5a0bb17
Replaced rayv1alpha1 with rayv1
Bobbins228 Oct 17, 2023
523d8e9
Added missing go files
Bobbins228 Oct 17, 2023
06d724f
Updated KubeRay version in MakeFile
Bobbins228 Oct 17, 2023
86c1252
fix: update ubi image
dimakis Oct 17, 2023
1268065
Update Dockerfile
dimakis Oct 18, 2023
4b65c07
Updated MCAD controller cluster role for ingresses
Bobbins228 Oct 19, 2023
e10fae8
Re added routes to cluster role
Bobbins228 Oct 19, 2023
61ebcde
ci: this calls the sync-fork workflow in the odh-cfo
dimakis Oct 17, 2023
4b863f7
Copying MCAD CRDs in Kustomize config instead of referencing them (#357)
Fiona-Waters Oct 20, 2023
9d8297e
Update dependency versions for release v1.0.0-rc.3
codeflare-machine-account Oct 20, 2023
9db28cf
build: pin ubi image
dimakis Oct 21, 2023
6f7865b
fixing golang items in manager
jbusche Oct 16, 2023
f35ffa2
Update to opentelemetry
jbusche Oct 19, 2023
9912d96
Update dependency versions for release v1.0.0-rc.4
codeflare-machine-account Oct 23, 2023
c7954a9
updating make manifests target
Fiona-Waters Oct 22, 2023
b051b1a
addressing feedback
Fiona-Waters Oct 24, 2023
7e6da4c
Updated CFO sync and tag-build workflows
Bobbins228 Oct 24, 2023
6d3d122
Fixed formatting
Bobbins228 Oct 24, 2023
349d050
Updated release types
Bobbins228 Oct 24, 2023
47bd706
Update .github/workflows/odh-fork-sync.yml
Bobbins228 Oct 24, 2023
14c6fb4
removing support package
Fiona-Waters Oct 13, 2023
484a3fa
updating support package import
Fiona-Waters Oct 13, 2023
f6e7553
removing defaults make target
Fiona-Waters Oct 16, 2023
cad078e
updating files
Fiona-Waters Oct 23, 2023
7c8b0fd
update go.mod and go.sum
Fiona-Waters Oct 24, 2023
1d5c85d
addressing feedback
Fiona-Waters Oct 24, 2023
ff2a9db
Update GRPC version for CVE
anishasthana Oct 24, 2023
d851f67
Set security context on test pod to avoid pod security warning
Srihari1192 Oct 20, 2023
487244c
Use kuberay/[email protected] Go module
astefanutti Oct 24, 2023
15340de
Remove automatic triage/needs-triage label creation
sutaakar Oct 31, 2023
5c99252
Added context to InstaScale Setup
Bobbins228 Oct 31, 2023
b48815e
Update gomod
Bobbins228 Oct 31, 2023
4930dd5
Removed defaults.go reference
Bobbins228 Oct 31, 2023
1c7f229
Update dependency versions for release v1.0.0
Bobbins228 Oct 31, 2023
fd87dcd
Updated KubeRay version in Readme
Bobbins228 Nov 1, 2023
2e3d952
Fix broken catalog-build-from-index command
sutaakar Nov 1, 2023
719b6bd
remove scorecard gh action
KPostOffice Oct 23, 2023
544d1e7
Regenerate CFO CRD manifests for release
sutaakar Nov 1, 2023
bfadb47
Use CGO_ENABLED=1 for FIPS compliance reasons
anishasthana Nov 2, 2023
57568b5
Add stricttag to pass fips check warnings
anishasthana Nov 6, 2023
3885aef
Added launch.json for local debugging with VSCode
Bobbins228 Oct 24, 2023
25b40b2
Fixed Json
Bobbins228 Oct 24, 2023
cea4ceb
Added instructions to CONTRIBUTING.md
Bobbins228 Oct 25, 2023
b0f15b8
Review changes links, additional info
Bobbins228 Nov 1, 2023
5f826e0
Update workflow to add kuberay in compatibility matrix
Nov 7, 2023
e95759a
change description
Nov 7, 2023
72cace9
Enable TestMNISTRayClusterSDK test
sutaakar Nov 8, 2023
4366322
Setup existing DW tests to run in CFO
sutaakar Oct 30, 2023
6d4a5cd
Add build info to logs
ronensc Nov 13, 2023
32c6671
Log MCAD and InstaScale versions
ronensc Nov 14, 2023
881946e
Parse command line flags
ronensc Nov 14, 2023
6b06d33
Update github.com/golang/glog v1.1.0 -> v1.1.2
ronensc Nov 14, 2023
f818a6b
Parse Zap flags
ronensc Nov 15, 2023
7776a03
Changed namespace in MCAD Ray CRB
Bobbins228 Nov 8, 2023
5789a4d
e2e: Fix deployment namespace
astefanutti Nov 16, 2023
9c0cecc
Update dependency versions for release v1.0.1
codeflare-machine-account Nov 16, 2023
42cce2d
Update SDK e2e test to reflect poetry changes
Srihari1192 Oct 3, 2023
ee0e762
Add missing KubeRay version parameter for release workflow
sutaakar Nov 21, 2023
4f04b9f
set klog to the controller runtime logger
KPostOffice Nov 21, 2023
426a67f
Raise SDK e2e test timeout in Python script
sutaakar Nov 23, 2023
4de7141
Adjust release GH workflow to handle error cases
sutaakar Nov 24, 2023
0acdfde
Remove accidental prefix for service account for mcad-controller-ray-…
sutaakar Nov 24, 2023
39e9422
Send notification on Slack if e2e fails on push event
sutaakar Nov 24, 2023
23bffcc
Add completion status for TestMNISTPyTorchMCAD
sutaakar Nov 29, 2023
148d43f
Use dedicated KinD composite action from CodeFlare common
sutaakar Nov 29, 2023
68c5f67
Create OLM upgrade e2e scenario using codeflare SDK
Srihari1192 Sep 14, 2023
2a367fa
Create OLM upgrade e2e scenario using codeflare SDK
Srihari1192 Sep 14, 2023
2d99cc9
rebase and resolving conflicts
Srihari1192 Nov 23, 2023
0afa252
Create e2e scenario covering upgrade during training
Srihari1192 Dec 4, 2023
a4590ea
Adjust upgrade e2e test to pause Job before upgrade
sutaakar Dec 12, 2023
ce7710d
Upgrade to go 1.20 and update dependencies + point to a compatible MCAD
ChristianZaccaria Dec 13, 2023
510a3a8
Point the CFO to compatible MCAD
ChristianZaccaria Dec 19, 2023
944300b
Remove MCAD replace line in go.mod
sutaakar Dec 19, 2023
8b6232d
e2e tests: Export all KinD logs
sutaakar Dec 20, 2023
80df38e
Add ChristianZaccaria as reviewer
astefanutti Dec 21, 2023
86ca67c
Add Fiona-Waters as reviewer
astefanutti Dec 21, 2023
575ac74
Fix MCAD version in Makefile
sutaakar Dec 22, 2023
c5cc868
remove auto add issue workflow
KPostOffice Jan 8, 2024
35fed67
Upgrade Kuberay to version v1.0.0
astefanutti Jan 10, 2024
0e7bd88
Remove SDK e2e test
sutaakar Jan 11, 2024
233de7e
Added Workflow job to update CFO image (#398)
Bobbins228 Jan 19, 2024
4416347
Update project-codeflare-release.yml (#445)
dimakis Jan 19, 2024
003d61b
Update dependency versions for release v1.1.0
codeflare-machine-account Jan 19, 2024
b584b5e
update: change CSV alm-examples to ''
VanillaSpoon Jan 19, 2024
a040aa6
Revert "update: change CSV alm-examples to ''" (#448)
ChristianZaccaria Jan 19, 2024
a4cf575
Fixed MCAD release
Bobbins228 Jan 22, 2024
89efe67
update: change CSV alm-examples
VanillaSpoon Jan 22, 2024
0cf73e8
Download MNIST dataset from specific location
sutaakar Jan 10, 2024
a40442c
Upgrade protobuf dependency to address CVE
ChristianZaccaria Jan 25, 2024
195c9ec
add roles for admin and editor to operator
KPostOffice Jan 25, 2024
f52d75d
Update dependency to address CVE
Fiona-Waters Jan 26, 2024
ffbd647
Add Host to Container port mapping for KinD Cluster
ChristianZaccaria Jan 30, 2024
f8839e9
Raise KinD Ingress controller version to v1.9.6 for manual setup
sutaakar Jan 31, 2024
e253d9b
Added e2e test for nodepools
Fiona-Waters Jan 24, 2024
d85339b
address feedback
Fiona-Waters Jan 31, 2024
1264faa
Adjust existing e2e tests to provide custom Pypi index URL
sutaakar Feb 1, 2024
8255d81
Update README.md with release instructions
sutaakar Feb 8, 2024
1558401
add an automated CI workflow to sync ODH-notebooks with Codeflare-SDK…
abhijeet-dhumal Feb 2, 2024
aa9c7ff
validate if codeflare-sdk version exists
abhijeet-dhumal Feb 9, 2024
d0274d0
Prepare Pytorch MNIST test image for disconnected testing
sutaakar Feb 14, 2024
705ee16
Update deprecated GitHub actions
sutaakar Feb 15, 2024
ac483fd
e2e tests: Use test image from quay.io/project-codeflare/demo-images
sutaakar Feb 19, 2024
10bf0dd
Fix MCAD release
ChristianZaccaria Feb 20, 2024
2e93849
Update README.md
sutaakar Feb 20, 2024
dfd6c61
Update dependency versions for release v1.2.0
dimakis Feb 20, 2024
49b2f9d
fixed incorrect logic in Codeflare-SDK release sync with notebooks
abhijeet-dhumal Feb 21, 2024
6b5acfc
Display input for KubeRay parameter and check for existence
ChristianZaccaria Feb 20, 2024
fa88636
add: update machinepool tests to identify machines based on label
VanillaSpoon Feb 9, 2024
8aeaefc
remove Sync ODH-notebooks CI workflow to add this step in Codeflare-S…
abhijeet-dhumal Feb 27, 2024
7a9b5bb
RHOAIENG-3771 - Reduce execution time of E2E tests
jiripetrlik Feb 27, 2024
bb24607
Update README.md with ODH/CFO build instructions
sutaakar Feb 28, 2024
7419586
e2e tests: Fix finishing condition in ODH e2e test
sutaakar Mar 8, 2024
2b5d9b8
Fix e2e test - invalid go version error
ChristianZaccaria Mar 25, 2024
91f8bf3
add raycluster controller to CFO
KPostOffice Jan 25, 2024
4f0c9c1
make oauth part of config and remove annotation check
KPostOffice Apr 2, 2024
9ea041f
address comments from PR review
KPostOffice Apr 2, 2024
5e5f5b3
Move controllers package into pkg
astefanutti Apr 3, 2024
2f100af
Scope RayCluster finalizer into ray.openshift.ai
astefanutti Apr 3, 2024
22d75f6
Add missing RBAC for oauth-proxy ClusterRoleBinding
astefanutti Apr 3, 2024
a8e2a93
Disable MCAD by default
anishasthana Apr 4, 2024
9721e0e
Enable MCAD in e2e tests
astefanutti Apr 5, 2024
2b0453e
Enable MCAD in OLM tests
astefanutti Apr 5, 2024
465da20
Refactor creation logic of ingress/routes into RayCluster Controller …
ChristianZaccaria Apr 5, 2024
be7ac07
Removed InstaScale & MCAD from release workflow (#492)
Bobbins228 Apr 5, 2024
c771aae
Clean removal of MCADv1 and Instascale (#501)
dgrove-oss Apr 5, 2024
faff28a
Update dependency versions for release v1.3.0 (#502)
codeflare-machine-account Apr 5, 2024
67122ad
fix(manifests): remove emptry CRD and reference (#504)
zdtsw Apr 8, 2024
ac0ddb5
Fix OLM upgrade test
sutaakar Apr 8, 2024
5cc6fd9
Update kuberay version to latest
Apr 12, 2024
58b23ee
Add missing roles to create ClusterRoleBinding for CodeFlare operator
sutaakar Apr 11, 2024
61d7a48
RC Controller - Avoid multiple calls to DiscoveryAPI
ChristianZaccaria Apr 11, 2024
da57f8c
Add TODO notifier on ingressDomain
ChristianZaccaria Apr 12, 2024
75a2d23
Add a ConfigMap for e2e tests
astefanutti Apr 15, 2024
6896111
Rayclient Route to resolve its own ingress domain, and enable local_i…
ChristianZaccaria Apr 15, 2024
26be493
Add ingressDomain to configmap to work with local and workflow e2e tests
ChristianZaccaria Apr 15, 2024
61c7bca
Return error message if IngressDomain configuration not set
ChristianZaccaria Apr 15, 2024
bc16f94
Adjust Kuberay dependency in the Makefile
sutaakar Apr 15, 2024
8b0902e
Update dependency versions for release v1.3.1
sutaakar Apr 15, 2024
c37c4b2
E2E tests: Deploy Kuberay before starting CodeFlare operator
sutaakar Apr 15, 2024
f412445
Use Dnsmasq to provide DNS for KinD
sutaakar Apr 15, 2024
3f1166c
fix(manifests): missing namespace in CM stack-config
zdtsw Apr 16, 2024
8b3b27c
Remove owner reference for ClusterRoleBinding to RayCluster
astefanutti Apr 17, 2024
3fa247f
add: mutating webhook
VanillaSpoon Apr 16, 2024
2dde5a9
remove: added label
VanillaSpoon Apr 16, 2024
4afea61
add: address feedback on pr
VanillaSpoon Apr 16, 2024
51057f4
add: check for isRayDashboardOAuthEnabledWebhook before applying patch
VanillaSpoon Apr 17, 2024
77accff
update: placement of cookie secret in the mutating webhook for rayclu…
VanillaSpoon Apr 17, 2024
06efef7
Refactor RayCluster mutating webhook
astefanutti Apr 17, 2024
28a9c28
Start RayCluster webhook on OpenShift only
astefanutti Apr 17, 2024
4a7cb60
Refactor RayCluster controller
astefanutti Apr 17, 2024
9f5bde6
Adjust env tests for RayCluster controller
sutaakar Feb 9, 2024
0873fc4
Create RayCluster ValidatingWebhook
ChristianZaccaria Apr 17, 2024
b4464d1
Remove Defaulter type in webhook
ChristianZaccaria Apr 18, 2024
2b885eb
Use single rayClusterWebhook instance
ChristianZaccaria Apr 18, 2024
a51f336
Fix oauth-proxy cookie Secret
astefanutti Apr 18, 2024
1c85429
Use deep semantic comparison in RayCluster validation webhook
astefanutti Apr 18, 2024
1518c68
Rename RayCluster webhooks
astefanutti Apr 18, 2024
7c64408
Better message for RayCluster enableIngress field validation
astefanutti Apr 18, 2024
b90451c
Get go version for setup-go action from go.mod file
dgrove-oss Apr 18, 2024
abdebf5
Remove dangling MCAD and InstaScale references
dgrove-oss Apr 18, 2024
a0edab0
Use cert-controller to generate webhook certificates
astefanutti Apr 18, 2024
ffc555a
Skip OAuth proxy validation when it's disabled
astefanutti Apr 19, 2024
cdf154a
Add missing validations on RayCluster creation
astefanutti Apr 19, 2024
2fe0a52
Delay webhook readiness until certicates are set up
astefanutti Apr 19, 2024
64de673
Update OWNERS
astefanutti Apr 19, 2024
9b99614
CVE fixes of High priority
ChristianZaccaria Apr 16, 2024
7caa6c7
Replace pgx/v4 for pgx/v5
ChristianZaccaria Apr 16, 2024
07098c0
add additional function which creates network policy (#498)
KPostOffice Apr 19, 2024
e47db52
Added Mtls patch
Bobbins228 Apr 17, 2024
f5be334
Added Ingress domain to validateHeadInitContainer
Bobbins228 Apr 19, 2024
0bf2a4f
Generate RayCluster CA certificate Secret
astefanutti Apr 19, 2024
70a72b9
Update RayCluster CA Secret if it exists
astefanutti Apr 19, 2024
46d4bab
Fix RayCluster CA Secret keys
astefanutti Apr 19, 2024
0f75198
Update RayCluster CA certificate common and issuer names
astefanutti Apr 19, 2024
1a0141e
Fix missing certificate volume mounts to RayCluster
astefanutti Apr 19, 2024
1c8a64d
add entry for rayclient to allow all connections
KPostOffice Apr 19, 2024
0c2aa47
add cfg check for mtls before enabling access to client
KPostOffice Apr 19, 2024
fa700fa
Update dependency versions for release v1.4.0 (#540)
codeflare-machine-account Apr 19, 2024
6be438d
CARRY: Remove e2e and OLM upgrade tests
sutaakar Oct 30, 2023
3433d04
CARRY: Added automated workflow for pushing opendatahub/codeflare-ope…
Bobbins228 Oct 12, 2023
1053666
CARRY: Added Sync Fork workflow
Bobbins228 Oct 17, 2023
df50ee7
CARRY: Add Makefile and configuration files for e2e execution on Open…
sutaakar Nov 22, 2023
865e713
CARRY: Generate CodeFlare stack config map
sutaakar Nov 28, 2023
e4ed8f7
CARRY: update(manifests): use default namespace from ODH
zdtsw Oct 25, 2023
c283d85
PATCH: Adjust DSC source path for CodeFlare
sutaakar Jan 23, 2024
46edabf
CARRY: Add workflow to release ODH/CFO with compiled test binaries
sutaakar Mar 4, 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
51 changes: 51 additions & 0 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This workflow will build the CodeFlare Operator image and push it to the opendatahub image registry

name: Build and Push

on:
pull_request:
types:
- closed
workflow_dispatch:

jobs:
build-and-push:
if: (github.event.pull_request.merged == true && github.event.pull_request.user.login == 'codeflare-machine-account' && contains(github.event.pull_request.title, 'Sync with Upstream')) || github.event_name == 'workflow_dispatch'
name: Build and push ODH/CFO image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set Go
uses: actions/setup-go@v3
with:
go-version: v1.20

- name: Login to Quay.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ secrets.QUAY_BOT_USER }}
password: ${{ secrets.QUAY_BOT_PASSWORD }}
registry: quay.io

- name: Get Upstream Release Tags
id: release-tags
run: |
release_tag=$(gh release view -R github.com/project-codeflare/codeflare-operator --json tagName | jq -r '.tagName')
echo "RELEASE_TAG=$release_tag" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Cleanup the go.mod and go.sum
run: |
go mod tidy

- name: Image Build and Push
run: |
make build
make image-build -e IMG=quay.io/opendatahub/codeflare-operator:${{ env.RELEASE_TAG }}
make image-push -e IMG=quay.io/opendatahub/codeflare-operator:${{ env.RELEASE_TAG }}

- name: Delete remote branch
run: |
git push origin --delete sync-cfo-fork
43 changes: 43 additions & 0 deletions .github/workflows/component_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Component tests

on:
pull_request:
branches:
- main
- 'release-*'
paths-ignore:
- 'docs/**'
- '**.adoc'
- '**.md'
- 'LICENSE'
push:
branches:
- main
- 'release-*'
paths-ignore:
- 'docs/**'
- '**.adoc'
- '**.md'
- 'LICENSE'

concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
kubernetes-component:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set Go
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'

- name: Run component tests
run: |
make test-component
36 changes: 36 additions & 0 deletions .github/workflows/mnist-job-test-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will build the MNIST job test image and push it to the project-codeflare image registry

name: MNIST Job Test Image

on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'test/pytorch_mnist_image/**'

jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set Go
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'

- name: Login to Quay.io
id: podman-login-quay
run: |
podman login --username ${{ secrets.QUAY_ID }} --password ${{ secrets.QUAY_TOKEN }} quay.io

- name: Image Build and Push
run: |
make image-mnist-job-test-push

- name: Logout from Quay.io
if: always() && steps.podman-login-quay.outcome == 'success'
run: |
podman logout quay.io
18 changes: 18 additions & 0 deletions .github/workflows/odh-fork-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Call sync on OpenDataHub CFO fork sync
on:
release:
types:
- published
workflow_dispatch:

jobs:
sync-fork:
runs-on: ubuntu-latest
steps:
- name: Sync-fork
run: |
gh workflow run sync-fork.yaml --repo github.com/opendatahub-io/codeflare-operator --ref main
env:
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
shell:
bash
49 changes: 49 additions & 0 deletions .github/workflows/odh-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This workflow will compile e2e tests and release them

name: ODH Release
on:
workflow_dispatch:
inputs:
version:
description: 'Tag to be used for release, i.e.: v0.0.1'
required: true

jobs:
release-odh:
runs-on: ubuntu-latest

# Permission required to create a release
permissions:
contents: write

steps:
- uses: actions/checkout@v4

- name: Set Go
uses: actions/setup-go@v5
with:
go-version: v1.20

- name: Verify that release doesn't exist yet
shell: bash {0}
run: |
gh release view ${{ github.event.inputs.version }}
status=$?
if [[ $status -eq 0 ]]; then
echo "Release ${{ github.event.inputs.version }} already exists."
exit 1
fi
env:
GITHUB_TOKEN: ${{ github.TOKEN }}

- name: Compile tests
run: |
go test -c -o compiled-tests/e2e ./test/e2e/
go test -c -o compiled-tests/odh ./test/odh/

- name: Creates a release in GitHub
run: |
gh release create ${{ github.event.inputs.version }} --target ${{ github.ref }} compiled-tests/*
env:
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
shell: bash
55 changes: 24 additions & 31 deletions .github/workflows/operator-image.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,41 @@
# This workflow will build the CodeFlare Operator image and push it to the project-codeflare image registry
# This workflow will build the CodeFlare Operator dev image and push it to the project-codeflare image registry

name: Operator Image
name: Operator Dev Image

on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to be used for operator image'
required: true
default: 'unstable'
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'test/**'
- '**.adoc'
- '**.md'
- 'LICENSE'

jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install operator-sdk
run: |
export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac)
export OS=$(uname | awk '{print tolower($0)}')
export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/v1.27.0
curl -LO ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH}
chmod +x operator-sdk_${OS}_${ARCH} && sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk
- name: Set Go
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'

- name: Login to Quay.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ secrets.QUAY_ID }}
password: ${{ secrets.QUAY_TOKEN }}
registry: quay.io
id: podman-login-quay
run: |
podman login --username ${{ secrets.QUAY_ID }} --password ${{ secrets.QUAY_TOKEN }} quay.io

- name: Image Build
run: |
make build
make bundle
make image-build -e IMG=quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG}
podman tag quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG} quay.io/project-codeflare/codeflare-operator:latest
env:
SOURCE_TAG: ${{ github.event.inputs.tag }}
make image-build -e IMG=quay.io/project-codeflare/codeflare-operator:dev
make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:dev

- name: Image Push
- name: Logout from Quay.io
if: always() && steps.podman-login-quay.outcome == 'success'
run: |
make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG}
make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:latest
env:
SOURCE_TAG: ${{ github.event.inputs.tag }}
podman logout quay.io
9 changes: 7 additions & 2 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ jobs:
volumes:
- /cache
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set Go
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'

- name: Activate cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /cache
key: ${{ runner.os }}-cache-${{ hashFiles('**/go.sum', '.pre-commit-config.yaml') }}
Expand Down
Loading