Skip to content
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

Update ks-core helm chart #350

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.3
version: 0.5.4

# 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
9 changes: 5 additions & 4 deletions src/test/ks-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ITEMS=(
"globalroles.iam.kubesphere.io/platform-regular"
"globalroles.iam.kubesphere.io/platform-self-provisioner"
"globalroles.iam.kubesphere.io/pre-registration"
"globalrolebindings.iam.kubesphere.io/admin"
"globalrolebindings.iam.kubesphere.io/anonymous"
"globalrolebindings.iam.kubesphere.io/authenticated"
"globalrolebindings.iam.kubesphere.io/pre-registration"
Expand All @@ -23,14 +24,14 @@ do
kubectl annotate $i meta.helm.sh/release-namespace=kubesphere-system --overwrite
done

items=$(kubectl get workspacetemplate -o jsonpath='{.items[*].metadata.name}')
items=$(kubectl get workspace -o jsonpath='{.items[*].metadata.name}')

for i in $items
do
network_isolation=$(kubectl get workspacetemplate $i -o jsonpath='{.spec.template.spec.networkIsolation}')
network_isolation=$(kubectl get workspace $i -o jsonpath='{.spec.networkIsolation}')

if [ "$network_isolation" == "true" ]; then
kubectl annotate workspacetemplate $i kubesphere.io/network-isolate=enabled --overwrite
kubectl annotate workspace $i kubesphere.io/network-isolate=enabled --overwrite
fi
done
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,16 @@ spec:
spec:
description: ApplicationSpec defines the desired state of Application
properties:
abstraction:
type: string
appHome:
type: string
appType:
type: string
attachments:
items:
type: string
type: array
icon:
type: string
type: object
Expand Down
2 changes: 1 addition & 1 deletion src/test/ks-core/crds/tenant.kubesphere.io_workspaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
singular: workspace
scope: Cluster
versions:
- name: v1alpha1
- name: v1beta1
schema:
openAPIV3Schema:
description: Workspace is the Schema for the workspaces API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
singular: workspacetemplate
scope: Cluster
versions:
- name: v1alpha2
- name: v1beta1
schema:
openAPIV3Schema:
description: WorkspaceTemplate is the Schema for the workspacetemplates API
Expand All @@ -35,29 +35,6 @@ spec:
type: object
spec:
properties:
overrides:
items:
properties:
clusterName:
type: string
clusterOverrides:
items:
properties:
op:
type: string
path:
type: string
value:
type: object
x-kubernetes-preserve-unknown-fields: true
required:
- path
type: object
type: array
required:
- clusterName
type: object
type: array
placement:
properties:
clusterSelector:
Expand Down
2 changes: 0 additions & 2 deletions src/test/ks-core/templates/oauthclient-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ stringData:
- 'openid'
- 'email'
- 'profile'
accessTokenMaxAge: 7200
accessTokenInactivityTimeout: 7200
kind: Secret
metadata:
name: oauthclient-kubesphere
Expand Down
2 changes: 1 addition & 1 deletion src/test/ks-core/templates/workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if eq .Values.role "host" }}
apiVersion: tenant.kubesphere.io/v1alpha2
apiVersion: tenant.kubesphere.io/v1beta1
kind: WorkspaceTemplate
metadata:
annotations:
Expand Down
Loading