Skip to content

Commit 20b53dd

Browse files
committed
deployd: mention case sensitivity for unknown fields
1 parent a077641 commit 20b53dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/deployd/deployd/deployd_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ var tests = []testSpec{
157157
timeout: 2 * time.Second,
158158
endStatus: &pb.DeploymentStatus{
159159
State: pb.DeploymentState_failure,
160-
Message: "nais.io/v1alpha1, Kind=Application, Namespace=aura, Name=myapplication-unknown-fields: creating resource: strict decoding error:\n| ⚠️ unknown field \"spec.nestedField\"\n| ⚠️ unknown field \"spec.unknownField\"\n| The fields might be misspelled, incorrectly indented, or unsupported.\n| Please verify your resource against the reference documentation at https://doc.nais.io/nais-application/application/ (total of 1 errors)",
160+
Message: "nais.io/v1alpha1, Kind=Application, Namespace=aura, Name=myapplication-unknown-fields: creating resource: strict decoding error:\n| ⚠️ unknown field \"spec.nestedField\"\n| ⚠️ unknown field \"spec.unknownField\"\n| The fields might be misspelled, incorrectly indented, or unsupported. Fields are case sensitive.\n| Please verify your resource against the reference documentation at https://doc.nais.io/nais-application/application/ (total of 1 errors)",
161161
},
162162
deployedResources: nil,
163163
},
@@ -168,7 +168,7 @@ var tests = []testSpec{
168168
timeout: 2 * time.Second,
169169
endStatus: &pb.DeploymentStatus{
170170
State: pb.DeploymentState_failure,
171-
Message: "nais.io/v1alpha1, Kind=Application, Namespace=aura, Name=myapplication: updating resource: strict decoding error:\n| ⚠️ unknown field \"spec.nestedField\"\n| ⚠️ unknown field \"spec.unknownField\"\n| The fields might be misspelled, incorrectly indented, or unsupported.\n| Please verify your resource against the reference documentation at https://doc.nais.io/nais-application/application/ (total of 1 errors)",
171+
Message: "nais.io/v1alpha1, Kind=Application, Namespace=aura, Name=myapplication: updating resource: strict decoding error:\n| ⚠️ unknown field \"spec.nestedField\"\n| ⚠️ unknown field \"spec.unknownField\"\n| The fields might be misspelled, incorrectly indented, or unsupported. Fields are case sensitive.\n| Please verify your resource against the reference documentation at https://doc.nais.io/nais-application/application/ (total of 1 errors)",
172172
},
173173
deployedResources: nil,
174174
},

pkg/deployd/strategy/deploy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func transformStrictDecodingError(resource unstructured.Unstructured, err error)
9494
if len(errs) > 1 {
9595
s.WriteString("s")
9696
}
97-
s.WriteString(" might be misspelled, incorrectly indented, or unsupported.")
97+
s.WriteString(" might be misspelled, incorrectly indented, or unsupported. Fields are case sensitive.")
9898

9999
s.WriteString("\n| Please verify your resource against the reference documentation")
100100
if u, ok := docs[resource.GroupVersionKind().String()]; ok {

0 commit comments

Comments
 (0)