Git Product home page Git Product logo

Comments (11)

huyhg avatar huyhg commented on August 16, 2024 2

@moxious @whyrg Please update your vendor and see if this fixes things for you. Per my last comment, there is still an issue that has to be worked around if you need to specify APP_PARAMETERS to start.sh.

from marketplace-k8s-app-tools.

vcanaa avatar vcanaa commented on August 16, 2024 1

I see. As mentioned in #74, this seems to be solved.

I believe it is safe to say we will only support strings for app parameters.

from marketplace-k8s-app-tools.

huyhg avatar huyhg commented on August 16, 2024

@trironkk FYI

from marketplace-k8s-app-tools.

huyhg avatar huyhg commented on August 16, 2024

@vcanaa FYI

from marketplace-k8s-app-tools.

huyhg avatar huyhg commented on August 16, 2024

What the partner expected here was that the value of the properties would replace the corresponding field (defined by that same path core.numberOfServers) in values.yaml.

from marketplace-k8s-app-tools.

whyrg avatar whyrg commented on August 16, 2024

This seems to be a continuation of #64 as well.

We have an int example in the onboarding docs:

...
serverReplicas:
    title:  Server replicas
    type:  int
    default: 1
    minimum: 1

The serverReplicas param is a very common setting regardless of application. It's much easier for platform adoption is the integrator doesn't have to jump through hoops to get basic parameters working.

I understand there's a limit due to envsubst from the key comment by @huyhg in #74:

The reason for this restriction is because properties are also being passed as environment variables, particularly in the case where envsubst is used for template expansion instead of helm's go template.

Which manifests as the following:

Container | Timestamp | Message
-- | -- | --
deployer | May 8, 2018, 3:47:41 PM | TypeError: execve() arg 3 contains a non-string value
deployer | May 8, 2018, 3:47:41 PM | raise child_exception
deployer | May 8, 2018, 3:47:41 PM | File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
deployer | May 8, 2018, 3:47:41 PM | errread, errwrite)
deployer | May 8, 2018, 3:47:41 PM | File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
deployer | May 8, 2018, 3:47:41 PM | stderr=subprocess.PIPE)
deployer | May 8, 2018, 3:47:41 PM | File "/bin/config_env.py", line 69, in main
deployer | May 8, 2018, 3:47:41 PM | main()
deployer | May 8, 2018, 3:47:41 PM | File "/bin/config_env.py", line 81, in <module>
deployer | May 8, 2018, 3:47:41 PM | Traceback (most recent call last):
deployer | May 8, 2018, 3:47:41 PM | + cat /data/manifest/aerospike.yaml.template
deployer | May 8, 2018, 3:47:41 PM | + /bin/config_env.py envsubst '<A whole bunch of $PARAMS>'
...

At the end of the day, we're populating a YAML file. Why not a jinja template instead?

from marketplace-k8s-app-tools.

huyhg avatar huyhg commented on August 16, 2024

Yes, the intention is to support parameters of types other than strings. The limitation due to envsubst is on the key/property name, not the value itself.

What @whyrg describes is a supported use case. Thanks for reporting the error--this is indeed a bug in config_env when dealing with non-string property types. I'll send a fix.

from marketplace-k8s-app-tools.

huyhg avatar huyhg commented on August 16, 2024

I've sent #80 which should fix this.

There is still an issue with start.sh when the user wants to pass parameter values on the command line, in which case the values have to be passed as strings. As an example, for the serverReplicas above, if you want to pass the json to start.sh (APP_PARAMETERS env var in make), it should be:

{ "serverReplicas": "3" }

instead of the expected:

{ "serverReplicas": 3 }

This issue is tracked in #63.

from marketplace-k8s-app-tools.

moxious avatar moxious commented on August 16, 2024

Confirmed this worked

from marketplace-k8s-app-tools.

whyrg avatar whyrg commented on August 16, 2024

Confirmed working as well

from marketplace-k8s-app-tools.

ziyitony avatar ziyitony commented on August 16, 2024

Confirmed working as well

from marketplace-k8s-app-tools.

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.