No project description provided
Project description
This package collects the mechanics for sending notifications “version x of project y was just deployed to environment z”, for example to set markers in observability systems like Grafana, post a message to a slack channel, transition issues in jira to the corresponding status, etc.
Usage
The package provides a “multi subcommand” CLI interface:
python -m zeit.deploynotify --environment=staging --project=example --version=1.2.3 \ slack --channel=example --emoji=palm_tree
Typically this will be integrated as a Keptn Deployment Task, like this:
apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret metadata: name: deployment-notify spec: refreshInterval: 1h secretStoreRef: name: baseproject-vault kind: SecretStore data: - secretKey: SLACK_HOOK_TOKEN remoteRef: key: zon/v1/slack/hackbot property: HOOK_TOKEN --- apiVersion: lifecycle.keptn.sh/v1alpha3 kind: KeptnTaskDefinition metadata: name: notify spec: container: name: task image: europe-west3-docker.pkg.dev/zeitonline-engineering/docker-zon/deploynotify:1.0.0 envFrom: - secretRef: name: deployment-notify args: - "--environment=staging" - "slack" - "--channel=example" - "--emoji=palm_tree"
Changelog
1.0.1 (2023-12-18)
Changes
Allow calling multiple tasks in a single invocation (chain)
1.0.0 (2023-12-13)
Changes
Initial release (initial)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zeit.deploynotify-1.0.1.tar.gz
(15.3 kB
view hashes)
Built Distribution
Close
Hashes for zeit.deploynotify-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b9044e4c711e46a94585a58ec1dd838d06b22cad7de3f75261421f257454819 |
|
MD5 | 233bfcc8df5437e843a466c0fea02b7d |
|
BLAKE2b-256 | bd5565eec90115a59783b9e4901f56baa275e424f9b6dbfa463adb62895339dd |