fix(kubernetes): improve error messaging around invalid service names
MODIFY
clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/op/manifest/AbstractKubernetesEnableDisableManifestOperation.java
clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/op/manifest/AbstractKubernetesEnableDisableManifestOperation.java
@@ -78,7 +78,9 @@ public abstract class AbstractKubernetesEnableDisableManifestOperation
name = KubernetesManifest.fromFullResourceName(loadBalancerName);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException(
- "Load balancers must be specified in the form '<kind> <name>', e.g. 'service my-service'",
+ String.format(
+ "Failed to perform operation with load balancer '%s'. Load balancers must be specified in the form '{kind} {name}', e.g. 'service my-service'",
+ loadBalancerName),
e);
}

MODIFY
clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/op/manifest/KubernetesDeployManifestOperation.java
clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/op/manifest/KubernetesDeployManifestOperation.java
@@ -269,7 +269,9 @@ public class KubernetesDeployManifestOperation implements AtomicOperation<Operat
name = KubernetesManifest.fromFullResourceName(loadBalancerName);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException(
- "Load balancers must be specified in the form '<kind> <name>', e.g. 'service my-service'",
+ String.format(
+ "Failed to attach load balancer '%s'. Load balancers must be specified in the form '{kind} {name}', e.g. 'service my-service'.",
+ loadBalancerName),
e);
}

fix(kubernetes): improve error messaging around invalid service names