Versioned release files

  • Inspect R1/R2 manifests, shared common/V1 files, read-only consumers and retained rollback identities.
100%

Worked design example · evaluate before adopting

PERSISTENT ARTIFACT STORE · illustrative paths, not executing processesVersion the content: R1 and R2 reuse common/V1Order / release gateCopy / read filespin common/V1pin common/V1pin R1 filespin R2 filesvalidated R1 setvalidated R2 setretain rollbackretain activeImmutable common artifacts: runtime/common libraries identified by checksums. Both R1 and R2 may reuse V1 only because their pinned manifests independently declare and validate compatibility. Changed bytes require a new version, never overwriting V1.DIRECTORY/common/V1/Immutable R1-specific files and overrides. The release directory is stored content, not a running Pod or an OCI image. Release-specific files are separate from reusable common/V1; avoid a mutable shared latest directory.DIRECTORY/releases/R1/Immutable R2-specific files and overrides. Unchanged common content remains at common/V1. R2 compatibility must be tested before promotion. Directory names alone do not validate classpath, configuration, schema or dependency compatibility.DIRECTORY/releases/R2/R1 manifest pins the application image digest, common/V1 identity, R1-specific identity and checksums. The publication/release controller validates the complete combination before admitting consumers. This manifest is an identity contract, not executable storage.PINNED MANIFESTR1 · V1 + R1R2 independently pins its application image digest and compatible common/V1 plus R2-specific content. A PVC name does not specify a release. Both compatible consumers may mount the same persistent files only when backend access mode and topology permit.PINNED MANIFESTR2 · V1 + R2The retained R1 consumer mounts the validated V1 + R1 file set read-only. Keep writable expansion/work/temp/configuration on appropriate Pod-local storage. Retained artifacts and compatible data contracts are required to recreate R1 for rollback.CONSUMER PODR1 · read-only inputsThe R2 consumer mounts the validated V1 + R2 file set read-only after publication. Compatible sharing can avoid repeated preparation but adds mount/backend availability dependence. No measured startup improvement is asserted.CONSUMER PODR2 · read-only inputsIn the example R2 is active and R1 is retained for rollback; both still reference common/V1. Garbage collection may remove an artifact only after all active and rollback references expire. Retain image digests, manifests and release directories together; immutable paths do not isolate backend failures.RETENTION POLICYActive + rollback pinspin common/V1pin common/V1pin R1 filespin R2 filesvalidated R1 setvalidated R2 setretain rollbackretain active

Select a component to trace its direct connections. Drag to pan · Ctrl + wheel or pinch to zoom.

  • Concrete identities: common/V1 is unchanged; R1 and R2 have separate directories, image digests and checksummed manifests.
  • Compatible reuse: two tested releases can reference the same immutable common version. New bytes receive a new identity.
  • Rollback: retain R1 plus its complete pinned input set while R2 is active. Garbage collection follows references, including rollback pins.
  • The directory cylinders are persistent files. Mount sharing depends on backend, access mode and topology; a PVC name or versioned path does not create availability isolation.
Immutable release identity

Immutable release identity

Kubernetes v1 Pods, apps/v1 and batch/v1 · Node.js >=24 teaching protocol · illustrative release identities

R1 pins the complete selected set

  • R1/R2 are releases of the same application, not customized binaries for different functional domains. Domain clusters can promote compatible release versions independently.
  • images pins the runtime carrier, dependency carrier and consumer digests. The manifest also pins common/V1 and releases/R1 file paths and SHA-256 values.
  • Image digests identify image content; mutable tags do not freeze a release. The repeated-digit digests here are clearly labelled placeholders.
  • File hashes are real for the tiny teachingPayloads text fixtures. Real payloads need a complete file inventory or a checked archive plus validated extraction; this is not a real OBRH release.
  • Compatibility evidence must cover runtime, reusable dependencies, release/application/Direct integration, configuration and data/schema behavior. Matching hashes prove identity, not compatibility.
Illustrative R1 — pinned images and checksummed pathsjson
{
  "exampleStatus": "Illustrative release contract, not a current OBRH release. Digests are placeholders; payload hashes are real for the teaching text below.",
  "releaseId": "R1",
  "images": {
    "runtimeCarrier": "registry.example/runtime@sha256:1111111111111111111111111111111111111111111111111111111111111111",
    "dependencyCarrier": "registry.example/dependencies@sha256:2222222222222222222222222222222222222222222222222222222222222222",
    "consumer": "registry.example/consumer@sha256:3333333333333333333333333333333333333333333333333333333333333333"
  },
  "common": {
    "version": "common/V1",
    "files": [{"path": "bundle.txt", "sha256": "7e4e275e451b479e8a6f769aec0342e2101c12bad493cb989709ccf99b5ace99"}]
  },
  "release": {
    "version": "releases/R1",
    "files": [{"path": "bundle.txt", "sha256": "53c14942e128b97753ca06c2658b8746660fa42848c2fa966625010777fa40ed"}]
  },
  "teachingPayloads": {"common/bundle.txt": "common V1 teaching bytes\n", "release/bundle.txt": "release R1 teaching bytes\n"},
  "compatibilityGate": "Illustrative accepted set: runtime/dependencies/application/Direct integration/configuration/schema; CI evidence must replace this sentence.",
  "retainWhile": ["active", "selected rollback target"]
}

R2 reuses V1 without changing V1

  • R2 keeps the exact common/V1 path and hashes. It selects new release-specific releases/R2 bytes and a new consumer digest.
  • common/V1 is an immutable dependency, not a directory called latest. If common content changes, publish common/V2 and validate the new combination.
  • Common publication can be reused only where V1 is already verified in the consuming domain. R2 still needs its own release preparation and acceptance gate.
Identity R1 R2
Common bytes common/V1 Same path and hashes
Release bytes releases/R1 releases/R2
Consumer image Digest 333… Digest 444…
Rollback set Retain if active/selected R1 remains available during R2 acceptance
Illustrative R2 — unchanged common/V1, new release bytesjson
{
  "exampleStatus": "Illustrative compatible successor. Common V1 is reused byte-for-byte; only release bytes and consumer identity change. Digests are placeholders.",
  "releaseId": "R2",
  "images": {
    "runtimeCarrier": "registry.example/runtime@sha256:1111111111111111111111111111111111111111111111111111111111111111",
    "dependencyCarrier": "registry.example/dependencies@sha256:2222222222222222222222222222222222222222222222222222222222222222",
    "consumer": "registry.example/consumer@sha256:4444444444444444444444444444444444444444444444444444444444444444"
  },
  "common": {
    "version": "common/V1",
    "files": [{"path": "bundle.txt", "sha256": "7e4e275e451b479e8a6f769aec0342e2101c12bad493cb989709ccf99b5ace99"}]
  },
  "release": {
    "version": "releases/R2",
    "files": [{"path": "bundle.txt", "sha256": "b3d8d8fb8e63fd5bc560cbe95d154de35fc24cf7abe2c0668d7ff616fc0eced3"}]
  },
  "teachingPayloads": {"common/bundle.txt": "common V1 teaching bytes\n", "release/bundle.txt": "release R2 teaching bytes\n"},
  "compatibilityGate": "Illustrative R2 validation allows common/V1; changed common bytes require V2 and renewed validation.",
  "retainWhile": ["active", "selected rollback target"],
  "rollbackTo": "R1"
}

Make consumption read-only and version-specific

  • The R2 Pod mounts only common/V1 and releases/R2 through explicit subPath entries, with readOnly: true. It has no mutable latest lookup.
  • The launcher contract uses COMMON_ROOT and RELEASE_ROOT; these names are illustrative application configuration, not Kubernetes features.
  • Writable generated files stay under /local and /tmp. An application that mutates an installed tree must be adapted or copy that mutable portion locally.
  • Storage access modes describe supported mounts; they do not by themselves enforce write protection. Validate backend/CSI mode and topology, and restrict publisher identities.
Illustrative R2 Pod — exact read-only version mountsyaml
# Illustrative R2 consumer. Deploy only after exact common/V1 + releases/R2 gate.
# The publisher image, PVC, actual digest and launcher are deployment prerequisites.
# Mountability/sharing depends on CSI backend, access mode and node/zone topology.
apiVersion: v1
kind: Pod
metadata: {name: consumer-r2, namespace: domain-a}
spec:
  securityContext: {runAsUser: 1000, runAsGroup: 1000, fsGroup: 1000}
  containers:
    - name: consumer
      image: registry.example/consumer@sha256:4444444444444444444444444444444444444444444444444444444444444444
      command: [/opt/consumer/start]
      # These variable names are an illustrative launcher contract, not Kubernetes APIs.
      env:
        - {name: COMMON_ROOT, value: /artifacts/common/V1}
        - {name: RELEASE_ROOT, value: /artifacts/releases/R2}
        - {name: RUNTIME_WRITE_ROOT, value: /local}
      securityContext: {readOnlyRootFilesystem: true}
      volumeMounts:
        - {name: artifacts, mountPath: /artifacts/common/V1, subPath: common/V1, readOnly: true}
        - {name: artifacts, mountPath: /artifacts/releases/R2, subPath: releases/R2, readOnly: true}
        - {name: local, mountPath: /local} # expansion/config/work/temp/logs stay local
        - {name: tmp, mountPath: /tmp}
  volumes:
    - name: artifacts
      persistentVolumeClaim: {claimName: domain-a-artifacts, readOnly: true}
    - {name: local, emptyDir: {sizeLimit: 2Gi}}
    - {name: tmp, emptyDir: {sizeLimit: 128Mi}}
# R1 rollback selects its retained digest + common/V1 + releases/R1 explicitly.
# Read-only mounts protect this consumer view; storage ACLs must exclude other writers.

Retain a usable rollback set

  • Keep the union of artifacts referenced by active, pending and approved rollback manifests. R1 + R2 sharing V1 retains V1 once, plus both release directories.
  • If V1 is 600 MiB and each release is 100 MiB, R1 + R2 use 800 MiB of artifact content before metadata/replication overhead. These numbers are illustrative.
  • Reverting the image alone cannot recover a deleted release directory or undo an incompatible schema migration. Verify the old manifest, configuration and data contract before promotion.
  • Garbage collection needs reference checks, reader drain, an approved retention window and the publisher’s serialization rule. Deleting a PVC is not version-level cleanup.