Fix CRD deletions (#624)

This commit is contained in:
Yaron Schneider 2021-03-11 14:31:34 -08:00 committed by GitHub
parent aaff536544
commit ba7a3a1194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 13 deletions

View File

@ -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)