Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/kperf/commands/utils/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ func ApplyPriorityLevelConfiguration(kubeconfigPath string) error {
// Load the kubeconfig file
config, err := clientcmd.BuildConfigFromFlags("", kubeconfigPath)
if err != nil {
return fmt.Errorf("failed to load kubeconfig: %v", err)
return fmt.Errorf("failed to load kubeconfig: %w", err)
}

// Create a Kubernetes client
clientset, err := kubernetes.NewForConfig(config)
if err != nil {
return fmt.Errorf("failed to create Kubernetes client: %v", err)
return fmt.Errorf("failed to create Kubernetes client: %w", err)
}

// Define the PriorityLevelConfiguration
Expand Down Expand Up @@ -117,7 +117,7 @@ func ApplyPriorityLevelConfiguration(kubeconfigPath string) error {
}
}
if err != nil {
return fmt.Errorf("failed to apply PriorityLevelConfiguration: %v", err)
return fmt.Errorf("failed to apply PriorityLevelConfiguration: %w", err)
}

fmt.Printf("Successfully applied PriorityLevelConfiguration: %s\n", plc.Name)
Expand Down
Loading