-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from quanxiang-cloud/add-storage
v2.0.0 realese
- Loading branch information
Showing
178 changed files
with
11,027 additions
and
2,981 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 21 additions & 2 deletions
23
deployment/deployment/middleware_deployment/elasticsearch/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
tests/ | ||
.pytest_cache/ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
9 changes: 9 additions & 0 deletions
9
deployment/deployment/middleware_deployment/elasticsearch/Chart.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
dependencies: | ||
- name: kibana | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 9.3.15 | ||
- name: common | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 1.13.0 | ||
digest: sha256:1d02c4ef6cdafdd3119d5b7b4d95fa62ef8dd4d30c075d56133fff2e231b6449 | ||
generated: "2022-04-03T09:18:01.109969744Z" |
34 changes: 25 additions & 9 deletions
34
deployment/deployment/middleware_deployment/elasticsearch/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,28 @@ | ||
apiVersion: v1 | ||
appVersion: 7.15.0 | ||
description: Official Elastic helm chart for Elasticsearch | ||
home: https://github.com/elastic/helm-charts | ||
icon: https://helm.elastic.co/icons/elasticsearch.png | ||
annotations: | ||
category: Analytics | ||
apiVersion: v2 | ||
appVersion: 7.17.2 | ||
dependencies: | ||
- condition: global.kibanaEnabled | ||
name: kibana | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 9.x.x | ||
- name: common | ||
repository: https://charts.bitnami.com/bitnami | ||
tags: | ||
- bitnami-common | ||
version: 1.x.x | ||
description: Elasticsearch is a distributed search and analytics engine. It is used | ||
for web search, log monitoring, and real-time analytics. Ideal for Big Data applications. | ||
home: https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch | ||
icon: https://bitnami.com/assets/stacks/elasticsearch/img/elasticsearch-stack-220x234.png | ||
keywords: | ||
- elasticsearch | ||
maintainers: | ||
- email: helm-charts@elastic.co | ||
name: Elastic | ||
- email: containers@bitnami.com | ||
name: Bitnami | ||
name: elasticsearch | ||
sources: | ||
- https://github.com/elastic/elasticsearch | ||
version: 7.15.0 | ||
- https://github.com/bitnami/bitnami-docker-elasticsearch | ||
- https://www.elastic.co/products/elasticsearch | ||
version: 17.9.24 |
1 change: 0 additions & 1 deletion
1
deployment/deployment/middleware_deployment/elasticsearch/Makefile
This file was deleted.
Oops, something went wrong.
1,187 changes: 794 additions & 393 deletions
1,187
deployment/deployment/middleware_deployment/elasticsearch/README.md
Large diffs are not rendered by default.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
deployment/deployment/middleware_deployment/elasticsearch/charts/common/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
23 changes: 23 additions & 0 deletions
23
deployment/deployment/middleware_deployment/elasticsearch/charts/common/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
annotations: | ||
category: Infrastructure | ||
apiVersion: v2 | ||
appVersion: 1.13.0 | ||
description: A Library Helm Chart for grouping common logic between bitnami charts. | ||
This chart is not deployable by itself. | ||
home: https://github.com/bitnami/charts/tree/master/bitnami/common | ||
icon: https://bitnami.com/downloads/logos/bitnami-mark.png | ||
keywords: | ||
- common | ||
- helper | ||
- template | ||
- function | ||
- bitnami | ||
maintainers: | ||
- email: containers@bitnami.com | ||
name: Bitnami | ||
name: common | ||
sources: | ||
- https://github.com/bitnami/charts | ||
- https://www.bitnami.com/ | ||
type: library | ||
version: 1.13.0 |
347 changes: 347 additions & 0 deletions
347
deployment/deployment/middleware_deployment/elasticsearch/charts/common/README.md
Large diffs are not rendered by default.
Oops, something went wrong.
102 changes: 102 additions & 0 deletions
102
...nt/deployment/middleware_deployment/elasticsearch/charts/common/templates/_affinities.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
|
||
{{/* | ||
Return a soft nodeAffinity definition | ||
{{ include "common.affinities.nodes.soft" (dict "key" "FOO" "values" (list "BAR" "BAZ")) -}} | ||
*/}} | ||
{{- define "common.affinities.nodes.soft" -}} | ||
preferredDuringSchedulingIgnoredDuringExecution: | ||
- preference: | ||
matchExpressions: | ||
- key: {{ .key }} | ||
operator: In | ||
values: | ||
{{- range .values }} | ||
- {{ . | quote }} | ||
{{- end }} | ||
weight: 1 | ||
{{- end -}} | ||
|
||
{{/* | ||
Return a hard nodeAffinity definition | ||
{{ include "common.affinities.nodes.hard" (dict "key" "FOO" "values" (list "BAR" "BAZ")) -}} | ||
*/}} | ||
{{- define "common.affinities.nodes.hard" -}} | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: {{ .key }} | ||
operator: In | ||
values: | ||
{{- range .values }} | ||
- {{ . | quote }} | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return a nodeAffinity definition | ||
{{ include "common.affinities.nodes" (dict "type" "soft" "key" "FOO" "values" (list "BAR" "BAZ")) -}} | ||
*/}} | ||
{{- define "common.affinities.nodes" -}} | ||
{{- if eq .type "soft" }} | ||
{{- include "common.affinities.nodes.soft" . -}} | ||
{{- else if eq .type "hard" }} | ||
{{- include "common.affinities.nodes.hard" . -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return a soft podAffinity/podAntiAffinity definition | ||
{{ include "common.affinities.pods.soft" (dict "component" "FOO" "extraMatchLabels" .Values.extraMatchLabels "context" $) -}} | ||
*/}} | ||
{{- define "common.affinities.pods.soft" -}} | ||
{{- $component := default "" .component -}} | ||
{{- $extraMatchLabels := default (dict) .extraMatchLabels -}} | ||
preferredDuringSchedulingIgnoredDuringExecution: | ||
- podAffinityTerm: | ||
labelSelector: | ||
matchLabels: {{- (include "common.labels.matchLabels" .context) | nindent 10 }} | ||
{{- if not (empty $component) }} | ||
{{ printf "app.kubernetes.io/component: %s" $component }} | ||
{{- end }} | ||
{{- range $key, $value := $extraMatchLabels }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
namespaces: | ||
- {{ .context.Release.Namespace | quote }} | ||
topologyKey: kubernetes.io/hostname | ||
weight: 1 | ||
{{- end -}} | ||
|
||
{{/* | ||
Return a hard podAffinity/podAntiAffinity definition | ||
{{ include "common.affinities.pods.hard" (dict "component" "FOO" "extraMatchLabels" .Values.extraMatchLabels "context" $) -}} | ||
*/}} | ||
{{- define "common.affinities.pods.hard" -}} | ||
{{- $component := default "" .component -}} | ||
{{- $extraMatchLabels := default (dict) .extraMatchLabels -}} | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
- labelSelector: | ||
matchLabels: {{- (include "common.labels.matchLabels" .context) | nindent 8 }} | ||
{{- if not (empty $component) }} | ||
{{ printf "app.kubernetes.io/component: %s" $component }} | ||
{{- end }} | ||
{{- range $key, $value := $extraMatchLabels }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
namespaces: | ||
- {{ .context.Release.Namespace | quote }} | ||
topologyKey: kubernetes.io/hostname | ||
{{- end -}} | ||
|
||
{{/* | ||
Return a podAffinity/podAntiAffinity definition | ||
{{ include "common.affinities.pods" (dict "type" "soft" "key" "FOO" "values" (list "BAR" "BAZ")) -}} | ||
*/}} | ||
{{- define "common.affinities.pods" -}} | ||
{{- if eq .type "soft" }} | ||
{{- include "common.affinities.pods.soft" . -}} | ||
{{- else if eq .type "hard" }} | ||
{{- include "common.affinities.pods.hard" . -}} | ||
{{- end -}} | ||
{{- end -}} |
139 changes: 139 additions & 0 deletions
139
.../deployment/middleware_deployment/elasticsearch/charts/common/templates/_capabilities.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
|
||
{{/* | ||
Return the target Kubernetes version | ||
*/}} | ||
{{- define "common.capabilities.kubeVersion" -}} | ||
{{- if .Values.global }} | ||
{{- if .Values.global.kubeVersion }} | ||
{{- .Values.global.kubeVersion -}} | ||
{{- else }} | ||
{{- default .Capabilities.KubeVersion.Version .Values.kubeVersion -}} | ||
{{- end -}} | ||
{{- else }} | ||
{{- default .Capabilities.KubeVersion.Version .Values.kubeVersion -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the appropriate apiVersion for poddisruptionbudget. | ||
*/}} | ||
{{- define "common.capabilities.policy.apiVersion" -}} | ||
{{- if semverCompare "<1.21-0" (include "common.capabilities.kubeVersion" .) -}} | ||
{{- print "policy/v1beta1" -}} | ||
{{- else -}} | ||
{{- print "policy/v1" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the appropriate apiVersion for networkpolicy. | ||
*/}} | ||
{{- define "common.capabilities.networkPolicy.apiVersion" -}} | ||
{{- if semverCompare "<1.7-0" (include "common.capabilities.kubeVersion" .) -}} | ||
{{- print "extensions/v1beta1" -}} | ||
{{- else -}} | ||
{{- print "networking.k8s.io/v1" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the appropriate apiVersion for cronjob. | ||
*/}} | ||
{{- define "common.capabilities.cronjob.apiVersion" -}} | ||
{{- if semverCompare "<1.21-0" (include "common.capabilities.kubeVersion" .) -}} | ||
{{- print "batch/v1beta1" -}} | ||
{{- else -}} | ||
{{- print "batch/v1" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the appropriate apiVersion for deployment. | ||
*/}} | ||
{{- define "common.capabilities.deployment.apiVersion" -}} | ||
{{- if semverCompare "<1.14-0" (include "common.capabilities.kubeVersion" .) -}} | ||
{{- print "extensions/v1beta1" -}} | ||
{{- else -}} | ||
{{- print "apps/v1" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the appropriate apiVersion for statefulset. | ||
*/}} | ||
{{- define "common.capabilities.statefulset.apiVersion" -}} | ||
{{- if semverCompare "<1.14-0" (include "common.capabilities.kubeVersion" .) -}} | ||
{{- print "apps/v1beta1" -}} | ||
{{- else -}} | ||
{{- print "apps/v1" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the appropriate apiVersion for ingress. | ||
*/}} | ||
{{- define "common.capabilities.ingress.apiVersion" -}} | ||
{{- if .Values.ingress -}} | ||
{{- if .Values.ingress.apiVersion -}} | ||
{{- .Values.ingress.apiVersion -}} | ||
{{- else if semverCompare "<1.14-0" (include "common.capabilities.kubeVersion" .) -}} | ||
{{- print "extensions/v1beta1" -}} | ||
{{- else if semverCompare "<1.19-0" (include "common.capabilities.kubeVersion" .) -}} | ||
{{- print "networking.k8s.io/v1beta1" -}} | ||
{{- else -}} | ||
{{- print "networking.k8s.io/v1" -}} | ||
{{- end }} | ||
{{- else if semverCompare "<1.14-0" (include "common.capabilities.kubeVersion" .) -}} | ||
{{- print "extensions/v1beta1" -}} | ||
{{- else if semverCompare "<1.19-0" (include "common.capabilities.kubeVersion" .) -}} | ||
{{- print "networking.k8s.io/v1beta1" -}} | ||
{{- else -}} | ||
{{- print "networking.k8s.io/v1" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the appropriate apiVersion for RBAC resources. | ||
*/}} | ||
{{- define "common.capabilities.rbac.apiVersion" -}} | ||
{{- if semverCompare "<1.17-0" (include "common.capabilities.kubeVersion" .) -}} | ||
{{- print "rbac.authorization.k8s.io/v1beta1" -}} | ||
{{- else -}} | ||
{{- print "rbac.authorization.k8s.io/v1" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the appropriate apiVersion for CRDs. | ||
*/}} | ||
{{- define "common.capabilities.crd.apiVersion" -}} | ||
{{- if semverCompare "<1.19-0" (include "common.capabilities.kubeVersion" .) -}} | ||
{{- print "apiextensions.k8s.io/v1beta1" -}} | ||
{{- else -}} | ||
{{- print "apiextensions.k8s.io/v1" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the appropriate apiVersion for APIService. | ||
*/}} | ||
{{- define "common.capabilities.apiService.apiVersion" -}} | ||
{{- if semverCompare "<1.10-0" (include "common.capabilities.kubeVersion" .) -}} | ||
{{- print "apiregistration.k8s.io/v1beta1" -}} | ||
{{- else -}} | ||
{{- print "apiregistration.k8s.io/v1" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Returns true if the used Helm version is 3.3+. | ||
A way to check the used Helm version was not introduced until version 3.3.0 with .Capabilities.HelmVersion, which contains an additional "{}}" structure. | ||
This check is introduced as a regexMatch instead of {{ if .Capabilities.HelmVersion }} because checking for the key HelmVersion in <3.3 results in a "interface not found" error. | ||
**To be removed when the catalog's minimun Helm version is 3.3** | ||
*/}} | ||
{{- define "common.capabilities.supportsHelmVersion" -}} | ||
{{- if regexMatch "{(v[0-9])*[^}]*}}$" (.Capabilities | toString ) }} | ||
{{- true -}} | ||
{{- end -}} | ||
{{- end -}} |
Oops, something went wrong.