-
Notifications
You must be signed in to change notification settings - Fork 22
Add documentdb #2124
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
Add documentdb #2124
Changes from 7 commits
007073e
b7ae3fb
b6b4de3
8eebddb
5d00589
b3a9009
ce8a679
bc01b78
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,9 @@ | |
| "DB2": [ | ||
| "11.5.8.0" | ||
| ], | ||
| "DocumentDB": [ | ||
| "2.0.0" | ||
| ], | ||
| "Druid": [ | ||
| "36.0.0", | ||
| "35.0.1", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| apiVersion: catalog.kubedb.com/v1alpha1 | ||
| kind: DocumentDBVersion | ||
| metadata: | ||
| name: 2.0.0 | ||
|
||
| spec: | ||
| db: | ||
| image: ghcr.io/documentdb/documentdb/documentdb-local | ||
| postgres: | ||
| version: 17.4-documentdb | ||
|
||
| securityContext: | ||
| runAsUser: 1000 | ||
| version: 2.0.0 | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Copyright AppsCode Inc. and Contributors | ||
| # | ||
| # Licensed under the AppsCode Community License 1.0.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| set -x | ||
|
|
||
| if [ -z "${IMAGE_REGISTRY}" ]; then | ||
| echo "IMAGE_REGISTRY is not set" | ||
| exit 1 | ||
| fi | ||
|
|
||
| OS=$(uname -o) | ||
| if [ "${OS}" = "GNU/Linux" ]; then | ||
| OS=Linux | ||
| fi | ||
| ARCH=$(uname -m) | ||
| if [ "${ARCH}" = "aarch64" ]; then | ||
| ARCH=arm64 | ||
| fi | ||
| curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz | ||
| tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ | ||
| mv /tmp/crane . | ||
|
|
||
| CMD="./crane" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Copyright AppsCode Inc. and Contributors | ||
| # | ||
| # Licensed under the AppsCode Community License 1.0.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| set -x | ||
|
|
||
| mkdir -p images | ||
|
|
||
| OS=$(uname -o) | ||
| if [ "${OS}" = "GNU/Linux" ]; then | ||
| OS=Linux | ||
| fi | ||
| ARCH=$(uname -m) | ||
| if [ "${ARCH}" = "aarch64" ]; then | ||
| ARCH=arm64 | ||
| fi | ||
| curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz | ||
| tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ | ||
| mv /tmp/crane images | ||
|
|
||
| CMD="./images/crane" | ||
|
|
||
| tar -czvf images.tar.gz images |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Copyright AppsCode Inc. and Contributors | ||
| # | ||
| # Licensed under the AppsCode Community License 1.0.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| set -x | ||
|
|
||
| if [ -z "${IMAGE_REGISTRY}" ]; then | ||
| echo "IMAGE_REGISTRY is not set" | ||
| exit 1 | ||
| fi | ||
|
|
||
| TARBALL=${1:-} | ||
| tar -zxvf $TARBALL | ||
|
|
||
| CMD="./crane" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Copyright AppsCode Inc. and Contributors | ||
| # | ||
| # Licensed under the AppsCode Community License 1.0.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| set -x | ||
|
|
||
| if [ -z "${IMAGE_REGISTRY}" ]; then | ||
| echo "IMAGE_REGISTRY is not set" | ||
| exit 1 | ||
| fi | ||
|
|
||
| TARBALL=${1:-} | ||
| tar -zxvf $TARBALL |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| {{- template "kubedb-catalog.refresh-versions" . }} | ||
|
|
||
| {{ $featureGates := .Values.featureGates }} | ||
| {{ $ubi := .Values.distro.ubi }} | ||
| {{- if .Values.global }} | ||
| {{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }} | ||
| {{ $ubi = default .Values.distro.ubi .Values.global.distro.ubi }} | ||
| {{- end }} | ||
|
|
||
| {{ if and $featureGates.DocumentDB (not (eq $ubi "operator")) }} | ||
|
|
||
|
|
||
| apiVersion: catalog.kubedb.com/v1alpha1 | ||
| kind: DocumentDBVersion | ||
| metadata: | ||
| name: '2.0.0' | ||
| labels: | ||
| {{- include "kubedb-catalog.labels" . | nindent 4 }} | ||
| spec: | ||
| db: | ||
| image: '{{ include "image.ghcr" (merge (dict "_repo" "documentdb/documentdb/documentdb-local") $) }}' | ||
| postgres: | ||
| version: 17.4-documentdb | ||
| securityContext: | ||
| runAsUser: 1000 | ||
| version: 2.0.0 | ||
| {{ end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add one more version, pg16-0.109.0