Skip to content

v1.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 24 Feb 20:37
· 202 commits to main since this release
e00f163

Customize SpiceDB Deployments

This release of the spicedb-operator includes new features for customizing the way the operator deploys and manages SpiceDB clusters.

A new patches field is available on the SpiceDBCluster that allows flexible customization of the resources the operator creates with Strategic Merge Patch patches or with JSON6902 patch operations.

The status field of the SpiceDBCluster will indicate if there are issues applying patches to the generated resources.

Examples

Strategic Merge Patch:

apiVersion: authzed.com/v1alpha1
kind: SpiceDBCluster
metadata:
  name: dev
spec:
  config:
    datastoreEngine: memory
  secretName: dev-spicedb-config
  patches:
  - kind: Deployment
    patch:
      metadata:
        labels:
          added: via-patch 
      spec:
         template:
           metadata:
             labels: 
               added: pod-label-via-patch

Explicit JSON6902 Patch:

apiVersion: authzed.com/v1alpha1
kind: SpiceDBCluster
metadata:
  name: dev
spec:
  config:
    datastoreEngine: memory
  secretName: dev-spicedb-config
  patches:
  - kind: Deployment
    patch:
      op: add
      path: /metadata/labels
      value: 
        added: via-patch

You can specify multiple patches for the same object (later in the list are applied over top of earlier in the list):

apiVersion: authzed.com/v1alpha1
kind: SpiceDBCluster
metadata:
  name: dev
spec:
  config:
    datastoreEngine: memory
  secretName: dev-spicedb-config
  patches:
  - kind: Deployment
    patch:
      op: add
      path: /metadata/labels
      value:
        added: via-patch
  - kind: Deployment
    patch:
      metadata:
        labels:
          added-2: via-patch-2

Wildcard * can be used to apply a patch to all resources:

apiVersion: authzed.com/v1alpha1
kind: SpiceDBCluster
metadata:
  name: dev
spec:
  config:
    datastoreEngine: memory
  secretName: dev-spicedb-config
  patches:
  - kind: '*'
    patch:
      op: add
      path: /metadata/labels
      value:
        added: via-wildcard-patch

Memory Update Graph

Although the memory datastore has no need for migrations or automated updates, this release includes an update graph for the memory datastore. You can now use the memory datastore for testing with the same UX as the other datastores.

extraPodAnnotations and extraPodLabels now apply to the migration pods too

You could already add extra annotations and labels to SpiceDB pods, but now they can be added to migration jobs as well. Thanks to @thomasklein94 for the addition!

What's Changed

New Contributors

Full Changelog: v1.1.2...v1.2.0

Install with kubectl

kubectl apply --server-side -f https://github.com/authzed/spicedb-operator/releases/download/v1.2.0/bundle.yaml

Include or modify this release in your own kustomize bundle

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
  - https://github.com/authzed/spicedb-operator/config?ref=v1.2.0
images:
  - name: ghcr.io/authzed/spicedb-operator
    newTag: v1.2.0

Install with kustomizer

Release manifests can be found at oci://ghcr.io/authzed/spicedb-operator-manifests:v1.2.0 and can be installed or inspected with kustomizer:

kustomizer apply inventory spicedb-operator --artifact oci://ghcr.io/authzed/spicedb-operator-manifests:v1.2.0

Docker Images

This release's image is available at:

  • authzed/spicedb-operator:v1.2.0
  • quay.io/authzed/spicedb-operator:v1.2.0
  • ghcr.io/authzed/spicedb-operator:v1.2.0