You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed regression in mg inspect properties subcommand. Does not need a namespace argument.
Changelog: 33a8e2a (HEAD -> master, origin/master, origin/HEAD) Merge branch 'master' of https://github.com/laetho/metagraf cc4aed4 Remvoed dependency on namespace for inspect properties subcommand 632155e Working on metaGraf example using an upstream dgraph image aa2be97 Cleaning up Deployment generation, removed population of external envs as envs. c59ea16 Using Skopeo to inspect image instead of ImageStreamTag API if mg.Spec.Image is used. 418f756 Documentation 488ac73 Fixed license and copyright notice 0397025 Added EnvFromKey and SecretFromKey to the EnvironmentVar struct. d91ac32 Fixed test of JVM_SYS_PROP functionality after MGProperties rewrite. cfa5e8c Simplified the JVM_SYS_PROP EnvironmentVar generation. c5d4086 Fixed go vet warnings. cebc38a Fixed APIVersion for Deployment resoures 1383041 Fixed go vet issues and running tests in ./build.sh c39e04c Used SkopeoGetImage instead of imagestreamtag api for deployment generation. a3eeea9 Merge branch 'master' of github.com:laetho/metagraf af78cfc Added SkopeoImageInfo() function for inspecting docker images without having to rely on the Openshift specific ImageStreamTag api. 583d108 Added SkopeoImageInfo() function for inspecting docker images without having to rely on the Openshift specific ImageStreamTag api. 2a0529b Added test for parsing a skopeo inspect --config payload to dockerv10.ImageInfo{} structure. ae8d987 Commants and cleanup of the metaGraf spec structs 9e7931a Fixed some warnings from go vet. c50ac37 Initial commit of knative framework integration e22ea32 Wired up the istio subcommans and added some inline documentation.
Handling of configuration input when generating manifests should now be more solid.
Istio pakages are now integrated so we can start work on generating necessary Istio resources.
K8S SIG Application packages are also integrated so that can be improved without a lot of conflicts.
32bdfd9 (HEAD -> master, tag: v0.0.34, origin/master, origin/HEAD) Fixed regression in setting of properties when parsing 64d6cf2 Fixed logic for not setting config value when the key is invalid. 84dd83a Fixed config regression when dealing with new cvfile/properties format and skipping envfrom and secret from in GetProperties() 190c789 Test fails, need to look at how cmd.CVars is used in OverrideProperties if at all. 9110ecc Merge pull request #11 from ollis/master a7eb048 Merge pull request #17 from laetho/istio 5412a39 Removed glog from main a2c6bd3 go mod tidy 4f49715 Merged? acbd350 Merge branch 'master' into istio 217fd52 Merge pull request #16 from laetho/k8sapplication 6f4d138 Merge branch 'master' into k8sapplication defd727 Some more work on the skeleton implementation of k8s sig application generation 0b8532d Updated copyright notice 7c50927 Created the initial cli subcommand for k8s sigs application generation. 96e3dad Initial skeleton implementation of GroupKinds() that returns a slice of v1meta.GroupKind{} 3429da6 We're now integrating with much newer Kubernetes and Openshift API's. 2db7630 Merge branch 'k8sapplication' of github.com:laetho/metagraf into k8sapplication 8c11630 wip 076244e (origin/k8sapplication, k8sapplication) sig application skaffold 02c0a8b (origin/istio) Merge remote-tracking branch 'origin' into istio 9f62150 (istio) Made it build, fixing go mod 7c8100e Merge remote-tracking branch 'origin/master' into istio 83cbf96 Add test for jvm sys prop env var extraction b8fcc4f scaffolding wip fa35fd2 Some skaffolding for doing istio manifest generation
Added version injection support when building. mg will now report what it is. (commit and tag if present)
Refactored how we deal with properties when we override or set spec values from Env, --cvars or --cvfile.
Format for generated .properties has changed to |key=value. Also supports old format on input but will warn on inspect.
Added support for inspecting generated properties files (mg generate properties ) with mg inspect properties .
Added support functions for use in mg create ref. Moved logic into go to simplify writing templates for documentation output.
I appologize for the horrible amount of commits and lousy comments.
Changelog: 56c0203 Added several template.FuncMap functions to ease the amount of logic to do in templates in the create ref subcommand. 13ac2a9 Added getParamMap() and getReqParamMap() functions to aid in template processing. Move logic into functions instead of inside template. 6953458 Fixed typo 63fb287 Actually adhere to BaseEnvs flag. Default is not to populate base image envs. 3e7a053 Clanup of create ref subcommand 7da1e12 wip 57d716a Remove dead code 313f980 Merge branch 'master' of github.com:laetho/metagraf 9a9a8f0 Added "mg generate completion" outputs bash completions to stdout 25b4e46 Updated NT specific refdoc template (html) 3c5e122 Updated documentation site image link a786101 newlines ec74c8f auto margins 3479700 align 5727e8d Changed to png, github handles svg through raw poorly 2d0832a The actual svg 737809b * Added gitops illustration. * Tried to clarify some text. dcfdc58 Merge pull request #15 from laetho/varsremoval cffc2e4 Removed VarsFromEnv method 4a1dba0 Removed VarsFromCmd method 7c36f80 Removed VarsFromFile method cbe1e41 Removed unused MergeVars function 69653d3 Removed unused OverrideVars method. 872e906 Merge pull request #14 from laetho/mgproperties b3119b9 Moved to using MGProperties for all subcommands. b6904d8 Changed modules.Variables to type MGProperties e8aabe6 Merge pull request #13 from laetho/formatfix f06ce50 * Changed metagraf configuration properties format to source|key=value to ease parsing. ; caused all sorts of unexpected problems. * Updated methods to use MGKey() function to generate source|key format. * Added sanity check when parsing. errors out if unable to parse correctly. bf284da Merge pull request #12 from laetho/inspectprops 7344246 Fixed logic of reading properties from files. Cleanup after refactoring. fabace1 Fixed always output default for JVM_SYS_PROP config options. 68e04b2 Clanup of MGProperties rewrite. Removed some unused code and skipped JVM_SYS_PROP as a configurable env type. 4e1ab25 Fixup of validating configuration properties. Moved to new MGProperties map and support functions. ea9283f Merge branch 'inspectprops' of https://github.com/laetho/metagraf into inspectprops b9a6c5d Refactoring continues. MGProperties map changed, Parsing and merging of properties from env, file and cmd now can use mgproperties. Inspect and generate subcommands use this. Other parts of the subcommands have not yet moved to this approach. WIP. b9619cd Refactoring continues. MGProperties map changed, Parsing and merging of properties from env, file and cmd now can use mgproperties. Inspect and generate subcommands use this. Other parts of the subcommands have not yet moved to this approach. WIP. 1b87090 WIP 3d6ea43 adding functions for moving to MGProperties and MGProperty cacec71 Refactoring inspect and generate properties, And refactoring most of the old variable handling 6d92b26 Refactored types for cleanness, b6d987b Removed newline from --cvfile .properties file parsing. 93fe67c strings.FieldsFunc() to the rescue. I feel like i just leveled up! 23002a4 WIP Refactoring of SourceKeyed variables. aka config from files d225182 Updated example used for testing configuration properties b845460 Fail later than on first so user feedback contains all errors. 0e49fa8 Figuring out testing framework, yes i know, late to the game. 6cb0cff Fixed successful exit and info to console. 2ac52da Initial poc of validating configuration. 51f9ffd WIP Cleanups, new GetRequiredVars() function, new type for holding input properties. 455a03c Merge pull request #10 from laetho/verinject d547ca6 Initial implementation of version information in mg tool. 7421537 Dropping use of make. Investigate using go native build tool 2a743c8 Removed dep Updated go mod 75eeadc Added mgver packgae for -ldflags injection d4fad7c Merge branch 'master' of github.com:laetho/metagraf a48ab12 Moved to go modules.
Java specific JVM_SYS_PROP handling. Adds a new type of environment variable and new type of config to document and inform what java system properties the application needs. The definition in config section ends up in a dynamicly generated environment variable during manifest creation.
Inital WIP generation of Deployment{} manifests.
Refactored input handling for manifest generation.
Deleted old examples, and kept one for testing JVM_SYS_PROP handling.
Changelog:
0d09b76 (HEAD -> master, tag: v0.0.32, origin/master, origin/HEAD) Updated Makefile f622460 Merge pull request #8 from laetho/B#7 d4b4be1 (origin/B#7) Fixing merge vars for --cvars.. --cvars > --cvfile 8e74bf4 Added examples 6b11dc7 Fixed mg generate properties for JVM_SYS_PROP 421c5c6 Delete outdated examples c625596 Refactoring subcommands because of refactoring of input variable handling. 209f4d0 * Better documentation of variable mangling functions * Refactoring of input logic d712643 klog not glog in createDeploymentCmd() 3fb6062 Merge branch 'master' into deployment 29d056e (origin/deployment) WIP First Pass build success of Deployment generation 8d13934 Removed unused imports 99f4ef0 Added a GetKubernetesClient that returns a pointer to a kubernetes.Clientset 2123ccd WIP Porting to Deployment, work goes on 1c88a5b WIP - Need to figure out Deployment and DeploymentConfig differences. ff96a28 Added namespace as argument to GenDeployment() 8617868 Forgot to add DeploymentCmd to createCmd. Fixed. 0bcbb22 Added create Deployment command 41d8fcd Removed dgraph from Gopkg
This release adds handling of a special type for Environment and Config sections:
JVM_SYS_PROPS
This is intended for documenting and doing configuration control of java system properties. If your base image or runtime has a way to handle -D options through en Environment variable. Set that variable as a JVM_SYS_PROP type and write a config section with type JVM_SYS_PROP to document this and can be used with standard mg configuration mechansims during manifest generation.
a95fcad (HEAD -> master, tag: v0.0.31, origin/master, origin/HEAD) Merge pull request #6 from laetho/jvmsysprop fe9cad1 (origin/jvmsysprop) Added handling of optional JVM_SYS_PROP values 242f5b7 Filtered out JVM_SYS_PROP as config type not to handle d33fd42 Initial commit of java specific handling of Java System Properties through an Environment variable of special type and a Config section of a special type: JVM_SYS_PROP
This release contains a log of cleanup of the whole mg application.
Notable changes:
Moved to klog instead of glog
Initial implementation of developer flow with mg dev up and mg dev down commands.
c504e76 (HEAD -> master, tag: v0.0.30, origin/master, origin/HEAD) NT Specific REF Markdown template 6508a3f Added some support functions for creating reference documentation. 6a33dae Fixing up dep 573c750 Merge branch 'master' of https://github.com/laetho/metagraf 859b708 Introduced funcmap with split function for ref generation a65f4d6 Template work f3129c3 Merge pull request #5 from laetho/klog 612633a (origin/klog) Delete dGraph experiment. Moved all pkg's to klog, imported as log. 37517d1 Moved from glog to klog, imported as log. Removed company internal integration with Middlearth. Should be solved as part of that solution. 0df68ce Fixed feedback output on create configmap operation c13466e Output cleanup with regards to configmap handling. Fixed resourceversion check ec9a9bd Removed surplus output 968f87b Moved deletion of ConfigMaps up so they will always be deleted in the mg dev down subcommand. 092897c Fixed output 0210236 Cleaned up Route functionality, create, update delete c68d09d Cleaned up Service handling. create, update, delete. Fixed formatting. 0426535 Cleaned up DeploymentConfig creation, updating deletion. Better output. 81fe219 Spacing b8e2e05 Cleaning up BuildConfig functionality. 5b13f6c Cleaned up Secret creating, storing etc. Removed functionality regardring deprecated Secrets in config section of the metaGraf spec. f1cda7a Propagate CreateGlobals flag to mg dev up command 16cb63d Work in progress fixes for create/update delete operations 0149546 Fixed deletion, create/update and error handling for configmaps fc68fab Added cross compilse task 92302d0 Implemented deletesecret ab1ebcf Fixed output e18b602 Fixed store/update and error handling when creating or updating buildconfigs d42899a Only generate required parameters for now 3937f61 Fixed StoreConfigMap(): It never did update. 9ab147b Exit process if we discover a Config.Type == cert. Deprecated 4eab6d7 Make unused function just return, keeping it around because it needs to be replaced 0acf085 Removed function for generating necessary oracle jdbc configuration d0e6f9e Removed unused function to generate jms resources ccf014d Initial implementation of DeleteConfigMaps() d72e81e Merge pull request #4 from laetho/init 7ce4f3e (origin/init) Added more example data and reworked trimming of input characters b90dadb Changed indenting to two spaces instead of a \t cbbeb6e Initial implementation of DeleteService() 58b758b Initial implementation of DeleteDeploymentConfig() 76787b2 Remove "The" f4cebee Initial implementation of DeleteRoute() a7904d8 Made a shorthand for --namespace argument.. -n 316ea15 Initial implementation of DeleteImageStream() 260b5fa Changed to fmt.Println() 15eb191 Initial Makefile, need to relearn this 05d28e9 Fixed Flags() statement for mg dev down b6d1a64 Added All cmd flag 49864c1 Initial commit of mg dev subcommand and mg dev up and down commands
Most significant fix is how we test for global secrets in a namespace.
f79885c (HEAD -> master, tag: v0.0.29, origin/master, origin/HEAD) Removed some ( ) and bumped copyright year 442bc3c Removed todo, done 096d022 Added new flag to mg create secret, to override default behavior of not creating global secrets. The -g flag will force create global secrets but will not replace existing secrets in the namespace. 0e33bfd * Fix for naive implementation for finding existing secrets in a namespace. * Changed logging to make what happens more clear. 37d7710 Experimenting with reading input for mg init
We no longer generate configmap for resources. We had a company specific convention here, which has been removed. Added a subcommand to generete man page and markdown documentation.
7b41fbe (HEAD -> master, tag: v0.0.27, origin/master, origin/HEAD) Removed generation of configmap from resources for now. 92bcafd Added subcommands to generate man pages for the mg utility and markdown ed948d4 Added constraint to vendored code to make manpage and markdown generation work