Skip to content

Instantly share code, notes, and snippets.

@bugcy013
Forked from vfarcic/238-cue.sh
Created December 21, 2023 06:26
Show Gist options
  • Select an option

  • Save bugcy013/7a4e9862e099f8e83cf4e4bea9c1aa36 to your computer and use it in GitHub Desktop.

Select an option

Save bugcy013/7a4e9862e099f8e83cf4e4bea9c1aa36 to your computer and use it in GitHub Desktop.

Revisions

  1. @vfarcic vfarcic revised this gist Jun 30, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 238-cue.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Source: TODO:
    # Source: https://gist.github.com/vfarcic/a5cb2e8dcd1cf9c14194db3310d5c282

    #########################################################
    # Is CUE The Perfect Language For Kubernetes Manifests? #
  2. @vfarcic vfarcic created this gist Jun 30, 2023.
    49 changes: 49 additions & 0 deletions 238-cue.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    # Source: TODO:

    #########################################################
    # Is CUE The Perfect Language For Kubernetes Manifests? #
    # https://youtu.be/Z-fdFEvgNss #
    #########################################################

    # Additional Info:
    # - Cue: https://cuelang.org
    # - Helm vs Kustomize - The Fight Between Templating and Patching in Kubernetes: https://youtu.be/ZMFYSm0ldQ0
    # - Kustomize - How to Simplify Kubernetes Configuration Management: https://youtu.be/Twtbg6LFnAg
    # - cdk8s - Kubernetes Manifests With GoLang, TypeScript, Python And Java: https://youtu.be/F2DKtax0NLU
    # - Carvel ytt Instead Of Helm? A Better Way To Manage Kubernetes Resources?: https://youtu.be/DLnXkH2keNg

    #########
    # Setup #
    #########

    git clone https://github.com/vfarcic/cue-demo

    cd cue-demo

    git pull

    cd cue

    ######################################
    # How CUE Works and What Does It Do? #
    ######################################

    cat cue/templates/video.cue

    cue export cue/templates/video.cue --out yaml

    cue export cue/templates/video.cue --out json

    cat cue/templates/service.cue

    cat cue/templates/video.cue

    cat cue/templates/video.cue

    cue export cue/templates/video.cue

    cat cue/templates/video.cue

    cue vet cue/templates/video.cue

    cue export cue/templates/video.cue