|
| 1 | +# ACS-CS tenant resources |
| 2 | + |
| 3 | +Helm chart for the per-tenant RHACS resources managed by ACS Cloud Service. |
| 4 | +The chart renders a `Central` custom resource and supporting network policies, |
| 5 | +routes, declarative configuration, secret-store integration, and optional |
| 6 | +monitoring, priority classes, disruption budgets, and autoscaling resources. |
| 7 | + |
| 8 | +## How it is deployed |
| 9 | + |
| 10 | +Fleetshard-sync reconciles a tenant ArgoCD Application pointing at this repository. |
| 11 | +ArgoCD renders and synchronizes the chart. |
| 12 | + |
| 13 | +The fleetshard-sync chart in |
| 14 | +[`stackrox/acs-fleet-manager`](https://github.com/stackrox/acs-fleet-manager) |
| 15 | +accepts: |
| 16 | + |
| 17 | +```yaml |
| 18 | +gitops: |
| 19 | + tenantDefaultAppSourceRepoUrl: https://github.com/stackrox/acscs-tenant-resources |
| 20 | + tenantDefaultAppSourceTargetRevision: HEAD |
| 21 | + tenantDefaultAppSourcePath: . |
| 22 | +``` |
| 23 | +
|
| 24 | +## Configuration |
| 25 | +
|
| 26 | +[`values.yaml`](values.yaml) is the configuration reference. Fleetshard-sync |
| 27 | +provides tenant identity, environment, database connection references, routes, |
| 28 | +and resource settings at reconciliation time. Important groups include: |
| 29 | + |
| 30 | +- Tenant identity: `organizationId`, `instanceId`, `instanceName`, `instanceType`. |
| 31 | +- Placement and rollout: `clusterName`, `environment`, `rolloutGroup`, affinities, |
| 32 | + node selectors, and tolerations. |
| 33 | +- Workloads: `centralResources`, `scannerResources`, `scannerV4Enabled`, and |
| 34 | + the corresponding database and Scanner V4 resource settings. |
| 35 | +- Networking: `centralUIHost`, `centralDataHost`, route restrictions, and network |
| 36 | + policy CIDR templates in `config/`. |
| 37 | +- Configuration and integrations: `declarativeConfig`, secret-store resources, |
| 38 | + profiling, health checks, and VPA. |
| 39 | + |
| 40 | +Never commit real tenant data, database credentials, tokens, certificates, or |
| 41 | +rendered production manifests. Supply secrets through the existing runtime |
| 42 | +secret-management integrations. |
| 43 | + |
| 44 | +## Development |
| 45 | + |
| 46 | +Install Helm 3 and [pre-commit](https://pre-commit.com/), then: |
| 47 | + |
| 48 | +```bash |
| 49 | +helm plugin install https://github.com/helm-unittest/helm-unittest.git --version v1.0.3 |
| 50 | +pre-commit install |
| 51 | +helm lint . |
| 52 | +helm unittest . |
| 53 | +pre-commit run --all-files |
| 54 | +``` |
| 55 | + |
| 56 | +Render locally with non-sensitive example values: |
| 57 | + |
| 58 | +```bash |
| 59 | +helm template example . --namespace example-tenant \ |
| 60 | + --set instanceId=example --set instanceName=example \ |
| 61 | + --set organizationId=example --set clusterName=example \ |
| 62 | + --set centralUIHost=central.example.com \ |
| 63 | + --set centralDataHost=central-data.example.com |
| 64 | +``` |
| 65 | + |
| 66 | +Tests in `tests/` use helm-unittest. Add focused regression tests when changing |
| 67 | +templates or value semantics. Keep the chart name and existing value interface |
| 68 | +compatible with fleetshard-sync. |
0 commit comments