-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Helm date format error #667
Comments
Hmm, after some further testing, it seems that Here's an example of the Service object generated by # Source: keda-edge/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
labels:
app: keda-edge
chart: keda-edge-0.0.1-2019.07.24.21.37.42-8ffd9a3
release: keda-edge
date: 2019-07-30
name: keda-edge
namespace: default
spec:
ports:
- name: https
port: 443
targetPort: 6443
- name: http
port: 80
targetPort: 8080
selector:
name: keda-edge
instance: keda-edge-instance The date format was different in our error message, so that's probably the culprit:
vs
The date was generated with the following line in the chart: Edit: Verified that the extended date format fails to validate against the regex, so that's the source of the failure. Not sure why the date is being generated in that format. |
For context, I was trying to create an example of KEDA with Pulumi by porting this Terraform example |
Do you know what would cause the date to be generated in that format? |
We just shell out to https://github.com/pulumi/pulumi-kubernetes/blob/master/sdk/nodejs/helm/v2/helm.ts#L175 |
@lukehoban Yes, when I ran it manually, the date format was |
Oh YAML...
|
Sounds like we need to provide the same "Schema" as Kubernetes will use to parse this YAML. Do we know what that is? |
I think we need to set
|
Kubernetes ultimately bottoms out on using gopkg.in/yaml.v2. https://github.com/kubernetes-sigs/yaml/blob/v1.1.0/yaml.go#L49 That package is not super-clear on the precise profile of YAML that it uses for parsing, or even what specification it is aiming to be compatible with. |
Thanks Luke, I've been grinding jsyaml to find the reason.
This fixes the problem! I have the chart deployed. |
I came across a chart that includes a
.tpl
file which apparently is used to define some common values for the chart. I get the following errors when I try to install the chart:Here's the code I used to create the chart:
The text was updated successfully, but these errors were encountered: