Skip to content

Commit ccaf5b9

Browse files
committed
config: add enable_keyring entry for auth configuration
Signed-off-by: Bin Tang <[email protected]>
1 parent 24ec0b3 commit ccaf5b9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

config/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ type AuthConfig struct {
168168
// CRI proxy mode
169169
EnableCRIKeychain bool `toml:"enable_cri_keychain"`
170170
ImageServiceAddress string `toml:"image_service_address"`
171+
EnableKeyring bool `toml:"enable_keyring"`
171172
}
172173

173174
// Configure remote storage like container registry

config/global.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ func IsFusedevSharedModeEnabled() bool {
4343
return globalConfig.DaemonMode == DaemonModeShared
4444
}
4545

46+
func IsKeyringEnabled() bool {
47+
return globalConfig.origin.RemoteConfig.AuthConfig.EnableKeyring
48+
}
49+
4650
func GetDaemonMode() DaemonMode {
4751
return globalConfig.DaemonMode
4852
}

0 commit comments

Comments
 (0)