Skip to content

Commit

Permalink
Delete all commented code
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany committed Jul 15, 2022
1 parent e21156f commit cd83443
Show file tree
Hide file tree
Showing 10 changed files with 247 additions and 1,181 deletions.
8 changes: 1 addition & 7 deletions cmd/operator/register/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,17 +275,11 @@ func writeYIPConfig(config cfg.Elemental) (string, error) {
func callElementalClient(conf cfg.Elemental, cloudInitPath string) error {

conf.Install.ConfigURL = cloudInitPath
fullConf := cfg.Config{Elemental: conf}
ev, err := cfg.ToEnv(fullConf)
ev, err := cfg.ToEnv(conf.Install)
if err != nil {
return err
}

logrus.Debugln("Installation variables:")
for _, e := range ev {
logrus.Debugln(e)
}

installerOpts := []string{"elemental", "install"}

cmd := exec.Command("elemental")
Expand Down
102 changes: 0 additions & 102 deletions pkg/config/coerce.go

This file was deleted.

14 changes: 0 additions & 14 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,6 @@ type Config struct {
Data map[string]interface{} `yaml:"data,omitempty" json:"data,omitempty"`
}

type YipConfig struct {
Stages map[string][]Stage `json:"stages,omitempty"`
}

type Stage struct {
Users map[string]User `json:"users,omitempty"`
}

type User struct {
Name string `json:"name,omitempty"`
PasswordHash string `json:"passwd,omitempty"`
SSHAuthorizedKeys []string `json:"ssh_authorized_keys,omitempty"`
}

func (in *Config) DeepCopyInto(out *Config) {
*out = *in
}
Expand Down
Loading

0 comments on commit cd83443

Please sign in to comment.