Files
Terry Howe 8eed5173c8 feat(deploy)!: move the greenfield overlays and the release namespace to nvke-controller (#1889)
* feat(deploy)!: move the greenfield overlays and the release namespace to nvke-controller

This moves them, and with them the persisted identifiers a site carries:
the Helm release and its namespace, the database, and the Temporal
namespace and task queue.

In the three greenfield stacks: nameOverride, fullnameOverride,
namespaceOverride, serviceAccount.name, serviceMonitor.name,
appDb.dbName, the Temporal namespace and queue, the field managers and
the managed-by values, tracing.serviceName, and the objects the stacks
render around them -- the Namespace manifest, the Postgres CREATE
DATABASE, the SPIRE admin ID and ClusterSPIFFEID namespace selectors,
the auth-dev ConfigMap's namespace, the CAPD RBAC ClusterRole and its
subject, and the spire-client probe URL.

Consumers that move with it: controller/Tiltfile (release name,
namespace, SPIRE admin path and the string-matched resource names),
deploy/check-site.sh, the e2e site helpers and their collect script,
cli/internal/bootstrap/controllerdeploy (including the NodePort Service
nvke-controller-external), cli/internal/deploypath's admin path,
management-engine/hack/nvke-controller.sh, and the CI lane scripts.

The discovery paths search the new name first and keep the old one:
nvkectl's authConfigNamespaces, nvke-token.sh, nvke-auth-demo.sh and
dev-env-spire.sh now try nvke-controller, then nke-controller, then
cloud-workflow-engine. The reference health dashboard matches all three
workload names, and Tilt's preflight refuses to take over a cluster
that still runs the nke-controller release rather than failing later.

The published image keeps its name per #1554 decision 2, as do the
nke-controller-config ConfigMap and the nke-controller-chart release
artifact; hack/name-check-allowlist.txt now carries one entry per
reason rather than one blanket token.

Refs #1861, #1554, #1496, #1818

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Name nke-controller as the intermediate namespace in the authentication
docs, matching authConfigNamespaces, and restore the legacy node-agent
audience in the exchange mock's test.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix(e2e): point the nico bootstrap lane at the nvke-controller namespace

The nico lane still asserted the tenant credentials Secret landed in
nke-controller, so both e2e (nico) jobs failed after the rename.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix(deploy): carry the nvke-controller rename into the rebased files

The rebase onto main replayed the rename over two files that gained
nke-controller references after the branch was cut: the management-engine
dev overlay, which succeeds the hack script this branch had edited and
was removed in #1918, and an API-authentication example added in #1935.

Refs #1861

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Continue namespace discovery past a Forbidden lookup in nvke-token.sh and
nvke-auth-demo.sh. --ignore-not-found suppresses absence, not denial, so a
kubeconfig scoped to nke-controller alone died on the nvke-controller probe
before reaching the namespace it can read -- the migration case this branch
adds. Keep the first denial, try the remaining candidates, and fail with it
only when none was readable, since falling back to cloud-workflow-engine
needs a confirmed absence.

Refs #1861

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-10-29 08:17:40 -06:00

81 lines
2.7 KiB
YAML

# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# Values for controller/deploy/charts/controller on the ephemeral
# bootstrap Kind cluster. Adapted from controller/hack/tilt-controller-chart-values.yaml
# (the chart's own local-dev override), trimmed to what this single-purpose
# ephemeral deployment needs. SPIFFE is enabled at runtime after the SPIRE
# umbrella chart installs its server, agent, CSI driver, and controller
# manager. OIDC and ServiceMonitor stay disabled on the vanilla Kind cluster.
#
# image.* is NOT set here -- Engine.Deploy passes it via --set-string from
# Config.CWEImage, since an image reference (and whether it needs `kind load`'d
# in first) is a runtime decision, not a static value. profiles.path is set the
# same way.
#
# appDb.postgresPassword is not set here. Engine.Deploy generates it per run and
# passes it in a 0600 values file after this one, so it is neither hardcoded nor
# on the helm command line. postgres-values.yaml and temporal-values.yaml work
# the same way.
#
# The four names below are controllerdeploy's cweNamespace. nameOverride sets the pod
# label controller-nodeport.yaml selects on, and the chart pins serviceAccount.name
# rather than deriving it, so both are set here alongside the fullname.
fullnameOverride: nvke-controller
nameOverride: nvke-controller
namespaceOverride: nvke-controller
serviceAccount:
name: nvke-controller
metrics:
networkPolicy:
enabled: false
serviceMonitor:
enabled: false
# Point the probes at the same /readyz this package polls externally, so the
# in-cluster probe and the CLI's own health wait agree on what "healthy"
# means: DB Ping + Temporal CheckHealth both succeeding (see
# controller/internal/server/health.go).
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /readyz
port: http
initialDelaySeconds: 5
periodSeconds: 10
appDb:
url: postgres-postgresql.postgres.svc.cluster.local:5432
dbName: nvke-controller
postgresUser: postgres
sslMode: disable
secrets:
dgxcTenantCredSecretName: ""
temporal:
host: temporal-frontend.temporal.svc.cluster.local
port: 7233
spiffe:
enabled: true
nvkeOIDCAuth:
enabled: false
# Cluster API. A site cluster is a CAPI cluster whose infrastructure provider
# is cluster-api-provider-provisioned, so the NVKE controller runs its CAPI controllers and gets
# the RBAC to write the objects. Engine.Deploy installs CAPI itself, before this
# release, so the controllers exist by the time the NVKE controller writes anything.
#
capi:
enabled: true
rbac:
create: true