Skip to content

Commit 1217beb

Browse files
committed
fix: Add comment to explain field
1 parent 21b81fd commit 1217beb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/webhook/preflight/nutanix/credentials.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ func newCredentialsCheck(
222222
"Failed to validate credentials: %s. This is usually a temporary error. Please retry.", ///nolint:lll // Message is long.
223223
err,
224224
),
225+
// We do not add ".url" or ".credentials.secretRef" to the field, because we do not know
226+
// if the error is related to the URL, or the credentials.
225227
Field: "$.spec.topology.variables[[email protected]==\"clusterConfig\"].value.nutanix.prismCentralEndpoint",
226228
},
227229
)

0 commit comments

Comments
 (0)