Skip to content

Commit

Permalink
fix(clustertool): use different yaml lib
Browse files Browse the repository at this point in the history
  • Loading branch information
PrivatePuffin committed Nov 6, 2024
1 parent d4d462d commit caa1a5f
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions clustertool/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ require (
github.com/siderolabs/talos/pkg/machinery v1.9.0-alpha.0
github.com/spf13/cobra v1.8.1
golang.org/x/crypto v0.28.0
gopkg.in/yaml.v3 v3.0.1
helm.sh/helm/v3 v3.16.2
k8s.io/api v0.31.2
k8s.io/apimachinery v0.31.2
k8s.io/client-go v0.31.2
sigs.k8s.io/controller-runtime v0.19.1
sigs.k8s.io/kustomize/api v0.18.0
sigs.k8s.io/kustomize/kyaml v0.18.1
sigs.k8s.io/yaml v1.4.0
)

replace github.com/imdario/mergo => github.com/imdario/mergo v0.3.16
Expand Down Expand Up @@ -274,7 +274,6 @@ require (
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiextensions-apiserver v0.31.1 // indirect
k8s.io/apiserver v0.31.1 // indirect
k8s.io/cli-runtime v0.31.1 // indirect
Expand All @@ -286,4 +285,5 @@ require (
oras.land/oras-go v1.2.5 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
)
2 changes: 1 addition & 1 deletion clustertool/pkg/fluxhandler/helmrelease.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"sync"

"github.com/rs/zerolog/log"
"sigs.k8s.io/yaml"
"gopkg.in/yaml.v3"
)

type HelmChart struct {
Expand Down
2 changes: 1 addition & 1 deletion clustertool/pkg/fluxhandler/helmrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"

"github.com/rs/zerolog/log"
"sigs.k8s.io/yaml"
"gopkg.in/yaml.v3"
)

type HelmRepoMetadata struct {
Expand Down
2 changes: 1 addition & 1 deletion clustertool/pkg/fluxhandler/sshsecretgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (

"github.com/truecharts/public/clustertool/pkg/helper"
"golang.org/x/crypto/ssh"
"gopkg.in/yaml.v3"
corev1 "k8s.io/api/core/v1"
"sigs.k8s.io/yaml"
)

// Define a struct to map the YAML content
Expand Down
2 changes: 1 addition & 1 deletion clustertool/pkg/helper/talhelperextract.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"path"
"strings"

"sigs.k8s.io/yaml"
"gopkg.in/yaml.v3"
)

// Node represents a node structure in the YAML file.
Expand Down
2 changes: 1 addition & 1 deletion clustertool/pkg/helper/yamlutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"io"

"sigs.k8s.io/yaml"
"gopkg.in/yaml.v3"
)

// Encoder is a custom encoder for YAML that writes to an io.Writer.
Expand Down
2 changes: 1 addition & 1 deletion clustertool/pkg/initfiles/initfiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"time"

"github.com/rs/zerolog/log"
"sigs.k8s.io/yaml"
"gopkg.in/yaml.v3"

age "filippo.io/age"
"github.com/truecharts/public/clustertool/pkg/fluxhandler"
Expand Down
2 changes: 1 addition & 1 deletion clustertool/pkg/kubectlcmds/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import (
"path/filepath"

"github.com/rs/zerolog/log"
"gopkg.in/yaml.v3"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/client-go/util/homedir"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/kustomize/api/krusty"
"sigs.k8s.io/kustomize/kyaml/filesys"
"sigs.k8s.io/kustomize/kyaml/kio"
"sigs.k8s.io/yaml"
)

// getKubeClient initializes and returns a controller-runtime client.Client
Expand Down
2 changes: 1 addition & 1 deletion clustertool/pkg/scale/scale2flux.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/rs/zerolog/log"
"github.com/truecharts/public/clustertool/pkg/fluxhandler"
"github.com/truecharts/public/clustertool/pkg/helper"
"sigs.k8s.io/yaml"
"gopkg.in/yaml.v3"
)

type RadarrConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion clustertool/pkg/sops/checkencrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/rs/zerolog/log"
"github.com/truecharts/public/clustertool/pkg/helper"
"sigs.k8s.io/yaml"
"gopkg.in/yaml.v3"
)

// EncrFileData holds information about a file and its encryption status.
Expand Down
2 changes: 1 addition & 1 deletion clustertool/pkg/sops/loadsops.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"

"github.com/rs/zerolog/log"
"sigs.k8s.io/yaml"
"gopkg.in/yaml.v3"
)

type SopsConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion clustertool/pkg/talhelperutil/extractfromtalconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/rs/zerolog/log"

"github.com/truecharts/public/clustertool/pkg/helper"
"sigs.k8s.io/yaml"
"gopkg.in/yaml.v3"
)

// Node represents the structure of each node in the YAML file
Expand Down

0 comments on commit caa1a5f

Please sign in to comment.