do it in code not yaml fedor korotkov viktor gamov
play

DO IT IN CODE (NOT YAML)! Fedor Korotkov Viktor Gamov @fedor - PowerPoint PPT Presentation

DO IT IN CODE (NOT YAML)! Fedor Korotkov Viktor Gamov @fedor @gamussa Copenhagen Denmark MEME REVIEW Sarcastic View on Existential Problems with YAML bash ??? YAML A BIT MORE SERIOUS NOW Sarcastic View on the Real Problems with YAML


  1. DO IT IN CODE (NOT YAML)! Fedor Korotkov Viktor Gamov @fedor @gamussa Copenhagen Denmark

  2. MEME REVIEW Sarcastic View on Existential Problems with YAML

  3. bash ??? YAML

  4. A BIT MORE SERIOUS NOW Sarcastic View on the Real Problems with YAML

  5. WHY YAML IN THE FIRST PLACE ● Initial Release in 2001 ● Originally Yet Another Markup Language ● Repurposed as YAML Ain't Markup Language ● From Wiki: “commonly used for configuration files” ● End goal is to declare something ● YAML is not going anywhere any time soon

  6. YAML IS TYPELESS

  7. THERE IS A SCHEMA THOUGH json-schema.org

  8. INTELLIJ SUPPORTS JSON SCHEMAS FOR YAML

  9. YAML IS GREAT but for small things

  10. EVOLUTION OF YAML IN A COMPANY KOTLIN HELM DSL ANSIBLE YAML YAML SCRIPTS NO YAML

  11. KUBERNETES Photo caption

  12. KUBERNETES ARCHITECTURE Actually JSON image source: Janakiram MSV

  13. THINGS TO THINK ABOUT YAML FOR K8S AT SCALE ● How to avoid copy-pasting? ● How to provide primitives? ● How to allow customization for teams? ● How to test incremental changes? ● Some tools to analyze current state of clusters

  14. INGRESS EXAMPLE

  15. KOTLIN DSL FOR KUBERNETES github.com/fkorotkov/k8s-kotlin-dsl

  16. HOW IT WORKS

  17. DSL GENERATION ● Generates DSLs from fabric8 types ● Generates fabric8 types from deployed CRDs 😆

  18. Confluent Operator Architecture

  19. KOTLIN POWER: BUILDERS

  20. KOTLIN POWER: BUILDERS

  21. KOTLIN POWER: EXTENSION FUNCTIONS

  22. KOTLIN POWER: EXTENSION FUNCTIONS

  23. USE CASES

  24. DEMO

  25. THANK YOU AND REMEMBER TO VOTE Fedor Korotkov @fedor Viktor Gamov @gamussa #KotlinConf

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend