<!-- Generated by npm run confighub-example-guides. Do not edit by hand. -->

# bitnami/mongodb 19.0.7 - existing-secret-replicaset

This guide explains the journey from a public Helm chart to a ConfigHub Space. Use it when you want to know why this preset exists, what problem it solves, how to repeat it, and what still needs care.

It is generated from the same records that build the package, chart page, render intent, scripts, and receipts. The proof links are lower down.

## Why this preset exists

Helm charts often expose many settings, but a values file alone does not tell the whole operations story. A team still needs to know what Kubernetes objects will be created, which Secrets or CRDs must already exist, whether hooks or setup jobs need special handling, and what evidence backs the result.

This preset is a named answer for one useful operating choice. It keeps the upstream chart, records the inputs and rendered YAML, and gives the team a repeatable starting point instead of a private values-file guess.

## What this is

This is the `existing-secret-replicaset` preset config for `bitnami/mongodb@19.0.7`. The repo also calls this a base variant. Use this when secret material should come from a Secret you create, not from a generated chart default.

The matching catalog page is [bitnami/mongodb@19.0.7](https://confighub.github.io/helm-expt/site/charts/bitnami-mongodb-19-0-7.html).

## The chart journey

We keep the Helm chart. We lock `bitnami/mongodb@19.0.7`, choose the `existing-secret-replicaset` preset config, render it with the recorded values, namespace, release name, and Kubernetes capabilities, then save the output as files.

That captured output is the render variant: [`recipes/bitnami/mongodb/19.0.7/revisions/existing-secret-replicaset/r001/rendered/release-objects.yaml`](https://github.com/confighub/helm-expt/blob/main/recipes/bitnami/mongodb/19.0.7/revisions/existing-secret-replicaset/r001/rendered/release-objects.yaml). It contains 10 Kubernetes object(s): ConfigMap x2, PodDisruptionBudget x2, Service x2, StatefulSet x2, NetworkPolicy x1, ServiceAccount x1.

The public package is `oci://europe-west1-docker.pkg.dev/nth-fort-499605-q5/helm-expt/bitnami-mongodb:19.0.7`. Users can pull it without cloning this repo. When someone runs `cub installer upload`, ConfigHub stores the rendered Kubernetes YAML in a Space so it can be searched, compared, reviewed, changed, and delivered. The example script defaults to Space `helm-mongodb-existing-secret-replicaset`, but users can choose another name with `CUB_SPACE=...`.

## What to check

This preset config records 1 prerequisite: 1 Secret. Follow the instructions below before you apply the rendered objects.

The catalog does not currently record a separate hook, setup job, or cleanup step for this preset.

Secret material is kept outside the chart render and supplied by you. At least one Secret must be created with your values before apply.

## Why you can trust it

- The chart version, source, namespace, release name, values, and capability profile are recorded in the render intent.
- The render variant is committed as YAML and contains 10 Kubernetes object(s).
- The installer package OCI ref points to the package users pull for this chart version.
- Render parity is recorded as passing for this preset config.
- Prerequisites are named before apply, so they are not discovered after rollout.

This is a claim about this recorded preset config. It is not a claim that every possible values file for this chart has been checked.

## Repeat it

Fast path with no ConfigHub account:

```sh
bash <(curl -fsSL https://confighub.github.io/helm-expt/site/sh/bitnami-mongodb-19-0-7/existing-secret-replicaset/try.sh)
```

Fast path with a ConfigHub account:

```sh
bash <(curl -fsSL https://confighub.github.io/helm-expt/site/sh/bitnami-mongodb-19-0-7/existing-secret-replicaset/confighub.sh)
```

The core render command is:

```sh
cub installer setup --pull oci://europe-west1-docker.pkg.dev/nth-fort-499605-q5/helm-expt/bitnami-mongodb:19.0.7 --base existing-secret-replicaset --work-dir ./bitnami-mongodb-19-0-7-existing-secret-replicaset --non-interactive --namespace mongodb
```

After upload, create environment versions with `cub variant create` and move reviewed changes with `cub variant promote`. The walkthrough is [After Upload: Create A Variant And Promote Changes](../../../../docs/user/variants-after-upload.md).

## Preset details

| Item | Value |
| --- | --- |
| Chart | `bitnami/mongodb@19.0.7` |
| Preset config | `existing-secret-replicaset` |
| Namespace | `mongodb` |
| Release name | `mongodb` |
| Values | [`recipes/bitnami/mongodb/19.0.7/effective-values-existing-secret-replicaset.yaml`](https://github.com/confighub/helm-expt/blob/main/recipes/bitnami/mongodb/19.0.7/effective-values-existing-secret-replicaset.yaml) |
| Render intent | [`data/helm-render-intents/intents/bitnami-mongodb-19-0-7-existing-secret-replicaset.yaml`](https://github.com/confighub/helm-expt/blob/main/data/helm-render-intents/intents/bitnami-mongodb-19-0-7-existing-secret-replicaset.yaml) |
| Render variant | [`recipes/bitnami/mongodb/19.0.7/revisions/existing-secret-replicaset/r001/rendered/release-objects.yaml`](https://github.com/confighub/helm-expt/blob/main/recipes/bitnami/mongodb/19.0.7/revisions/existing-secret-replicaset/r001/rendered/release-objects.yaml) |
| Package base | [`packages/bitnami/mongodb/19.0.7/bases/existing-secret-replicaset`](https://github.com/confighub/helm-expt/tree/main/packages/bitnami/mongodb/19.0.7/bases/existing-secret-replicaset) |
| Scripts | [try.sh](https://confighub.github.io/helm-expt/site/sh/bitnami-mongodb-19-0-7/existing-secret-replicaset/try.sh) · [confighub.sh](https://confighub.github.io/helm-expt/site/sh/bitnami-mongodb-19-0-7/existing-secret-replicaset/confighub.sh) |

## Prerequisites and lifecycle steps

| When | What | How it is handled |
| --- | --- | --- |
| Before install | ClusterFeature: Secret mongodb/mongodb-auth keys mongodb-root-password,mongodb-replica-set-key | kubectl -n mongodb create secret generic mongodb-auth --from-literal=mongodb-root-password="$(openssl rand -base64 32)" --from-literal=mongodb-replica-set-key="$(openssl rand -base64 48)" |

## Evidence

| Check | Status |
| --- | --- |
| Render parity | `yes` |
| ConfigHub scan/upload proof | `yes` |
| Earlier local-cluster test | `yes` |
| GitOps OCI live run | `yes` |
| Live Helm vs ConfigHub comparison | `yes` |
| Lifecycle routes | `0` |

## Limits

- Production support is target-scoped. Use production support decisions before claiming production readiness.

## Source files

- Chart page: [https://confighub.github.io/helm-expt/site/charts/bitnami-mongodb-19-0-7.html](https://confighub.github.io/helm-expt/site/charts/bitnami-mongodb-19-0-7.html)
- Render intent: [`data/helm-render-intents/intents/bitnami-mongodb-19-0-7-existing-secret-replicaset.yaml`](https://github.com/confighub/helm-expt/blob/main/data/helm-render-intents/intents/bitnami-mongodb-19-0-7-existing-secret-replicaset.yaml)
- Rendered YAML: [`recipes/bitnami/mongodb/19.0.7/revisions/existing-secret-replicaset/r001/rendered/release-objects.yaml`](https://github.com/confighub/helm-expt/blob/main/recipes/bitnami/mongodb/19.0.7/revisions/existing-secret-replicaset/r001/rendered/release-objects.yaml)
- Package source: [`packages/bitnami/mongodb/19.0.7/bases/existing-secret-replicaset`](https://github.com/confighub/helm-expt/tree/main/packages/bitnami/mongodb/19.0.7/bases/existing-secret-replicaset)
- Generated scripts: [`site/sh/bitnami-mongodb-19-0-7/existing-secret-replicaset`](https://github.com/confighub/helm-expt/tree/main/site/sh/bitnami-mongodb-19-0-7/existing-secret-replicaset)
- Preset doctrine: [Helm Chart Presets And Values](../../../../docs/user/helm-presets-and-values.md)
