Class KubernetesNamerRegistry


  • @Component
    public class KubernetesNamerRegistry
    extends java.lang.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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.netflix.spinnaker.clouddriver.names.NamingStrategy<KubernetesManifest> get​(java.lang.String name)
      Returns a registered strategy with the supplied name (ignoring case); throws an IllegalArgumentException if there is no strategy with that name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KubernetesNamerRegistry

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

      • get

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