Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
houshengbo committed Feb 18, 2025
1 parent ec28305 commit 84d2f78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/kind-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env:
REGISTRY_NAME: registry.local
REGISTRY_PORT: 5000
KO_DOCKER_REPO: registry.local:5000/knative
GOTESTSUM_VERSION: 1.7.0
GOTESTSUM_VERSION: 1.12.0
KAPP_VERSION: 0.46.0
YTT_VERSION: 0.40.1
KO_FLAGS: --platform=linux/amd64
Expand Down Expand Up @@ -220,18 +220,18 @@ jobs:
echo "SERVER_NAME=$SERVER_NAME" >> $GITHUB_ENV
# Install the CRDs of the serving-progressive-rollout
cd ${KNATIVE_DIR}/serving-progressive-rollout
kubectl apply -f config/core/300-resources
# cd ${KNATIVE_DIR}/serving-progressive-rollout
# kubectl apply -f config/core/300-resources
# Install the ConfigMap
sed -i "s/namespace: knative-serving/namespace: $SYSTEM_NAMESPACE/" config/core/configmaps/config-rolloutorchestrator.yaml
kubectl apply -f config/core/configmaps/config-rolloutorchestrator.yaml
# sed -i "s/namespace: knative-serving/namespace: $SYSTEM_NAMESPACE/" config/core/configmaps/config-rolloutorchestrator.yaml
# kubectl apply -f config/core/configmaps/config-rolloutorchestrator.yaml
# Replace the images of the controller and the autoscaler with the ones built from the extension
export CONTROLLER_IMAGE=$(cat $HOME/artifacts/build-extension/controller | tr -d ' \t\n\r')
export AUTOSCALER_IMAGE=$(cat $HOME/artifacts/build-extension/autoscaler | tr -d ' \t\n\r')
kubectl patch deployment autoscaler -n $SYSTEM_NAMESPACE -p '{"spec":{"template":{"spec":{"containers":[{"name":"autoscaler","image":"'$AUTOSCALER_IMAGE'"}]}}}}'
kubectl patch deployment controller -n $SYSTEM_NAMESPACE -p '{"spec":{"template":{"spec":{"containers":[{"name":"controller","image":"'$CONTROLLER_IMAGE'"}]}}}}'
# export CONTROLLER_IMAGE=$(cat $HOME/artifacts/build-extension/controller | tr -d ' \t\n\r')
# export AUTOSCALER_IMAGE=$(cat $HOME/artifacts/build-extension/autoscaler | tr -d ' \t\n\r')
# kubectl patch deployment autoscaler -n $SYSTEM_NAMESPACE -p '{"spec":{"template":{"spec":{"containers":[{"name":"autoscaler","image":"'$AUTOSCALER_IMAGE'"}]}}}}'
# kubectl patch deployment controller -n $SYSTEM_NAMESPACE -p '{"spec":{"template":{"spec":{"containers":[{"name":"controller","image":"'$CONTROLLER_IMAGE'"}]}}}}'
- name: Test ${{ matrix.test-suite }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ var ctors = []injection.ControllerConstructor{
serverlessservice.NewController,
service.NewController,
gc.NewController,
domainmapping.NewController,
nscert.NewController,
rolloutorchestrator.NewController,
domainmapping.NewController,
}

func main() {
Expand Down

0 comments on commit 84d2f78

Please sign in to comment.