Skip to content

skycluster-project/skycluster-compositions

Repository files navigation

SkyCluster Composition

In develop environment, set the source to the .k file containing the composition definition:

spec:
  source: /home/ubuntu/skycluster-project/skycluster-compositions/aws.skycluster.io/apis/xgateways/kcl/main.k

Once the KCL configuration is finalized and ready to be shipped within the composition, place the raw configuration directly as the source along with dependencies field:

spec:
  dependencies: |
    provider-aws = { git = "https://github.com/skycluster-project/kcl-modules", version = "0.0.1" }
  source: |
    import provider_aws.ec2.v1beta1.vpc as ec2vpc
    ...

Up Cli Commands

up init project skycluster.io
up example generate
up xrd generate examples/xskycluster/example.yaml 
up composition generate apis/xskyclusters/definition.yaml


kcl mod init
kcl mod update

Automation

# use apply-templates and apply-examples
# to automate generation of xrd and applying the definitions
# and compositions

apply-examples <path-to-example-file>
apply-templates [<path-to-api-folders>]
kcl-copy [<path-to-api-folders>]

# example:
apply-remplates xsetup xoverlay

kcl-copy xsetup xoverlay

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors