Skip to content

Commit

Permalink
feat(kubernetes): add apiVersion, displayName, and namespace to Manif…
Browse files Browse the repository at this point in the history
…estBasedModel (#4765)

Deck expects instances, serverGroups, serverGroupManagers, securityGroups, and loadBalancers to each include these four properties. Currently, Deck is combining data returned from each view with data returned from each manifest. Instead, let's just include these properties in each view.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
maggieneterval and mergify[bot] committed Jul 30, 2020
1 parent 3d90bde commit fc2be9f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ public String getName() {
return getManifest().getFullResourceName();
}

public String getDisplayName() {
return getManifest().getName();
}

public String getApiVersion() {
return getManifest().getApiVersion().toString();
}

public String getNamespace() {
return getManifest().getNamespace();
}

// Spinnaker namespace hacks
public String getZone() {
return getManifest().getNamespace();
Expand Down

0 comments on commit fc2be9f

Please sign in to comment.