Skip to content

Commit 1ddba0f

Browse files
authored
move crds into helm chart (#451)
1 parent 3c1e2c9 commit 1ddba0f

File tree

13 files changed

+23
-17
lines changed

13 files changed

+23
-17
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

77
## [Unreleased]
88

9+
### Changed
10+
- Moved the CRDs into the helm chart so that they are also installed by helm and not only by the crd-upgrader, but removed the external kueue clone of topology CRD from being automatically installed.
11+
912
### Fixed
1013
- Fixed a bug where workload with subgroups would not consider additional tasks above minAvailable
1114

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ gen-license: addlicense
5858

5959
.PHONY: manifests
6060
manifests: controller-gen kustomize ## Generate ClusterRole and CustomResourceDefinition objects.
61-
$(CONTROLLER_GEN) crd:allowDangerousTypes=true,generateEmbeddedObjectMeta=true,headerFile="./hack/boilerplate.yaml.txt" paths="./pkg/apis/..." output:crd:artifacts:config=deployments/crds/internal
61+
$(CONTROLLER_GEN) crd:allowDangerousTypes=true,generateEmbeddedObjectMeta=true,headerFile="./hack/boilerplate.yaml.txt" paths="./pkg/apis/..." output:crd:artifacts:config=deployments/kai-scheduler/crds/internal
6262
$(CONTROLLER_GEN) rbac:roleName=kai-podgrouper,headerFile="./hack/boilerplate.yaml.txt" paths="./pkg/podgrouper/..." paths="./cmd/podgrouper/..." output:stdout > deployments/kai-scheduler/templates/rbac/podgrouper.yaml
6363
$(CONTROLLER_GEN) rbac:roleName=kai-binder,headerFile="./hack/boilerplate.yaml.txt" paths="./pkg/binder/..." paths="./cmd/binder/..." output:stdout > deployments/kai-scheduler/templates/rbac/binder.yaml
6464
$(CONTROLLER_GEN) rbac:roleName=kai-resource-reservation,headerFile="./hack/boilerplate.yaml.txt" paths="./pkg/resourcereservation/..." paths="./cmd/resourcereservation/..." output:stdout > deployments/kai-scheduler/templates/rbac/resourcereservation.yaml

build/makefile/base.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SUCCESS_MESSAGE_HANDLER=(${ECHO_COMMAND} ${GREEN_CONSOLE} "${CONSOLE_PREFIX} Suc
99

1010
DOCKER_SOCK_PATH=/var/run/docker.sock
1111
DOCKERFILE_PATH=./Dockerfile
12-
CRD_UPGRADER_DOCKERFILE_PATH=./deployments/crds/crd-upgrader/Dockerfile
12+
CRD_UPGRADER_DOCKERFILE_PATH=./deployments/crd-upgrader/Dockerfile
1313

1414
DOCKER_TAG?=0.0.0
1515
VERSION?=${DOCKER_TAG}
@@ -59,4 +59,4 @@ docker-build-crd-upgrader:
5959

6060
docker-build-generic:
6161
DOCKER_BUILDKIT=1 docker buildx build ${DOCKER_BUILD_ADDITIONAL_ARGS} --build-arg SERVICE_NAME=${SERVICE_NAME} -f ${DOCKERFILE_PATH} -t ${DOCKER_IMAGE_NAME} ${DOCKER_BUILDX_ADDITIONAL_ARGS} --platform ${DOCKER_BUILD_PLATFORM} .
62-
.PHONY: docker-build-generic
62+
.PHONY: docker-build-generic

deployments/crds/crd-upgrader/Dockerfile renamed to deployments/crd-upgrader/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ RUN curl -o kubectl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io
88
&& chmod +x kubectl && mv kubectl /usr/bin/kubectl
99

1010

11-
COPY deployments/crds/internal /internal-crds
12-
COPY deployments/crds/external /external-crds
11+
COPY deployments/kai-scheduler/crds /internal-crds
12+
COPY deployments/external-crds /external-crds
1313
COPY NOTICE .
14-
COPY deployments/crds/crd-upgrader/apply-crds.sh /apply-crds.sh
14+
COPY deployments/crd-upgrader/apply-crds.sh /apply-crds.sh
1515
RUN chmod +x /apply-crds.sh
1616

1717
USER 65532:65532
1818

19-
CMD ["/apply-crds.sh"]
19+
CMD ["/apply-crds.sh"]

pkg/binder/controllers/integration_tests/suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ var _ = BeforeSuite(func() {
6666
By("bootstrapping test environment")
6767
testEnv = &envtest.Environment{
6868
CRDDirectoryPaths: []string{
69-
filepath.Join("..", "..", "..", "..", "deployments", "crds", "internal"),
70-
filepath.Join("..", "..", "..", "..", "deployments", "crds", "external"),
69+
filepath.Join("..", "..", "..", "..", "deployments", "kai-scheduler", "crds"),
70+
filepath.Join("..", "..", "..", "..", "deployments", "external-crds"),
7171
},
7272
ErrorIfCRDPathMissing: true,
7373
}

0 commit comments

Comments
 (0)