Update configuration parameters #1
Labels
No Label
Kind/Bug
Kind/Doc
Kind/Feature
Kind/Security
Kind/Testing
Priority/High
Priority/Low
Priority/Medium
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: core/deprecated-oc-search#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Use Onion lib for configuring the software at startup like in oc-dicovery.
Added a function to handlle configuration from JSON file following the implementation with onion in oc-discovery :
A conf file in the current directory will override the conf file in /etc/oc/..
Default value for URLs, if no key found in files or env, will be on localhost
Modified the way the OC-CatalogAPI object is instancied.
It was previously constructed in an init() function that was executed before the conf files were retrieved as :
We changed this to a normal function that is called in oc-search/main.go after retrieving the conf :