1
0
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:
Murali Paluru
2019-11-15 04:58:59 -08:00
committed by Alena Prokharchyk
parent b649664af8
commit 843e14135f

View File

@@ -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
}