Skip to content

Commit 241f616

Browse files
authored
Merge branch 'project-codeflare:main' into instascale-hypershift-e2e
2 parents 9adede8 + 89efe67 commit 241f616

26 files changed

+221
-484
lines changed

Diff for: .github/workflows/auto-add-issues.yml

-14
This file was deleted.

Diff for: .github/workflows/e2e_tests.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Set Go
4646
uses: actions/setup-go@v3
4747
with:
48-
go-version: v1.19
48+
go-version: v1.20
4949

5050
- name: Set up gotestfmt
5151
uses: gotesttools/gotestfmt-action@v2
@@ -92,6 +92,12 @@ jobs:
9292
echo "Printing KubeRay operator logs"
9393
kubectl logs -n ray-system --tail -1 -l app.kubernetes.io/name=kuberay | tee ${CODEFLARE_TEST_OUTPUT_DIR}/kuberay.log
9494
95+
- name: Export all KinD pod logs
96+
uses: ./common/github-actions/kind-export-logs
97+
if: always() && steps.deploy.outcome == 'success'
98+
with:
99+
output-directory: ${CODEFLARE_TEST_OUTPUT_DIR}
100+
95101
- name: Upload logs
96102
uses: actions/upload-artifact@v3
97103
if: always() && steps.deploy.outcome == 'success'

Diff for: .github/workflows/olm_tests.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Set Go
4545
uses: actions/setup-go@v3
4646
with:
47-
go-version: v1.19
47+
go-version: v1.20
4848

4949
- name: Set up gotestfmt
5050
uses: gotesttools/gotestfmt-action@v2
@@ -185,6 +185,12 @@ jobs:
185185
echo "Printing KubeRay operator logs"
186186
kubectl logs -n ray-system --tail -1 -l app.kubernetes.io/name=kuberay | tee ${CODEFLARE_TEST_OUTPUT_DIR}/kuberay.log
187187
188+
- name: Export all KinD pod logs
189+
uses: ./common/github-actions/kind-export-logs
190+
if: always() && steps.deploy.outcome == 'success'
191+
with:
192+
output-directory: ${CODEFLARE_TEST_OUTPUT_DIR}
193+
188194
- name: Upload logs
189195
uses: actions/upload-artifact@v3
190196
if: always() && steps.deploy.outcome == 'success'

Diff for: .github/workflows/operator-image.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set Go
2323
uses: actions/setup-go@v3
2424
with:
25-
go-version: v1.19
25+
go-version: v1.20
2626

2727
- name: Login to Quay.io
2828
uses: redhat-actions/podman-login@v1

Diff for: .github/workflows/precommit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set Go
2727
uses: actions/setup-go@v3
2828
with:
29-
go-version: v1.19
29+
go-version: v1.20
3030

3131
- name: Activate cache
3232
uses: actions/cache@v3

Diff for: .github/workflows/tag-and-build.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- name: Set Go
6565
uses: actions/setup-go@v3
6666
with:
67-
go-version: v1.19
67+
go-version: v1.20
6868

6969
- name: Verify that release doesn't exist yet
7070
shell: bash {0}
@@ -102,13 +102,22 @@ jobs:
102102
sed -i -E "s/(.*INSTASCALE_VERSION \?= ).*/\1${{ github.event.inputs.instascale-version }}/" Makefile
103103
sed -i -E "s/(.*KUBERAY_VERSION \?= ).*/\1${{ github.event.inputs.kuberay-version }}/" Makefile
104104
105+
- name: Update image version in params.env
106+
run: |
107+
VERSION=${{ github.event.inputs.version }} perl -i -pe 's/:(.*)$/:$ENV{"VERSION"}/' config/manager/params.env
108+
shell: bash
109+
105110
- name: Login to Quay.io
106111
uses: redhat-actions/podman-login@v1
107112
with:
108113
username: ${{ secrets.QUAY_ID }}
109114
password: ${{ secrets.QUAY_TOKEN }}
110115
registry: quay.io
111116

117+
- name: Align go.mod and go.sum dependencies for released components
118+
run: |
119+
make modules
120+
112121
- name: Image Build and Push
113122
run: |
114123
make build
@@ -134,7 +143,7 @@ jobs:
134143
uses: stefanzweifel/git-auto-commit-action@v4
135144
with:
136145
commit_message: Update dependency versions for release ${{ github.event.inputs.version }}
137-
file_pattern: 'README.md *.yaml Makefile go.mod go.sum'
146+
file_pattern: 'README.md *.yaml Makefile go.mod go.sum *.env'
138147
create_branch: true
139148
branch: ${{ env.PR_BRANCH_NAME }}
140149

Diff for: .github/workflows/unit_tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set Go
2828
uses: actions/setup-go@v3
2929
with:
30-
go-version: v1.19
30+
go-version: v1.20
3131

3232
- name: Activate cache
3333
uses: actions/cache@v3

Diff for: .github/workflows/verify_generated_files.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set Go
2525
uses: actions/setup-go@v3
2626
with:
27-
go-version: v1.19
27+
go-version: v1.20
2828
- name: Verify that imports are organized
2929
run: make verify-imports
3030

@@ -35,6 +35,6 @@ jobs:
3535
- name: Set Go
3636
uses: actions/setup-go@v3
3737
with:
38-
go-version: v1.19
38+
go-version: v1.20
3939
- name: Verify that the latest WebhookConfigurations, ClusterRoles, and CustomResourceDefinitions have been generated
4040
run: make manifests && git diff --exit-code

Diff for: CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Here are a few things to go over before getting started with CodeFlare Operator
55
## Environment setup
66

77
The following should be installed in your working environment:
8-
- Go 1.19.x
8+
- Go 1.20.x
99
- [Download release](https://go.dev/dl/)
1010
- [Install Instructions](https://go.dev/doc/install)
1111
- [Operator SDK](https://sdk.operatorframework.io/docs/installation/)

Diff for: Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM registry.access.redhat.com/ubi8/go-toolset:1.19.13 as builder
2+
FROM registry.access.redhat.com/ubi8/go-toolset:1.20.10 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

Diff for: Makefile

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ VERSION ?= v0.0.0-dev
1212
BUNDLE_VERSION ?= $(VERSION:v%=%)
1313

1414
# INSTASCALE_VERSION defines the default version of the InstaScale controller
15-
INSTASCALE_VERSION ?= v0.3.1
15+
INSTASCALE_VERSION ?= v0.4.0
1616
INSTASCALE_REPO ?= github.com/project-codeflare/instascale
1717

1818
# MCAD_VERSION defines the default version of the MCAD controller
19-
MCAD_VERSION ?= v1.38.1
19+
MCAD_VERSION ?= v1.39.0
2020
MCAD_REPO ?= github.com/project-codeflare/multi-cluster-app-dispatcher
2121
# Upstream MCAD is currently only creating release tags of the form `vX.Y.Z` (i.e the version)
2222
MCAD_CRD ?= ${MCAD_REPO}/config/crd?ref=${MCAD_VERSION}
2323

2424
# KUBERAY_VERSION defines the default version of the KubeRay operator (used for testing)
25-
KUBERAY_VERSION ?= v1.0.0-rc.1
25+
KUBERAY_VERSION ?= v1.0.0
2626

2727
# RAY_VERSION defines the default version of Ray (used for testing)
2828
RAY_VERSION ?= 2.5.0
@@ -158,7 +158,7 @@ modules: ## Update Go dependencies.
158158
go mod tidy
159159

160160
.PHONY: build
161-
build: modules fmt vet ## Build manager binary.
161+
build: fmt vet ## Build manager binary.
162162
go build \
163163
-ldflags " \
164164
-X 'main.OperatorVersion=$(BUILD_VERSION)' \
@@ -169,7 +169,7 @@ build: modules fmt vet ## Build manager binary.
169169
-o bin/manager main.go
170170

171171
.PHONY: run
172-
run: modules manifests fmt vet ## Run a controller from your host.
172+
run: manifests fmt vet ## Run a controller from your host.
173173
go run ./main.go
174174

175175
.PHONY: image-build
@@ -198,7 +198,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
198198

199199
.PHONY: deploy
200200
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
201-
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
201+
cd config/manager && IMAGE=$(IMG) perl -i -pe 's/codeflare-operator-controller-image=(.*)$$/codeflare-operator-controller-image=$$ENV{"IMAGE"}/' params.env
202202
$(KUSTOMIZE) build config/${ENV} | kubectl apply -f -
203203
git restore config/*
204204

@@ -229,7 +229,7 @@ SED ?= /usr/bin/sed
229229
KUSTOMIZE_VERSION ?= v4.5.4
230230
CODEGEN_VERSION ?= v0.27.2
231231
CONTROLLER_TOOLS_VERSION ?= v0.9.2
232-
YQ_VERSION ?= v4.30.8 ## latest version that works with go1.19
232+
YQ_VERSION ?= v4.35.2 ## latest version that works with go1.20
233233
OPERATOR_SDK_VERSION ?= v1.27.0
234234
GH_CLI_VERSION ?= 2.30.0
235235

@@ -283,8 +283,8 @@ validate-bundle: install-operator-sdk
283283

284284
.PHONY: bundle
285285
bundle: manifests kustomize install-operator-sdk ## Generate bundle manifests and metadata, then validate generated files.
286+
cd config/manager && IMAGE=$(IMG) perl -i -pe 's/codeflare-operator-controller-image=(.*)$$/codeflare-operator-controller-image=$$ENV{"IMAGE"}/' params.env
286287
$(OPERATOR_SDK) generate kustomize manifests -q
287-
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
288288
cd config/manifests && $(KUSTOMIZE) edit add patch --patch '[{"op":"add", "path":"/metadata/annotations/containerImage", "value": "$(IMG)" }]' --kind ClusterServiceVersion
289289
cd config/manifests && $(KUSTOMIZE) edit add patch --patch '[{"op":"add", "path":"/spec/replaces", "value": "codeflare-operator.$(PREVIOUS_VERSION)" }]' --kind ClusterServiceVersion
290290
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS)

Diff for: OWNERS

+2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ approvers:
99
reviewers:
1010
- anishasthana
1111
- astefanutti
12+
- ChristianZaccaria
1213
- dimakis
14+
- Fiona-Waters
1315
- jbusche
1416
- kpostoffice
1517
- maxusmusti

Diff for: README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ CodeFlare Stack Compatibility Matrix
88

99
| Component | Version |
1010
|------------------------------|---------------------------------------------------------------------------------------------------|
11-
| CodeFlare Operator | [v1.0.1](https://github.com/project-codeflare/codeflare-operator/releases/tag/v1.0.1) |
12-
| Multi-Cluster App Dispatcher | [v1.38.1](https://github.com/project-codeflare/multi-cluster-app-dispatcher/releases/tag/v1.38.1) |
13-
| CodeFlare-SDK | [v0.12.1](https://github.com/project-codeflare/codeflare-sdk/releases/tag/v0.12.1) |
14-
| InstaScale | [v0.3.1](https://github.com/project-codeflare/instascale/releases/tag/v0.3.1) |
15-
| KubeRay | [v1.0.0-rc.0](https://github.com/opendatahub-io/kuberay/releases/tag/v1.0.0-rc.0) |
11+
| CodeFlare Operator | [v1.1.0](https://github.com/project-codeflare/codeflare-operator/releases/tag/v1.1.0) |
12+
| Multi-Cluster App Dispatcher | [v1.39.0](https://github.com/project-codeflare/multi-cluster-app-dispatcher/releases/tag/v1.39.0) |
13+
| CodeFlare-SDK | [v0.13.0](https://github.com/project-codeflare/codeflare-sdk/releases/tag/v0.13.0) |
14+
| InstaScale | [v0.4.0](https://github.com/project-codeflare/instascale/releases/tag/v0.4.0) |
15+
| KubeRay | [v1.0.0](https://github.com/opendatahub-io/kuberay/releases/tag/v1.0.0) |
1616
<!-- Compatibility Matrix end -->
1717

1818
## Development

Diff for: config/crd/mcad/kustomization.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
4-
- github.com/project-codeflare/multi-cluster-app-dispatcher/config/crd?ref=v1.38.1
4+
- github.com/project-codeflare/multi-cluster-app-dispatcher/config/crd?ref=v1.39.0

Diff for: config/manager/kustomization.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,19 @@ resources:
33

44
generatorOptions:
55
disableNameSuffixHash: true
6+
7+
configMapGenerator:
8+
- name: stack-config
9+
envs:
10+
- params.env
11+
configurations:
12+
- params.yaml
13+
14+
vars:
15+
- name: codeflare_operator_controller_image
16+
objref:
17+
kind: ConfigMap
18+
name: stack-config
19+
apiVersion: v1
20+
fieldref:
21+
fieldpath: data.codeflare-operator-controller-image

Diff for: config/manager/manager.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ spec:
2828
# it is recommended to ensure that all your Pods/Containers are restrictive.
2929
# More info: https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted
3030
# Please uncomment the following code if your project does NOT have to work on old Kubernetes
31-
# versions < 1.19 or on vendors versions which do NOT support this field by default (i.e. Openshift < 4.11 ).
31+
# versions < 1.20 or on vendors versions which do NOT support this field by default (i.e. Openshift < 4.11 ).
3232
# seccompProfile:
3333
# type: RuntimeDefault
3434
containers:
3535
- command:
3636
- /manager
37-
image: controller:latest
37+
image: $(codeflare_operator_controller_image)
3838
imagePullPolicy: Always
3939
name: manager
4040
securityContext:

Diff for: config/manager/params.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
codeflare-operator-controller-image=quay.io/opendatahub/codeflare-operator:v1.1.0

Diff for: config/manager/params.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
varReference:
2+
- path: spec/template/spec/containers[]/image
3+
kind: Deployment

Diff for: config/manifests/bases/codeflare-operator.clusterserviceversion.yaml

+39-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,45 @@ apiVersion: operators.coreos.com/v1alpha1
22
kind: ClusterServiceVersion
33
metadata:
44
annotations:
5-
alm-examples: '[]'
5+
alm-examples: |-
6+
[{
7+
"apiVersion": "workload.codeflare.dev/v1beta1",
8+
"kind": "AppWrapper",
9+
"metadata": {"name": "0001-aw-generic-deployment-1"},
10+
"spec": {
11+
"resources": {
12+
"GenericItems": [{
13+
"replicas": 1,
14+
"generictemplate": {
15+
"apiVersion": "apps/v1",
16+
"kind": "Deployment",
17+
"metadata": {
18+
"name": "0001-aw-generic-deployment-1",
19+
"labels": {"app": "0001-aw-generic-deployment-1"}
20+
},
21+
"spec": {
22+
"selector": {"matchLabels": {"app": "0001-aw-generic-deployment-1"}},
23+
"replicas": 2,
24+
"template": {
25+
"metadata": {"labels": {"app": "0001-aw-generic-deployment-1"}},
26+
"spec": {
27+
"containers": [{
28+
"name": "0001-aw-generic-deployment-1",
29+
"image": "kicbase/echo-server:1.0",
30+
"ports": [{"containerPort": 80}],
31+
"resources": {
32+
"requests": {"cpu": "100m", "memory": "256Mi"},
33+
"limits": {"cpu": "100m", "memory": "256Mi"}
34+
}
35+
}]
36+
}
37+
}
38+
}
39+
}
40+
}]
41+
}
42+
}
43+
}]
644
capabilities: Basic Install
745
categories: AI/Machine Learning, Big Data
846
operatorframework.io/suggested-namespace: openshift-operators

Diff for: config/manifests/kustomization.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# These resources constitute the fully configured set of manifests
22
# used to generate the 'manifests/' directory in a bundle.
33
resources:
4-
- bases/codeflare-operator.clusterserviceversion.yaml
54
- ../default
65
- ../scorecard
6+
- bases/codeflare-operator.clusterserviceversion.yaml
7+
78
apiVersion: kustomize.config.k8s.io/v1beta1
89
kind: Kustomization

0 commit comments

Comments
 (0)