Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-672

Extend StageConfig to load info from a different Source

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2017.2.0
    • Component/s: None
    • Labels:
      None

      Description

      WildFly Swarm offers a mechanism to configure the Swarm Container when it will be instantiated with a yaml config file containing the properties required to customise a fraction, subsystem or the application itself. The StageConfig can be defined using one of these methods available on the Swarm class :

      withStageConfig()
      withStageConfigURL(URL aURL)
      (see https://github.com/cmoulliard/wildfly-swarm-core/blob/master/container/src/main/java/org/wildfly/swarm/Swarm.java#L337-L338)

      The config file will be loaded using the classloader or the URL (https://github.com/cmoulliard/wildfly-swarm-core/blob/master/container/src/main/java/org/wildfly/swarm/Swarm.java#L493)

      Question :

      Is it possible to extend the existing code to support a different "SourceLocator" to create the StageConfig (e.g using Kubernetes as Client Api) ?

      Here is an example developed for Spring project https://github.com/fabric8io/spring-cloud-kubernetes/blob/master/spring-cloud-kubernetes-core/src/main/java/io/fabric8/spring/cloud/kubernetes/config/ConfigMapBootstrapConfiguration.java#L46) to retrieve the Kubernetes ConfigMaps & map them to Spring Configs (https://github.com/fabric8io/spring-cloud-kubernetes/blob/master/spring-cloud-kubernetes-core/src/main/java/io/fabric8/spring/cloud/kubernetes/config/ConfigMapPropertySource.java#L62).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bob.mcwhirter Bob McWhirter
                  Reporter:
                  cmoulliard Charles Moulliard
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: