Skip to content

Commit

Permalink
Add istio revision on namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ReToCode committed Aug 6, 2024
1 parent 0a53447 commit 4a459c0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
3 changes: 1 addition & 2 deletions hack/lib/mesh.bash
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function deploy_gateways {
-in "${out_dir}"/wildcard.csr \
-out "${out_dir}"/wildcard.crt

oc get ns knative-serving-ingress || oc create namespace knative-serving-ingress
oc apply -f "${resources_dir}"/namespace.yaml || return $?

oc create -n knative-serving-ingress secret tls wildcard-certs \
--key="${out_dir}"/wildcard.key \
Expand All @@ -119,7 +119,6 @@ function deploy_gateways {
--key="${out_dir}"/wildcard.key \
--cert="${out_dir}"/wildcard.crt --dry-run=client -o yaml | oc apply -f -

oc apply -f "${resources_dir}"/namespace.yaml || return $?
oc apply -f "${resources_dir}"/gateway-deploy.yaml || return $?
oc apply -f "${resources_dir}"/gateway.yaml || return $?
oc apply -f "${resources_dir}"/authorization-policies/setup || return $?
Expand Down
31 changes: 31 additions & 0 deletions hack/lib/mesh_resources/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,59 +2,90 @@ apiVersion: v1
kind: Namespace
metadata:
name: knative-serving
labels:
istio.io/rev: knative-istio
---
apiVersion: v1
kind: Namespace
metadata:
name: knative-serving-ingress
labels:
istio.io/rev: knative-istio
---
apiVersion: v1
kind: Namespace
metadata:
name: knative-eventing
labels:
istio.io/rev: knative-istio
---
apiVersion: v1
kind: Namespace
metadata:
name: serving-tests
labels:
istio.io/rev: knative-istio
---
apiVersion: v1
kind: Namespace
metadata:
name: serving-tests-alt
labels:
istio.io/rev: knative-istio
---
apiVersion: v1
kind: Namespace
metadata:
name: serverless-tests
labels:
istio.io/rev: knative-istio
---
# Additional namespaces for upgrade tests
apiVersion: v1
kind: Namespace
metadata:
name: eventing-e2e0
labels:
istio.io/rev: knative-istio
---
apiVersion: v1
kind: Namespace
metadata:
name: eventing-e2e1
labels:
istio.io/rev: knative-istio
---
apiVersion: v1
kind: Namespace
metadata:
name: eventing-e2e2
labels:
istio.io/rev: knative-istio
---
apiVersion: v1
kind: Namespace
metadata:
name: eventing-e2e3
labels:
istio.io/rev: knative-istio
---
apiVersion: v1
kind: Namespace
metadata:
name: eventing-e2e4
labels:
istio.io/rev: knative-istio
---
apiVersion: v1
kind: Namespace
metadata:
name: tenant-1
labels:
istio.io/rev: knative-istio
---
apiVersion: v1
kind: Namespace
metadata:
name: tenant-2
labels:
istio.io/rev: knative-istio

0 comments on commit 4a459c0

Please sign in to comment.