Skip to content

Commit

Permalink
Merge pull request #368 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 Mar 9, 2024
2 parents e8a7d94 + 47c9705 commit 8ea1176
Show file tree
Hide file tree
Showing 5 changed files with 22 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.6.9
version: 0.6.10

# 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
8 changes: 7 additions & 1 deletion src/test/ks-core/files/extensions.customresourcefilters.rego
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,11 @@ installedStatusMatch if {
}

enabledStatusMatch if {
input.filter.value == "true" == input.object.status.enabled
input.filter.value == "true"
input.object.status.state == "Enabled"
}

enabledStatusMatch if {
input.filter.value == "false"
input.object.status.state == "Disabled"
}
2 changes: 1 addition & 1 deletion src/test/ks-core/templates/customresourcefilters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ stringData:
{{ .Files.Get "files/extensions.customresourcefilters.rego" | indent 6 }}
kind: Secret
metadata:
name: extensions.customresourcefilters.kubesphere
name: extensions.customresourcefilters
namespace: kubesphere-system
type: config.kubesphere.io/custom-resource-filter
16 changes: 11 additions & 5 deletions src/test/ks-core/templates/kubesphere-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,15 @@ data:
{{- end }}
kubesphere:
tls: {{ .Values.internalTLS }}
{{- if .Values.devMode }}
{{- if .Values.cloud.enabled }}
telemetry:
{{- if eq .Values.cloud.env "clouddev.kubesphere.io" }}
ksCloudURL: "https://clouddev.kubesphere.io"
{{- else if eq .Values.cloud.env "kubesphere.cloud" }}
ksCloudURL: "https://kubesphere.cloud"
{{- else if and .Values.cloud.customEnv .Values.cloud.customEnv.url }}
ksCloudURL: {{ $.Values.cloud.customEnv.url | quote }}
{{- end }}
{{- end }}
{{- if .Values.ha.enabled -}}
{{- if .Values.ha.cache }}
Expand All @@ -47,10 +53,10 @@ data:
cache:
type: redis
options:
host: redis.kubesphere-system.svc
port: 6379
password: KUBESPHERE_CACHE_OPTIONS_PASSWORD
db: 0
host: redis.kubesphere-system.svc
port: 6379
password: KUBESPHERE_CACHE_OPTIONS_PASSWORD
db: 0
{{- end }}
{{- end }}
composedApp:
Expand Down
4 changes: 2 additions & 2 deletions src/test/ks-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ nodeShell:

cloud:
enabled: true
## kubesphere.cloud or clouddev.kubesphere.io
## kubesphere.cloud clouddev.kubesphere.io or custom
env: "kubesphere.cloud"
customEnv:
customEnv: {}
# url: https://kubesphere.cloud
# subscription:
# syncPeriod: 60m
Expand Down

0 comments on commit 8ea1176

Please sign in to comment.