Class KubernetesResourceAwareNames
java.lang.Object
com.netflix.spinnaker.clouddriver.kubernetes.names.KubernetesResourceAwareNames
the
Names class is used for deconstructing information about AWS Auto Scaling Groups,
Load Balancers, Launch Configurations, and Security Groups created by Asgard based on their name.
While the above class is mainly used for AWS, it works for most of the Kubernetes resources as well, since Kubernetes resources follow a similar naming convention. But there are certain Kubernetes resources which are reserved for Kubernetes system use that have the prefix "system:". See Referring to subjects for more details.
One such use of these resources is in KubernetesKind.CLUSTER_ROLE kind, which you can
attempt to patch via Spinnaker. Because the Names class cannot parse this name, Spinnaker
fails to return the manifest. This class is used to handle such resources in addition to all the
other resources.
-
Constructor Summary
ConstructorsConstructorDescriptionKubernetesResourceAwareNames(String cluster, String application, Integer sequence) -
Method Summary
Modifier and TypeMethodDescriptionstatic KubernetesResourceAwareNamesparses the given manifestName into aKubernetesResourceAwareNamesobject.
-
Constructor Details
-
KubernetesResourceAwareNames
-
-
Method Details
-
parseName
parses the given manifestName into aKubernetesResourceAwareNamesobject. It handles all types of Kubernetes manifests- Parameters:
manifestName- given manifest name- Returns:
KubernetesResourceAwareNamesrepresentation of the manifest name
-