Skip to content

Commit

Permalink
chore: clean up helpers for setting up oci network and vsphere valida…
Browse files Browse the repository at this point in the history
…tion rules (#137)

## Description
These helpers are no longer required as we can now easily invoke
validator check in `--direct` mode
  • Loading branch information
ahmad-ibra authored Aug 7, 2024
1 parent 54aa49f commit dbdee2f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 191 deletions.
34 changes: 0 additions & 34 deletions pkg/components/network.go

This file was deleted.

56 changes: 0 additions & 56 deletions pkg/components/oci.go

This file was deleted.

27 changes: 0 additions & 27 deletions pkg/components/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,30 +690,3 @@ func SaveValidatorConfig(c *ValidatorConfig, tc *cfg.TaskConfig) error {
log.InfoCLI("\nvalidator configuration file saved: %s", tc.ConfigFile)
return nil
}

// ConfigureBaseValidator configures the base validator configuration
func ConfigureBaseValidator(vc *ValidatorConfig, kubeconfig string) {
// TODO: properly handle TLS, helm, and air-gap config
vc.Release = &validator.HelmRelease{
Chart: validator.HelmChart{
Name: cfg.Validator,
Repository: cfg.Validator,
Version: cfg.ValidatorChartVersions[cfg.Validator],
},
}
vc.ReleaseSecret = &Secret{
Name: fmt.Sprintf("validator-helm-release-%s", cfg.Validator),
}
vc.KindConfig.UseKindCluster = true
vc.Kubeconfig = kubeconfig
// TODO: update this to use the correct image registry (custom private registry / hauler / default)
vc.ImageRegistry = cfg.ValidatorImagePath()
vc.ProxyConfig = &ProxyConfig{
Env: &Env{
PodCIDR: &cfg.DefaultPodCIDR,
ProxyCACert: &CACert{},
ServiceIPRange: &cfg.DefaultServiceIPRange,
},
}
vc.UseFixedVersions = true
}
74 changes: 0 additions & 74 deletions pkg/components/vsphere.go

This file was deleted.

0 comments on commit dbdee2f

Please sign in to comment.