Class KubernetesManifest
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
com.netflix.spinnaker.clouddriver.kubernetes.description.manifest.KubernetesManifest
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
Because this class maps the received Kubernetes manifest to an untyped map, it has no choice but
to perform many unchecked casts when retrieving information. New logic should convert the
manifest to an appropriate strongly-typed model object instead of adding more unchecked casts
here. Methods that already perform unchecked casts are annotated to suppress them; please avoid
adding more such methods if at all possible.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static org.apache.commons.lang3.tuple.Pair<KubernetesKind,String> fromFullResourceName(String fullResourceName) Deprecated.static StringgetFullResourceName(KubernetesKind kind, String name) getKind()getName()getUid()booleanbooleanvoidsetApiVersion(KubernetesApiVersion apiVersion) voidsetGenerateName(String name) voidsetKind(KubernetesKind kind) voidvoidsetNamespace(String namespace) voidsetReplicas(Number replicas) Methods inherited from class java.util.HashMap
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
KubernetesManifest
public KubernetesManifest()
-
-
Method Details
-
clone
-
getKind
-
getKindName
-
setKind
-
getApiVersion
-
setApiVersion
-
getName
-
getGenerateName
-
hasGenerateName
public boolean hasGenerateName() -
getUid
-
setName
-
setGenerateName
-
getNamespace
-
setNamespace
-
getCreationTimestamp
-
getCreationTimestampEpochMillis
-
getOwnerReferences
-
getManifestSelector
-
getLabels
-
getAnnotations
-
getReplicas
-
setReplicas
-
getSpecTemplateLabels
-
getSpecTemplateAnnotations
-
getStatus
-
getFullResourceName
-
getFullResourceName
-
nonMetadataEquals
-
fromFullResourceName
@Deprecated public static org.apache.commons.lang3.tuple.Pair<KubernetesKind,String> fromFullResourceName(String fullResourceName) Deprecated.This method is deprecated in favor of creating aKubernetesCoordinatesobject usingKubernetesCoordinates.KubernetesCoordinatesBuilder.fullResourceName(java.lang.String), which has more clearly identified named thanPair.getLeft()) andPair.getRight()).
-