mirror of
https://github.com/harivansh-afk/agentikube.git
synced 2026-04-20 09:01:52 +00:00
update
This commit is contained in:
parent
7a067c3420
commit
e5d7b7a7c5
11 changed files with 48 additions and 85 deletions
|
|
@ -3,8 +3,31 @@ package commands
|
|||
import (
|
||||
"github.com/rathi/agentikube/internal/config"
|
||||
"github.com/spf13/cobra"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
|
||||
var (
|
||||
sandboxClaimGVR = schema.GroupVersionResource{
|
||||
Group: "extensions.agents.x-k8s.io",
|
||||
Version: "v1alpha1",
|
||||
Resource: "sandboxclaims",
|
||||
}
|
||||
sandboxTemplateGVR = schema.GroupVersionResource{
|
||||
Group: "extensions.agents.x-k8s.io",
|
||||
Version: "v1alpha1",
|
||||
Resource: "sandboxtemplates",
|
||||
}
|
||||
sandboxWarmPoolGVR = schema.GroupVersionResource{
|
||||
Group: "extensions.agents.x-k8s.io",
|
||||
Version: "v1alpha1",
|
||||
Resource: "sandboxwarmpools",
|
||||
}
|
||||
)
|
||||
|
||||
func coreGVR(resource string) schema.GroupVersionResource {
|
||||
return schema.GroupVersionResource{Group: "", Version: "v1", Resource: resource}
|
||||
}
|
||||
|
||||
func loadConfig(cmd *cobra.Command) (*config.Config, error) {
|
||||
cfgPath, _ := cmd.Flags().GetString("config")
|
||||
return config.Load(cfgPath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue