Comments (11)
Root cause is this line of code, the names of parameters must match a regex which can't include dots, although those are valid YAML config. I'm not sure if you have another reason in the deploy chain to tighten this down, but dotted param names seem like valid YAML and are used in helm charts elsewhere.
from marketplace-k8s-app-tools.
Another similar error in the same vein, this time with me innovating new ways of breaking things. At first I thought this was due to a type boolean parameter in my schema, but after switching it to a string the error persists.
deployer | May 8, 2018, 4:55:38 PM | AttributeError: 'bool' object has no attribute 'encode'
-- | -- | --
deployer | May 8, 2018, 4:55:38 PM | f.write(v.encode(encoding))
deployer | May 8, 2018, 4:55:38 PM | File "/bin/expand_config.py", line 124, in write_values
deployer | May 8, 2018, 4:55:38 PM | write_values(values, args.final_values_dir, args.encoding)
deployer | May 8, 2018, 4:55:38 PM | File "/bin/expand_config.py", line 63, in main
deployer | May 8, 2018, 4:55:38 PM | main()
deployer | May 8, 2018, 4:55:38 PM | File "/bin/expand_config.py", line 128, in <module>
deployer | May 8, 2018, 4:55:38 PM | Traceback (most recent call last):
deployer | May 8, 2018, 4:55:37 PM | + /bin/expand_config.py
from marketplace-k8s-app-tools.
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.
Can you provide a copy of your values.yaml
file?
from marketplace-k8s-app-tools.
@huyhg I sent you an invite to a private repo where I am keeping materials. Values is here: https://github.com/neo-technology/neo4j-google-k8s-marketplace/blob/master/chart/values.yaml
from marketplace-k8s-app-tools.
Could you grant @trironkk and @vcanaa access to the repo as well? Thanks.
from marketplace-k8s-app-tools.
Done. I also added @deustis as he and I were discussing this just yesterday.
from marketplace-k8s-app-tools.
The boolean failure is interesting. bool
is currently unsupported in our schema (which I will add). It's surprising that it fails with that encode attribute instead of a validation rejecting the value.
Did you pass a boolean value to the APP_PARAMETERS
json, independent of the type in the schema?
from marketplace-k8s-app-tools.
No. The way I'm calling it can be seen here:
The "yes" was previously a boolean, now a string in schema.yaml.
from marketplace-k8s-app-tools.
Alright, there are a few things after I investigated.
yes
is actually a reserved word yaml that is interpreted as atrue
boolean value. This leads to the exception about abool
object instead of astr
object.- The
vendor/marketplace-tools
is not at the latest version. Please update it to the latest version (ideally at a commit after #79 having been merged so that you can use boolean type). This is the reason for theAttributeError: 'bool' object has no attribute 'encode'
error. In the latest version you should have seen anInvalidSchema
error instead.
from marketplace-k8s-app-tools.
from marketplace-k8s-app-tools.
Closing this in favor of #84 and the fact the deployment is unblocked.
from marketplace-k8s-app-tools.
Related Issues (20)
- options for managing dependencies
- Support CRD and CR ordering HOT 1
- `mpdev doctor` says `kubectl` isn't installed HOT 1
- RBAC Role rules for namespaces outside of the app itself
- The test runner "bashTest" does not show stderr and stdout on failure HOT 1
- The update from v1beta1 to v1 broke our old deployer images
- Integrating cert-manager with Google PrivateCA
- Add support for Helm v3 test hook HOT 2
- The application uid should no be displayed in the Marketplace UI
- Creating KSA with annotation
- arm64 builds - gcr.io/cloud-marketplace-tools/k8s/dev & gcr.io/cloud-marketplace-tools/k8s/deployer_helm
- `mpdev doctor` command says `kubectl is not installed` when it is HOT 1
- exception: Set of resources includes multiple Applications even though there is only 1 application HOT 1
- KUBECONFIG should be used instead of KUBE_CONFIG
- Unknown field "spec.selector.matchLabels.app.kubernetes.io/name" on GKE 1.25 HOT 2
- Helm template Capabilities.ApiVersions.Has behavior different than helm install
- FB.com
- How to use RWX storage class in schema.yaml
- Support for multiple charts for helm deployer
- Fail at build time with chart directory not seen as a directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marketplace-k8s-app-tools.