Bug 1838695 - RFE: Store configuration via ~/.config/
Summary: RFE: Store configuration via ~/.config/
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Douglas Schilling Landgraf
QA Contact: Lucie Leistnerova
URL:
Whiteboard:
Depends On:
Blocks: OCPRHV-208
TreeView+ depends on / blocked
 
Reported: 2020-05-21 15:23 UTC by Douglas Schilling Landgraf
Modified: 2020-05-26 10:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-26 10:52:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 3637 0 None open oVirt: general improvements 2020-05-26 09:03:11 UTC

Description Douglas Schilling Landgraf 2020-05-21 15:23:18 UTC
Description of problem:

Currently the ovirt yaml configuration file is stored via ~/.ovirt/ovirt-config.yaml.

Howeer, these days most of applications are following this spec: 
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html


Which basically uses ~/.config/${APPLICATION} dir. My suggestion would be: ~/.config/ovirt/ovirt-config.yaml

Comment 2 Douglas Schilling Landgraf 2020-05-26 10:52:38 UTC
(In reply to Roy Golan from comment #1)
> The installer supports linux/mac/windos, so ~/.config isn't universal in
> that respect.

I agree. Usually, user data/configuration depends on OS. Based on that, ${HOME}/.${platform_name} isn't universal either. :)

> Also the ~/.ovirt follows what other platforms did in the installer, here
> are few:
> 
> GCP
> https://github.com/openshift/installer/blob/
> bbb9006efe1f7d289892f33328bc6e43a9ea664e/pkg/asset/installconfig/gcp/session.
> go#L35
> 
> AZURE
> https://github.com/openshift/installer/blob/
> bbb9006efe1f7d289892f33328bc6e43a9ea664e/pkg/asset/installconfig/azure/
> session.go#L21
> 
> AWS
> https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html

I think these guys need a patch to follow the OS data/configuration standards but let's close this bug for now. Thanks Roy :)


Note You need to log in before you can comment on or make changes to this bug.