Class KubernetesNamerRegistry

java.lang.Object
com.netflix.spinnaker.clouddriver.kubernetes.names.KubernetesNamerRegistry

@Component public class KubernetesNamerRegistry extends Object
This class handles registering any naming strategies for kubernetes manifests that are on the classpath, and supports looking these up by name. It is in principle possible for users to add additional namers in a custom build, but it is not clear how often this is used. The only namer that exists upstream is KubernetesManifestNamer.
  • Constructor Details

    • KubernetesNamerRegistry

      @Autowired public KubernetesNamerRegistry(List<com.netflix.spinnaker.clouddriver.names.NamingStrategy<KubernetesManifest>> strategies)
  • Method Details

    • get

      public com.netflix.spinnaker.clouddriver.names.NamingStrategy<KubernetesManifest> get(String name)
      Returns a registered strategy with the supplied name (ignoring case); throws an IllegalArgumentException if there is no strategy with that name.