Skip to content

seanly/checksumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Checksumer (Kustomize plugin)

Usage

cd example
kustomize build . --load-restrictor LoadRestrictionsNone --enable-alpha-plugins

Syntax

apiVersion: github.com/seanly
kind: Checksumer
metadata:
  name: notImportantHere
  annotations:
    config.kubernetes.io/function: |
      container:
        image: registry.cn-hangzhou.aliyuncs.com/k8ops/kustomize-functions:checksumer-v0.1.0

spec:
  checksum:
    # Generate a checksum based on those objects 
    - key: checksum/config
      target:
        kind: ConfigMap
        name: myapp
  selectors:
    # Append the generated checksum to those objects
    - target:
        kind: Deployment
      fieldSpec:
        path: spec/template/metadata/annotations
        create: true

About

Kustomize transformer plugin that adds Kubernetes annotation keys whose values are the checksum of kubernetes object

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published