Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Created April 21, 2024 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vfarcic/e6636bb851ae28d748fc8c1517bac931 to your computer and use it in GitHub Desktop.
Save vfarcic/e6636bb851ae28d748fc8c1517bac931 to your computer and use it in GitHub Desktop.
#######################################################################################
# Exploring KCL: Configuration and Data Structure Language; CUE and Pkl Replacement? #
#######################################################################################
# Additional Info:
# - KCL: https://kcl-lang.io
# - Is CUE The Perfect Language For Kubernetes Manifests (Helm Templates Replacement)?: https://youtu.be/m6g0aWggdUQ
# - Is Timoni With CUE a Helm Replacement?: https://youtu.be/bbE1BFCs548
# - Is Pkl the Ultimate Data Format? Unveiling the Challenger to YAML, JSON, and CUE: https://youtu.be/Nm1ioWPRRVQ
#########
# Setup #
#########
git clone https://github.com/vfarcic/crossplane-app
cd crossplane-app
git pull
git checkout kcl
#################
# KCL in Action #
#################
kcl kcl/backend.k
cat kcl/backend.k
cat kcl/backend-db-remote.k
kcl kcl/backend-db-remote.k
cat kcl/common.k
cat kcl/deployment.k
kcl --help
###########
# Destroy #
###########
git checkout main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment