Class LabeledSourceData

java.lang.Object
org.springframework.cloud.kubernetes.commons.config.LabeledSourceData

public abstract class LabeledSourceData extends Object
Author:
wind57 Base class when dealing with labeled sources that support profiles specific sources, prefix based properties and single file yaml/properties.
  • Constructor Details

    • LabeledSourceData

      public LabeledSourceData()
  • Method Details

    • compute

      public final SourceData compute(Map<String,String> labels, ConfigUtils.Prefix prefix, String target, boolean failFast, String namespace)
    • dataSupplier

      protected abstract MultipleSourcesContainer dataSupplier(Map<String,String> labels)
      Implementation specific (fabric8 or k8s-native) way to get the data from then given source names.
      Parameters:
      labels - the ones that have been configured
      Returns:
      a container that holds the names of the source that were found and their data