From ac95f41188ee6b64277d371b07e8f6b51c1c1e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Jervidalo?= Date: Mon, 5 Feb 2018 14:58:24 +0100 Subject: [PATCH] fix(provider/kubernetes): Add top level `kind` to make Deck happy --- .../kubernetes/v2/caching/view/model/ManifestBasedModel.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/caching/view/model/ManifestBasedModel.java b/clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/caching/view/model/ManifestBasedModel.java index cd410ba4111..1148a17b2f7 100644 --- a/clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/caching/view/model/ManifestBasedModel.java +++ b/clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/caching/view/model/ManifestBasedModel.java @@ -19,6 +19,7 @@ import com.netflix.spinnaker.clouddriver.kubernetes.KubernetesCloudProvider; import com.netflix.spinnaker.clouddriver.kubernetes.v2.caching.Keys; +import com.netflix.spinnaker.clouddriver.kubernetes.v2.description.manifest.KubernetesKind; import com.netflix.spinnaker.clouddriver.kubernetes.v2.description.manifest.KubernetesManifest; import com.netflix.spinnaker.clouddriver.names.NamerRegistry; import com.netflix.spinnaker.moniker.Moniker; @@ -88,6 +89,10 @@ public Long getCreatedTime() { return null; } + public KubernetesKind getKind() { + return getManifest().getKind(); + } + abstract protected KubernetesManifest getManifest(); abstract protected Keys.InfrastructureCacheKey getKey(); }