mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 13:55:20 +00:00
13 lines
216 B
Go
13 lines
216 B
Go
package k8s
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
)
|
|
|
|
func InstallStorageClass(ctx context.Context, yaml string) error {
|
|
fmt.Printf("Install storage class with %s.\n", yaml)
|
|
err := KubectlApplyByFile(ctx, yaml)
|
|
return err
|
|
}
|