Skip to main content
policy.yaml601 B
View on GitHub
apiVersion: atmos/v1
kind: Policy
metadata:
name: lifecycle-callback-after-apply
description: "Require an HTTP callback after a successful Helm apply."
spec:
policies:
callback-after-apply:
on: operation
action: hooks
rule: input.event == 'after.helm.apply' && input.status == 'success'
hooks:
- ref: applied
event: after.helm.apply
required: true
require_success: true
hooks:
applied:
kind: step
type: http
with:
url: https://example.invalid/deployment-completed
method: POST
tools: {}