Skip to content

Commit 8542a11

Browse files
authored
feat: release test-0.0.0-dev from release-image workflow
Signed-off-by: GitHub <noreply@github.com>
1 parent 9f337c7 commit 8542a11

File tree

91 files changed

+16432
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+16432
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: v2
2+
name: atlas-advanced
3+
description: This chart showcases Atlas Advanced (dedicated) deployment
4+
5+
type: application
6+
7+
version: 1.0.0
8+
9+
keywords:
10+
- mongodb
11+
- database
12+
- nosql
13+
home: https://github.com/mongodb/mongodb-atlas-kubernetes
14+
icon: https://webimages.mongodb.com/_com_assets/cms/kuyjf3vea2hg34taa-horizontal_default_slate_blue.svg
15+
appVersion: "2.4.1"
16+
maintainers:
17+
- name: MongoDB
18+
email: support@mongodb.com
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{{/*
2+
Expand the name of the chart.
3+
*/}}
4+
{{- define "atlas-advanced.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
6+
{{- end }}
7+
8+
{{/*
9+
Create a default fully qualified app name.
10+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+
If release name contains chart name it will be used as a full name.
12+
*/}}
13+
{{- define "atlas-advanced.fullname" -}}
14+
{{- if .Values.deployment.name }}
15+
{{- .Values.deployment.name | trunc 63 | trimSuffix "-" }}
16+
{{- else }}
17+
{{- $name := default .Chart.Name .Values.deployment.name }}
18+
{{- if contains $name .Release.Name }}
19+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
20+
{{- else }}
21+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22+
{{- end }}
23+
{{- end }}
24+
{{- end }}
25+
26+
{{- define "atlas-advanced.projectfullname" -}}
27+
{{- if .Values.project.name }}
28+
{{- .Values.project.name | trunc 63 | trimSuffix "-" }}
29+
{{- else }}
30+
{{- $name := default .Chart.Name .Values.project.name }}
31+
{{- if contains $name .Release.Name }}
32+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
33+
{{- else }}
34+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
35+
{{- end }}
36+
{{- end }}
37+
{{- end }}
38+
39+
{{/*
40+
Create chart name and version as used by the chart label.
41+
*/}}
42+
{{- define "atlas-advanced.chart" -}}
43+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
44+
{{- end }}
45+
46+
{{/*
47+
Common labels
48+
*/}}
49+
{{- define "atlas-advanced.labels" -}}
50+
helm.sh/chart: {{ include "atlas-advanced.chart" . }}
51+
{{ include "atlas-advanced.selectorLabels" . }}
52+
{{- if .Chart.AppVersion }}
53+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
54+
{{- end }}
55+
app.kubernetes.io/managed-by: {{ .Release.Service }}
56+
{{- end }}
57+
58+
{{/*
59+
Selector labels
60+
*/}}
61+
{{- define "atlas-advanced.selectorLabels" -}}
62+
app.kubernetes.io/name: {{ include "atlas-advanced.name" . }}
63+
app.kubernetes.io/instance: {{ .Release.Name }}
64+
{{- end }}
65+
66+
{{- define "generateRandomString" -}}
67+
{{ randAlphaNum 5 }}
68+
{{- end }}
69+
70+
{{- define "getInstanceSizeOrFail" -}}
71+
{{- $arg := . -}}
72+
{{ $instances := list "M10" "M20" "M30" "M40" "M50" "M60" "M80" "M100" "M140" "M200" "M300" "R40" "R50" "R60" "R80" "R200" "R300" "R400" "R700" "M40_NVME" "M50_NVME" "M60_NVME" "M80_NVME" "M200_NVME" "M400_NVME" }}
73+
{{- if not (has (toString $arg) $instances)}}
74+
{{- fail (printf "Instance size can only be one of: %s " (join "," $instances)) }}
75+
{{- end }}
76+
{{- $arg -}}
77+
{{- end }}
78+
79+
{{- define "getProviderNameOrFail" -}}
80+
{{- $arg := . -}}
81+
{{ $providers := list "AWS" "GCP" "AZURE" }}
82+
{{- if not (has (toString $arg) $providers) }}
83+
{{- fail (printf "Provider name can only be one of: %s. Got %s" (join "," $providers) $arg) }}
84+
{{- end }}
85+
{{- $arg -}}
86+
{{- end }}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apiVersion: atlas.mongodb.com/v1
2+
kind: AtlasDeployment
3+
metadata:
4+
name: {{ include "atlas-advanced.fullname" $ }}
5+
labels:
6+
{{- include "atlas-advanced.labels" $ | nindent 4 }}
7+
namespace: {{ $.Release.Namespace }}
8+
spec:
9+
projectRef:
10+
name: {{ include "atlas-advanced.projectfullname" $ }}
11+
namespace: {{ $.Release.Namespace }}
12+
deploymentSpec:
13+
name: {{ include "atlas-advanced.fullname" $ }}
14+
clusterType: REPLICASET
15+
replicationSpecs:
16+
- zoneName: Zone 1
17+
regionConfigs:
18+
{{- range $idx, $val := index .Values.deployment.regions }}
19+
- regionName: {{ $val.name }}
20+
electableSpecs:
21+
instanceSize: {{ include "getInstanceSizeOrFail" $val.instanceSize }}
22+
nodeCount: {{ $val.nodeCount }}
23+
providerName: {{ include "getProviderNameOrFail" $val.providerName }}
24+
backingProviderName: {{ include "getProviderNameOrFail" $val.providerName }}
25+
priority: {{ $val.priority }}
26+
{{- if $val.autoscaling.enabled }}
27+
autoScaling:
28+
compute:
29+
enabled: true
30+
minInstanceSize: {{ include "getInstanceSizeOrFail" $val.autoscaling.min }}
31+
maxInstanceSize: {{ include "getInstanceSizeOrFail" $val.autoscaling.max }}
32+
{{- end }}
33+
{{- end }}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: {{ include "atlas-advanced.fullname" $ }}-{{ .Values.dbUser.name }}
5+
namespace: {{ $.Release.Namespace }}
6+
labels:
7+
atlas.mongodb.com/type: "credentials"
8+
{{- include "atlas-advanced.labels" $ | nindent 4 }}
9+
type: Opaque
10+
stringData:
11+
password: {{ .Values.dbUser.password | default (randAlphaNum 32 | b64enc)| quote }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: atlas.mongodb.com/v1
2+
kind: AtlasDatabaseUser
3+
metadata:
4+
name: {{ include "atlas-advanced.fullname" $ }}-{{ .Values.dbUser.name }}
5+
namespace: {{ $.Release.Namespace }}
6+
labels:
7+
{{- include "atlas-advanced.labels" $ | nindent 4 }}
8+
spec:
9+
username: {{ .Values.dbUser.name }}
10+
databaseName: {{ .Values.dbUser.databaseName }}
11+
passwordSecretRef:
12+
name: {{ include "atlas-advanced.fullname" $ }}-{{ .Values.dbUser.name }}
13+
projectRef:
14+
name: {{ include "atlas-advanced.projectfullname" $ }}
15+
namespace: {{ $.Release.Namespace }}
16+
roles:
17+
- roleName: "readWriteAnyDatabase"
18+
databaseName: "admin"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: atlas.mongodb.com/v1
2+
kind: AtlasProject
3+
metadata:
4+
name: {{ include "atlas-advanced.projectfullname" . }}
5+
namespace: {{ .Release.Namespace }}
6+
labels:
7+
{{- include "atlas-advanced.labels" . | nindent 4 }}
8+
spec:
9+
name: {{ include "atlas-advanced.projectfullname" . }}
10+
connectionSecretRef:
11+
name: {{ include "atlas-advanced.fullname" . }}-secret
12+
namespace: {{ $.Release.Namespace }}
13+
projectIpAccessList:
14+
- comment: "Example"
15+
cidrBlock: {{ .Values.project.cidrEntry }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Secret
3+
type: Opaque
4+
metadata:
5+
name: {{ include "atlas-advanced.fullname" . }}-secret
6+
namespace: {{ .Release.Namespace }}
7+
labels:
8+
atlas.mongodb.com/type: "credentials"
9+
data:
10+
orgId: {{ .Values.secret.orgID | b64enc }}
11+
publicApiKey: {{ .Values.secret.publicKey | b64enc }}
12+
privateApiKey: {{ .Values.secret.privateKey | b64enc }}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
secret:
2+
orgID: ""
3+
privateKey: ""
4+
publicKey: ""
5+
6+
project:
7+
name: ""
8+
cidrEntry: 0.0.0.0/0
9+
10+
deployment:
11+
regions:
12+
# For AWS: "US_GOV_WEST_1" "US_GOV_EAST_1" "US_EAST_1" "US_EAST_2" "US_WEST_1" "US_WEST_2" "CA_CENTRAL_1" "EU_NORTH_1" "EU_WEST_1" "EU_WEST_2" "EU_WEST_3" "EU_CENTRAL_1" "EU_CENTRAL_2" "AP_EAST_1" "AP_NORTHEAST_1" "AP_NORTHEAST_2" "AP_NORTHEAST_3" "AP_SOUTHEAST_1" "AP_SOUTHEAST_2" "AP_SOUTHEAST_3" "AP_SOUTHEAST_4" "AP_SOUTH_1" "AP_SOUTH_2" "SA_EAST_1" "CN_NORTH_1" "CN_NORTHWEST_1" "ME_SOUTH_1" "ME_CENTRAL_1" "AF_SOUTH_1" "EU_SOUTH_1" "EU_SOUTH_2" "IL_CENTRAL_1" "CA_WEST_1" "GLOBAL"
13+
# For GCP: "EASTERN_US" "EASTERN_US_AW" "US_EAST_4" "US_EAST_4_AW" "US_EAST_5" "US_EAST_5_AW" "US_WEST_2" "US_WEST_2_AW" "US_WEST_3" "US_WEST_3_AW" "US_WEST_4" "US_WEST_4_AW" "US_SOUTH_1" "US_SOUTH_1_AW" "CENTRAL_US" "CENTRAL_US_AW" "WESTERN_US" "WESTERN_US_AW" "NORTH_AMERICA_NORTHEAST_1" "NORTH_AMERICA_NORTHEAST_2" "SOUTH_AMERICA_EAST_1" "SOUTH_AMERICA_WEST_1" "WESTERN_EUROPE" "EUROPE_NORTH_1" "EUROPE_WEST_2" "EUROPE_WEST_3" "EUROPE_WEST_4" "EUROPE_WEST_6" "EUROPE_WEST_8" "EUROPE_WEST_9" "EUROPE_WEST_10" "EUROPE_WEST_12" "EUROPE_SOUTHWEST_1" "EUROPE_CENTRAL_2" "MIDDLE_EAST_CENTRAL_1" "MIDDLE_EAST_CENTRAL_2" "MIDDLE_EAST_WEST_1" "AUSTRALIA_SOUTHEAST_1" "AUSTRALIA_SOUTHEAST_2" "EASTERN_ASIA_PACIFIC" "NORTHEASTERN_ASIA_PACIFIC" "SOUTHEASTERN_ASIA_PACIFIC" "ASIA_EAST_2" "ASIA_NORTHEAST_2" "ASIA_NORTHEAST_3" "ASIA_SOUTH_1" "ASIA_SOUTH_2" "ASIA_SOUTHEAST_2"
14+
# FOR AZURE: "US_CENTRAL" "US_EAST" "US_EAST_2" "US_NORTH_CENTRAL" "US_WEST" "US_SOUTH_CENTRAL" "EUROPE_NORTH" "EUROPE_WEST" "US_WEST_CENTRAL" "US_WEST_2" "US_WEST_3" "CANADA_EAST" "CANADA_CENTRAL" "BRAZIL_SOUTH" "BRAZIL_SOUTHEAST" "AUSTRALIA_CENTRAL" "AUSTRALIA_CENTRAL_2" "AUSTRALIA_EAST" "AUSTRALIA_SOUTH_EAST" "GERMANY_CENTRAL" "GERMANY_NORTH_EAST" "GERMANY_WEST_CENTRAL" "GERMANY_NORTH" "SWEDEN_CENTRAL" "SWEDEN_SOUTH" "SWITZERLAND_NORTH" "SWITZERLAND_WEST" "UK_SOUTH" "UK_WEST" "NORWAY_EAST" "NORWAY_WEST" "INDIA_CENTRAL" "INDIA_SOUTH" "INDIA_WEST" "CHINA_EAST" "CHINA_NORTH" "ASIA_EAST" "JAPAN_EAST" "JAPAN_WEST" "ASIA_SOUTH_EAST" "KOREA_CENTRAL" "KOREA_SOUTH" "FRANCE_CENTRAL" "FRANCE_SOUTH" "SOUTH_AFRICA_NORTH" "SOUTH_AFRICA_WEST" "UAE_CENTRAL" "UAE_NORTH" "QATAR_CENTRAL"
15+
# See the up to date list of regions and providers here: https://www.mongodb.com/docs/atlas/cloud-providers-regions/
16+
- name: US_EAST_1
17+
providerName: AWS
18+
instanceSize: M10
19+
nodeCount: 2
20+
priority: 7
21+
autoscaling:
22+
enabled: true
23+
min: M10
24+
max: M20
25+
# For AWS: "US_GOV_WEST_1" "US_GOV_EAST_1" "US_EAST_1" "US_EAST_2" "US_WEST_1" "US_WEST_2" "CA_CENTRAL_1" "EU_NORTH_1" "EU_WEST_1" "EU_WEST_2" "EU_WEST_3" "EU_CENTRAL_1" "EU_CENTRAL_2" "AP_EAST_1" "AP_NORTHEAST_1" "AP_NORTHEAST_2" "AP_NORTHEAST_3" "AP_SOUTHEAST_1" "AP_SOUTHEAST_2" "AP_SOUTHEAST_3" "AP_SOUTHEAST_4" "AP_SOUTH_1" "AP_SOUTH_2" "SA_EAST_1" "CN_NORTH_1" "CN_NORTHWEST_1" "ME_SOUTH_1" "ME_CENTRAL_1" "AF_SOUTH_1" "EU_SOUTH_1" "EU_SOUTH_2" "IL_CENTRAL_1" "CA_WEST_1" "GLOBAL"
26+
# For GCP: "EASTERN_US" "EASTERN_US_AW" "US_EAST_4" "US_EAST_4_AW" "US_EAST_5" "US_EAST_5_AW" "US_WEST_2" "US_WEST_2_AW" "US_WEST_3" "US_WEST_3_AW" "US_WEST_4" "US_WEST_4_AW" "US_SOUTH_1" "US_SOUTH_1_AW" "CENTRAL_US" "CENTRAL_US_AW" "WESTERN_US" "WESTERN_US_AW" "NORTH_AMERICA_NORTHEAST_1" "NORTH_AMERICA_NORTHEAST_2" "SOUTH_AMERICA_EAST_1" "SOUTH_AMERICA_WEST_1" "WESTERN_EUROPE" "EUROPE_NORTH_1" "EUROPE_WEST_2" "EUROPE_WEST_3" "EUROPE_WEST_4" "EUROPE_WEST_6" "EUROPE_WEST_8" "EUROPE_WEST_9" "EUROPE_WEST_10" "EUROPE_WEST_12" "EUROPE_SOUTHWEST_1" "EUROPE_CENTRAL_2" "MIDDLE_EAST_CENTRAL_1" "MIDDLE_EAST_CENTRAL_2" "MIDDLE_EAST_WEST_1" "AUSTRALIA_SOUTHEAST_1" "AUSTRALIA_SOUTHEAST_2" "EASTERN_ASIA_PACIFIC" "NORTHEASTERN_ASIA_PACIFIC" "SOUTHEASTERN_ASIA_PACIFIC" "ASIA_EAST_2" "ASIA_NORTHEAST_2" "ASIA_NORTHEAST_3" "ASIA_SOUTH_1" "ASIA_SOUTH_2" "ASIA_SOUTHEAST_2"
27+
# FOR AZURE: "US_CENTRAL" "US_EAST" "US_EAST_2" "US_NORTH_CENTRAL" "US_WEST" "US_SOUTH_CENTRAL" "EUROPE_NORTH" "EUROPE_WEST" "US_WEST_CENTRAL" "US_WEST_2" "US_WEST_3" "CANADA_EAST" "CANADA_CENTRAL" "BRAZIL_SOUTH" "BRAZIL_SOUTHEAST" "AUSTRALIA_CENTRAL" "AUSTRALIA_CENTRAL_2" "AUSTRALIA_EAST" "AUSTRALIA_SOUTH_EAST" "GERMANY_CENTRAL" "GERMANY_NORTH_EAST" "GERMANY_WEST_CENTRAL" "GERMANY_NORTH" "SWEDEN_CENTRAL" "SWEDEN_SOUTH" "SWITZERLAND_NORTH" "SWITZERLAND_WEST" "UK_SOUTH" "UK_WEST" "NORWAY_EAST" "NORWAY_WEST" "INDIA_CENTRAL" "INDIA_SOUTH" "INDIA_WEST" "CHINA_EAST" "CHINA_NORTH" "ASIA_EAST" "JAPAN_EAST" "JAPAN_WEST" "ASIA_SOUTH_EAST" "KOREA_CENTRAL" "KOREA_SOUTH" "FRANCE_CENTRAL" "FRANCE_SOUTH" "SOUTH_AFRICA_NORTH" "SOUTH_AFRICA_WEST" "UAE_CENTRAL" "UAE_NORTH" "QATAR_CENTRAL"
28+
# See the up to date list of regions and providers here: https://www.mongodb.com/docs/atlas/cloud-providers-regions/
29+
- name: EUROPE_WEST_2
30+
providerName: GCP
31+
instanceSize: M10
32+
priority: 6
33+
nodeCount: 1
34+
autoscaling:
35+
enabled: true
36+
min: M10
37+
max: M20
38+
name: ""
39+
40+
dbUser:
41+
name: admin
42+
databaseName: admin
43+
password: ""
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

0 commit comments

Comments
 (0)