|
1 | | -.PHONY: schemas tests test_setup main_tests schemathesis_tests collect_coverage style_checks pre_commit_checks run download_avro check_avro avro_models update_avro kind_cluster install_amaltheas all |
| 1 | +.PHONY: schemas tests test_setup main_tests schemathesis_tests collect_coverage style_checks pre_commit_checks run download_avro check_avro avro_models update_avro k3d_cluster install_amaltheas all |
2 | 2 |
|
3 | 3 | AMALTHEA_JS_VERSION ?= 0.12.2 |
4 | | -AMALTHEA_SESSIONS_VERSION ?= 0.0.9-new-operator-chart |
| 4 | +AMALTHEA_SESSIONS_VERSION ?= 0.0.10-new-operator-chart |
5 | 5 | codegen_params = --input-file-type openapi --output-model-type pydantic_v2.BaseModel --use-double-quotes --target-python-version 3.12 --collapse-root-models --field-constraints --strict-nullable --set-default-enum-member --openapi-scopes schemas paths parameters --set-default-enum-member --use-one-literal-as-default --use-default |
6 | 6 |
|
7 | 7 | define test_apispec_up_to_date |
@@ -143,21 +143,15 @@ help: ## Display this help. |
143 | 143 |
|
144 | 144 | ##@ Helm/k8s |
145 | 145 |
|
146 | | -kind_cluster: ## Creates a kind cluster for testing |
147 | | - kind delete cluster |
148 | | - docker network rm -f kind |
149 | | - docker network create -d=bridge -o com.docker.network.bridge.enable_ip_masquerade=true -o com.docker.network.driver.mtu=1500 --ipv6=false kind |
150 | | - kind create cluster --config kind_config.yaml |
151 | | - kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml |
152 | | - echo "Waiting for ingress controller to initialize" |
153 | | - sleep 15 |
154 | | - kubectl wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=90s |
| 146 | +k3d_cluster: ## Creates a k3d cluster for testing |
| 147 | + k3d cluster delete |
| 148 | + k3d cluster create --agents 1 --k3s-arg --disable=metrics-server@server:0 |
155 | 149 |
|
156 | 150 | install_amaltheas: ## Installs both version of amalthea in the. NOTE: It uses the currently active k8s context. |
157 | 151 | helm repo add renku https://swissdatasciencecenter.github.io/helm-charts |
158 | 152 | helm repo update |
159 | 153 | helm upgrade --install amalthea-js renku/amalthea --version $(AMALTHEA_JS_VERSION) |
160 | | - helm upgrade --install amalthea-sessions amalthea-sessions-0.0.9-new-operator-chart.tgz --version $(AMALTHEA_SESSIONS_VERSION) |
| 154 | + helm upgrade --install amalthea-se renku/amalthea-sessions --version ${AMALTHEA_SESSIONS_VERSION} |
161 | 155 |
|
162 | 156 | # TODO: Add the version variables from the top of the file here when the charts are fully published |
163 | 157 | amalthea_schema: ## Updates generates pydantic classes from CRDs |
|
0 commit comments