Skip to content

Add relay-enabled VaultServer to service-vault chart - #1327

Open
ArnobKumarSaha wants to merge 3 commits into
masterfrom
arnob-vault-relay
Open

Add relay-enabled VaultServer to service-vault chart#1327
ArnobKumarSaha wants to merge 3 commits into
masterfrom
arnob-vault-relay

Conversation

@ArnobKumarSaha

@ArnobKumarSaha ArnobKumarSaha commented Aug 28, 2026

Copy link
Copy Markdown
Member

Brings charts/service-vault in line with the target manifest: a relay-enabled VaultServer plus the cert-manager Issuer and OCM Placement / ManagedClusterSetBinding it depends on.

Changes

  • values.yamlvaultServer grows from {name} into a full spec: version, replicas, isolateTenants, serviceType, terminationPolicy, persistence, unsealer, tls.caSecretName, relay.{clusterSet,namespace,bootstrapTokenTTL}.
  • apis/installer/v1alpha1/service_vault_types.goServiceVaultSpec.VaultServer changes from LocalObjectReference to a new VaultServerSpec.
  • templates/vault/ca-issuer.yaml (new) — namespaced cert-manager Issuer {{ service-vault.fullname }}-ca-issuer for the VaultServer's serving TLS. Uses ca.secretName when vaultServer.tls.caSecretName is set, otherwise selfSigned: {}. Named distinctly from the existing vault-issuer ClusterIssuer, which serves the opposite flow (cert-manager issuing certs from Vault's PKI).
  • templates/vault/placement.yaml (new) — ManagedClusterSetBinding + Placement (numberOfClusters: 1, cluster.appscode.com/profile predicate) that relayPlacementRef targets.
  • templates/vault/vault-server.yaml — rewritten around the new values. serviceTemplates is emitted only when serviceType is not ClusterIP, so the existing Gateway/HTTPRoute exposure in gw.yaml stays the default. The monitor block is preserved.
  • hack/scripts/import-crds.sh — bumps KUBEVAULT_APIMACHINERY_TAG from v0.23.0 to v0.25.0 and vendors the two OCM CRDs into charts/service-vault/crds (same upstream inputs already used by the license-proxyserver-manager block).

The tag bump is required: v0.23.0 had no isolateTenants, relayPlacementRef, or relayTemplate on VaultServer, so structural-schema pruning would have dropped all three at the API server. All four fields the templates emit are confirmed present under v1alpha2 in the re-imported CRD.

Verification

  • go build ./... clean
  • make gen run; generated README.md, values.openapiv3_schema.yaml, and deepcopy are current
  • helm lint charts/service-vault passes
  • helm template checked for both the default (ClusterIP + ca.secretName) and the LoadBalancer + empty-caSecretName (selfSigned) variants

1gtm and others added 3 commits August 28, 2026 11:43
ProductLine: ACE

Release: v2026.9.11

Release-tracker: appscode-cloud/CHANGELOG#78

Signed-off-by: 1gtm <1gtm@appscode.com>
Expand vaultServer values into a full spec (version, replicas,
isolateTenants, serviceType, persistence, unsealer, tls, relay,
terminationPolicy) and rewrite the VaultServer template around it.

Add a namespaced cert-manager CA Issuer for the VaultServer's serving
TLS, plus the OCM ManagedClusterSetBinding and Placement that
relayPlacementRef targets. Vendor the two OCM CRDs via import-crds.sh.

Signed-off-by: Arnob kumar saha <arnob@appscode.com>
v0.23.0 lacked isolateTenants, relayPlacementRef, and relayTemplate on
VaultServer v1alpha2, so the API server pruned them.

Signed-off-by: Arnob kumar saha <arnob@appscode.com>
@ArnobKumarSaha
ArnobKumarSaha force-pushed the master branch 2 times, most recently from cc445c3 to b38cc0e Compare September 3, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants