Difference between revisions of "Cannot unmarshal XXXXX into Go struct field"
Jump to navigation
Jump to search
(8 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
[[Error: ECS Task Definition container_definitions is invalid: Error decoding JSON: json: cannot unmarshal number into Go struct field KeyValuePair.Environment.Value of type string]] | [[Error: ECS Task Definition container_definitions is invalid: Error decoding JSON: json: cannot unmarshal number into Go struct field KeyValuePair.Environment.Value of type string]] | ||
+ | |||
+ | Solution: review if your [[variable definition]] needs to be changed from [[Terraform types|number]] to [[string]] | ||
− | |||
− | [[Cannot unmarshal number into Go struct field]] ObjectMeta.metadata.labels [[of type string]] | + | |
+ | Error: INSTALLATION FAILED: 1 error occurred: | ||
+ | * Deployment in version "v1" cannot be handled as a Deployment: json: cannot unmarshal string into Go struct field | ||
+ | PodSpec.spec.template.[[spec.imagePullSecrets]] of type v1.[[LocalObjectReference]] | ||
+ | |||
+ | Solution: imagePullSecrets: [{ name: yourSecret }] | ||
+ | |||
+ | |||
+ | <code>[[Cannot unmarshal object into Go value of type]] jsonpatch.Patch</code> | ||
+ | |||
+ | <code>[[Cannot unmarshal number into Go struct field]] ObjectMeta.metadata.labels [[of type string]]</code> | ||
+ | |||
+ | [[could not unmarshal JSON]]: json: [[cannot unmarshal bool into Go value of type]] | ||
+ | |||
+ | [[json: cannot unmarshal bool into Go struct field IngressSpec.spec.tls of type v1.IngressTLS]] | ||
== Related == | == Related == |
Latest revision as of 05:39, 18 July 2024
Cannot unmarshal string into Go struct field Container.spec.template.spec.containers.env of type
Error: ECS Task Definition container_definitions is invalid: Error decoding JSON: json: cannot unmarshal number into Go struct field KeyValuePair.Environment.Value of type string Solution: review if your variable definition needs to be changed from number to string
Error: INSTALLATION FAILED: 1 error occurred: * Deployment in version "v1" cannot be handled as a Deployment: json: cannot unmarshal string into Go struct field PodSpec.spec.template.spec.imagePullSecrets of type v1.LocalObjectReference Solution: imagePullSecrets: [{ name: yourSecret }]
Cannot unmarshal object into Go value of type jsonpatch.Patch
Cannot unmarshal number into Go struct field ObjectMeta.metadata.labels of type string
could not unmarshal JSON: json: cannot unmarshal bool into Go value of type
json: cannot unmarshal bool into Go struct field IngressSpec.spec.tls of type v1.IngressTLS
Related[edit]
See also[edit]
Advertising: