Skip to content

Commit

Permalink
fix: Remove cosign
Browse files Browse the repository at this point in the history
  • Loading branch information
salehkhazaei committed Apr 25, 2024
1 parent cb90791 commit a1117a2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
20 changes: 10 additions & 10 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ archives:
format: tar.gz
builds: [linux, darwin]

signs:
- cmd: cosign
stdin: "{{ .Env.COSIGN_PWD }}"
args:
- "sign-blob"
- "--key=env://COSIGN_SECRET"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: checksum
#signs:
# - cmd: cosign
# stdin: "{{ .Env.COSIGN_PWD }}"
# args:
# - "sign-blob"
# - "--key=env://COSIGN_SECRET"
# - "--output-signature=${signature}"
# - "${artifact}"
# - "--yes"
# artifacts: checksum
11 changes: 9 additions & 2 deletions cmd/optimize/view/ec2_instance_detail.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ func IOPS(v *float64) string {
return fmt.Sprintf("%.2f", *v)
}

func PInt32ToString(v *int32) string {
if v == nil {
return ""
}
return fmt.Sprintf("%d", *v)
}

func SizeByteToGB(v *int32) string {
if v == nil {
return ""
Expand Down Expand Up @@ -264,12 +271,12 @@ func ExtractProperties(item OptimizationItem) map[string][]table.Row {
},
{
" Provisioned IOPS",
fmt.Sprintf("%d", item.Wastage.VolumeRightSizing[vid].Current.ProvisionedIOPS),
PInt32ToString(item.Wastage.VolumeRightSizing[vid].Current.ProvisionedIOPS),
"",
"",
"",
ifVolumeRecommendationExists(func() string {
return fmt.Sprintf("%d", item.Wastage.VolumeRightSizing[vid].Recommended.ProvisionedIOPS)
return PInt32ToString(item.Wastage.VolumeRightSizing[vid].Recommended.ProvisionedIOPS)
}),
},
{
Expand Down

0 comments on commit a1117a2

Please sign in to comment.