From 1366cf036ec9d5b25b00a97ccb6cd72f06cabfaf Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Tue, 19 Dec 2023 15:49:12 +0100 Subject: [PATCH] Emoji games --- cmd/output/shootprinter.go | 9 +++++++++ go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/cmd/output/shootprinter.go b/cmd/output/shootprinter.go index a47ef83..85e3590 100644 --- a/cmd/output/shootprinter.go +++ b/cmd/output/shootprinter.go @@ -150,6 +150,15 @@ func shootData(shoot *models.V1ClusterResponse, withIssues bool) ([]string, []st if (*shoot).KubeAPIServerACL != nil && !*shoot.KubeAPIServerACL.Disabled { shootStats.apiServer += "🔒" } + if (*shoot).NetworkAccessType != nil { + if *shoot.NetworkAccessType == models.V1ClusterCreateRequestNetworkAccessTypeForbidden { + // shootStats.nodes += "🛡" + shootStats.nodes += "⛓️" + } + if *shoot.NetworkAccessType == models.V1ClusterCreateRequestNetworkAccessTypeRestricted { + shootStats.nodes += "⛓️" + } + } maintainEmoji := "" var issues []string diff --git a/go.mod b/go.mod index f79497e..99863c8 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/dustin/go-humanize v1.0.1 github.com/fatih/color v1.16.0 github.com/fi-ts/accounting-go v0.9.0 - github.com/fi-ts/cloud-go v0.23.3-0.20231219075234-578ec6e27af6 + github.com/fi-ts/cloud-go v0.23.3-0.20231219142747-d1b5e9d0ba39 github.com/gardener/gardener v1.73.2 github.com/gardener/machine-controller-manager v0.50.1 github.com/go-openapi/runtime v0.26.0 diff --git a/go.sum b/go.sum index fdd774d..62f30cf 100644 --- a/go.sum +++ b/go.sum @@ -105,8 +105,8 @@ github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/fi-ts/accounting-go v0.9.0 h1:XacEMQtFUd0eh1aTFLo5rrzWKDE9CDJw+smS07zOK/0= github.com/fi-ts/accounting-go v0.9.0/go.mod h1:8ga8xix70wTxZNwdb0Ye4cEmL1miY6SeUio4vQLMBaI= -github.com/fi-ts/cloud-go v0.23.3-0.20231219075234-578ec6e27af6 h1:ry1hH/Lg5zr+SKsIQ5oAwo+o3zLoBS/tX5ks2kpbRfs= -github.com/fi-ts/cloud-go v0.23.3-0.20231219075234-578ec6e27af6/go.mod h1:z4ZWkDa0EiaAfHy1iiv7vlgoZgJQEsAgQnrvG2cJksw= +github.com/fi-ts/cloud-go v0.23.3-0.20231219142747-d1b5e9d0ba39 h1:B1fFUUq2Pb/O1rDLf2FZZdNc3bGPEuSc6Lx0MA69gQc= +github.com/fi-ts/cloud-go v0.23.3-0.20231219142747-d1b5e9d0ba39/go.mod h1:z4ZWkDa0EiaAfHy1iiv7vlgoZgJQEsAgQnrvG2cJksw= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=