diff --git a/src/test/ks-core/README.md b/src/test/ks-core/README.md index 0ddb5b5b..2afcd05e 100644 --- a/src/test/ks-core/README.md +++ b/src/test/ks-core/README.md @@ -19,4 +19,15 @@ do kubectl annotate $i meta.helm.sh/release-name=ks-core --overwrite kubectl annotate $i meta.helm.sh/release-namespace=kubesphere-system --overwrite done + +items=$(kubectl get workspacetemplate -o jsonpath='{.items[*].metadata.name}') + +for i in $items +do + network_isolation=$(kubectl get workspacetemplate $i -o jsonpath='{.spec.template.spec.networkIsolation}') + + if [ "$network_isolation" == "true" ]; then + kubectl annotate workspacetemplate $i kubesphere.io/network-isolate=enabled --overwrite + fi +done ``` \ No newline at end of file diff --git a/src/test/ks-core/crds/extensions.kubesphere.io_reverseproxies.yaml b/src/test/ks-core/crds/extensions.kubesphere.io_reverseproxies.yaml index e277f197..c5a52b77 100644 --- a/src/test/ks-core/crds/extensions.kubesphere.io_reverseproxies.yaml +++ b/src/test/ks-core/crds/extensions.kubesphere.io_reverseproxies.yaml @@ -37,10 +37,6 @@ spec: authProxy: description: Add auth proxy header to requests type: boolean - changeOrigin: - description: Change Host header for name-based virtual hosted - sites. - type: boolean headerDown: description: Sets, adds (with the + prefix), deletes (with the - prefix), or performs a replacement (by using two arguments, @@ -57,11 +53,6 @@ spec: items: type: string type: array - interceptRedirects: - description: InterceptRedirects determines whether the proxy should - sniff backend responses for redirects, only allows redirects - to the same host. Deprecated, https://github.com/kubernetes/kubernetes/pull/106830 - type: boolean method: description: Changes the request's HTTP verb. type: string @@ -69,6 +60,9 @@ spec: items: type: string type: array + rejectForwardingRedirects: + description: Reject to forward redirect response + type: boolean replace: items: type: string