mirror of
https://github.com/rancher/rke.git
synced 2025-08-15 05:24:32 +00:00
add null check for audit log config
This commit is contained in:
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 {
|
func parseAuditLogConfig(clusterFile string, rkeConfig *v3.RancherKubernetesEngineConfig) error {
|
||||||
if rkeConfig.Services.KubeAPI.AuditLog != nil &&
|
if rkeConfig.Services.KubeAPI.AuditLog != nil &&
|
||||||
rkeConfig.Services.KubeAPI.AuditLog.Enabled &&
|
rkeConfig.Services.KubeAPI.AuditLog.Enabled &&
|
||||||
|
rkeConfig.Services.KubeAPI.AuditLog.Configuration != nil &&
|
||||||
rkeConfig.Services.KubeAPI.AuditLog.Configuration.Policy == nil {
|
rkeConfig.Services.KubeAPI.AuditLog.Configuration.Policy == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user