Coder Social home page Coder Social logo

crossplane-gs-apis's Introduction

Giant Swarm Crossplane APIs

This repository contains both code and crossplane compositions and definitions generated via crossbuilder, an opensource crossplane compiler.

APIs

If an API is marked (definition only), check the [crossplane-examples] repo

Building

To build the go code into consumable YAML, the fork of crossbuilder found at mproffitt/crossbuilder is required.

Clone the crossbuilder repo first and run docker build . -t xrdtools inside it

Next, enter the directory you need to build compositions for.

In this example we will use xnetworks.

cd to this location and execute the following command

docker run -v $(pwd):/crossbuilder/apis:rw xrdtools

You do not need to give a command to docker, just the name of the container.

This will run go generate ./... and then build any/all compositions under compositions folder by first compiling the xrc-gen command and executing it which will in turn build any/all compositions as plugins and execute them to generate the manifests.

Output from this command is written to the package folder.

Example

$ cd crossplane.giantswarm.io/xnetworks/
$ docker run -v $(pwd):/crossbuilder/apis:rw xrdtools
go: downloading sigs.k8s.io/controller-tools v0.15.0
... <TRUNCATED>
copying go.mod and go.sum
generating definitions
generating compositions
/crossbuilder/apis
=====================================
2024/07/21 12:58:54 compiled plugin plugins/peeredvpc.so
2024/07/21 12:58:57 compiled plugin plugins/subnetsets.so
step: network-discovery
step: function-kcl-subnet-bits
step: function-cidr
step: function-kcl-create-resources
step: function-kcl-patch-xr
step: patch-and-transform
step: function-auto-ready
step: function-kcl-create-resources
step: function-auto-ready

crossplane-gs-apis's People

Contributors

mproffitt avatar pipo02mix avatar

Stargazers

Rajkumar Singh avatar

Watchers

Lucian avatar Joe Salisbury avatar Oliver Thylmann avatar Alex Dabija avatar Quentin Bisson avatar Puru avatar Snizhana avatar

Forkers

cybernetics

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.