-
Notifications
You must be signed in to change notification settings - Fork 14
Added option to spin up a server with replica set #6
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
Open
tuckyapps
wants to merge
20
commits into
benweissmann:master
Choose a base branch
from
strikesecurity:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
f8966a6
Added option to run with replica set with passing unit test. Improved…
tuckyapps 73d998e
Merge tag 'v0.2.0' into develop
tuckyapps 10d3303
Merge branch 'release/v0.2.0'
tuckyapps e630a7a
Updated readme showing how to start a server with replica set.
tuckyapps 8fcdd43
Merge tag 'v0.2.1' into develop
tuckyapps 032825d
Merge branch 'release/v0.2.1'
tuckyapps f17ba02
Linting corrections.
tuckyapps fec52fb
Merge tag 'v0.2.2' into develop
tuckyapps 612391d
Merge branch 'release/v0.2.2'
tuckyapps 1eb4ea9
Linting fixes.
tuckyapps f931072
Merge tag 'v0.2.3' into develop
tuckyapps 5e05ede
Merge branch 'release/v0.2.3'
tuckyapps 61334d7
Replaced ephimeralForTest engine by wiredTiger so it works properly i…
tuckyapps 6347983
Merge branch 'release/v0.2.4'
tuckyapps 5e65d4b
[BOT][skip ci] Update Workflows && Scripts && Cloud Envs
strike-cloud 5fe8c38
[BOT][skip ci] Update Workflows && Scripts && Cloud Envs
strike-cloud 4f166d4
[BOT][skip ci] Update Workflows && Scripts && Cloud Envs
strike-cloud b8a4392
[BOT][skip ci] Update Workflows && Scripts && Cloud Envs
strike-cloud f26bc64
[BOT][skip ci] Update Workflows && Scripts && Cloud Envs
strike-cloud 7f0775f
[BOT][skip ci] Update Workflows && Scripts && Cloud Envs
strike-cloud File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,13 @@ | ||
| # Description | ||
|
|
||
| <!-- [TS-X](https://strikesecurity.atlassian.net/browse/TS-X) --> | ||
|
|
||
| - N/A | ||
|
|
||
| # Screenshots | ||
|
|
||
| - N/A | ||
|
|
||
| # Notes | ||
|
|
||
| - N/A |
This file contains hidden or 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,4 @@ | ||
| exclude: | ||
| - staging | ||
| - master | ||
| delete_closed_pr: false |
This file contains hidden or 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,36 @@ | ||
| apiVersion: skaffold/v4beta1 | ||
| kind: Config | ||
| metadata: | ||
| name: REPOSITORY_NAME | ||
| build: | ||
| platforms: ["linux/amd64"] | ||
| tagPolicy: | ||
| gitCommit: | ||
| variant: CommitSha | ||
| prefix: skaffold-preview-PR_NUMBER | ||
| artifacts: | ||
| - image: REPOSITORY_NAME | ||
| docker: | ||
| dockerfile: Dockerfile | ||
| buildArgs: | ||
| env: stg | ||
| APPLICATION_NAME: REPOSITORY_NAME | ||
| github_token: GH_TOKEN | ||
| github_user: strike-cloud | ||
| deploy: | ||
| helm: | ||
| releases: | ||
| - name: "REPOSITORY_NAME-prPR_NUMBER" | ||
| namespace: apps | ||
| repo: https://charts.santieich.com | ||
| chartPath: helm-apps/ephemeral-app-template/stg | ||
| valuesFiles: | ||
| - cloud/stg/values.yaml | ||
| setValueTemplates: | ||
| image: "{{.IMAGE_FULLY_QUALIFIED_REPO_NAME}}" | ||
| setValues: | ||
| appName: "REPOSITORY_NAME-prPR_NUMBER" | ||
|
|
||
| flags: | ||
| upgrade: | ||
| - --install |
This file contains hidden or 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,35 @@ | ||
| apiVersion: skaffold/v4beta1 | ||
| kind: Config | ||
| metadata: | ||
| name: APP_NAME | ||
| build: | ||
| platforms: ["linux/amd64"] | ||
| tagPolicy: | ||
| gitCommit: | ||
| variant: CommitSha | ||
| prefix: skaffold-preview-PR_NUMBER | ||
| artifacts: | ||
| - image: APP_NAME | ||
| docker: | ||
| dockerfile: Dockerfile.APP_SHORT_NAME | ||
| buildArgs: | ||
| env: stg | ||
| APPLICATION_NAME: APP_SHORT_NAME | ||
| github_token: GH_TOKEN | ||
| deploy: | ||
| helm: | ||
| releases: | ||
| - name: "APP_NAME-prPR_NUMBER" | ||
| namespace: apps | ||
| chartPath: helm-apps/ephemeral-app-template/stg | ||
| valuesFiles: | ||
| - cloud/APP_SHORT_NAME/stg/values.yaml | ||
| setValueTemplates: | ||
| image: "{{.IMAGE_FULLY_QUALIFIED_UNDERSCORE_APP_NAME}}" | ||
| setValues: | ||
| appName: "APP_NAME-prPR_NUMBER" | ||
| appVersion: skaffold-preview-PR_NUMBER | ||
|
|
||
| flags: | ||
| upgrade: | ||
| - --install |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,17 +1,16 @@ | ||
| module github.com/benweissmann/memongo | ||
|
|
||
| go 1.14 | ||
|
|
||
| require ( | ||
| github.com/acobaugh/osrelease v0.0.0-20181218015638-a93a0a55a249 | ||
| github.com/go-stack/stack v1.8.0 // indirect | ||
| github.com/golang/snappy v0.0.1 // indirect | ||
| github.com/google/go-cmp v0.3.0 // indirect | ||
| github.com/nats-io/gnatsd v1.4.1 | ||
| github.com/spf13/afero v1.2.1 | ||
| github.com/stretchr/testify v1.3.0 | ||
| github.com/tidwall/pretty v1.0.0 // indirect | ||
| github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c // indirect | ||
| github.com/golang/snappy v0.0.2 // indirect | ||
| github.com/google/go-cmp v0.5.4 // indirect | ||
| github.com/spf13/afero v1.5.1 | ||
| github.com/stretchr/testify v1.6.1 | ||
| github.com/tidwall/pretty v1.0.2 // indirect | ||
| github.com/xdg/stringprep v1.0.0 // indirect | ||
| go.mongodb.org/mongo-driver v1.0.3 | ||
| golang.org/x/crypto v0.0.0-20190618222545-ea8f1a30c443 // indirect | ||
| golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect | ||
| go.mongodb.org/mongo-driver v1.4.4 | ||
| golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad // indirect | ||
| golang.org/x/sync v0.0.0-20201207232520-09787c993a3a // indirect | ||
| ) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can we call this
ConfigureReplicaSet? I think you need to be a little clearer in this documentation that this just configures the single server as a replica set -- but does not set up a secondary or actually perform replication. I'd suggest being pretty explicit here and say something like "This configures the Mongo server to be a replica set, and callsrs.initiate()after startup. It still only runs a single Mongo server."