Skip to content

Commit

Permalink
Fix CRD deletions (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaron2 authored Mar 11, 2021
1 parent aaff536 commit ba7a3a1
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pkg/kubernetes/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,6 @@ func highAvailabilityEnabled(status []StatusOutput) bool {
}

func applyCRDs(version string) error {
l := []string{
"components.dapr.io",
"configurations.dapr.io",
"subscriptions.dapr.io",
}

for _, c := range l {
_, err := utils.RunCmdAndWait("kubectl", "delete", "crd", c)
if err != nil {
return err
}
}

for _, crd := range crds {
url := fmt.Sprintf("https://raw.githubusercontent.com/dapr/dapr/%s/charts/dapr/crds/%s.yaml", version, crd)
_, err := utils.RunCmdAndWait("kubectl", "apply", "-f", url)
Expand Down

0 comments on commit ba7a3a1

Please sign in to comment.