Skip to content

Commit

Permalink
Merge pull request #344 from kubesphere/sync/ks-core
Browse files Browse the repository at this point in the history
Update ks-core helm chart
  • Loading branch information
wansir authored Dec 25, 2023
2 parents 76833e7 + 5f3dc88 commit e335617
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/test/ks-core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.1
version: 0.5.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
14 changes: 14 additions & 0 deletions src/test/ks-core/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### Upgrade from KSE 3.X

Preparing for upgrade.

```bash
ITEMS=(
"globalroles.iam.kubesphere.io/anonymous"
Expand All @@ -12,11 +14,23 @@ ITEMS=(
"globalrolebindings.iam.kubesphere.io/authenticated"
"globalrolebindings.iam.kubesphere.io/pre-registration"
"workspacetemplate.tenant.kubesphere.io/system-workspace"
"-n kubesphere-system configmap/kubesphere-config"
)
for i in "${ITEMS[@]}"
do
kubectl label $i app.kubernetes.io/managed-by=Helm --overwrite
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
```
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -57,18 +53,16 @@ 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
pathRegexp:
items:
type: string
type: array
rejectForwardingRedirects:
description: Reject to forward redirect response
type: boolean
replace:
items:
type: string
Expand Down
5 changes: 5 additions & 0 deletions src/test/ks-core/crds/kubesphere.io_extensionversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ spec:
of Kubernetes required. eg: >= 1.2.0, see https://github.com/Masterminds/semver
for more info.'
type: string
namespace:
description: Namespace represents the namespace in which the extension
is installed. If empty, it will be installed in the namespace named
extension-{name}.
type: string
provider:
additionalProperties:
description: Provider describes an extension provider.
Expand Down

0 comments on commit e335617

Please sign in to comment.