From b22ce9dd341fed04ed6d6f8acc7cf900d38dd7f0 Mon Sep 17 00:00:00 2001 From: antonlisovenko Date: Mon, 25 Jan 2021 17:33:58 +0000 Subject: [PATCH 1/3] fix linter --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 379b0e82f0..b2729887fd 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,28 @@ # MongoDB Atlas Operator Welcome to MongoDB Atlas Operator - the Operator allowing to manage Atlas Clusters from Kubernetes. +> Current Status: *pre-alpha*. We are currently working on the initial set of features that will give users the opportunity to +provision Atlas projects, clusters and database users using Kubernetes Specifications and bind connection information +into the applications deployed to Kubernetes. + +## Installation / Upgrade + +### Using Kubernetes config files + +``` +kubectl apply -f +``` + +## Create Atlas Cluster + +In order to work with Atlas you'll need to provide the authentication information that would allow the Atlas Operator +communicate with Atlas API. You need to create the secret first: + +``` +kubectl create secret generic my-atlas-key \ + --from-literal="orgId=" \ + --from-literal="publicApiKey=" \ + --from-literal="privateApiKey=" \ + -n +``` + From cab953ec0ea87875b8d8f0d3a058f2d1da5078f3 Mon Sep 17 00:00:00 2001 From: antonlisovenko Date: Thu, 11 Feb 2021 16:47:26 +0000 Subject: [PATCH 2/3] Fix release branch --- .github/actions/changelog/entrypoint.sh | 2 ++ .github/actions/create-pr/entrypoint.sh | 2 ++ .github/actions/deploy/entrypoint.sh | 3 +++ .github/actions/gen-install-scripts/entrypoint.sh | 2 ++ .github/actions/int-test/entrypoint.sh | 2 +- .github/actions/push-files/entrypoint.sh | 3 +++ .github/actions/set-tag/entrypoint.sh | 3 +++ .github/workflows/release-branch.yml | 1 + 8 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/actions/changelog/entrypoint.sh b/.github/actions/changelog/entrypoint.sh index c6d1561dd4..deaf6f4004 100644 --- a/.github/actions/changelog/entrypoint.sh +++ b/.github/actions/changelog/entrypoint.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -eou pipefail + # simple changelog: get all commits beetween 2 tags and put them into file echo "Commits: " > changelog.md diff --git a/.github/actions/create-pr/entrypoint.sh b/.github/actions/create-pr/entrypoint.sh index c34f544d1b..ff4203802d 100644 --- a/.github/actions/create-pr/entrypoint.sh +++ b/.github/actions/create-pr/entrypoint.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -eou pipefail + # Create Pull Request (by default on current branch) gh pr create \ --title "Release ${VERSION}" \ diff --git a/.github/actions/deploy/entrypoint.sh b/.github/actions/deploy/entrypoint.sh index 7eadd81eb1..ac4160dcb7 100644 --- a/.github/actions/deploy/entrypoint.sh +++ b/.github/actions/deploy/entrypoint.sh @@ -1,4 +1,7 @@ #!/bin/bash + +set -eou pipefail + echo "${INPUT_KUBE_CONFIG_DATA}" >> ./kube.config export KUBECONFIG="./kube.config" diff --git a/.github/actions/gen-install-scripts/entrypoint.sh b/.github/actions/gen-install-scripts/entrypoint.sh index 6b7895af6a..456d410b8e 100644 --- a/.github/actions/gen-install-scripts/entrypoint.sh +++ b/.github/actions/gen-install-scripts/entrypoint.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -eou pipefail + target_dir="deploy" mkdir -p "${target_dir}" diff --git a/.github/actions/int-test/entrypoint.sh b/.github/actions/int-test/entrypoint.sh index f04ed34371..ccf447fb7a 100644 --- a/.github/actions/int-test/entrypoint.sh +++ b/.github/actions/int-test/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/bash - +set -eou pipefail export ATLAS_ORG_ID="${INPUT_ATLAS_ORG_ID}" export ATLAS_PUBLIC_KEY="${INPUT_ATLAS_PUBLIC_KEY}" diff --git a/.github/actions/push-files/entrypoint.sh b/.github/actions/push-files/entrypoint.sh index 37ea11e6f5..193ca9afab 100644 --- a/.github/actions/push-files/entrypoint.sh +++ b/.github/actions/push-files/entrypoint.sh @@ -1,4 +1,7 @@ #!/bin/sh + +set -eou pipefail + #commit file to the destination branch MESSAGE="generated $FILE_TO_COMMIT" diff --git a/.github/actions/set-tag/entrypoint.sh b/.github/actions/set-tag/entrypoint.sh index 5b3cf1efdc..8a8b079287 100644 --- a/.github/actions/set-tag/entrypoint.sh +++ b/.github/actions/set-tag/entrypoint.sh @@ -1,4 +1,7 @@ #!/bin/sh + +set -eou pipefail + # Setup tag name commit_id=$(git rev-parse --short HEAD) branch_name=$GITHUB_HEAD_REF diff --git a/.github/workflows/release-branch.yml b/.github/workflows/release-branch.yml index f8a8236f9a..4628ffcbcc 100644 --- a/.github/workflows/release-branch.yml +++ b/.github/workflows/release-branch.yml @@ -28,6 +28,7 @@ jobs: uses: ./.github/actions/gen-install-scripts with: IMAGE_URL: ${{ secrets.DOCKER_RELEASE_REPO }}:${{ env.VERSION }} + ENV: default - name: Create branch and push it run: | From 17bd1d238ed637212b62739347180c7a546b8df1 Mon Sep 17 00:00:00 2001 From: antonlisovenko Date: Thu, 11 Feb 2021 17:08:01 +0000 Subject: [PATCH 3/3] Fix release branch --- .github/actions/create-pr/entrypoint.sh | 2 +- .github/actions/gen-install-scripts/entrypoint.sh | 2 +- .github/actions/int-test/entrypoint.sh | 2 +- .github/actions/push-files/entrypoint.sh | 4 ++-- .github/actions/set-tag/entrypoint.sh | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/actions/create-pr/entrypoint.sh b/.github/actions/create-pr/entrypoint.sh index ff4203802d..d8737f121b 100644 --- a/.github/actions/create-pr/entrypoint.sh +++ b/.github/actions/create-pr/entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/sh -set -eou pipefail +# set -eou pipefail # Create Pull Request (by default on current branch) gh pr create \ diff --git a/.github/actions/gen-install-scripts/entrypoint.sh b/.github/actions/gen-install-scripts/entrypoint.sh index 456d410b8e..fc15430100 100644 --- a/.github/actions/gen-install-scripts/entrypoint.sh +++ b/.github/actions/gen-install-scripts/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -eou pipefail diff --git a/.github/actions/int-test/entrypoint.sh b/.github/actions/int-test/entrypoint.sh index ccf447fb7a..b3998ae257 100644 --- a/.github/actions/int-test/entrypoint.sh +++ b/.github/actions/int-test/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -eou pipefail +#set -eou pipefail export ATLAS_ORG_ID="${INPUT_ATLAS_ORG_ID}" export ATLAS_PUBLIC_KEY="${INPUT_ATLAS_PUBLIC_KEY}" diff --git a/.github/actions/push-files/entrypoint.sh b/.github/actions/push-files/entrypoint.sh index 193ca9afab..763f0a6a0e 100644 --- a/.github/actions/push-files/entrypoint.sh +++ b/.github/actions/push-files/entrypoint.sh @@ -1,6 +1,6 @@ -#!/bin/sh +#!/bin/bash -set -eou pipefail +#set -eou pipefail #commit file to the destination branch diff --git a/.github/actions/set-tag/entrypoint.sh b/.github/actions/set-tag/entrypoint.sh index 8a8b079287..ed1a9ddeba 100644 --- a/.github/actions/set-tag/entrypoint.sh +++ b/.github/actions/set-tag/entrypoint.sh @@ -1,10 +1,10 @@ #!/bin/sh -set -eou pipefail +#set -eou pipefail # Setup tag name commit_id=$(git rev-parse --short HEAD) -branch_name=$GITHUB_HEAD_REF +branch_name=${GITHUB_HEAD_REF-} if [ -z "${branch_name}" ]; then branch_name=$(echo "$GITHUB_REF" | awk -F'/' '{print $3}') fi