diff --git a/mongodb-community-operator/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md similarity index 100% rename from mongodb-community-operator/.github/ISSUE_TEMPLATE/bug_report.md rename to .github/ISSUE_TEMPLATE/bug_report.md diff --git a/mongodb-community-operator/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml similarity index 100% rename from mongodb-community-operator/.github/ISSUE_TEMPLATE/config.yml rename to .github/ISSUE_TEMPLATE/config.yml diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index e69de29bb..000000000 diff --git a/mongodb-community-operator/.action_templates/e2e-fork-template.yaml b/mongodb-community-operator/.action_templates/e2e-fork-template.yaml deleted file mode 100644 index c6378cceb..000000000 --- a/mongodb-community-operator/.action_templates/e2e-fork-template.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: Run E2E Fork -jobs: - - template: display-github-context - - template: setup - # dependabot gets a read only github token, and so must use pull_request_target instead of pull_request. - if: contains(github.event.pull_request.labels.*.name, 'dependencies') || contains(github.event.pull_request.labels.*.name, 'safe-to-test') - steps: - - template: cancel-previous - - template: checkout-fork - - template: setup-and-install-python - - template: quay-login - - template: set-up-qemu - - template: build-and-push-development-images - - template: tests - steps: - - template: cancel-previous - - template: checkout-fork - - template: set-run-status - - template: setup-and-install-python - - template: setup-kind-cluster - if: steps.last_run_status.outputs.last_run_status != 'success' - - template: run-test-matrix - - template: save-run-status - - template: dump-and-upload-diagnostics - -events: - - template: pull-request-target diff --git a/mongodb-community-operator/.action_templates/e2e-pr-template.yaml b/mongodb-community-operator/.action_templates/e2e-pr-template.yaml deleted file mode 100644 index 8c4e79d14..000000000 --- a/mongodb-community-operator/.action_templates/e2e-pr-template.yaml +++ /dev/null @@ -1,29 +0,0 @@ -name: Run E2E -jobs: - - template: display-github-context - - template: setup - # run on master, or if a PR is being created from a branch, or if it has been manually triggered. - if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') - steps: - - template: cancel-previous - - template: checkout - - template: setup-and-install-python - - template: quay-login - - template: set-up-qemu - - template: build-and-push-development-images - - template: tests - steps: - - template: cancel-previous - - template: checkout - - template: set-run-status - - template: setup-and-install-python - - template: setup-kind-cluster - if: steps.last_run_status.outputs.last_run_status != 'success' - - template: run-test-matrix - - template: save-run-status - - template: dump-and-upload-diagnostics - -events: - - template: on-pull-request-master - - template: on-push-master - - template: workflow-dispatch diff --git a/mongodb-community-operator/.action_templates/e2e-single-template.yaml b/mongodb-community-operator/.action_templates/e2e-single-template.yaml deleted file mode 100644 index 36e586af3..000000000 --- a/mongodb-community-operator/.action_templates/e2e-single-template.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Run Single E2E -jobs: - - template: display-github-context - - template: setup - steps: - - template: checkout - - template: setup-and-install-python - - template: quay-login - - template: set-up-qemu - - template: build-and-push-development-images - - template: single-test - steps: - - template: checkout - - template: setup-and-install-python - - template: setup-kind-cluster - - template: run-test-single - - template: dump-and-upload-diagnostics-always - -events: - - template: single-e2e-workflow-dispatch diff --git a/mongodb-community-operator/.action_templates/events/on-pull-request-master.yaml b/mongodb-community-operator/.action_templates/events/on-pull-request-master.yaml deleted file mode 100644 index 9107a3d91..000000000 --- a/mongodb-community-operator/.action_templates/events/on-pull-request-master.yaml +++ /dev/null @@ -1,5 +0,0 @@ -pull_request: - branches: - - master - paths-ignore: - - 'docs/**' diff --git a/mongodb-community-operator/.action_templates/events/on-push-master.yaml b/mongodb-community-operator/.action_templates/events/on-push-master.yaml deleted file mode 100644 index 844e045c3..000000000 --- a/mongodb-community-operator/.action_templates/events/on-push-master.yaml +++ /dev/null @@ -1,5 +0,0 @@ -push: - branches: - - master - paths-ignore: - - 'docs/**' diff --git a/mongodb-community-operator/.action_templates/events/pull-request-target.yaml b/mongodb-community-operator/.action_templates/events/pull-request-target.yaml deleted file mode 100644 index 1e7743cd8..000000000 --- a/mongodb-community-operator/.action_templates/events/pull-request-target.yaml +++ /dev/null @@ -1,7 +0,0 @@ -# pull_request_target means that the secrets of this repo will be used. -pull_request_target: - types: [labeled] - branches: - - master - paths-ignore: - - 'docs/**' diff --git a/mongodb-community-operator/.action_templates/events/single-e2e-workflow-dispatch.yaml b/mongodb-community-operator/.action_templates/events/single-e2e-workflow-dispatch.yaml deleted file mode 100644 index 01cc9fcae..000000000 --- a/mongodb-community-operator/.action_templates/events/single-e2e-workflow-dispatch.yaml +++ /dev/null @@ -1,13 +0,0 @@ -workflow_dispatch: - inputs: - distro: - description: 'Distro to run test' - required: true - default: "ubuntu" - test-name: - description: 'Name of test to run' - required: true - cluster-wide: - description: 'Whether or not the test is cluster wide' - required: true - default: "false" diff --git a/mongodb-community-operator/.action_templates/events/workflow-dispatch.yaml b/mongodb-community-operator/.action_templates/events/workflow-dispatch.yaml deleted file mode 100644 index 5de950ef3..000000000 --- a/mongodb-community-operator/.action_templates/events/workflow-dispatch.yaml +++ /dev/null @@ -1 +0,0 @@ -workflow_dispatch: {} diff --git a/mongodb-community-operator/.action_templates/jobs/display-github-context.yaml b/mongodb-community-operator/.action_templates/jobs/display-github-context.yaml deleted file mode 100644 index 37ecb1972..000000000 --- a/mongodb-community-operator/.action_templates/jobs/display-github-context.yaml +++ /dev/null @@ -1,8 +0,0 @@ -action-context: - if: always() - runs-on: ubuntu-latest - steps: - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJSON(github) }} - run: echo "$GITHUB_CONTEXT" diff --git a/mongodb-community-operator/.action_templates/jobs/setup.yaml b/mongodb-community-operator/.action_templates/jobs/setup.yaml deleted file mode 100644 index ad46dc26d..000000000 --- a/mongodb-community-operator/.action_templates/jobs/setup.yaml +++ /dev/null @@ -1,11 +0,0 @@ -setup: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - pipeline-argument: operator - - pipeline-argument: version-upgrade-hook - - pipeline-argument: readiness-probe - - pipeline-argument: agent - - pipeline-argument: e2e diff --git a/mongodb-community-operator/.action_templates/jobs/single-test.yaml b/mongodb-community-operator/.action_templates/jobs/single-test.yaml deleted file mode 100644 index b06a8a918..000000000 --- a/mongodb-community-operator/.action_templates/jobs/single-test.yaml +++ /dev/null @@ -1,3 +0,0 @@ -single-test: - runs-on: ubuntu-latest - needs: [setup] diff --git a/mongodb-community-operator/.action_templates/jobs/tests.yaml b/mongodb-community-operator/.action_templates/jobs/tests.yaml deleted file mode 100644 index f360ee3d6..000000000 --- a/mongodb-community-operator/.action_templates/jobs/tests.yaml +++ /dev/null @@ -1,68 +0,0 @@ -tests: - runs-on: ubuntu-latest - needs: [setup] - strategy: - fail-fast: false - matrix: - include: - - test-name: replica_set - distro: ubi - - test-name: replica_set_enterprise_upgrade_4_5 - distro: ubi - - test-name: replica_set_enterprise_upgrade_5_6 - distro: ubi - - test-name: replica_set_enterprise_upgrade_6_7 - distro: ubi - - test-name: replica_set_enterprise_upgrade_7_8 - distro: ubi - - test-name: replica_set_recovery - distro: ubi - - test-name: replica_set_mongod_readiness - distro: ubi - - test-name: replica_set_scale - distro: ubi - - test-name: replica_set_scale_down - distro: ubi - - test-name: replica_set_change_version - distro: ubi - - test-name: feature_compatibility_version - distro: ubi - - test-name: prometheus - distro: ubi - - test-name: replica_set_tls - distro: ubi - - test-name: replica_set_tls_recreate_mdbc - distro: ubi - - test-name: replica_set_tls_rotate - distro: ubi - - test-name: replica_set_tls_rotate_delete_sts - distro: ubi - - test-name: replica_set_tls_upgrade - distro: ubi - - test-name: statefulset_arbitrary_config - distro: ubi - - test-name: statefulset_arbitrary_config_update - distro: ubi - - test-name: replica_set_mongod_config - distro: ubi - - test-name: replica_set_cross_namespace_deploy - distro: ubi - cluster-wide: true - - test-name: replica_set_custom_role - distro: ubi - - test-name: replica_set_arbiter - distro: ubi - - test-name: replica_set_custom_persistent_volume - distro: ubi - - test-name: replica_set_mount_connection_string - distro: ubi - - test-name: replica_set_mongod_port_change_with_arbiters - distro: ubi - - test-name: replica_set_operator_upgrade - distro: ubi - - test-name: replica_set_connection_string_options - distro: ubi - - test-name: replica_set_x509 - distro: ubi - - test-name: replica_set_remove_user - distro: ubi diff --git a/mongodb-community-operator/.action_templates/steps/build-and-push-development-images.yaml b/mongodb-community-operator/.action_templates/steps/build-and-push-development-images.yaml deleted file mode 100644 index 4fe3df401..000000000 --- a/mongodb-community-operator/.action_templates/steps/build-and-push-development-images.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- name: Build and Push Images - run: | - python pipeline.py --image-name ${{ matrix.pipeline-argument }} --tag ${{ github.run_id }} - env: - MONGODB_COMMUNITY_CONFIG: "${{ github.workspace }}/scripts/ci/config.json" - version_id: "${{ github.run_id }}" diff --git a/mongodb-community-operator/.action_templates/steps/cancel-previous.yaml b/mongodb-community-operator/.action_templates/steps/cancel-previous.yaml deleted file mode 100644 index 301d5af50..000000000 --- a/mongodb-community-operator/.action_templates/steps/cancel-previous.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.1 - with: - access_token: ${{ github.token }} diff --git a/mongodb-community-operator/.action_templates/steps/checkout-fork.yaml b/mongodb-community-operator/.action_templates/steps/checkout-fork.yaml deleted file mode 100644 index abd35041c..000000000 --- a/mongodb-community-operator/.action_templates/steps/checkout-fork.yaml +++ /dev/null @@ -1,9 +0,0 @@ -# We checkout the forked repository code. -# Because we are using pull_request_target the Github Secrets will be passed -# So code should be reviewed before labeling as "safe-to-test" -- name: Checkout Code - uses: actions/checkout@v4 - with: - ref: ${{github.event.pull_request.head.sha}} - repository: ${{github.event.pull_request.head.repo.full_name}} - submodules: true diff --git a/mongodb-community-operator/.action_templates/steps/checkout.yaml b/mongodb-community-operator/.action_templates/steps/checkout.yaml deleted file mode 100644 index da02fc2f3..000000000 --- a/mongodb-community-operator/.action_templates/steps/checkout.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- name: Checkout Code - uses: actions/checkout@v4 - with: - submodules: true diff --git a/mongodb-community-operator/.action_templates/steps/dump-and-upload-diagnostics-always.yaml b/mongodb-community-operator/.action_templates/steps/dump-and-upload-diagnostics-always.yaml deleted file mode 100644 index 968ecd9ce..000000000 --- a/mongodb-community-operator/.action_templates/steps/dump-and-upload-diagnostics-always.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- name: Dump Diagnostics - if: always() - continue-on-error: true - run: scripts/ci/dump_diagnostics.sh default # default since kind is running in the default namespace - -- name: Upload Diagnostics - if: always() - uses: actions/upload-artifact@v4 - continue-on-error: true - with: - name: "${{ github.event.inputs.test-name }}-${{ github.event.inputs.distro }}-diagnostics" - path: "${{ github.workspace }}/diagnostics" diff --git a/mongodb-community-operator/.action_templates/steps/dump-and-upload-diagnostics.yaml b/mongodb-community-operator/.action_templates/steps/dump-and-upload-diagnostics.yaml deleted file mode 100644 index 17f5d2688..000000000 --- a/mongodb-community-operator/.action_templates/steps/dump-and-upload-diagnostics.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- name: Dump Diagnostics - id: dump_diagnostics - if: always() && steps.e2e_test.outcome == 'failure' - continue-on-error: true - run: scripts/ci/dump_diagnostics.sh default # default since kind is running in the default namespace - -- name: Upload Diagnostics - if: always() && steps.dump_diagnostics.outcome == 'success' - uses: actions/upload-artifact@v4 - continue-on-error: true - with: - name: "${{ matrix.test-name }}-${{ matrix.distro }}-diagnostics" - path: "${{ github.workspace }}/diagnostics" diff --git a/mongodb-community-operator/.action_templates/steps/quay-login.yaml b/mongodb-community-operator/.action_templates/steps/quay-login.yaml deleted file mode 100644 index 77a8dd06f..000000000 --- a/mongodb-community-operator/.action_templates/steps/quay-login.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- name: Login to Quay.io - uses: docker/login-action@v3 - with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_ROBOT_TOKEN }} diff --git a/mongodb-community-operator/.action_templates/steps/run-test-matrix.yaml b/mongodb-community-operator/.action_templates/steps/run-test-matrix.yaml deleted file mode 100644 index 9c572a89c..000000000 --- a/mongodb-community-operator/.action_templates/steps/run-test-matrix.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- name: Run Test - id: e2e_test - if: steps.last_run_status.outputs.last_run_status != 'success' - run: | - cluster_wide=${{ matrix.cluster-wide }} - if [ -z "$cluster_wide" ]; then - cluster_wide="false" - fi - python3 ./scripts/dev/e2e.py --test ${{ matrix.test-name }} --tag ${{ github.run_id }} --config_file ./scripts/ci/config.json --distro ${{ matrix.distro }} --cluster-wide ${cluster_wide} diff --git a/mongodb-community-operator/.action_templates/steps/run-test-single.yaml b/mongodb-community-operator/.action_templates/steps/run-test-single.yaml deleted file mode 100644 index 453425961..000000000 --- a/mongodb-community-operator/.action_templates/steps/run-test-single.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- name: Run Test Single - run: | - python3 ./scripts/dev/e2e.py --test ${{ github.event.inputs.test-name }} --tag ${{ github.run_id }} --config_file ./scripts/ci/config.json --distro ${{ github.event.inputs.distro }} --cluster-wide ${{ github.event.inputs.cluster-wide }} diff --git a/mongodb-community-operator/.action_templates/steps/save-run-status.yaml b/mongodb-community-operator/.action_templates/steps/save-run-status.yaml deleted file mode 100644 index 84845013b..000000000 --- a/mongodb-community-operator/.action_templates/steps/save-run-status.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- name: Save run status - if: always() - run: echo "::set-output name=last_run_status::${{ steps.e2e_test.outcome }}" > last_run_status diff --git a/mongodb-community-operator/.action_templates/steps/set-run-status.yaml b/mongodb-community-operator/.action_templates/steps/set-run-status.yaml deleted file mode 100644 index 9f4a76541..000000000 --- a/mongodb-community-operator/.action_templates/steps/set-run-status.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- name: Set default run status - run: echo "::set-output name=last_run_status::pending" > last_run_status - - # Tracking of the state of the previous test run is a workaround to the fact that it is not - # possible to re-run a single failed job, only re-running the entire workflow is currently possible. - # This workaround skips jobs if they have already passed. - # see https://github.com/actions/runner/issues/432 -- name: Restore last run status - id: last_run - uses: actions/cache@v4 - with: - path: last_run_status - key: ${{ github.run_id }}-${{ matrix.test-name }}-${{ matrix.distro }} - -- name: Set last run status - id: last_run_status - run: cat last_run_status diff --git a/mongodb-community-operator/.action_templates/steps/set-up-qemu.yaml b/mongodb-community-operator/.action_templates/steps/set-up-qemu.yaml deleted file mode 100644 index c84384bfc..000000000 --- a/mongodb-community-operator/.action_templates/steps/set-up-qemu.yaml +++ /dev/null @@ -1,2 +0,0 @@ -- name: Set up QEMU - uses: docker/setup-qemu-action@v3 diff --git a/mongodb-community-operator/.action_templates/steps/setup-and-install-python.yaml b/mongodb-community-operator/.action_templates/steps/setup-and-install-python.yaml deleted file mode 100644 index b924e01ae..000000000 --- a/mongodb-community-operator/.action_templates/steps/setup-and-install-python.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: '3.10.4' -- name: Cache Dependencies - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ hashFiles('requirements.txt') }} -- name: Install Python Dependencies - run: pip install -r requirements.txt diff --git a/mongodb-community-operator/.action_templates/steps/setup-kind-cluster.yaml b/mongodb-community-operator/.action_templates/steps/setup-kind-cluster.yaml deleted file mode 100644 index b17558382..000000000 --- a/mongodb-community-operator/.action_templates/steps/setup-kind-cluster.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- name: Setup Kind Cluster - run: | - curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64 - chmod +x ./kind - ./kind create cluster -- name: Create Directories - run: | - docker exec kind-control-plane mkdir -p /opt/data/mongo-data-0 /opt/data/mongo-data-1 /opt/data/mongo-data-2 /opt/data/mongo-logs-0 /opt/data/mongo-logs-1 /opt/data/mongo-logs-2 - -- name: Install CRD - run: kubectl apply -f config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml diff --git a/mongodb-community-operator/.github/CODEOWNERS b/mongodb-community-operator/.github/CODEOWNERS deleted file mode 100644 index db61cf612..000000000 --- a/mongodb-community-operator/.github/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @mircea-cosbuc @lsierant @nammn @Julien-Ben @MaciejKaras @lucian-tosa @fealebenpae @m1kola \ No newline at end of file diff --git a/mongodb-community-operator/.github/PULL_REQUEST_TEMPLATE.md b/mongodb-community-operator/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 650880d32..000000000 --- a/mongodb-community-operator/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,15 +0,0 @@ -### Summary: - - -### All Submissions: - -* [ ] Have you opened an Issue before filing this PR? -* [ ] Have you signed our [CLA](https://www.mongodb.com/legal/contributor-agreement)? -* [ ] Have you checked to ensure there aren't other open [Pull Requests](../../../pulls) for the same update/change? -* [ ] Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such). diff --git a/mongodb-community-operator/.github/config_files/config_lint.yaml b/mongodb-community-operator/.github/config_files/config_lint.yaml deleted file mode 100644 index 435bc8a7b..000000000 --- a/mongodb-community-operator/.github/config_files/config_lint.yaml +++ /dev/null @@ -1,14 +0,0 @@ -checks: - addAllBuiltIn: true - -#Reasons to exclude: - # non-existent-service-account because the service account is created in another file - # minimum-three-replicas because the deployment contains only 1 replica of the operator - # no-readiness-probe & no-liveness-probe because for now, it brings nothing to add these probes - # because they will not check whether the operator is actually ready/living - exclude: - - "non-existent-service-account" - - "minimum-three-replicas" - - "no-liveness-probe" - - "no-readiness-probe" - - "use-namespace" diff --git a/mongodb-community-operator/.github/config_files/config_lint_clusterwide.yaml b/mongodb-community-operator/.github/config_files/config_lint_clusterwide.yaml deleted file mode 100644 index b69b5147d..000000000 --- a/mongodb-community-operator/.github/config_files/config_lint_clusterwide.yaml +++ /dev/null @@ -1,18 +0,0 @@ -checks: - addAllBuiltIn: true - -#Reasons to exclude: - # non-existent-service-account because the service account is created in another file - # minimum-three-replicas because the deployment contains only 1 replica of the operator - # no-readiness-probe & no-liveness-probe because for now, it brings nothing to add these probes - # because they will not check whether the operator is actually ready/living. - # When using a clusterwide operator, it is required to be able to create StatefulSets and Secrets - # so we exclude "access-to-secrets" and "access-to-create-pods" - exclude: - - "non-existent-service-account" - - "minimum-three-replicas" - - "no-liveness-probe" - - "no-readiness-probe" - - "use-namespace" - - "access-to-secrets" - - "access-to-create-pods" diff --git a/mongodb-community-operator/.github/config_files/config_lint_openshift.yaml b/mongodb-community-operator/.github/config_files/config_lint_openshift.yaml deleted file mode 100644 index 34ff6e440..000000000 --- a/mongodb-community-operator/.github/config_files/config_lint_openshift.yaml +++ /dev/null @@ -1,17 +0,0 @@ -checks: - addAllBuiltIn: true - - #Reasons to exclude - # non-existent-service-account because the service account is created in another file - # minimum-three-replicas because the deployment contains only 1 replica of the operator - # no-readiness-probe & no-liveness-probe because for now it brings nothing to add theses probes - # because they will not check whether the operator is actually ready/living - # run-as-non-root & no-read-only-root-fs because the security is managed somewhere else - exclude: - - "non-existent-service-account" - - "minimum-three-replicas" - - "no-liveness-probe" - - "no-readiness-probe" - - "run-as-non-root" - - "no-read-only-root-fs" - - "use-namespace" diff --git a/mongodb-community-operator/.github/dependabot.yml b/mongodb-community-operator/.github/dependabot.yml deleted file mode 100644 index eb3084c66..000000000 --- a/mongodb-community-operator/.github/dependabot.yml +++ /dev/null @@ -1,18 +0,0 @@ -version: 2 -updates: - - package-ecosystem: gomod - directory: "/" - schedule: - interval: weekly - day: monday - ignore: - - dependency-name: k8s.io/api - - dependency-name: k8s.io/apimachinery - - dependency-name: k8s.io/client-go - - dependency-name: k8s.io/code-generator - - dependency-name: sigs.k8s.io/controller-runtime - - package-ecosystem: pip - directory: "/" - schedule: - interval: weekly - day: monday diff --git a/mongodb-community-operator/.github/workflows/close-stale-issues.yml b/mongodb-community-operator/.github/workflows/close-stale-issues.yml deleted file mode 100644 index 942020dbd..000000000 --- a/mongodb-community-operator/.github/workflows/close-stale-issues.yml +++ /dev/null @@ -1,25 +0,0 @@ -# -# Docs: https://github.com/marketplace/actions/close-stale-issues -# -name: Close Stale Issues -on: - schedule: - - cron: '30 1 * * *' - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v9 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue is being marked stale because it has been open for 60 days with no activity. Please comment if this issue is still affecting you. If there is no change, this issue will be closed in 30 days.' - stale-pr-message: 'This PR is being marked stale because it has been open for 60 days with no activity. Please update the PR or ask for a fresh review.' - close-issue-message: 'This issue was closed because it became stale and did not receive further updates. If the issue is still affecting you, please re-open it, or file a fresh Issue with updated information.' - - days-before-stale: 60 - days-before-close: 30 - days-before-pr-close: -1 # never close PRs - - exempt-issue-labels: 'bug,feature-request' - ascending: true diff --git a/mongodb-community-operator/.github/workflows/code-health.yml b/mongodb-community-operator/.github/workflows/code-health.yml deleted file mode 100644 index 345941c18..000000000 --- a/mongodb-community-operator/.github/workflows/code-health.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Code Health - -on: - pull_request: - branches: [ master ] -jobs: - Black: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Black Check - uses: jpetrucciani/black-check@7f5b2ad20fa5484f1884f07c1937e032ed8cd939 - - Mypy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Mypy linting - uses: jpetrucciani/mypy-check@179fdad632bf3ccf4cabb7ee4307ef25e51d2f96 - with: - path: scripts/*/*.py - - Golangci-lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: stable - - name: golangci-lint - uses: golangci/golangci-lint-action@v6 diff --git a/mongodb-community-operator/.github/workflows/comment-release-pr.yml b/mongodb-community-operator/.github/workflows/comment-release-pr.yml deleted file mode 100644 index 3944aa660..000000000 --- a/mongodb-community-operator/.github/workflows/comment-release-pr.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Link Github Releases -on: - pull_request: - types: [closed] - -jobs: - comment: - # only link releases on release PRs - if: startsWith(github.event.pull_request.title, 'Release MongoDB Kubernetes Operator') - runs-on: ubuntu-latest - steps: - - uses: actions/github-script@v7 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - github.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Review and publish the release here: https://github.com/mongodb/mongodb-kubernetes-operator/releases' - }) diff --git a/mongodb-community-operator/.github/workflows/e2e-dispatch.yml b/mongodb-community-operator/.github/workflows/e2e-dispatch.yml deleted file mode 100644 index b3522124d..000000000 --- a/mongodb-community-operator/.github/workflows/e2e-dispatch.yml +++ /dev/null @@ -1,134 +0,0 @@ - -################################################################################## -# -# This file is automatically generated using templates. Changes to this file -# should happen through editing the templates under .action_templates/* -# Manual edits will be overwritten. -# -################################################################################## - -name: Run Single E2E -on: - # template: .action_templates/events/single-e2e-workflow-dispatch.yaml - workflow_dispatch: - inputs: - distro: - description: Distro to run test - required: true - default: ubuntu - test-name: - description: Name of test to run - required: true - cluster-wide: - description: Whether or not the test is cluster wide - required: true - default: 'false' -jobs: - # template: .action_templates/jobs/display-github-context.yaml - action-context: - if: always() - runs-on: ubuntu-latest - steps: - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJSON(github) }} - run: echo "$GITHUB_CONTEXT" - # template: .action_templates/jobs/setup.yaml - setup: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - pipeline-argument: operator - - pipeline-argument: version-upgrade-hook - - pipeline-argument: readiness-probe - - pipeline-argument: agent - - pipeline-argument: e2e - steps: - # template: .action_templates/steps/checkout.yaml - - name: Checkout Code - uses: actions/checkout@v4 - with: - submodules: true - # template: .action_templates/steps/setup-and-install-python.yaml - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: 3.10.4 - - name: Cache Dependencies - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ hashFiles('requirements.txt') }} - - name: Install Python Dependencies - run: pip install -r requirements.txt - # template: .action_templates/steps/quay-login.yaml - - name: Login to Quay.io - uses: docker/login-action@v3 - with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_ROBOT_TOKEN }} - # template: .action_templates/steps/set-up-qemu.yaml - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - # template: .action_templates/steps/build-and-push-development-images.yaml - - name: Build and Push Images - run: | - python pipeline.py --image-name ${{ matrix.pipeline-argument }} --tag ${{ github.run_id }} - env: - MONGODB_COMMUNITY_CONFIG: ${{ github.workspace }}/scripts/ci/config.json - version_id: ${{ github.run_id }} - # template: .action_templates/jobs/single-test.yaml - single-test: - runs-on: ubuntu-latest - needs: [setup] - steps: - # template: .action_templates/steps/checkout.yaml - - name: Checkout Code - uses: actions/checkout@v4 - with: - submodules: true - # template: .action_templates/steps/setup-and-install-python.yaml - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: 3.10.4 - - name: Cache Dependencies - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ hashFiles('requirements.txt') }} - - name: Install Python Dependencies - run: pip install -r requirements.txt - # template: .action_templates/steps/setup-kind-cluster.yaml - - name: Setup Kind Cluster - run: | - curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64 - chmod +x ./kind - ./kind create cluster - - name: Create Directories - run: | - docker exec kind-control-plane mkdir -p /opt/data/mongo-data-0 /opt/data/mongo-data-1 /opt/data/mongo-data-2 /opt/data/mongo-logs-0 /opt/data/mongo-logs-1 /opt/data/mongo-logs-2 - - - name: Install CRD - run: kubectl apply -f config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml - # template: .action_templates/steps/run-test-single.yaml - - name: Run Test Single - run: | - python3 ./scripts/dev/e2e.py --test ${{ github.event.inputs.test-name }} --tag ${{ github.run_id }} --config_file ./scripts/ci/config.json --distro ${{ github.event.inputs.distro }} --cluster-wide ${{ github.event.inputs.cluster-wide }} - # template: .action_templates/steps/dump-and-upload-diagnostics-always.yaml - - name: Dump Diagnostics - if: always() - continue-on-error: true - run: scripts/ci/dump_diagnostics.sh default # default since kind is running in the default namespace - - - name: Upload Diagnostics - if: always() - uses: actions/upload-artifact@v4 - continue-on-error: true - with: - name: ${{ github.event.inputs.test-name }}-${{ github.event.inputs.distro - }}-diagnostics - path: ${{ github.workspace }}/diagnostics diff --git a/mongodb-community-operator/.github/workflows/e2e-fork.yml b/mongodb-community-operator/.github/workflows/e2e-fork.yml deleted file mode 100644 index a5c3ae53e..000000000 --- a/mongodb-community-operator/.github/workflows/e2e-fork.yml +++ /dev/null @@ -1,240 +0,0 @@ - -################################################################################## -# -# This file is automatically generated using templates. Changes to this file -# should happen through editing the templates under .action_templates/* -# Manual edits will be overwritten. -# -################################################################################## - -name: Run E2E Fork -on: - # template: .action_templates/events/pull-request-target.yaml - pull_request_target: - types: [labeled] - branches: - - master - paths-ignore: - - docs/** -jobs: - # template: .action_templates/jobs/display-github-context.yaml - action-context: - if: always() - runs-on: ubuntu-latest - steps: - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJSON(github) }} - run: echo "$GITHUB_CONTEXT" - # template: .action_templates/jobs/setup.yaml - setup: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - pipeline-argument: operator - - pipeline-argument: version-upgrade-hook - - pipeline-argument: readiness-probe - - pipeline-argument: agent - - pipeline-argument: e2e - if: contains(github.event.pull_request.labels.*.name, 'dependencies') || contains(github.event.pull_request.labels.*.name, - 'safe-to-test') - steps: - # template: .action_templates/steps/cancel-previous.yaml - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.1 - with: - access_token: ${{ github.token }} - # template: .action_templates/steps/checkout-fork.yaml - - name: Checkout Code - uses: actions/checkout@v4 - with: - ref: ${{github.event.pull_request.head.sha}} - repository: ${{github.event.pull_request.head.repo.full_name}} - submodules: true - # template: .action_templates/steps/setup-and-install-python.yaml - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: 3.10.4 - - name: Cache Dependencies - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ hashFiles('requirements.txt') }} - - name: Install Python Dependencies - run: pip install -r requirements.txt - # template: .action_templates/steps/quay-login.yaml - - name: Login to Quay.io - uses: docker/login-action@v3 - with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_ROBOT_TOKEN }} - # template: .action_templates/steps/set-up-qemu.yaml - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - # template: .action_templates/steps/build-and-push-development-images.yaml - - name: Build and Push Images - run: | - python pipeline.py --image-name ${{ matrix.pipeline-argument }} --tag ${{ github.run_id }} - env: - MONGODB_COMMUNITY_CONFIG: ${{ github.workspace }}/scripts/ci/config.json - version_id: ${{ github.run_id }} - # template: .action_templates/jobs/tests.yaml - tests: - runs-on: ubuntu-latest - needs: [setup] - strategy: - fail-fast: false - matrix: - include: - - test-name: replica_set - distro: ubi - - test-name: replica_set_enterprise_upgrade_4_5 - distro: ubi - - test-name: replica_set_enterprise_upgrade_5_6 - distro: ubi - - test-name: replica_set_enterprise_upgrade_6_7 - distro: ubi - - test-name: replica_set_enterprise_upgrade_7_8 - distro: ubi - - test-name: replica_set_recovery - distro: ubi - - test-name: replica_set_mongod_readiness - distro: ubi - - test-name: replica_set_scale - distro: ubi - - test-name: replica_set_scale_down - distro: ubi - - test-name: replica_set_change_version - distro: ubi - - test-name: feature_compatibility_version - distro: ubi - - test-name: prometheus - distro: ubi - - test-name: replica_set_tls - distro: ubi - - test-name: replica_set_tls_recreate_mdbc - distro: ubi - - test-name: replica_set_tls_rotate - distro: ubi - - test-name: replica_set_tls_rotate_delete_sts - distro: ubi - - test-name: replica_set_tls_upgrade - distro: ubi - - test-name: statefulset_arbitrary_config - distro: ubi - - test-name: statefulset_arbitrary_config_update - distro: ubi - - test-name: replica_set_mongod_config - distro: ubi - - test-name: replica_set_cross_namespace_deploy - distro: ubi - cluster-wide: true - - test-name: replica_set_custom_role - distro: ubi - - test-name: replica_set_arbiter - distro: ubi - - test-name: replica_set_custom_persistent_volume - distro: ubi - - test-name: replica_set_mount_connection_string - distro: ubi - - test-name: replica_set_mongod_port_change_with_arbiters - distro: ubi - - test-name: replica_set_operator_upgrade - distro: ubi - - test-name: replica_set_connection_string_options - distro: ubi - - test-name: replica_set_x509 - distro: ubi - - test-name: replica_set_remove_user - distro: ubi - steps: - # template: .action_templates/steps/cancel-previous.yaml - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.1 - with: - access_token: ${{ github.token }} - # template: .action_templates/steps/checkout-fork.yaml - - name: Checkout Code - uses: actions/checkout@v4 - with: - ref: ${{github.event.pull_request.head.sha}} - repository: ${{github.event.pull_request.head.repo.full_name}} - submodules: true - # template: .action_templates/steps/set-run-status.yaml - - name: Set default run status - run: echo "::set-output name=last_run_status::pending" > last_run_status - - # Tracking of the state of the previous test run is a workaround to the fact that it is not - # possible to re-run a single failed job, only re-running the entire workflow is currently possible. - # This workaround skips jobs if they have already passed. - # see https://github.com/actions/runner/issues/432 - - name: Restore last run status - id: last_run - uses: actions/cache@v4 - with: - path: last_run_status - key: ${{ github.run_id }}-${{ matrix.test-name }}-${{ matrix.distro }} - - - name: Set last run status - id: last_run_status - run: cat last_run_status - # template: .action_templates/steps/setup-and-install-python.yaml - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: 3.10.4 - - name: Cache Dependencies - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ hashFiles('requirements.txt') }} - - name: Install Python Dependencies - run: pip install -r requirements.txt - # template: .action_templates/steps/setup-kind-cluster.yaml - - name: Setup Kind Cluster - run: | - curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64 - chmod +x ./kind - ./kind create cluster - if: steps.last_run_status.outputs.last_run_status != 'success' - - name: Create Directories - run: | - docker exec kind-control-plane mkdir -p /opt/data/mongo-data-0 /opt/data/mongo-data-1 /opt/data/mongo-data-2 /opt/data/mongo-logs-0 /opt/data/mongo-logs-1 /opt/data/mongo-logs-2 - - if: steps.last_run_status.outputs.last_run_status != 'success' - - name: Install CRD - run: kubectl apply -f config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml - if: steps.last_run_status.outputs.last_run_status != 'success' - # template: .action_templates/steps/run-test-matrix.yaml - - name: Run Test - id: e2e_test - if: steps.last_run_status.outputs.last_run_status != 'success' - run: | - cluster_wide=${{ matrix.cluster-wide }} - if [ -z "$cluster_wide" ]; then - cluster_wide="false" - fi - python3 ./scripts/dev/e2e.py --test ${{ matrix.test-name }} --tag ${{ github.run_id }} --config_file ./scripts/ci/config.json --distro ${{ matrix.distro }} --cluster-wide ${cluster_wide} - # template: .action_templates/steps/save-run-status.yaml - - name: Save run status - if: always() - run: echo "::set-output name=last_run_status::${{ steps.e2e_test.outcome }}" - > last_run_status - # template: .action_templates/steps/dump-and-upload-diagnostics.yaml - - name: Dump Diagnostics - id: dump_diagnostics - if: always() && steps.e2e_test.outcome == 'failure' - continue-on-error: true - run: scripts/ci/dump_diagnostics.sh default # default since kind is running in the default namespace - - - name: Upload Diagnostics - if: always() && steps.dump_diagnostics.outcome == 'success' - uses: actions/upload-artifact@v4 - continue-on-error: true - with: - name: ${{ matrix.test-name }}-${{ matrix.distro }}-diagnostics - path: ${{ github.workspace }}/diagnostics diff --git a/mongodb-community-operator/.github/workflows/e2e.yml b/mongodb-community-operator/.github/workflows/e2e.yml deleted file mode 100644 index 8501431b6..000000000 --- a/mongodb-community-operator/.github/workflows/e2e.yml +++ /dev/null @@ -1,244 +0,0 @@ - -################################################################################## -# -# This file is automatically generated using templates. Changes to this file -# should happen through editing the templates under .action_templates/* -# Manual edits will be overwritten. -# -################################################################################## - -name: Run E2E -on: - # template: .action_templates/events/on-pull-request-master.yaml - pull_request: - branches: - - master - paths-ignore: - - docs/** - # template: .action_templates/events/on-push-master.yaml - push: - branches: - - master - paths-ignore: - - docs/** - # template: .action_templates/events/workflow-dispatch.yaml - workflow_dispatch: {} -jobs: - # template: .action_templates/jobs/display-github-context.yaml - action-context: - if: always() - runs-on: ubuntu-latest - steps: - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJSON(github) }} - run: echo "$GITHUB_CONTEXT" - # template: .action_templates/jobs/setup.yaml - setup: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - pipeline-argument: operator - - pipeline-argument: version-upgrade-hook - - pipeline-argument: readiness-probe - - pipeline-argument: agent - - pipeline-argument: e2e - if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' - || (github.event.pull_request.head.repo.full_name == github.repository && github.actor - != 'dependabot[bot]') - steps: - # template: .action_templates/steps/cancel-previous.yaml - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.1 - with: - access_token: ${{ github.token }} - # template: .action_templates/steps/checkout.yaml - - name: Checkout Code - uses: actions/checkout@v4 - with: - submodules: true - # template: .action_templates/steps/setup-and-install-python.yaml - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: 3.10.4 - - name: Cache Dependencies - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ hashFiles('requirements.txt') }} - - name: Install Python Dependencies - run: pip install -r requirements.txt - # template: .action_templates/steps/quay-login.yaml - - name: Login to Quay.io - uses: docker/login-action@v3 - with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_ROBOT_TOKEN }} - # template: .action_templates/steps/set-up-qemu.yaml - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - # template: .action_templates/steps/build-and-push-development-images.yaml - - name: Build and Push Images - run: | - python pipeline.py --image-name ${{ matrix.pipeline-argument }} --tag ${{ github.run_id }} - env: - MONGODB_COMMUNITY_CONFIG: ${{ github.workspace }}/scripts/ci/config.json - version_id: ${{ github.run_id }} - # template: .action_templates/jobs/tests.yaml - tests: - runs-on: ubuntu-latest - needs: [setup] - strategy: - fail-fast: false - matrix: - include: - - test-name: replica_set - distro: ubi - - test-name: replica_set_enterprise_upgrade_4_5 - distro: ubi - - test-name: replica_set_enterprise_upgrade_5_6 - distro: ubi - - test-name: replica_set_enterprise_upgrade_6_7 - distro: ubi - - test-name: replica_set_enterprise_upgrade_7_8 - distro: ubi - - test-name: replica_set_recovery - distro: ubi - - test-name: replica_set_mongod_readiness - distro: ubi - - test-name: replica_set_scale - distro: ubi - - test-name: replica_set_scale_down - distro: ubi - - test-name: replica_set_change_version - distro: ubi - - test-name: feature_compatibility_version - distro: ubi - - test-name: prometheus - distro: ubi - - test-name: replica_set_tls - distro: ubi - - test-name: replica_set_tls_recreate_mdbc - distro: ubi - - test-name: replica_set_tls_rotate - distro: ubi - - test-name: replica_set_tls_rotate_delete_sts - distro: ubi - - test-name: replica_set_tls_upgrade - distro: ubi - - test-name: statefulset_arbitrary_config - distro: ubi - - test-name: statefulset_arbitrary_config_update - distro: ubi - - test-name: replica_set_mongod_config - distro: ubi - - test-name: replica_set_cross_namespace_deploy - distro: ubi - cluster-wide: true - - test-name: replica_set_custom_role - distro: ubi - - test-name: replica_set_arbiter - distro: ubi - - test-name: replica_set_custom_persistent_volume - distro: ubi - - test-name: replica_set_mount_connection_string - distro: ubi - - test-name: replica_set_mongod_port_change_with_arbiters - distro: ubi - - test-name: replica_set_operator_upgrade - distro: ubi - - test-name: replica_set_connection_string_options - distro: ubi - - test-name: replica_set_x509 - distro: ubi - - test-name: replica_set_remove_user - distro: ubi - steps: - # template: .action_templates/steps/cancel-previous.yaml - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.1 - with: - access_token: ${{ github.token }} - # template: .action_templates/steps/checkout.yaml - - name: Checkout Code - uses: actions/checkout@v4 - with: - submodules: true - # template: .action_templates/steps/set-run-status.yaml - - name: Set default run status - run: echo "::set-output name=last_run_status::pending" > last_run_status - - # Tracking of the state of the previous test run is a workaround to the fact that it is not - # possible to re-run a single failed job, only re-running the entire workflow is currently possible. - # This workaround skips jobs if they have already passed. - # see https://github.com/actions/runner/issues/432 - - name: Restore last run status - id: last_run - uses: actions/cache@v4 - with: - path: last_run_status - key: ${{ github.run_id }}-${{ matrix.test-name }}-${{ matrix.distro }} - - - name: Set last run status - id: last_run_status - run: cat last_run_status - # template: .action_templates/steps/setup-and-install-python.yaml - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: 3.10.4 - - name: Cache Dependencies - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ hashFiles('requirements.txt') }} - - name: Install Python Dependencies - run: pip install -r requirements.txt - # template: .action_templates/steps/setup-kind-cluster.yaml - - name: Setup Kind Cluster - run: | - curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64 - chmod +x ./kind - ./kind create cluster - if: steps.last_run_status.outputs.last_run_status != 'success' - - name: Create Directories - run: | - docker exec kind-control-plane mkdir -p /opt/data/mongo-data-0 /opt/data/mongo-data-1 /opt/data/mongo-data-2 /opt/data/mongo-logs-0 /opt/data/mongo-logs-1 /opt/data/mongo-logs-2 - - if: steps.last_run_status.outputs.last_run_status != 'success' - - name: Install CRD - run: kubectl apply -f config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml - if: steps.last_run_status.outputs.last_run_status != 'success' - # template: .action_templates/steps/run-test-matrix.yaml - - name: Run Test - id: e2e_test - if: steps.last_run_status.outputs.last_run_status != 'success' - run: | - cluster_wide=${{ matrix.cluster-wide }} - if [ -z "$cluster_wide" ]; then - cluster_wide="false" - fi - python3 ./scripts/dev/e2e.py --test ${{ matrix.test-name }} --tag ${{ github.run_id }} --config_file ./scripts/ci/config.json --distro ${{ matrix.distro }} --cluster-wide ${cluster_wide} - # template: .action_templates/steps/save-run-status.yaml - - name: Save run status - if: always() - run: echo "::set-output name=last_run_status::${{ steps.e2e_test.outcome }}" - > last_run_status - # template: .action_templates/steps/dump-and-upload-diagnostics.yaml - - name: Dump Diagnostics - id: dump_diagnostics - if: always() && steps.e2e_test.outcome == 'failure' - continue-on-error: true - run: scripts/ci/dump_diagnostics.sh default # default since kind is running in the default namespace - - - name: Upload Diagnostics - if: always() && steps.dump_diagnostics.outcome == 'success' - uses: actions/upload-artifact@v4 - continue-on-error: true - with: - name: ${{ matrix.test-name }}-${{ matrix.distro }}-diagnostics - path: ${{ github.workspace }}/diagnostics diff --git a/mongodb-community-operator/.github/workflows/go.yml b/mongodb-community-operator/.github/workflows/go.yml deleted file mode 100644 index ecce33378..000000000 --- a/mongodb-community-operator/.github/workflows/go.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Go - -on: - pull_request: - branches: [master] - -jobs: - - UnitTests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.24' - - - name: Test api - run: go test -v ./api/... - - - name: Test cmd - run: go test -v ./cmd/... - - - name: Test controllers - run: go test -v ./controllers/... - - - name: Test pkg - run: go test -v ./pkg/... - - - name: Test mongotester - run: go test -v ./test/e2e/util/mongotester/... - - - name: Check licenses - run: make check-licenses diff --git a/mongodb-community-operator/.github/workflows/kubelinter-check.yml b/mongodb-community-operator/.github/workflows/kubelinter-check.yml deleted file mode 100644 index 2fcb5b725..000000000 --- a/mongodb-community-operator/.github/workflows/kubelinter-check.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Kubelinter-check - -on: - push: - branches: - - master - paths-ignore: - - docs/** - pull_request: - branches: - - master - workflow_dispatch: {} - -jobs: - Kubelinter-check: - name: Run Kube-linter check - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - - name: Scan directory ./deploy/clusterwide/ with kube-linter - uses: stackrox/kube-linter-action@v1.0.3 - with: - directory: deploy/clusterwide - config: ${GITHUB_WORKSPACE}/.github/config_files/config_lint_clusterwide.yaml - version: "48442350" # Note: This is the id for release 0.2.3 returned from api.github.com/repos/stackrox/kube-linter/releases - - - name: Scan directory ./deploy/openshift/ with kube-linter - uses: stackrox/kube-linter-action@v1.0.3 - with: - directory: deploy/openshift - config: ${GITHUB_WORKSPACE}/.github/config_files/config_lint_openshift.yaml - version: "48442350" - - - name: Scan directory ./config/manager/ with kube-linter - uses: stackrox/kube-linter-action@v1.0.3 - with: - directory: config/manager/manager.yaml - config: ${GITHUB_WORKSPACE}/.github/config_files/config_lint.yaml - version: "48442350" - - - name: Scan directory ./config/samples/ with kube-linter - uses: stackrox/kube-linter-action@v1.0.3 - with: - directory: config/samples - config: ${GITHUB_WORKSPACE}/.github/config_files/config_lint.yaml - version: "48442350" diff --git a/mongodb-community-operator/.github/workflows/main.yaml b/mongodb-community-operator/.github/workflows/main.yaml deleted file mode 100644 index 3442f28df..000000000 --- a/mongodb-community-operator/.github/workflows/main.yaml +++ /dev/null @@ -1,53 +0,0 @@ ---- -########################### -########################### -## Linter GitHub Actions ## -########################### -########################### -name: Lint Code Base - -# -# Documentation: -# https://help.github.com/en/articles/workflow-syntax-for-github-actions -# - -############################# -# Start the job on all push # -############################# -on: - pull_request: - branches: [master] - -############### -# Set the Job # -############### -jobs: - build: - # Name the Job - name: Lint Code Base - # Set the agent to run on - runs-on: ubuntu-latest - - ################## - # Load all steps # - ################## - steps: - ########################## - # Checkout the code base # - ########################## - - name: Checkout Code - uses: actions/checkout@v4 - with: - # Make sure we also get the helm-charts submodule! - submodules: true - - - name: Install missing python packages - run: sudo apt-get install -y --no-install-recommends python3-venv python3-setuptools - - - name: Install dependencies with pip + requirements.txt - run: | - python3 -m venv .venv - .venv/bin/pip install -r requirements.txt - - - name: Move the dependencies - run: mv .venv /home/runner/work/_temp/_github_workflow diff --git a/mongodb-community-operator/.github/workflows/release-images.yml b/mongodb-community-operator/.github/workflows/release-images.yml deleted file mode 100644 index 5ced57eae..000000000 --- a/mongodb-community-operator/.github/workflows/release-images.yml +++ /dev/null @@ -1,87 +0,0 @@ -name: Release Images - -on: - pull_request_review: - types: [submitted] - workflow_dispatch: - -jobs: - release-images: - runs-on: ubuntu-latest - if: startsWith(github.event.pull_request.title, 'Release MongoDB Kubernetes Operator') && github.event.review.state == 'approved' - strategy: - matrix: - include: - - pipeline-argument: operator - release-key: operator - - pipeline-argument: version-upgrade-hook - release-key: version-upgrade-hook - - pipeline-argument: readiness-probe - release-key: readiness-probe - - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: '3.10.4' - architecture: 'x64' - - - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ hashFiles('requirements.txt') }} - - - name: Install Python Dependencies - run: pip install -r requirements.txt - - name: Determine if release is needed - id: release_status - run: | - OUTPUT=$(scripts/ci/determine_required_releases.py ${{ matrix.release-key }}) - echo "::set-output name=OUTPUT::$OUTPUT" - - - name: Login to Quay.io - uses: docker/login-action@v1 - with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_ROBOT_TOKEN }} - - # template: .action_templates/steps/set-up-qemu.yaml - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Publish Image To Quay - if: steps.release_status.outputs.OUTPUT == 'unreleased' - run: python pipeline.py --image-name ${{ matrix.pipeline-argument }} --release --sign - env: - MONGODB_COMMUNITY_CONFIG: "${{ github.workspace }}/scripts/ci/config.json" - AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" - AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" - GRS_USERNAME: "${{ vars.GRS_USERNAME }}" - GRS_PASSWORD: "${{ secrets.GRS_PASSWORD }}" - PKCS11_URI: "${{ vars.PKCS11_URI }}" - ARTIFACTORY_USERNAME: "${{ vars.ARTIFACTORY_USERNAME }}" - ARTIFACTORY_PASSWORD: "${{ secrets.ARTIFACTORY_PASSWORD }}" - AWS_DEFAULT_REGION: "${{ vars.AWS_DEFAULT_REGION }}" - - create-draft-release: - runs-on: ubuntu-latest - needs: [release-images] - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - name: Determine Release Tag - id: release_tag - run: | - OUTPUT=$(jq -r '."mongodb-kubernetes-operator"' < $GITHUB_WORKSPACE/release.json) - echo "::set-output name=OUTPUT::$OUTPUT" - - name: Create Github Release - uses: ncipollo/release-action@v1 - with: - tag: "v${{ steps.release_tag.outputs.OUTPUT }}" - name: MongoDB Kubernetes Operator - bodyFile: "${{ github.workspace }}/docs/RELEASE_NOTES.md" - draft: true - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/mongodb-community-operator/.github/workflows/release-single-image.yml b/mongodb-community-operator/.github/workflows/release-single-image.yml deleted file mode 100644 index 162454391..000000000 --- a/mongodb-community-operator/.github/workflows/release-single-image.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Release Single Image -on: - workflow_dispatch: - inputs: - pipeline-argument: - description: 'Argument to pass to pipeline' - required: true - release-key: - description: 'Corresponding release.json key' - required: true -jobs: - release-single-image: - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: '3.10.4' - architecture: 'x64' - - - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ hashFiles('requirements.txt') }} - - - name: Install Python Dependencies - run: pip install -r requirements.txt - - name: Determine if release is needed - id: release_status - run: | - OUTPUT=$(scripts/ci/determine_required_releases.py ${{ github.event.inputs.release-key }}) - echo "::set-output name=OUTPUT::$OUTPUT" - - - name: Login to Quay.io - uses: docker/login-action@v1 - with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_ROBOT_TOKEN }} - - # template: .action_templates/steps/set-up-qemu.yaml - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Publish Image To Quay - if: steps.release_status.outputs.OUTPUT == 'unreleased' - run: python pipeline.py --image-name ${{ github.event.inputs.pipeline-argument }} --release --sign - env: - MONGODB_COMMUNITY_CONFIG: "${{ github.workspace }}/scripts/ci/config.json" - AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" - AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" - GRS_USERNAME: "${{ vars.GRS_USERNAME }}" - GRS_PASSWORD: "${{ secrets.GRS_PASSWORD }}" - PKCS11_URI: "${{ vars.PKCS11_URI }}" - ARTIFACTORY_USERNAME: "${{ vars.ARTIFACTORY_USERNAME }}" - ARTIFACTORY_PASSWORD: "${{ secrets.ARTIFACTORY_PASSWORD }}" diff --git a/mongodb-community-operator/.github/workflows/remove-label.yml b/mongodb-community-operator/.github/workflows/remove-label.yml deleted file mode 100644 index 60316ff49..000000000 --- a/mongodb-community-operator/.github/workflows/remove-label.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Remove Label -on: [ pull_request ] -jobs: - remove-safe-to-test-label: - runs-on: ubuntu-latest - name: Remove Label - steps: - - name: - uses: buildsville/add-remove-label@v1 - with: - token: ${{secrets.GITHUB_TOKEN}} - label: safe-to-test - type: remove diff --git a/mongodb-community-operator/.gitmodules b/mongodb-community-operator/.gitmodules deleted file mode 100644 index ba9320f66..000000000 --- a/mongodb-community-operator/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "helm-charts"] - path = mongodb-community-operator/helm-charts - url = git@github.com:mongodb/helm-charts.git diff --git a/mongodb-community-operator/.golangci.yml b/mongodb-community-operator/.golangci.yml deleted file mode 100644 index 795e08728..000000000 --- a/mongodb-community-operator/.golangci.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -######################### -######################### -## Golang Linter rules ## -######################### -######################### - -# configure golangci-lint -# see https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml -issues: - exclude-rules: - - path: _test\.go - linters: - - dupl - - gosec - - goconst - - golint - text: "underscore" - - path: ^pkg\/util\/envvar - linters: - - forbidigo - - path: ^cmd\/(readiness|versionhook|manager)\/main\.go$ - linters: - - forbidigo -linters: - enable: - - govet - - errcheck - - staticcheck - - unused - - gosimple - - ineffassign - - typecheck - - rowserrcheck - - gosec - - unconvert - - forbidigo -linters-settings: - gosec: - excludes: - - G115 - forbidigo: - forbid: - - p: os\.(Getenv|LookupEnv|Environ|ExpandEnv) - pkg: os - msg: "Reading environemnt variables here is prohibited. Please read environment variables in the main package." - - p: os\.(Clearenv|Unsetenv|Setenv) - msg: "Modifying environemnt variables is prohibited." - pkg: os - - p: envvar\.(Read.*?|MergeWithOverride|GetEnvOrDefault) - pkg: github.com/mongodb/mongodb-kubernetes-operator/pkg/util/envvar - msg: "Using this envvar package here is prohibited. Please work with environment variables in the main package." - # Rules with the `pkg` depend on it - analyze-types: true - -run: - modules-download-mode: mod - # timeout for analysis, e.g. 30s, 5m, default is 1m - timeout: 5m - # default concurrency is a available CPU number - concurrency: 4 diff --git a/mongodb-community-operator/Makefile b/mongodb-community-operator/Makefile deleted file mode 100644 index 6f1811c8f..000000000 --- a/mongodb-community-operator/Makefile +++ /dev/null @@ -1,242 +0,0 @@ -SHELL := /bin/bash - -MONGODB_COMMUNITY_CONFIG ?= $(HOME)/.community-operator-dev/config.json - -# Image URL to use all building/pushing image targets -REPO_URL := $(shell jq -r .repo_url < $(MONGODB_COMMUNITY_CONFIG)) -OPERATOR_IMAGE := $(shell jq -r .operator_image < $(MONGODB_COMMUNITY_CONFIG)) -NAMESPACE := $(shell jq -r .namespace < $(MONGODB_COMMUNITY_CONFIG)) -UPGRADE_HOOK_IMG := $(shell jq -r .version_upgrade_hook_image < $(MONGODB_COMMUNITY_CONFIG)) -READINESS_PROBE_IMG := $(shell jq -r .readiness_probe_image < $(MONGODB_COMMUNITY_CONFIG)) -REGISTRY := $(shell jq -r .repo_url < $(MONGODB_COMMUNITY_CONFIG)) -AGENT_IMAGE_NAME := $(shell jq -r .agent_image < $(MONGODB_COMMUNITY_CONFIG)) -HELM_CHART ?= ./helm-charts/charts/community-operator - -STRING_SET_VALUES := --set namespace=$(NAMESPACE),versionUpgradeHook.name=$(UPGRADE_HOOK_IMG),readinessProbe.name=$(READINESS_PROBE_IMG),registry.operator=$(REPO_URL),operator.operatorImageName=$(OPERATOR_IMAGE),operator.version=latest,registry.agent=$(REGISTRY),registry.versionUpgradeHook=$(REGISTRY),registry.readinessProbe=$(REGISTRY),registry.operator=$(REGISTRY),versionUpgradeHook.version=latest,readinessProbe.version=latest,agent.version=latest,agent.name=$(AGENT_IMAGE_NAME) -STRING_SET_VALUES_LOCAL := $(STRING_SET_VALUES) --set operator.replicas=0 - -DOCKERFILE ?= operator -# Produce CRDs that work back to Kubernetes 1.11 (no version conversion) -CRD_OPTIONS ?= "crd:crdVersions=v1" -RELEASE_NAME_HELM ?= mongodb-kubernetes-operator -TEST_NAMESPACE ?= $(NAMESPACE) - -# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) -ifeq (,$(shell go env GOBIN)) -GOBIN=$(shell go env GOPATH)/bin -else -GOBIN=$(shell go env GOBIN) -endif - -BASE_GO_PACKAGE = github.com/mongodb/mongodb-kubernetes-operator -GO_LICENSES = go-licenses -DISALLOWED_LICENSES = restricted # found reciprocal MPL-2.0 - -all: manager - -##@ Development - -fmt: ## Run go fmt against code - go fmt ./... - -vet: ## Run go vet against code - go vet ./... - -generate: controller-gen ## Generate code - $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..." - -$(GO_LICENSES): - @if ! which $@ &> /dev/null; then \ - go install github.com/google/go-licenses@latest; \ - fi - -licenses.csv: go.mod $(GO_LICENSES) ## Track licenses in a CSV file - @echo "Tracking licenses into file $@" - @echo "========================================" - GOOS=linux GOARCH=amd64 $(GO_LICENSES) csv --include_tests $(BASE_GO_PACKAGE)/... > $@ - -# We only check that go.mod is NOT newer than licenses.csv because the CI -# tends to generate slightly different results, so content comparison wouldn't work -licenses-tracked: ## Checks license.csv is up to date - @if [ go.mod -nt licenses.csv ]; then \ - echo "License.csv is stale! Please run 'make licenses.csv' and commit"; exit 1; \ - else echo "License.csv OK (up to date)"; fi - -.PHONY: check-licenses-compliance -check-licenses-compliance: licenses.csv ## Check licenses are compliant with our restrictions - @echo "Checking licenses not to be: $(DISALLOWED_LICENSES)" - @echo "============================================" - GOOS=linux GOARCH=amd64 $(GO_LICENSES) check --include_tests $(BASE_GO_PACKAGE)/... \ - --disallowed_types $(DISALLOWED_LICENSES) - @echo "--------------------" - @echo "Licenses check: PASS" - -.PHONY: check-licenses -check-licenses: licenses-tracked check-licenses-compliance ## Check license tracking & compliance - -TEST ?= ./pkg/... ./api/... ./cmd/... ./controllers/... ./test/e2e/util/mongotester/... -test: generate fmt vet manifests ## Run unit tests - go test $(options) $(TEST) -coverprofile cover.out - -manager: generate fmt vet ## Build operator binary - go build -o bin/manager ./cmd/manager/main.go - -run: install ## Run the operator against the configured Kubernetes cluster in ~/.kube/config - eval $$(scripts/dev/get_e2e_env_vars.py $(cleanup)); \ - go run ./cmd/manager/main.go - -debug: install install-rbac ## Run the operator in debug mode with dlv - eval $$(scripts/dev/get_e2e_env_vars.py $(cleanup)); \ - dlv debug ./cmd/manager/main.go - -CONTROLLER_GEN = $(shell pwd)/bin/controller-gen -controller-gen: ## Download controller-gen locally if necessary - $(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.15.0) - -# Try to use already installed helm from PATH -ifeq (ok,$(shell test -f "$$(which helm)" && echo ok)) - HELM=$(shell which helm) -else - HELM=/usr/local/bin/helm -endif - -helm: ## Download helm locally if necessary - $(call install-helm) - -install-prerequisites-macos: ## installs prerequisites for macos development - scripts/dev/install_prerequisites.sh - -##@ Installation/Uninstallation - -install: manifests helm install-crd ## Install CRDs into a cluster - -install-crd: - kubectl apply -f config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml - -install-chart: uninstall-crd - $(HELM) upgrade --install $(STRING_SET_VALUES) $(RELEASE_NAME_HELM) $(HELM_CHART) --namespace $(NAMESPACE) --create-namespace - -install-chart-local-operator: uninstall-crd - $(HELM) upgrade --install $(STRING_SET_VALUES_LOCAL) $(RELEASE_NAME_HELM) $(HELM_CHART) --namespace $(NAMESPACE) --create-namespace - -prepare-local-dev: generate-env-file install-chart-local-operator install-rbac setup-sas - -# patches all sas to use the local-image-registry -setup-sas: - scripts/dev/setup_sa.sh - -install-chart-with-tls-enabled: - $(HELM) upgrade --install --set createResource=true $(STRING_SET_VALUES) $(RELEASE_NAME_HELM) $(HELM_CHART) --namespace $(NAMESPACE) --create-namespace - -install-rbac: - $(HELM) template $(STRING_SET_VALUES) -s templates/database_roles.yaml $(HELM_CHART) | kubectl apply -f - - $(HELM) template $(STRING_SET_VALUES) -s templates/operator_roles.yaml $(HELM_CHART) | kubectl apply -f - - -uninstall-crd: - kubectl delete crd --ignore-not-found mongodbcommunity.mongodbcommunity.mongodb.com - -uninstall-chart: - $(HELM) uninstall $(RELEASE_NAME_HELM) -n $(NAMESPACE) - -uninstall-rbac: - $(HELM) template $(STRING_SET_VALUES) -s templates/database_roles.yaml $(HELM_CHART) | kubectl delete -f - - $(HELM) template $(STRING_SET_VALUES) -s templates/operator_roles.yaml $(HELM_CHART) | kubectl delete -f - - -uninstall: manifests helm uninstall-chart uninstall-crd ## Uninstall CRDs from a cluster - -##@ Deployment - -deploy: manifests helm install-chart install-crd ## Deploy controller in the configured Kubernetes cluster in ~/.kube/config - -undeploy: uninstall-chart uninstall-crd ## UnDeploy controller from the configured Kubernetes cluster in ~/.kube/config - -manifests: controller-gen ## Generate manifests e.g. CRD, RBAC etc. - $(CONTROLLER_GEN) $(CRD_OPTIONS) paths="./..." output:crd:artifacts:config=config/crd/bases - cp config/crd/bases/* $(HELM_CHART)/crds - -##@ E2E - -# Run e2e tests locally using go build while also setting up a proxy in the shell to allow -# the test to run as if it were inside the cluster. This enables mongodb connectivity while running locally. -# "MDB_LOCAL_OPERATOR=true" ensures the operator pod is not spun up while running the e2e test - since you're -# running it locally. -e2e-telepresence: cleanup-e2e install ## Run e2e tests locally using go build while also setting up a proxy e.g. make e2e-telepresence test=replica_set cleanup=true - export MDB_LOCAL_OPERATOR=true; \ - telepresence connect; \ - eval $$(scripts/dev/get_e2e_env_vars.py $(cleanup)); \ - go test -v -timeout=30m -failfast $(options) ./test/e2e/$(test) ; \ - telepresence quit - -e2e-k8s: cleanup-e2e install e2e-image ## Run e2e test by deploying test image in kubernetes, you can provide e2e.py flags e.g. make e2e-k8s test=replica_set e2eflags="--perform-cleanup". - python scripts/dev/e2e.py $(e2eflags) --test $(test) - -e2e: cleanup-e2e install ## Run e2e test locally. e.g. make e2e test=replica_set cleanup=true - eval $$(scripts/dev/get_e2e_env_vars.py $(cleanup)); \ - go test -v -short -timeout=30m -failfast $(options) ./test/e2e/$(test) - -e2e-gh: ## Trigger a Github Action of the given test - scripts/dev/run_e2e_gh.sh $(test) - -cleanup-e2e: ## Cleans up e2e test env - kubectl delete mdbc,all,secrets -l e2e-test=true -n ${TEST_NAMESPACE} || true - # Most of the tests use StatefulSets, which in turn use stable storage. In order to - # avoid interleaving tests with each other, we need to drop them all. - kubectl delete pvc --all -n $(NAMESPACE) || true - kubectl delete pv --all -n $(NAMESPACE) || true - -generate-env-file: ## generates a local-test.env for local testing - mkdir -p .community-operator-dev - { python scripts/dev/get_e2e_env_vars.py | tee >(cut -d' ' -f2 > .community-operator-dev/local-test.env) ;} > .community-operator-dev/local-test.export.env - . .community-operator-dev/local-test.export.env - -##@ Image - -operator-image: ## Build and push the operator image - python pipeline.py --image-name operator $(IMG_BUILD_ARGS) - -e2e-image: ## Build and push e2e test image - python pipeline.py --image-name e2e $(IMG_BUILD_ARGS) - -agent-image: ## Build and push agent image - python pipeline.py --image-name agent $(IMG_BUILD_ARGS) - -readiness-probe-image: ## Build and push readiness probe image - python pipeline.py --image-name readiness-probe $(IMG_BUILD_ARGS) - -version-upgrade-post-start-hook-image: ## Build and push version upgrade post start hook image - python pipeline.py --image-name version-upgrade-hook $(IMG_BUILD_ARGS) - -all-images: operator-image e2e-image agent-image readiness-probe-image version-upgrade-post-start-hook-image ## create all required images - -define install-helm -@[ -f $(HELM) ] || { \ -set -e ;\ -TMP_DIR=$$(mktemp -d) ;\ -cd $$TMP_DIR ;\ -curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 ;\ -chmod 700 get_helm.sh ;\ -./get_helm.sh ;\ -rm -rf $(TMP_DIR) ;\ -} -endef - -# go-install-tool will 'go install' any package $2 and install it to $1. -PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST)))) -define go-install-tool -@[ -f $(1) ] || { \ -set -e ;\ -TMP_DIR=$$(mktemp -d) ;\ -cd $$TMP_DIR ;\ -go mod init tmp ;\ -echo "Downloading $(2)" ;\ -GOBIN=$(PROJECT_DIR)/bin go install $(2) ;\ -rm -rf $$TMP_DIR ;\ -} -endef - -help: ## Show this help screen. - @echo 'Usage: make ... ' - @echo '' - @echo 'Available targets are:' - @echo '' - @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-25s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) diff --git a/mongodb-community-operator/cmd/manager/main.go b/mongodb-community-operator/cmd/manager/main.go deleted file mode 100644 index b8dd5d184..000000000 --- a/mongodb-community-operator/cmd/manager/main.go +++ /dev/null @@ -1,130 +0,0 @@ -package main - -import ( - "fmt" - "os" - - "sigs.k8s.io/controller-runtime/pkg/cache" - - mdbv1 "github.com/mongodb/mongodb-kubernetes-operator/api/v1" - "github.com/mongodb/mongodb-kubernetes-operator/controllers" - "github.com/mongodb/mongodb-kubernetes-operator/controllers/construct" - "github.com/mongodb/mongodb-kubernetes-operator/pkg/util/envvar" - "go.uber.org/zap" - "k8s.io/apimachinery/pkg/runtime" - utilruntime "k8s.io/apimachinery/pkg/util/runtime" - clientgoscheme "k8s.io/client-go/kubernetes/scheme" - "sigs.k8s.io/controller-runtime/pkg/client/config" - "sigs.k8s.io/controller-runtime/pkg/manager" - "sigs.k8s.io/controller-runtime/pkg/manager/signals" -) - -var ( - scheme = runtime.NewScheme() -) - -const ( - WatchNamespaceEnv = "WATCH_NAMESPACE" -) - -func init() { - utilruntime.Must(clientgoscheme.AddToScheme(scheme)) - - utilruntime.Must(mdbv1.AddToScheme(scheme)) - // +kubebuilder:scaffold:scheme -} - -func configureLogger() (*zap.Logger, error) { - // TODO: configure non development logger - logger, err := zap.NewDevelopment() - zap.ReplaceGlobals(logger) - return logger, err -} - -func hasRequiredVariables(logger *zap.Logger, envVariables ...string) bool { - allPresent := true - for _, envVariable := range envVariables { - if _, envSpecified := os.LookupEnv(envVariable); !envSpecified { - logger.Error(fmt.Sprintf("required environment variable %s not found", envVariable)) - allPresent = false - } - } - return allPresent -} - -func main() { - log, err := configureLogger() - if err != nil { - log.Sugar().Fatalf("Failed to configure logger: %v", err) - } - - if !hasRequiredVariables( - log, - construct.MongodbRepoUrlEnv, - construct.MongodbImageEnv, - construct.AgentImageEnv, - construct.VersionUpgradeHookImageEnv, - construct.ReadinessProbeImageEnv, - ) { - os.Exit(1) - } - - // Get watch namespace from environment variable. - namespace, nsSpecified := os.LookupEnv(WatchNamespaceEnv) - if !nsSpecified { - log.Sugar().Fatal("No namespace specified to watch") - } - - // If namespace is a wildcard use the empty string to represent all namespaces - watchNamespace := "" - if namespace == "*" { - log.Info("Watching all namespaces") - } else { - watchNamespace = namespace - log.Sugar().Infof("Watching namespace: %s", watchNamespace) - } - - // Get a config to talk to the apiserver - cfg, err := config.GetConfig() - if err != nil { - log.Sugar().Fatalf("Unable to get config: %v", err) - } - - // Create a new Cmd to provide shared dependencies and start components - mgr, err := manager.New(cfg, manager.Options{ - Cache: cache.Options{ - DefaultNamespaces: map[string]cache.Config{watchNamespace: {}}, - }, - }) - if err != nil { - log.Sugar().Fatalf("Unable to create manager: %v", err) - } - - log.Info("Registering Components.") - - // Setup Scheme for all resources - if err := mdbv1.AddToScheme(mgr.GetScheme()); err != nil { - log.Sugar().Fatalf("Unable to add mdbv1 to scheme: %v", err) - } - - // Setup Controller. - if err = controllers.NewReconciler( - mgr, - os.Getenv(construct.MongodbRepoUrlEnv), - os.Getenv(construct.MongodbImageEnv), - envvar.GetEnvOrDefault(construct.MongoDBImageTypeEnv, construct.DefaultImageType), - os.Getenv(construct.AgentImageEnv), - os.Getenv(construct.VersionUpgradeHookImageEnv), - os.Getenv(construct.ReadinessProbeImageEnv), - ).SetupWithManager(mgr); err != nil { - log.Sugar().Fatalf("Unable to create controller: %v", err) - } - // +kubebuilder:scaffold:builder - - log.Info("Starting the Cmd.") - - // Start the Cmd - if err := mgr.Start(signals.SetupSignalHandler()); err != nil { - log.Sugar().Fatalf("Unable to start manager: %v", err) - } -} diff --git a/mongodb-community-operator/go.mod b/mongodb-community-operator/go.mod deleted file mode 100644 index 35b8ccebc..000000000 --- a/mongodb-community-operator/go.mod +++ /dev/null @@ -1,90 +0,0 @@ -module github.com/mongodb/mongodb-kubernetes-operator - -go 1.24.0 - -require ( - github.com/blang/semver v3.5.1+incompatible - github.com/go-logr/logr v1.4.2 - github.com/hashicorp/go-multierror v1.1.1 - github.com/imdario/mergo v0.3.15 - github.com/spf13/cast v1.7.1 - github.com/stretchr/objx v0.5.2 - github.com/stretchr/testify v1.10.0 - github.com/xdg/stringprep v1.0.3 - go.mongodb.org/mongo-driver v1.16.0 - go.uber.org/zap v1.27.0 - gopkg.in/natefinch/lumberjack.v2 v2.2.1 - k8s.io/api v0.30.10 - k8s.io/apimachinery v0.30.10 - k8s.io/client-go v0.30.10 - k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 - sigs.k8s.io/controller-runtime v0.18.7 - sigs.k8s.io/yaml v1.4.0 -) - -require google.golang.org/protobuf v1.33.0 // indirect - -require ( - github.com/beorn7/perks v1.0.1 // indirect - github.com/cespare/xxhash/v2 v2.2.0 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/emicklei/go-restful/v3 v3.11.0 // indirect - github.com/evanphx/json-patch v4.12.0+incompatible // indirect - github.com/evanphx/json-patch/v5 v5.9.0 // indirect - github.com/fsnotify/fsnotify v1.7.0 // indirect - github.com/go-openapi/jsonpointer v0.19.6 // indirect - github.com/go-openapi/jsonreference v0.20.2 // indirect - github.com/go-openapi/swag v0.22.3 // indirect - github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/protobuf v1.5.4 // indirect - github.com/golang/snappy v0.0.4 // indirect - github.com/google/gnostic-models v0.6.8 // indirect - github.com/google/go-cmp v0.6.0 // indirect - github.com/google/gofuzz v1.2.0 // indirect - github.com/google/uuid v1.3.0 // indirect - github.com/gorilla/websocket v1.5.0 // indirect - github.com/hashicorp/errwrap v1.0.0 // indirect - github.com/josharian/intern v1.0.0 // indirect - github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.13.6 // indirect - github.com/mailru/easyjson v0.7.7 // indirect - github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect - github.com/moby/spdystream v0.2.0 // indirect - github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.2 // indirect - github.com/montanaflynn/stats v0.7.1 // indirect - github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect - github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/prometheus/client_golang v1.18.0 // indirect - github.com/prometheus/client_model v0.5.0 // indirect - github.com/prometheus/common v0.45.0 // indirect - github.com/prometheus/procfs v0.12.0 // indirect - github.com/spf13/pflag v1.0.5 // indirect - github.com/xdg-go/pbkdf2 v1.0.0 // indirect - github.com/xdg-go/scram v1.1.2 // indirect - github.com/xdg-go/stringprep v1.0.4 // indirect - github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect - go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.37.0 // indirect - golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect - golang.org/x/net v0.39.0 // indirect - golang.org/x/oauth2 v0.29.0 // indirect - golang.org/x/sync v0.13.0 // indirect - golang.org/x/sys v0.32.0 // indirect - golang.org/x/term v0.31.0 // indirect - golang.org/x/text v0.24.0 // indirect - golang.org/x/time v0.3.0 // indirect - golang.org/x/tools v0.23.0 // indirect - gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect - gopkg.in/inf.v0 v0.9.1 // indirect - gopkg.in/yaml.v2 v2.4.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/apiextensions-apiserver v0.30.1 // indirect - k8s.io/klog/v2 v2.120.1 // indirect - k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect - sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect - sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect -) diff --git a/mongodb-community-operator/go.sum b/mongodb-community-operator/go.sum deleted file mode 100644 index 4e2b54c85..000000000 --- a/mongodb-community-operator/go.sum +++ /dev/null @@ -1,247 +0,0 @@ -github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= -github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= -github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= -github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= -github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= -github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g= -github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= -github.com/evanphx/json-patch v4.12.0+incompatible h1:4onqiflcdA9EOZ4RxV643DvftH5pOlLGNtQ5lPWQu84= -github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch/v5 v5.9.0 h1:kcBlZQbplgElYIlo/n1hJbls2z/1awpXxpRi0/FOJfg= -github.com/evanphx/json-patch/v5 v5.9.0/go.mod h1:VNkHZ/282BpEyt/tObQO8s5CMPmYYq14uClGH4abBuQ= -github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= -github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= -github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= -github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= -github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= -github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= -github.com/go-logr/zapr v1.3.0 h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ= -github.com/go-logr/zapr v1.3.0/go.mod h1:YKepepNBd1u/oyhd/yQmtjVXmm9uML4IXUgMOwR8/Gg= -github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE= -github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= -github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE= -github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= -github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g= -github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= -github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= -github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/google/gnostic-models v0.6.8 h1:yo/ABAfM5IMRsS1VnXjTBvUb61tFIHozhlYvRgGre9I= -github.com/google/gnostic-models v0.6.8/go.mod h1:5n7qKqH0f5wFt+aWF8CW6pZLLNOfYuF5OpfBSENuI8U= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= -github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 h1:K6RDEckDVWvDI9JAJYCmNdQXq6neHJOYx3V6jnqNEec= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= -github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= -github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/imdario/mergo v0.3.15 h1:M8XP7IuFNsqUx6VPK2P9OSmsYsI/YFaGil0uD21V3dM= -github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= -github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= -github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= -github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.13.6 h1:P76CopJELS0TiO2mebmnzgWaajssP/EszplttgQxcgc= -github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= -github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg= -github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= -github.com/moby/spdystream v0.2.0 h1:cjW1zVyyoiM0T7b6UoySUFqzXMoqRckQtXwGPiBhOM8= -github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/montanaflynn/stats v0.7.1 h1:etflOAAHORrCC44V+aR6Ftzort912ZU+YLiSTuV8eaE= -github.com/montanaflynn/stats v0.7.1/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus= -github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= -github.com/onsi/ginkgo/v2 v2.17.1 h1:V++EzdbhI4ZV4ev0UTIj0PzhzOcReJFyJaLjtSF55M8= -github.com/onsi/ginkgo/v2 v2.17.1/go.mod h1:llBI3WDLL9Z6taip6f33H76YcWtJv+7R3HigUjbIBOs= -github.com/onsi/gomega v1.32.0 h1:JRYU78fJ1LPxlckP6Txi/EYqJvjtMrDC04/MM5XRHPk= -github.com/onsi/gomega v1.32.0/go.mod h1:a4x4gW6Pz2yK1MAmvluYme5lvYTn61afQ2ETw/8n4Lg= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_golang v1.18.0 h1:HzFfmkOzH5Q8L8G+kSJKUx5dtG87sewO+FoDDqP5Tbk= -github.com/prometheus/client_golang v1.18.0/go.mod h1:T+GXkCk5wSJyOqMIzVgvvjFDlkOQntgjkJWKrN5txjA= -github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= -github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= -github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM= -github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= -github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= -github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= -github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= -github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= -github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y= -github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= -github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/xdg-go/pbkdf2 v1.0.0 h1:Su7DPu48wXMwC3bs7MCNG+z4FhcyEuz5dlvchbq0B0c= -github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= -github.com/xdg-go/scram v1.1.2 h1:FHX5I5B4i4hKRVRBCFRxq1iQRej7WO3hhBuJf+UUySY= -github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4= -github.com/xdg-go/stringprep v1.0.4 h1:XLI/Ng3O1Atzq0oBs3TWm+5ZVgkq2aqdlvP9JtoZ6c8= -github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= -github.com/xdg/stringprep v1.0.3 h1:cmL5Enob4W83ti/ZHuZLuKD/xqJfus4fVPwE+/BDm+4= -github.com/xdg/stringprep v1.0.3/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= -github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d h1:splanxYIlg+5LfHAM6xpdFEAYOk8iySO56hMFq6uLyA= -github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.mongodb.org/mongo-driver v1.16.0 h1:tpRsfBJMROVHKpdGyc1BBEzzjDUWjItxbVSZ8Ls4BQ4= -go.mongodb.org/mongo-driver v1.16.0/go.mod h1:oB6AhJQvFQL4LEHyXi6aJzQJtBiTQHiAd83l0GdFaiw= -go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= -go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= -go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= -go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= -go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.37.0 h1:kJNSjF/Xp7kU0iB2Z+9viTPMW4EqqsrywMXLJOOsXSE= -golang.org/x/crypto v0.37.0/go.mod h1:vg+k43peMZ0pUMhYmVAWysMK35e6ioLh3wB8ZCAfbVc= -golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e h1:+WEEuIdZHnUeJJmEUjyYC2gfUMj69yZXw17EnHg/otA= -golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e/go.mod h1:Kr81I6Kryrl9sr8s2FK3vxD90NdsKWRuOIl2O4CvYbA= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.39.0 h1:ZCu7HMWDxpXpaiKdhzIfaltL9Lp31x/3fCP11bc6/fY= -golang.org/x/net v0.39.0/go.mod h1:X7NRbYVEA+ewNkCNyJ513WmMdQ3BineSwVtN2zD/d+E= -golang.org/x/oauth2 v0.29.0 h1:WdYw2tdTK1S8olAzWHdgeqfy+Mtm9XNhv/xJsY65d98= -golang.org/x/oauth2 v0.29.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.13.0 h1:AauUjRAJ9OSnvULf/ARrrVywoJDy0YS2AwQ98I37610= -golang.org/x/sync v0.13.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20= -golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.31.0 h1:erwDkOK1Msy6offm1mOgvspSkslFnIGsFnxOKoufg3o= -golang.org/x/term v0.31.0/go.mod h1:R4BeIy7D95HzImkxGkTW1UQTtP54tio2RyHz7PwK0aw= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= -golang.org/x/text v0.24.0 h1:dd5Bzh4yt5KYA8f9CJHCP4FB4D51c2c6JvN37xJJkJ0= -golang.org/x/text v0.24.0/go.mod h1:L8rBsPeo2pSS+xqN0d5u2ikmjtmoJbDBT1b7nHvFCdU= -golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= -golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.23.0 h1:SGsXPZ+2l4JsgaCKkx+FQ9YZ5XEtA1GZYuoDjenLjvg= -golang.org/x/tools v0.23.0/go.mod h1:pnu6ufv6vQkll6szChhK3C3L/ruaIv5eBeztNG8wtsI= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gomodules.xyz/jsonpatch/v2 v2.4.0 h1:Ci3iUJyx9UeRx7CeFN8ARgGbkESwJK+KB9lLcWxY/Zw= -gomodules.xyz/jsonpatch/v2 v2.4.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= -gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc= -gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/api v0.30.10 h1:2YvzRF/BELgCvxbQqFKaan5hnj2+y7JOuqu2WpVk3gg= -k8s.io/api v0.30.10/go.mod h1:Hyz3ZuK7jVLJBUFvwzDSGwxHuDdsrGs5RzF16wfHIn4= -k8s.io/apiextensions-apiserver v0.30.1 h1:4fAJZ9985BmpJG6PkoxVRpXv9vmPUOVzl614xarePws= -k8s.io/apiextensions-apiserver v0.30.1/go.mod h1:R4GuSrlhgq43oRY9sF2IToFh7PVlF1JjfWdoG3pixk4= -k8s.io/apimachinery v0.30.10 h1:UflKuJeSSArttm05wjYP0GwpTlvjnMbDKFn6F7rKkKU= -k8s.io/apimachinery v0.30.10/go.mod h1:iexa2somDaxdnj7bha06bhb43Zpa6eWH8N8dbqVjTUc= -k8s.io/client-go v0.30.10 h1:C0oWM82QMvosIl/IdJhWfTUb7rIxM52rNSutFBknAVY= -k8s.io/client-go v0.30.10/go.mod h1:OfTvt0yuo8VpMViOsgvYQb+tMJQLNWVBqXWkzdFXSq4= -k8s.io/klog/v2 v2.120.1 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw= -k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= -k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 h1:BZqlfIlq5YbRMFko6/PM7FjZpUb45WallggurYhKGag= -k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340/go.mod h1:yD4MZYeKMBwQKVht279WycxKyM84kkAx2DPrTXaeb98= -k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 h1:jgGTlFYnhF1PM1Ax/lAlxUPE+KfCIXHaathvJg1C3ak= -k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -sigs.k8s.io/controller-runtime v0.18.7 h1:WDnx8LTRY8Fn1j/7B+S/R9MeDjWNAzpDBoaSvMSrQME= -sigs.k8s.io/controller-runtime v0.18.7/go.mod h1:L9r3fUZhID7Q9eK9mseNskpaTg2n11f/tlb8odyzJ4Y= -sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= -sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= -sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= -sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= -sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= -sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= diff --git a/mongodb-community-operator/helm-charts b/mongodb-community-operator/helm-charts deleted file mode 160000 index c6b6488a2..000000000 --- a/mongodb-community-operator/helm-charts +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c6b6488a2a84cb806eadac0e286b6060914082d5 diff --git a/mongodb-community-operator/requirements.txt b/mongodb-community-operator/requirements.txt deleted file mode 100644 index e264e2e09..000000000 --- a/mongodb-community-operator/requirements.txt +++ /dev/null @@ -1,20 +0,0 @@ -git+https://github.com/mongodb/sonar@bc7bf7732851425421f3cfe2a19cf50b0460e633 -github-action-templates==0.0.4 -docker==7.1.0 -kubernetes==26.1.0 -jinja2==3.1.4 -MarkupSafe==2.0.1 -PyYAML==6.0.1 -black==24.3.0 -mypy==0.961 -tqdm==v4.66.3 -boto3==1.16.21 -pymongo==4.6.3 -dnspython==2.6.1 -requests==2.32.3 -ruamel.yaml==0.17.9 -semver==2.13.0 -rsa>=4.7 # not directly required, pinned by Snyk to avoid a vulnerability -setuptools==78.0.1 # not directly required, pinned by Snyk to avoid a vulnerability -certifi>=2022.12.7 # not directly required, pinned by Snyk to avoid a vulnerability -urllib3<2 # not directly required, pinned by Snyk to avoid a vulnerability diff --git a/mongodb-community-operator/scripts/dev/e2e.py b/mongodb-community-operator/scripts/dev/e2e.py old mode 100644 new mode 100755 diff --git a/mongodb-community-operator/scripts/dev/generate_github_actions.py b/mongodb-community-operator/scripts/dev/generate_github_actions.py deleted file mode 100755 index 4a5b57edc..000000000 --- a/mongodb-community-operator/scripts/dev/generate_github_actions.py +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env python3 -from typing import Dict - -from ghat.template import template_github_action -import sys -import io -import ruamel.yaml - -yaml = ruamel.yaml.YAML() - -template_mapping = { - ".action_templates/e2e-fork-template.yaml": ".github/workflows/e2e-fork.yml", - ".action_templates/e2e-pr-template.yaml": ".github/workflows/e2e.yml", - ".action_templates/e2e-single-template.yaml": ".github/workflows/e2e-dispatch.yml", -} - - -def _prepend_auto_generated_message(github_action: Dict) -> str: - s = io.StringIO() - yaml.dump(github_action, s) - s.seek(0) - return """ -################################################################################## -# -# This file is automatically generated using templates. Changes to this file -# should happen through editing the templates under .action_templates/* -# Manual edits will be overwritten. -# -################################################################################## - -{}""".format( - s.read() - ) - - -def main() -> int: - for template in template_mapping: - github_action = template_github_action(template) - with open(template_mapping[template], "w+") as f: - f.write(_prepend_auto_generated_message(github_action)) - return 0 - - -if __name__ == "__main__": - sys.exit(main()) diff --git a/mongodb-community-operator/scripts/dev/get_e2e_env_vars.py b/mongodb-community-operator/scripts/dev/get_e2e_env_vars.py deleted file mode 100755 index cea1ac4e0..000000000 --- a/mongodb-community-operator/scripts/dev/get_e2e_env_vars.py +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env python3 -import sys -from typing import Dict -import os.path - - -from dev_config import load_config, DevConfig, Distro - - -def _get_e2e_test_envs(dev_config: DevConfig) -> Dict[str, str]: - """ - _get_e2e_test_envs returns a dictionary of all the required environment variables - that need to be set in order to run a local e2e test. - - :param dev_config: The local dev config - :return: A diction of env vars to be set - """ - cleanup = False - if len(sys.argv) > 1: - cleanup = sys.argv[1] == "true" - return { - "ROLE_DIR": dev_config.role_dir, - "DEPLOY_DIR": dev_config.deploy_dir, - "OPERATOR_IMAGE": f"{dev_config.repo_url}/{dev_config.operator_image}", - "VERSION_UPGRADE_HOOK_IMAGE": f"{dev_config.repo_url}/{dev_config.version_upgrade_hook_image}", - "AGENT_IMAGE": f"{dev_config.repo_url}/{dev_config.agent_image}", - "TEST_DATA_DIR": dev_config.test_data_dir, - "TEST_NAMESPACE": dev_config.namespace, - "READINESS_PROBE_IMAGE": f"{dev_config.repo_url}/{dev_config.readiness_probe_image}", - "PERFORM_CLEANUP": "true" if cleanup else "false", - "WATCH_NAMESPACE": dev_config.namespace, - "MONGODB_IMAGE": dev_config.mongodb_image_name, - "MONGODB_REPO_URL": dev_config.mongodb_image_repo_url, - "HELM_CHART_PATH": os.path.abspath("./helm-charts/charts/community-operator"), - "MDB_IMAGE_TYPE": dev_config.image_type, - "MDB_LOCAL_OPERATOR": dev_config.local_operator, - "KUBECONFIG": dev_config.kube_config, - } - - -# convert all values in config.json to env vars. -# this can be used to provide configuration for e2e tests. -def main() -> int: - dev_config = load_config(distro=Distro.UBI) - for k, v in _get_e2e_test_envs(dev_config).items(): - print(f"export {k.upper()}={v}") - return 0 - - -if __name__ == "__main__": - sys.exit(main()) diff --git a/mongodb-community-operator/scripts/dev/run_e2e_gh.sh b/mongodb-community-operator/scripts/dev/run_e2e_gh.sh deleted file mode 100755 index 52297c97e..000000000 --- a/mongodb-community-operator/scripts/dev/run_e2e_gh.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash -set -Eeou pipefail - -test_name="${1}" -current_branch="$(git branch --show-current)" - -gh workflow run e2e-dispatch.yml -f "test-name=${test_name}" --ref "${current_branch}" - -echo "Waiting for task to start..." -sleep 2 - -run_id="$(gh run list --workflow=e2e-dispatch.yml | grep workflow_dispatch | grep -Eo "[0-9]{9,11}" | head -n 1)" - -gh run view "${run_id}" --web diff --git a/mongodb-community-operator/scripts/dev/setup_kind_cluster.sh b/mongodb-community-operator/scripts/dev/setup_kind_cluster.sh deleted file mode 100755 index 3178f2878..000000000 --- a/mongodb-community-operator/scripts/dev/setup_kind_cluster.sh +++ /dev/null @@ -1,116 +0,0 @@ -#!/usr/bin/env bash -set -Eeou pipefail - -#### -# This file is copy-pasted from https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/scripts/dev/setup_kind_cluster.sh -# Do not edit !!! -#### - -function usage() { - echo "Deploy local registry and create kind cluster configured to use this registry. Local Docker registry is deployed at localhost:5000. - -Usage: - setup_kind_cluster.sh [-n ] [-r] - setup_kind_cluster.sh [-h] - setup_kind_cluster.sh [-n ] [-e] [-r] - -Options: - -n (optional) Set kind cluster name to . Creates kubeconfig in ~/.kube/. The default name is 'kind' if not set. - -e (optional) Export newly created kind cluster's credentials to ~/.kube/ and set current kubectl context. - -h (optional) Shows this screen. - -r (optional) Recreate cluster if needed - -p (optional) Network reserved for Pods, e.g. 10.244.0.0/16 - -s (optional) Network reserved for Services, e.g. 10.96.0.0/16 -" - exit 0 -} - -cluster_name=${CLUSTER_NAME:-"kind"} -export_kubeconfig=0 -recreate=0 -pod_network="10.244.0.0/16" -service_network="10.96.0.0/16" -while getopts ':p:s:n:her' opt; do - case $opt in - (n) cluster_name=$OPTARG;; - (e) export_kubeconfig=1;; - (r) recreate=1;; - (p) pod_network=$OPTARG;; - (s) service_network=$OPTARG;; - (h) usage;; - (*) usage;; - esac -done -shift "$((OPTIND-1))" - -kubeconfig_path="$HOME/.kube/${cluster_name}" - -# create the kind network early unless it already exists. -# it would normally be created automatically by kind but we -# need it earlier to get the IP address of our registry. -docker network create kind || true - -# adapted from https://kind.sigs.k8s.io/docs/user/local-registry/ -# create registry container unless it already exists -reg_name='kind-registry' -reg_port='5000' -running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" -if [ "${running}" != 'true' ]; then - docker run -d --restart=always -p "127.0.0.1:${reg_port}:5000" --network kind --name "${reg_name}" registry:2 -fi - -if [ "${recreate}" != 0 ]; then - kind delete cluster --name "${cluster_name}" || true -fi - -# create a cluster with the local registry enabled in containerd -cat < /dev/null; then - echo "Installing goimports" - go install golang.org/x/tools/cmd/goimports - fi - - # Formats each file that was changed. - for file in $(git diff --cached --name-only --diff-filter=ACM | grep '\.go$') - do - goimports -w "${file}" - git add "$file" - done - -} - -function generate_crd(){ - echo "Generating CRD" - make manifests - git add config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml -} - -function mypy_check() -{ - local exit_status=0 - # Mypy doesn't support recursive traversal of directories - # So we manually call it on every staged python file - echo "Running mypy on staged python files" - for file in $(git diff --cached --name-only --diff-filter=ACM | grep '\.py$') - do - echo "Analyzing $file ..." - # We ignore missing import otherwise mypy will complain - # about 3rd party libraries not providing type hints - if ! mypy --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs --ignore-missing-imports "${file}"; then - exit_status=1 - fi - done - return $exit_status -} - -function go_linting() { - dirs_to_analyze=() - for file in $(git diff --cached --name-only --diff-filter=ACM | grep '\.go$') - do - dirs_to_analyze+=("$(dirname "${file}")" ) - done - if [ ${#dirs_to_analyze[@]} -ne 0 ]; then - mapfile -t dirs_to_analyze < <(printf '%s\n' "${dirs_to_analyze[@]}" | sort -u) - echo "Running golangci-lint on staged files" - local exit_status=0 - for file in "${dirs_to_analyze[@]}" - do - if ! golangci-lint run "${file}"; then - exit_status=1 - fi - done - return $exit_status - fi - - return 0 -} - -function black_formatting() -{ - # Black formatting of every python file that was changed - for file in $(git diff --cached --name-only --diff-filter=ACM | grep '\.py$') - do - black -q "$file" - git add "$file" - done -} - -function generate_github_actions(){ - scripts/dev/generate_github_actions.py - git add .github/workflows -} - -generate_github_actions -generate_crd -go_imports -black_formatting -if ! mypy_check; then - echo "MyPy returned some errors, please correct them" - echo "Commit aborted" - # In some cases we might encounter mypy errors that we do not - # actually treat as such. So we provide a link to the dev - # for ignoring them through code annotation - echo "If some of the errors reported are false positives "\ - "and should be ignored, mypy provides a way to silence "\ - "errors: https://mypy.readthedocs.io/en/stable/common_issues.html#spurious-errors-and-locally-silencing-the-checker" - echo "Please use this only for errors that you are sure are"\ - "false positives." - exit 1 -fi -if ! go_linting; then - echo "Golancli-lint returned some errors, please correct them" - echo "Commit aborted" - # In some cases we might encounter mypy errors that we do not - # actually treat as such. So we provide a link to the dev - # for ignoring them through code annotation - echo "If some of the errors reported are false positives "\ - "and should be ignored, golanci-lint provides a way to silence "\ - "errors: https://golangci-lint.run/usage/false-positives/" - echo "Please use this only for errors that you are sure are"\ - "false positives." - exit 1 -fi diff --git a/mongodb-community-operator/scripts/git-hooks/pre-merge-commit b/mongodb-community-operator/scripts/git-hooks/pre-merge-commit deleted file mode 100755 index e69de29bb..000000000 diff --git a/mongodb-community-operator/scripts/git-hooks/pre-push b/mongodb-community-operator/scripts/git-hooks/pre-push deleted file mode 100755 index e69de29bb..000000000 diff --git a/mongodb-community-operator/scripts/git-hooks/pre-rebase b/mongodb-community-operator/scripts/git-hooks/pre-rebase deleted file mode 100755 index e69de29bb..000000000 diff --git a/mongodb-community-operator/scripts/git-hooks/pre-receive b/mongodb-community-operator/scripts/git-hooks/pre-receive deleted file mode 100755 index e69de29bb..000000000 diff --git a/mongodb-community-operator/scripts/git-hooks/prepare-commit-msg b/mongodb-community-operator/scripts/git-hooks/prepare-commit-msg deleted file mode 100755 index e69de29bb..000000000 diff --git a/mongodb-community-operator/scripts/git-hooks/update b/mongodb-community-operator/scripts/git-hooks/update deleted file mode 100755 index e69de29bb..000000000 diff --git a/mongodb-community-operator/testdata/tls/ca.crt b/mongodb-community-operator/testdata/tls/ca.crt deleted file mode 100644 index 4e7bae6d0..000000000 --- a/mongodb-community-operator/testdata/t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YDVR0TAQH/BAUwAwEB/zAOBgNVHQ8B -Af8EBAMCAuQwDQYJKoZIhvcNAQELBQADggIBAFFQzP/UDDxRX1C4OBG5Ak4PcBMb -i2BEObBTGJpGzHsK4na8wO+9p2DFNTipE4BYLmLaUzcKP+Q3pef32Ks5i88bn9sr -KmqOzrcgzcLpIOR6CZoJ4VfVIelGzKqbdDB6At6/tj42TO7UMt49fFOVgvM/uVX8 -/G5l5ZJGUVmD3NgyazLEsnp8AJAR3Yq0S/ODHWswWlgw7oucuZJ6bMaafqSzCA7i -pqdBLfFVRv0DshifnM2sy3fq6X1iDWhiGqj43FdTHqYjAB0zi/4fBVYuQ0zlKDNp -JRMNgIWzjMw6mhl5aMGskazVmQQC5s8ET1mXZ3RyGcFD872EQ/JLjKOARXIO442z -f+Sr50i5KU5mmgSKFYDyKavVs4XlTiagg/2hw+uOdas8IiQb3wkFITco7kFWeg7r -qQbUllAJlvaNV/wX27NMyUp6wt5lhjN6HYS0l7FvhzR9UgGpRC/KOjrmuCk9AMoS -Gfz5rmkiQbLhQUnmxTXUy5ddkCJ5uSP3NMoMLOte3tUZJXqvleb77xkltL9oXSqr -P/EzTaTuVgXBXEU5ODvaFjOtsXfgBuYIKT4/xDCFFK6jwkRZ/JyIS81j9dINAZez -SLeM3BYydpb+ZRcJR4A5710VAs6U05eAlcW7Zzb6sO6Ex/iGS37FS2N1l3YnPHr0 -RjPbH3tDZRVxi4Vt ------END CERTIFICATE----- diff --git a/mongodb-community-operator/testdata/tls/ca.key b/mongodb-community-operator/testdata/tls/ca.key deleted file mode 100644 index fb14ad0e5..000000000 --- a/mongodb-community-operator/testdata/tls/ca.key +++ /dev/null @@ -1,51 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIJJwIBAAKCAgEArmNA+kz0paUfjO7OEEcBcTnGf19KphC5jsOe/WWxQSvrBKHq -Z8k4iWh6Zhzhyq9doNChWv3BaN4WTceMFekIpncoCM0ic3/4dyCc59SY4UU0Czs9 -FnVWo4O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BwPqqVo4eiAAhNSNiX/PjT/KokUcGWX+zGFH4+mqllqKcs/i29Gp3eoI5BC -efATrgc0R7FZBceoazZvrgDF2Ps4cKV0QsmFYp8wEMc3TwWKLKvzXPNtJrWvsmWP -KK7yysXEuUbEkW3rPNRiTASXKDYd3AVk11mObytqivF5bnmQhHbcb3XtdJRFeKRa -qTq3AoIBAHETy1jkQF/Duc5AVf05faOAhrKCK265HdpM2j3DFtMJ8BADJHZ3Zd6b -eKPucpMGcS0e6BANW8QO4SoudzFh58xCl4sKDDjwyOF4frZPBR7IK8e2hm33flIL -NggYDy/cl4Er8dehr7BNU+o8I1KUJBfTyEbyUEP7togbQlQnwhTydUvK9Ca8wC8e -yqd/1frCgXI9GHTgDG9WgkU3Rhe7IuxOffLCULbtu8johzCKhXjB7cq6rkBBNrLo -arYJyXDAecEM6PJOVmS+vqgwsVuXfZYYosVZxyj6ClUMZ0V57cpXi263HkSEgjBW -arKn6Zncm8vFUtekpTkCAq0n8HRrWqkCggEASI96vzDeUdt52bThenMdQMC1jCwr -eN289YFjP6llfX3MSxg3IW/moebMqJ5MULj7BrNErqYYCE9NsDp14fnXHgpAkxyi -EduxU+JFgHtjTnVLyX0NNIPGHfI7iQvqEJYwpjjyF8uQZgQAknNGjJFu80mwzuZi -LVzl3ssM8erk6KGpkMa35CKH7MvcfSRZ6//T0NxPceste42Af5ZdT8OZyF/VBgci -EXrk42dHzUlJkzAWzLAV0IUzcXvnP517cP7KOIuNo4gYNpZd0Esj62HZfWMIK5A3 -zKhW/vj04bmjb5wkoly/2ydKXBPbCOnl0/+6UKCdQ+9j3dyH9iRuFFj4sA== ------END RSA PRIVATE KEY----- diff --git a/mongodb-community-operator/testdata/tls/server.crt b/mongodb-community-operator/testdata/tls/server.crt deleted file mode 100644 index 2772fe138..000000000 --- a/mongodb-community-operator/testdata/tls/server.crt +++ /dev/null @@ -1,26 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIEWjCCAkKgAwIBAgIUKXYivNfzneHnf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vvkSZ+lZTXBhVl1 -5GouRqRMe+hlGPYL4VKy23PAwag7dNlQ1GQLur+pWkXfHLdKIaoPLDwFx4m8PWGr -rErXOXKKYZIw+xsQYKOXNePMM3/bRlEZTt52wrBEDB3LNhNkuKB8J1+/dfE557l1 -5/Gyt+MuRAq/gi+ffR7KxuzYDipGSUmmWzFF/5LyOCAS9lKi8xyKzsYpdDDkcx8k -aC86zOjYseMKytk2hgOmNPjva9iG4mlQQ/S7FgOn01jJadpu9X0zVgmq7uKIemUM -6ts8qEK3zIGir10FfT0zxwaXQOMLMHrLvELGJEhHJPTQDMjPopKVEXtk9Upeveas -PK3QLsn3xE2XytH2HJnAHL3GR1nLT3HgdyrOlJlV37ZPXr3di7nfQQM4UJoghyWH -JZ6umbgvvVMWeLFX/IE= ------END CERTIFICATE----- diff --git a/mongodb-community-operator/testdata/tls/server.key b/mongodb-community-operator/testdata/tls/server.key deleted file mode 100644 index a7289b9af..000000000 --- a/mongodb-community-operator/testdata/tls/server.key +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEpAIBAAKCAQEAzIFSxguW5QJb3Jm4IH55hWdMBwLLTsW4zj4o2ud087yovS9k -pq8H+f0bUUEmenIDX0y8w28/oyh5+b9I1qkluU81ki9VXA4mEqIraPkcCXEZqywb -nHqj/Gp1IwoKpgx+cRS9sPkDYfZJxnTr21JBq/oGlMXkMTXJbqfI1b/askb2tmp/ -DAe1W0hvGVQ1ZHAZB9sZTvktSE5f0jwVyrA2zgf4VhAKpDqBKJuZUOmuCI1GFPB1 -IXm8xER+9SYYHOd4XLNUaLqzC0JgGUKKsuxPDp+gf42cTKquB7KokD2FfxSz5U9d -oYCjAWejzsCBcRLnkxlbhsx1N+2qMT8DU+3KfwIDAQABAoIBAQC7HjVbim0l25Or -9Gb6LF8KhiqVW6Qkzls7Mrr1GMT045FNkRi6PvrAbSvanA8WCE43m6I3/AmxQy7g -Knr+FsSymtw8htzGnxeNAx9PLGfP59GB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OA3C7p6uZHAeDIqIpkv8j7974cLBWhGlQJx9403A== ------END RSA PRIVATE KEY----- diff --git a/mongodb-community-operator/testdata/tls/server.pem b/mongodb-community-operator/testdata/tls/server.pem deleted file mode 100644 index fa38bc24c..000000000 --- a/mongodb-community-operator/testdata/tls/server.pem +++ /dev/null @@ -1,53 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIEWjCCAkKgAwIBAgIUKXYivNfzneHnf77o/hmGJPPZmiMwDQYJKoZIhvcNAQEL -BQAwJDEQMA4GA1UECgwHTW9uZ29EQjEQMA4GA1UEAwwHUm9vdCBDQTAeFw0yMTA0 -MjgxMjI0MjRaFw0zNTAxMDUxMjI0MjRaMDkxCzAJBgNVBAYTAlVTMQswCQYDVQQI -DAJOWTELMAkGA1UEBwwCTlkxEDAOBgNVBAoMB01vbmdvREIwggEiMA0GCSqGSIb3 -DQEBAQUAA4IBDwAwggEKAoIBAQDMgVLGC5blAlvcmbggfnmFZ0wHAstOxbjOPija -53TzvKi9L2Smrwf5/RtRQSZ6cgNfTLzDbz+jKHn5v0jWqSW5TzWSL1VcDiYSoito -+RwJcRmrLBuceqP8anUjCgqmDH5xFL2w+QNh9knGdOvbUkGr+gaUxeQxNclup8jV -v9qyRva2an8MB7VbSG8ZVDVkcBkH2xlO+S1ITl/SPBXKsDbOB/hWEAqkOoEom5lQ -6a4IjUYU8HUhebzERH71Jhgc53hcs1RourMLQmAZQoqy7E8On6B/jZxMqq4HsqiQ -PYV/FLPlT12hgKMBZ6POwIFxEueTGVuGzHU37aoxPwNT7cp/AgMBAAGjbzBtMB8G -A1UdIwQYMBaAFNKgRS9B32CXr3UdG9LwGmMUi6WbMAkGA1UdEwQCMAAwCwYDVR0P -BAQDAgTwMDIGA1UdEQQrMCmCJyoubWRiLXRscy1zdmMuZGVmYXVsdC5zdmMuY2x1 -c3Rlci5sb2NhbDANBgkqhkiG9w0BAQsFAAOCAgEAeeVcqSuI3UjmThAufNN5I+Z5 -jIUyU/kTcOHUr5hD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0VQ+8J5+3la7wZWU5vCr2cvLftzb7Devj -m5K901mFCPdtO5LJ8OdeOi1PHnG/+WCfuwDitN8OufPJ+tdSteG+F9XIu5sTMGLB -QJeIyHolsPZhW4OA3C7p6uZHAeDIqIpkv8j7974cLBWhGlQJx9403A== ------END RSA PRIVATE KEY----- diff --git a/mongodb-community-operator/testdata/tls/server_rotated.crt b/mongodb-community-operator/testdata/tls/server_rotated.crt deleted file mode 100644 index 22c9abff6..000000000 --- a/mongodb-community-operator/testdata/tls/server_rotated.crt +++ /dev/null @@ -1,26 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIEWjCCAkKgAwIBAgIUKXYivNfzneHnf77o/hmGJPPZmiQwDQYJKoZIhvcNAQEL -BQAwJDEQMA4GA1UECgwHTW9uZ29EQjEQMA4GA1UEAwwHUm9vdCBDQTAeFw0yMTA0 -MjgxMjI2MDFaFw0zNTAxMDUxMjI2MDFaMDkxCzAJBgNVBAYTAlVTMQswCQYDVQQI -DAJOWTELMAkGA1UEBwwCTlkxEDAOBgNVBAoMB01vbmdvREIwggEiMA0GCSqGSIb3 -DQEBAQUAA4IBDwAwggEKAoIBAQCzFl/uTaH7b3+VGaa6iyYvYYxmp4zmV9O0SSoF -ihwqU7v4Ar7F+cKMduU3ueLlZh7BXdziqWeiIVOxhPTPPpcLzKndc6xzGuJyng7G -paDjPgDBjCMGZd9z+u56rYxqBRbIILyB6t1p6BK4DUMQ+tbZyaikAMLvNlw1c6se -oWO6+fr/wGyaw84VDW7qGmn0eWx2hvatY44BDthypoa3UFW54OIx8uzn9/Xye43J -V/+15Qwc9YADgXducDkSBussC891hwVJJ//r3ljkHavmCFlwnquf4eLQgyzma85w -EEMNrVDsNUO8kmLrm3se9WNiPMW41p/o/vBiBZuid4rr02YvAgMBAAGjbzBtMB8G -A1UdIwQYMBaAFNKgRS9B32CXr3UdG9LwGmMUi6WbMAkGA1UdEwQCMAAwCwYDVR0P -BAQDAgTwMDIGA1UdEQQrMCmCJyoubWRiLXRscy1zdmMuZGVmYXVsdC5zdmMuY2x1 -c3Rlci5sb2NhbDANBgkqhkiG9w0BAQsFAAOCAgEAi0snRlGNjVn/tfA2wGz+LRT5 -cMnYdESgdNdvqj7VA3etNEPxiZ4zBt6yRTN1Q0R1q1gHVzWdlWBUS3TCd3nyorPE -tS5BkKApICa7m1rVj9ZkDT+aRZsI1Gqve4p8/Ofdn3uEJ7xHEBtX6dlodHSr88UW -ig0xVhKEjc6Z9WviuCBTog3jsonW64iG01D3W3h/9dh0uCbZAoVbAO281qWv6Mov -fqg+FJ6iZ9FMhTUrSIyaJB1VaJvuprchcBjAPQkw7/AYyloOTbajejTprFdqmwHk -JTydwMleW4PnRLxqk/+/csJJfZt0acGC4XxJ414pXVMWoQBYQsaNVgGEgQ0SXKtK -FnenswMyYorZaOd3SxJXbSA6eF5q+3zvS4zxW9Qj6aVklUYcHAx1+WPlAz/7w80x -SsVP/qYYlLm8u5yd1pi/xDGiG+RrPedSltKb3hQk1NAci45WwAbYONiEhvJ6+/UH -5NJxgVqfCBDoi8+TtZPC7xXl07SZwsmhVfBNyow6miK0lkko4n1i7mU42XTYNZZD -51OkDAV2oKZhrSfV19zKn8AO0RFYDcmSRBFIC366qWUIQeLxPKLZ4Tu5wH0F8/y/ -epaut2X2S36LRGBEg9Qsrd3a4oLwvqKADO4oGN2pSCHWJznhxxoak3DtinSu9YBW -JV2fmZcawmu1X6FHRI4= ------END CERTIFICATE----- diff --git a/mongodb-community-operator/testdata/tls/server_rotated.key b/mongodb-community-operator/testdata/tls/server_rotated.key deleted file mode 100644 index 2ea518aa0..000000000 --- a/mongodb-community-operator/testdata/tls/server_rotated.key +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEpAIBAAKCAQEAsxZf7k2h+29/lRmmuosmL2GMZqeM5lfTtEkqBYocKlO7+AK+ -xfnCjHblN7ni5WYewV3c4qlnoiFTsYT0zz6XC8yp3XOscxricp4OxqWg4z4AwYwj -BmXfc/r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