mirror of
https://github.com/rancher/rke.git
synced 2025-09-12 21:24:00 +00:00
add null check for audit log config
This commit is contained in:
committed by
Alena Prokharchyk
parent
b649664af8
commit
843e14135f
@@ -156,6 +156,7 @@ func (c *Cluster) DeployWorkerPlane(ctx context.Context, svcOptionData map[strin
|
||||
func parseAuditLogConfig(clusterFile string, rkeConfig *v3.RancherKubernetesEngineConfig) error {
|
||||
if rkeConfig.Services.KubeAPI.AuditLog != nil &&
|
||||
rkeConfig.Services.KubeAPI.AuditLog.Enabled &&
|
||||
rkeConfig.Services.KubeAPI.AuditLog.Configuration != nil &&
|
||||
rkeConfig.Services.KubeAPI.AuditLog.Configuration.Policy == nil {
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user