From 81e2e51d5baafae8f54d0e5cc879cfb70415e295 Mon Sep 17 00:00:00 2001 From: Ethan Mosbaugh Date: Thu, 3 Oct 2024 12:42:55 -0700 Subject: [PATCH] f --- pkg/kotsadmsnapshot/backup.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/kotsadmsnapshot/backup.go b/pkg/kotsadmsnapshot/backup.go index c723315d72..67f1343f93 100644 --- a/pkg/kotsadmsnapshot/backup.go +++ b/pkg/kotsadmsnapshot/backup.go @@ -1002,9 +1002,11 @@ func ecBackupAnnotations(ctx context.Context, kbClient kbclient.Client, in *embe annotations["kots.io/embedded-cluster-service-cidr"] = in.Spec.Network.ServiceCIDR } - rcAnnotations := ecRuntimeConfigToBackupAnnotations(in.Spec.RuntimeConfig) - for k, v := range rcAnnotations { - annotations[k] = v + if in.Spec.RuntimeConfig != nil { + rcAnnotations := ecRuntimeConfigToBackupAnnotations(in.Spec.RuntimeConfig) + for k, v := range rcAnnotations { + annotations[k] = v + } } return annotations, nil