Skip to content

Commit

Permalink
include pod and service CIDRs as annotations on embedded cluster snap…
Browse files Browse the repository at this point in the history
…shots (#4736)
  • Loading branch information
laverya authored Jul 2, 2024
1 parent 66baf33 commit 42df750
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/kotsadmsnapshot/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@ func CreateInstanceBackup(ctx context.Context, cluster *downstreamtypes.Downstre
backupAnnotations["kots.io/embedded-cluster-id"] = util.EmbeddedClusterID()
backupAnnotations["kots.io/embedded-cluster-version"] = util.EmbeddedClusterVersion()
backupAnnotations["kots.io/embedded-cluster-is-ha"] = strconv.FormatBool(installation.Spec.HighAvailability)
if installation.Spec.Network != nil {
backupAnnotations["kots.io/embedded-cluster-pod-cidr"] = installation.Spec.Network.PodCIDR
backupAnnotations["kots.io/embedded-cluster-service-cidr"] = installation.Spec.Network.ServiceCIDR
}
}

includeClusterResources := true
Expand Down

0 comments on commit 42df750

Please sign in to comment.