As a user, i often modify the configuration settings for each application i create. This can lead to a confusing number of different oc new-app ... scripts that i need to write in order to capture each configuration. i would like to be able to capture these settings in my source repository and have the oshinko tooling automatically deploy a cluster configuration for me.
example
I have an application that uses several external packages, when i want to run this application i might type the following:
oc new-app --template=oshinko-java-spark-build-dc \
-p APPLICATION_NAME=myapp \
-p GIT_URI=https://github.com/me/myapp \
-p APP_MAIN_CLASS=com.me.myapp.Main \
-p SPARK_OPTIONS='--packages org.apache.spark:spark-sql-kafka-0-10_2.11:2.3.0,com.sparkjava:spark-core:2.5.5,org.glassfish:javax.json:1.0.4 --conf spark.jars.ivy=/tmp/.ivy2'
the SPARK_OPTIONS command captures a specific configuration that i need for this application. i will need to use this command line every time i launch the application. what i would like is to capture these settings in a file that i can check in to my repository that oshinko will use to configure my cluster.
i would like to be to check in a file, oshinko-cluster.conf for example, that will contain configurations that will get deployed for me. the options from the previous command line could then get captured in a file like this:
oshinko-cluster.conf
spark.jars.packages org.apache.spark:spark-sql-kafka-0-10_2.11:2.3.0,com.sparkjava:spark-core:2.5.5,org.glassfish:javax.json:1.0.4
spark.jars.ivy /tmp/.ivy2
implementation
although the previous example is over-simplified, it could form the basis of thinking for an implementation. it would be nice to create some sort of linkage between files in the source repository and the ConfigMap options currently in use by oshinko.
there could be a mechanism to convert config files directory into ConfigMaps, or perhaps a way to include ConfigMap yaml files inside the repo.
regardless of the implementation chosen, this feature will bring another layer of devops coordination to the oshinko s2i process and make the tooling even easier for users.
As a user, i often modify the configuration settings for each application i create. This can lead to a confusing number of different
oc new-app ...scripts that i need to write in order to capture each configuration. i would like to be able to capture these settings in my source repository and have the oshinko tooling automatically deploy a cluster configuration for me.example
I have an application that uses several external packages, when i want to run this application i might type the following:
the
SPARK_OPTIONScommand captures a specific configuration that i need for this application. i will need to use this command line every time i launch the application. what i would like is to capture these settings in a file that i can check in to my repository that oshinko will use to configure my cluster.i would like to be to check in a file,
oshinko-cluster.conffor example, that will contain configurations that will get deployed for me. the options from the previous command line could then get captured in a file like this:oshinko-cluster.confimplementation
although the previous example is over-simplified, it could form the basis of thinking for an implementation. it would be nice to create some sort of linkage between files in the source repository and the ConfigMap options currently in use by oshinko.
there could be a mechanism to convert config files directory into ConfigMaps, or perhaps a way to include ConfigMap yaml files inside the repo.
regardless of the implementation chosen, this feature will bring another layer of devops coordination to the oshinko s2i process and make the tooling even easier for users.