Skip to content

Commit ac6a13e

Browse files
authored
Update AppWrapper for Kueue 0.11 (#328)
* remove appwrapper external framework integration * partially update hack/kueue-config for kueue 0.11 * remove slack cluster queue functionality * appwrapper will work with a default-configured Kueue 0.11 * Update AppWrapper architecture for Kueue 0.11 * Update CI to use kueue v0.11.0-rc1
1 parent abcfaf8 commit ac6a13e

32 files changed

+185
-1000
lines changed

.github/workflows/CI-standalone.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Deploy AppWrapper controller
5757
run: |
5858
make kind-push -e GIT_BRANCH=${{ env.GIT_BRANCH }} TAG=${{ env.GIT_BRANCH }}-${{ env.TAG }}
59-
make deploy -e GIT_BRANCH=${{ env.GIT_BRANCH }} TAG=${{ env.GIT_BRANCH }}-${{ env.TAG }} ENV=standalone
59+
make deploy -e GIT_BRANCH=${{ env.GIT_BRANCH }} TAG=${{ env.GIT_BRANCH }}-${{ env.TAG }} ENV=default
6060
6161
- name: Run E2E tests
6262
run: LABEL_FILTER="Metrics,Standalone,Webhook" ./hack/run-tests-on-cluster.sh

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ EXTERNAL_CRDS_DIR ?= $(shell pwd)/dep-crds
9999
KUEUE_ROOT = $(shell go list -m -mod=readonly -f "{{.Dir}}" sigs.k8s.io/kueue)
100100
.PHONY: dep-crds
101101
dep-crds: ## Copy CRDs from external operators to dep-crds directory.
102-
mkdir -p $(EXTERNAL_CRDS_DIR)/kueue
103-
cp -f $(KUEUE_ROOT)/config/components/crd/bases/* $(EXTERNAL_CRDS_DIR)/kueue
104102

105103
.PHONY: test
106104
test: manifests generate fmt vet dep-crds envtest ## Run unit tests.

api/v1beta2/groupversion_info.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ var (
2828
// GroupVersion is group version used to register these objects
2929
GroupVersion = schema.GroupVersion{Group: "workload.codeflare.dev", Version: "v1beta2"}
3030

31+
// AppWrapperKind is the kind name
32+
AppWrapperKind = "AppWrapper"
33+
3134
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
3235
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
3336

cmd/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ import (
4747
"sigs.k8s.io/controller-runtime/pkg/webhook"
4848
"sigs.k8s.io/yaml"
4949

50-
kueue "sigs.k8s.io/kueue/apis/kueue/v1beta1"
51-
5250
awv1beta2 "github.com/project-codeflare/appwrapper/api/v1beta2"
5351
"github.com/project-codeflare/appwrapper/internal/metrics"
5452
"github.com/project-codeflare/appwrapper/pkg/config"
@@ -66,7 +64,6 @@ var (
6664

6765
func init() {
6866
utilruntime.Must(clientgoscheme.AddToScheme(scheme))
69-
utilruntime.Must(kueue.AddToScheme(scheme))
7067
utilruntime.Must(awv1beta2.AddToScheme(scheme))
7168
//+kubebuilder:scaffold:scheme
7269
}

config/default/config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ metadata:
44
name: operator-config
55
data:
66
config.yaml: |
7-
appwrapper:
8-
enableKueueIntegrations: true
97
controllerManager:
108
health:
119
bindAddress: ":8081"

config/dev/config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ metadata:
44
name: operator-config
55
data:
66
config.yaml: |
7-
appwrapper:
8-
enableKueueIntegrations: false
97
controllerManager:
108
health:
119
bindAddress: "localhost:0"

config/rbac/role.yaml

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@ kind: ClusterRole
44
metadata:
55
name: manager-role
66
rules:
7-
- apiGroups:
8-
- ""
9-
resources:
10-
- events
11-
verbs:
12-
- create
13-
- patch
14-
- update
15-
- watch
167
- apiGroups:
178
- ""
189
resources:
@@ -114,51 +105,6 @@ rules:
114105
- patch
115106
- update
116107
- watch
117-
- apiGroups:
118-
- kueue.x-k8s.io
119-
resources:
120-
- clusterqueues
121-
verbs:
122-
- get
123-
- list
124-
- patch
125-
- update
126-
- watch
127-
- apiGroups:
128-
- kueue.x-k8s.io
129-
resources:
130-
- resourceflavors
131-
- workloadpriorityclasses
132-
verbs:
133-
- get
134-
- list
135-
- watch
136-
- apiGroups:
137-
- kueue.x-k8s.io
138-
resources:
139-
- workloads
140-
verbs:
141-
- create
142-
- delete
143-
- get
144-
- list
145-
- patch
146-
- update
147-
- watch
148-
- apiGroups:
149-
- kueue.x-k8s.io
150-
resources:
151-
- workloads/finalizers
152-
verbs:
153-
- update
154-
- apiGroups:
155-
- kueue.x-k8s.io
156-
resources:
157-
- workloads/status
158-
verbs:
159-
- get
160-
- patch
161-
- update
162108
- apiGroups:
163109
- ray.io
164110
resources:
@@ -172,14 +118,6 @@ rules:
172118
- patch
173119
- update
174120
- watch
175-
- apiGroups:
176-
- scheduling.k8s.io
177-
resources:
178-
- priorityclasses
179-
verbs:
180-
- get
181-
- list
182-
- watch
183121
- apiGroups:
184122
- scheduling.sigs.k8s.io
185123
- scheduling.x-k8s.io

config/standalone/config.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

config/standalone/kustomization.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

config/standalone/manager_config_patch.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)