Skip to content

Commit

Permalink
chore(delete): remove state file cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bostrt committed Jun 30, 2022
1 parent 200a580 commit 67e3c65
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/destroy/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ func NewCmdDestroy(config *pkg.Config) *cobra.Command {
log.Warn(err)
}

err = o.DeleteStateFile()
if err != nil {
log.Warn(err)
}

log.Info("removing non-openshift NS...")
err = o.DeleteTestNamespaces()
if err != nil {
Expand Down Expand Up @@ -79,13 +74,6 @@ func (d *DestroyOptions) DeleteSonobuoyEnv() error {
return d.config.SonobuoyClient.Delete(deleteConfig)
}

// DeleteStateFile deletes the on-disk saved state.
// TODO Implement on-disk saved state
func (d *DestroyOptions) DeleteStateFile() error {
log.Warn("DeleteStateFile not implemented yet")
return nil
}

// DeleteTestNamespaces deletes any non-openshift namespace.
func (d *DestroyOptions) DeleteTestNamespaces() error {
client := d.config.Clientset.CoreV1()
Expand Down

0 comments on commit 67e3c65

Please sign in to comment.