Skip to main content

71 posts tagged with "KCL"

View All Tags

· 5 min read

KCL is an open-source configuration and policy language hosted by the Cloud Native Computing Foundation (CNCF) as a Sandbox Project. Built on a foundation of constraints and functional programming principles, KCL enhances the process of writing complex configurations, particularly in cloud-native environments. By leveraging advanced programming language techniques, KCL promotes improved modularity, scalability, and stability in configuration management. It simplifies logic writing, offers easy-to-use automation APIs, and seamlessly integrates with existing systems.

This section will update the KCL language community's latest news, including features, website updates, and the latest community news, helping everyone better understand the KCL community!

KCL Website: https://kcl-lang.io

Overview

Thanks to to all contributors for their outstanding work over the past twenty days (2024.05.01 - 2024.05.15). Here is an overview of the key content.

📦️ Module Updates

  • argo-cd-order updated to version 0.2.0, featuring new resource filtering functionality.
  • crossplane module KCL code updated to match the CRD Webhook validation rules of crossplane version 1.15.
  • json-merge-patch module updated to version 0.1.1, supporting Schema type filtering.

🏄 Language Updates

  • Fixed the type error of return value from yaml.decode_all function.
  • Fixed assertion failure when as keyword is present in certain third-party libraries.
  • file module function list updated, seee here for more documentation.
  • Added support for Schema types in typeof function to distinguish between schema types and instances.
schema Foo:
bar?: str

foo = Foo {}
type_schema = typeof(foo) # schema
type_type = typeof(Foo) # type

💻 IDE Updates

  • Fixed IDE path errors and occasional crashes on Windows operating systems.
  • The Intellij KCL plugin is divided into two versions based on its functionality: with/without kcl-language-server.

📬️ Toolchain Updates

  • Fixed the issue where third-party libraries cannot be found when compiling relative path modules with kcl run.
  • Fixed the issue of kcl vet validation tool not being able to import external libraries.
  • Fixed formatting errors in the kcl fmt formatting tool when inserting external import statements.
  • Fixed unexpected errors in the kcl completion bash command completion.

⛵️ API Updates

  • Improved format output when automatically modifying variables with the OverrideFile API.
  • ListVariables API now supports return types for variable property operators and Schema types.
  • GetSchemaType API now supports returning parent class of Schema 🔥 SDK Updates.

🔥 SDK Updates

  • KCL Rust SDK released preview version v0.9.0-alpha.1
  • KCL Python SDK released preview version v0.9.0-alpha.1
  • KCL Node.js SDK released preview version v0.9.0-alpha.1
  • KCL Java SDK released preview version v0.9.0-SNAPSHOT

🚪 Integration Updates

  • Fixed the issue of concurrent synchronization resource errors in the ArgoCD KCL Plugin.
  • Added new KCL arm64 docker image kcllang/kcl-arm64.
  • KRM KCL specification added fields for access permissions, Kubernetes resource filtering, and compilation configuration, supporting private OCI Registry access and flexible compilation configuration, see documentation for more information.
  • Crossplane KCL functions released v0.8.0 version and updated more usage examples, see documentation for more information.

Special Thanks

We'd like to thank all the community participants from the past two weeks. The following are listed in no particular order:

  • Thanks to @Blarc and @prahaladramji for contributing to the KCL Intellij IDE plugin support for the latest Intellij version. 🙌
  • Thanks to @jgascon-nx for contributions to the KCL Crossplane module. 🙌
  • Thanks to @Gmin2 for contributions to rebooting KCL Language Server commands in the KCL VS Code IDE. 🙌
  • Thanks to @Gmin2 for contributions to the KCL GetSchemaType API supporting parent class field returns. 🙌
  • Thanks to @metacoma for contributions to the KCL argo-cd-order module. 🙌
  • Thanks to @shruti2522 for contributions to the KCL file module. 🙌
  • Thanks to @shruti2522 for contributions to KCL Import and Doc tools. 🙌
  • Thanks to @shruti2522 for contributions to the Kubernetes resource filtering feature in the KRM KCL specification. 🙌
  • Thanks to @JeevaRamanathan for contributions to the KCL file module. 🙌
  • Thanks to @AkashKumar7902 for contributions to the KCL package management tool MVS (Minimum Version Selection) algorithm. 🙌
  • Thanks to @bozaro for contributions to the KCL Go SDK Native API. 🙌
  • Thanks to @officialasishkumar for contributions to KCL package management tool configuration support for exclude and include parameters. 🙌
  • Thanks to @beholdenkey for contributions to KCL documentation. 🙌
  • Thanks to @d4v1d03 for contributions to the hover feature in KCL IDE. 🙌
  • Thanks to @ibishal for contributions to the preview feature in KCL IDE. 🙌
  • Thanks to @bradkwadsworth-mw for contributions to the access rights field in the KRM KCL specification. 🙌
  • Thanks to @jgascon-nx and @metacoma for sharing experiences and case studies on using KCL and Crossplane KCL functions, see here for more information. 🙌
  • Thanks to @mintu, @Sergei Iakovlev, @HAkash Kumar, @HStéphane Este-Gracias, @Korada Vishal, @Bishal, @metacoma, @NAVRockClimber, @nkabir, @dennybaa, @dopesickjam, @vfarcic, @sestegra, @jgascon-nx, @zargor, @markphillips100, @evensolberg, @borgius, @bradkwadsworth-mw, @reedjosh, @patrycju, @PrettySolution, @selfuryon, @steeling, @empath-nirvana, @CC007, @M Slane, @MOHAMED FAWAS, and @Even Solberg, among others, for their valuable advice and feedback during the recent use of KCL. 🙌

Resources

❤️ See here to join us!

For more resources, please refer to

· 3 min read

KCL is a constraint-based record and functional language hosted by Cloud Native Computing Foundation (CNCF) that enhances the writing of complex configurations, including those for cloud-native scenarios. With its advanced programming language technology and practices, KCL is dedicated to promoting better modularity, scalability, and stability for configurations. It enables simpler logic writing and offers ease of automation APIs and integration with homegrown systems.

For those interested in cloud-native, platform engineering,compiler, package management tools, and IDEs, we invite you to apply for the 2024 Linux Foundation LFX Mentorship project. You can earn a minimum of $3000 for completing the project! Apply now!

LFX Mentorship Project

We have three Mentorship projects, covering package management tools, compiler, and IDEs.

1. KCL Package Management Dependencies Sparse Checkout

When the scale of KCL project becomes larger and larger, and the external packages that KCL project relies on become more and more, the KCL package manager will become slow due to the need to download a large number of third-party dependencies. It needs to support Sparse-Checkout, which means downloading specific dependencies as needed rather than all of them, to improve the performance.

2. Optimization of KCL LSP prompt information

Optimize KCL LSP(language server protocol) prompt information, including the implementation of type inlayhint and optimization of hover content rendering. Currently, KCL’s hover content is in plain text format and needs to be rendered into a more beautiful style.

3. Supports tree-sitter for KCL

Tree-sitter is a parser generator tool and an incremental parsing library. In order to support more features of the IDE, we need a more complete syntax tree, and for easy integration with the community, we intend to use tree-sitter to build a more complete parser system for KCL.

4. How to Apply

Apply for your favorite project on the LFX mentorship platform. You can visit the LFX mentorship platform through the following link. The application starts on Monday May 13, and ends on Tues May 28, 5:00 PM PDT.

If you have any questions, please feel free to get more information directly from the corresponding issue or discuss with us:

5. Project Timeline

activitydate
Mentee applications openMonday May 13 - Tues May 28, 5:00 PM PDT
Application review/admission decisionsWed May 29 - Tues June 11, 5:00 PM PDT
Selection notificationsTues June 12, 5:00 PM PDT
Mentorship program begins with the initial work assignmentsMonday June 17 (Week 1)
Midterm mentee evaluations and first stipend paymentsWednesday July 24 (Week 6)
Final mentee evaluations and mentee feedback/blog submission due, second and final stipend payment approvalsWed Aug 28, 5:00 PM PST (Week 12)
Last day of termFriday Aug 30