Skip to content

Commit

Permalink
rollback version
Browse files Browse the repository at this point in the history
  • Loading branch information
nieomylnieja committed Apr 15, 2024
1 parent 9540023 commit 5138fbc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/go-playground/validator/v10 v10.19.0
github.com/goccy/go-yaml v1.11.3
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db
github.com/nobl9/nobl9-go v0.81.0
github.com/nobl9/nobl9-go v0.79.1
github.com/pkg/errors v0.9.1
github.com/schollz/progressbar/v3 v3.14.2
github.com/spf13/cobra v1.8.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db h1:62I3jR2EmQ4l5rM/4FEfDWcRD+abF5XlKShorW5LRoQ=
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw=
github.com/nobl9/nobl9-go v0.81.0 h1:0l12KaXtiiRes6OQPUeMMQ1FzlvQzyr6+BEMbBoy1Jo=
github.com/nobl9/nobl9-go v0.81.0/go.mod h1:ccyZ3zJo/YoCuvkAJoGx7DyWrQpFfD2VS54+qahpGQM=
github.com/nobl9/nobl9-go v0.79.1 h1:d5esYhnO91s/nK/EUxhuKlHLOIGSSKU/QxtMtnAwMd4=
github.com/nobl9/nobl9-go v0.79.1/go.mod h1:CZ0bJwn5dMAl5dZ8EyFKU3nyPA8wBXR8F6b8fp4j8U8=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
Expand Down
7 changes: 7 additions & 0 deletions internal/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package internal
import (
_ "embed"
"fmt"
"reflect"

"github.com/spf13/cobra"

Expand Down Expand Up @@ -79,6 +80,12 @@ func (a ApplyCmd) Run(cmd *cobra.Command) error {
if err != nil {
return err
}
for _, object := range objects {
if object.GetKind() == manifest.KindSLO {
type M = map[string]interface{}
fmt.Println(reflect.TypeOf(object.(v1alpha.GenericObject)["spec"].(M)["objectives"].([]interface{})[0].(M)["target"]).Name())
}
}
printSourcesDetails("Applying", objects)
if err = a.client.Objects().V1().Apply(cmd.Context(), objects); err != nil {
return err
Expand Down
3 changes: 1 addition & 2 deletions internal/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ func (r *RootCmd) setupClient() error {
v1alphaParser.UseGenericObjects = true
// Decode JSON numbers into [json.Number] in order to properly handle integers and floats.
// If we don't use this option, all numbers will be converted to floats, including integers.
v1alphaParser.UseJSONNumber = true
panic(v1alphaParser.UseJSONNumber)
// v1alphaParser.UseJSONNumber = true
return nil
}

Expand Down

0 comments on commit 5138fbc

Please sign in to comment.