Giter Site home page Giter Site logo

Comments (1)

YourTechBud avatar YourTechBud commented on September 23, 2024

Initialize Package: spacectl package init

  • Creates an sc/package.yaml file in $PWD
  • File contains:
    • Name of package (name) - Default (Current working directory name)
    • Labels (labels) - Default set of labels to be added to each resource being applied- Make sure we implicitly add a label space-cloud.io/package=<package-name>
    • Output:
      • Client Gen language - E.g. rtk-query
      • Directory of generated files - Default (sc/output)
    • Directory of source files - Defaults (sc/resources)

Flags or survey:

  • --name/ -n (Defaults: Working directory name)
  • --language/ --lang/ -l
  • --output-dir/-o
  • --resource-dir/-r

Apply resource in package: spacectl package apply

  • First login
  • Retrieve all CRs SC. This will require a new API on the backend (put this in admin manager)
  • Load resources from resource directly and inject labels into them
  • Calculate deltas between resources received from SC (for current package) vs those present in local resources directory
  • Apply the delta to SpaceCloud.

Get all resources in package: spacectl package get all

  • First Login
  • Retrieve all CRs from current workspace from SC
  • Print all resources as a table on the screen

Get all resources of a particular kind in package: spacectl package get <kind>

from space-cloud.

Related Issues (20)

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.