mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-23 07:58:04 +00:00
Remove secret from previous step
This commit is contained in:
@@ -40,8 +40,8 @@ func CreateOpCredentialsSecret() {
|
||||
CreateSecretFromFile("op-session", "op-credentials")
|
||||
}
|
||||
|
||||
func Delete(kind, name string) {
|
||||
_, err := cmd.Run("kubectl", "delete", kind, name, "--ignore-not-found=true")
|
||||
func DeleteSecret(name string) {
|
||||
_, err := cmd.Run("kubectl", "delete", "secret", name, "--ignore-not-found=true")
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user