Overview
PennLabsChart is the foundational chart class that extends CDK8s’s Chart construct. It automatically configures standard Kubernetes labels and metadata for Penn Labs applications.
Class Definition
Constructor Parameters
The parent construct (typically an App instance)
The name of the chart
Automatic Labels
PennLabsChart automatically applies the following labels to all resources:- app.kubernetes.io/part-of: Set from
RELEASE_NAMEenvironment variable (defaults to “undefined_release”) - app.kubernetes.io/version: Set from required
GIT_SHAenvironment variable - app.kubernetes.io/managed-by: Always set to “kittyhawk”
Environment Variables
Git commit SHA for versioning. Required - the chart will exit if not provided.
Name of the release for the
app.kubernetes.io/part-of labelUsage Example
Source Reference
Defined insrc/chart.ts:4