Class KubernetesResourceAwareNames
- java.lang.Object
-
- com.netflix.spinnaker.clouddriver.kubernetes.names.KubernetesResourceAwareNames
-
public class KubernetesResourceAwareNames extends java.lang.ObjecttheNamesclass 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_ROLEkind, which you can attempt to patch via Spinnaker. Because theNamesclass 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
Constructors Constructor Description KubernetesResourceAwareNames(java.lang.String cluster, java.lang.String application, java.lang.Integer sequence)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KubernetesResourceAwareNamesparseName(java.lang.String manifestName)parses the given manifestName into aKubernetesResourceAwareNamesobject.
-
-
-
Method Detail
-
parseName
public static KubernetesResourceAwareNames parseName(java.lang.String manifestName)
parses the given manifestName into aKubernetesResourceAwareNamesobject. It handles all types of Kubernetes manifests- Parameters:
manifestName- given manifest name- Returns:
KubernetesResourceAwareNamesrepresentation of the manifest name
-
-