Configuring odo global settings
The global settings for odo can be found in preference.yaml
file; which is located by default in the .odo
directory of the user's HOME directory.
Example:
- Linux
- Windows
- Mac
A different location can be set for the preference.yaml
by exporting GLOBALODOCONFIG
in the user environment.
#
View the configurationTo view the current configuration, run odo preference view
.
Example:
#
Set a configurationTo set a value for a preference key, run odo preference set <key> <value>
.
Example:
Note that the preference key is case-insensitive.
#
Unset a configurationTo unset a value of a preference key, run odo preference unset <key>
; use -f
flag to skip the confirmation.
Example:
Unsetting a preference key sets it to an empty value in the preference file. odo will use the default value for such configuration.
#
Preference Key TablePreference | Description | Default |
---|---|---|
UpdateNotification | Control whether a notification to update odo is shown | True |
NamePrefix | Set a default name prefix for an odo resource (component, storage, etc) | Current directory name |
Timeout | Timeout for OpenShift server connection check | 1 second |
BuildTimeout | Timeout for waiting for a build of the git component to complete | 300 seconds |
PushTimeout | Timeout for waiting for a component to start | 240 seconds |
Ephemeral | Control whether odo should create a emptyDir volume to store source code | True |
ConsentTelemetry | Control whether odo can collect telemetry for the user's odo usage | False |