-
Notifications
You must be signed in to change notification settings - Fork 101
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
UDT - Remove Legacy Routing #8205
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -290,6 +290,49 @@ jobs: | |
echo "*** Installing Radius to Kubernetes ***" | ||
eval $RAD_COMMAND | ||
echo "*** Verify manifests are registered ***" | ||
rm -f registermanifest_logs.txt | ||
# Find the pod with container "ucp" | ||
POD_NAME=$( | ||
kubectl get pods -n radius-system \ | ||
-o jsonpath='{range .items[*]}{.metadata.name}{" "}{.spec.containers[*].name}{"\n"}{end}' \ | ||
| grep "ucp" \ | ||
| head -n1 \ | ||
| cut -d" " -f1 | ||
) | ||
echo "Found ucp pod: $POD_NAME" | ||
if [ -z "$POD_NAME" ]; then | ||
echo "No pod with container 'ucp' found in namespace radius-system." | ||
exit 1 | ||
fi | ||
# Poll logs for up to iterations, 30 seconds each (upto 3 minutes total) | ||
for i in {1..6}; do | ||
kubectl logs "$POD_NAME" -n radius-system | tee registermanifest_logs.txt > /dev/null | ||
# Exit on error | ||
if grep -qi "error" registermanifest_logs.txt; then | ||
echo "Error found in ucp logs." | ||
exit 1 | ||
fi | ||
# Check for success | ||
if grep -q "Successfully registered manifests" registermanifest_logs.txt; then | ||
echo "Successfully registered manifests - message found." | ||
break | ||
fi | ||
echo "Logs not ready, waiting 30 seconds..." | ||
sleep 30 | ||
done | ||
lakshmimsft marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Final check to ensure success message was found | ||
if ! grep -q "Successfully registered manifests" registermanifest_logs.txt; then | ||
echo "Manifests not registered after 3 minutes." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be checked during There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The registering of manifests runs as a service that depends on ucp to be running (is started up) and it registers manifests. It is possible that the ucp pod is already up and the registering of manifests is underway (not all completed) when the calls are made on ln 337 prematurely. Let's discuss. I didn't see an obvious way to include this as part of rad install. |
||
exit 1 | ||
fi | ||
echo "*** Create workspace, group and environment for test ***" | ||
rad workspace create kubernetes | ||
rad group create kind-radius | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
DOCKER_REGISTRY?=$(shell whoami) | ||
DOCKER_TAG_VERSION?=latest | ||
IMAGE_SRC?=https://github.com/radius-project/radius | ||
MANIFEST_DIR?=deploy/manifest/built-in-providers/self-hosted | ||
|
||
##@ Docker Images | ||
|
||
|
@@ -106,6 +107,17 @@ APPS_MAP := ucpd:./deploy/images/ucpd \ | |
testrp:./test/testrp \ | ||
magpiego:./test/magpiego | ||
|
||
# copy_manifests copies the manifests to the output directory | ||
.PHONY: copy-manifests | ||
copy-manifests: | ||
@if [ ! -d "$(MANIFEST_DIR)" ] || [ -z "$$(ls -A $(MANIFEST_DIR))" ]; then \ | ||
echo "MANIFEST_DIR '$(MANIFEST_DIR)' does not exist or is empty"; \ | ||
exit 1; \ | ||
fi | ||
@mkdir -p $(OUT_DIR)/manifest/built-in-providers/ | ||
@echo "Copying manifests from $(MANIFEST_DIR) to $(OUT_DIR)/manifest/built-in-providers/" | ||
@cp -v $(MANIFEST_DIR)/* $(OUT_DIR)/manifest/built-in-providers/ | ||
|
||
# Function to extract the name and the directory of the Dockerfile from the app string | ||
define parseApp | ||
$(eval NAME := $(shell echo $(1) | cut -d: -f1)) | ||
|
@@ -132,15 +144,15 @@ DOCKER_PUSH_MULTI_TARGETS := $(foreach APP,$(APPS_MAP),$(eval $(call parseApp,$( | |
|
||
# targets to build development images | ||
.PHONY: docker-build | ||
docker-build: $(DOCKER_BUILD_TARGETS) ## Builds all Docker images. | ||
docker-build: copy-manifests $(DOCKER_BUILD_TARGETS) ## Builds all Docker images. | ||
|
||
.PHONY: docker-push | ||
docker-push: $(DOCKER_PUSH_TARGETS) ## Pushes all Docker images (without building). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we need a copy-manifests here too? at line #149 .PHONY: docker-push There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not needed since it pushes images without building. the manifests are needed to be copied over when building images. |
||
|
||
# targets to build and push multi arch images. If you run this target in your machine, | ||
# ensure you have qemu and buildx installed by running make configure-buildx. | ||
.PHONY: docker-multi-arch-build | ||
docker-multi-arch-build: $(DOCKER_BUILD_MULTI_TARGETS) ## Builds all docker images for multiple architectures. | ||
docker-multi-arch-build: copy-manifests $(DOCKER_BUILD_MULTI_TARGETS) ## Builds all docker images for multiple architectures. | ||
|
||
.PHONY: docker-multi-arch-push | ||
docker-multi-arch-push: $(DOCKER_PUSH_MULTI_TARGETS) ## Pushes all docker images for multiple architectures after building. | ||
docker-multi-arch-push: copy-manifests $(DOCKER_PUSH_MULTI_TARGETS) ## Pushes all docker images for multiple architectures after building. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,40 @@ | ||
name: Applications.Core | ||
location: | ||
global: | ||
"http://localhost:8080" | ||
types: | ||
containers: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: [] | ||
applications: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: [] | ||
environments: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: [] | ||
gateways: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: [] | ||
secretStores: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: [] | ||
extenders: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] | ||
volumes: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: [] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
name: Applications.Dapr | ||
location: | ||
global: | ||
"http://localhost:8080" | ||
types: | ||
configurationStores: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] | ||
pubSubBrokers: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] | ||
secretStores: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] | ||
stateStores: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
name: Applications.Datastores | ||
location: | ||
global: | ||
"http://localhost:8080" | ||
types: | ||
mongoDatabases: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] | ||
sqlDatabases: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] | ||
redisCaches: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
name: Applications.Messaging | ||
location: | ||
global: | ||
"http://localhost:8080" | ||
types: | ||
rabbitMQQueues: | ||
apiVersions: | ||
"2025-01-01-preview": | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Microsoft.Resources | ||
location: | ||
global: | ||
"http://localhost:5017" | ||
types: | ||
deployments: | ||
apiVersions: | ||
"2020-10-01": | ||
schema: {} | ||
"2022-09-01": | ||
schema: {} | ||
capabilities: [] |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Applications.Core | ||
location: | ||
global: | ||
"http://applications-rp.radius-system:5443" | ||
types: | ||
containers: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: [] | ||
applications: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: [] | ||
environments: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: [] | ||
gateways: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: [] | ||
secretStores: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: [] | ||
extenders: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] | ||
volumes: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: [] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Applications.Dapr | ||
location: | ||
global: | ||
"http://applications-rp.radius-system:5443" | ||
types: | ||
configurationStores: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] | ||
pubSubBrokers: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] | ||
secretStores: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] | ||
stateStores: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Applications.Datastores | ||
location: | ||
global: | ||
"http://applications-rp.radius-system:5443" | ||
types: | ||
mongoDatabases: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] | ||
sqlDatabases: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] | ||
redisCaches: | ||
apiVersions: | ||
"2023-10-01-preview": | ||
schema: {} | ||
capabilities: ["SupportsRecipes"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be the case if the
rad install
command above succeeds. There should be a UCP pod for sure. Otherwise, we have a problem.