We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81ba612 commit f55d53fCopy full SHA for f55d53f
rust/stackable-cockpit/src/utils/k8s/client.rs
@@ -162,6 +162,8 @@ impl Client {
162
// If re-applying a Job fails due to immutability, print out the failed manifests instead of erroring out,
163
// so the user can decide if the existing Job needs a deletion and recreation
164
match (resource.kind.as_ref(), e) {
165
+ // Errors for immutability in Kubernetes do not return meaningful `code`, `status`, or `reason` to filter on
166
+ // Currently we have to check the `message` for the actual error we are looking for
167
("Job", kube::Error::Api(e)) if e.message.contains("field is immutable") => {
168
indicatif_eprintln!(
169
"Deploying {kind}/{object_name} manifest failed due to immutability",
0 commit comments