Code Monkey home page Code Monkey logo

Comments (7)

siddhantprateek avatar siddhantprateek commented on June 20, 2024 1

Hey @siddhantprateek, sorry for the delay, I forgot to respond. Yeah, this looks good, except that I would leave out values from the file, but all the other parts look good!

No issues, i was working on cerbos authorization part until that, i'll update the suggested changes for this

from cyclops.

siddhantprateek avatar siddhantprateek commented on June 20, 2024

@petar-cvit, I've implemented a command for creating TemplateStore custom resources:

cyctl create template NAME --repo='https://github.com/cyclops-ui/templates' --path='/path' --version='main'

Iā€™m considering adding namespace flags as well.

Currently, the --version flag defaults to main.

What are your thoughts on this?

from cyclops.

petar-cvit avatar petar-cvit commented on June 20, 2024

Nice! The version flag does not need to default to anything. There is already logic for defaulting when the version is not specified in the controller, so a template without a version is completely valid.

Can you split this issue into multiple smaller ones since Module creation could be a bigger chunk of work then the creation TemplateStore CR? You can open a new issue for the creation of templates and I can assign you to it

from cyclops.

siddhantprateek avatar siddhantprateek commented on June 20, 2024

I was wondering if we could have a command like,

cyctl create module NAME -f values.yaml

since the values are not consistent.

from cyclops.

petar-cvit avatar petar-cvit commented on June 20, 2024

you are thinking about values.yaml containing only the values or the whole Module? If its just the values, you need to add flags for template reference

from cyclops.

siddhantprateek avatar siddhantprateek commented on June 20, 2024

the values.yaml will contain this

  values:
    general:
      environment:
        ENVIRONMENT: production
      image: nginx
      version: 1.14.2
    name: nginx-app
    networking:
      expose: true
      port: 8080
    scaling:
      replicas: 2
      resources:
        cpu: 0.1
        memory: 0.01

and the complete command would look something like this

cyctl create module NAME -f values.yaml \ 
--repo 'github.com/github/demo' \
--path '/path/to/charts' \
--version 'main'

from cyclops.

petar-cvit avatar petar-cvit commented on June 20, 2024

Hey @siddhantprateek, sorry for the delay, I forgot to respond. Yeah, this looks good, except that I would leave out values from the file, but all the other parts look good!

from cyclops.

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.