- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GetGVK (0.1 sec)
-
pkg/config/schema/kubetypes/common.go
} panic("unknown kind: " + ptr.TypeName[T]()) } func MustGVKFromType[T runtime.Object]() (cfg config.GroupVersionKind) { if gvk, ok := getGvk(ptr.Empty[T]()); ok { return gvk } if rp := typemap.Get[RegisterType[T]](registeredTypes); rp != nil { return (*rp).GetGVK() } panic("unknown kind: " + cfg.String()) } func MustToGVR[T runtime.Object](cfg config.GroupVersionKind) schema.GroupVersionResource {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/config/schema/codegen/templates/types.go.tmpl
apiistioioapisecurityv1beta1 "istio.io/client-go/pkg/apis/security/v1beta1" apiistioioapitelemetryv1alpha1 "istio.io/client-go/pkg/apis/telemetry/v1alpha1" ) func getGvk(obj any) (config.GroupVersionKind, bool) { switch obj.(type) { {{- range .Entries }} case *{{ .ClientImport }}.{{ .Resource.Kind }}: return gvk.{{ .Resource.Identifier }}, true
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 1.1K bytes - Viewed (0) -
pkg/config/schema/kubetypes/resources.gen.go
apiistioioapitelemetryv1alpha1 "istio.io/client-go/pkg/apis/telemetry/v1alpha1" "istio.io/istio/pkg/config" "istio.io/istio/pkg/config/schema/gvk" ) func getGvk(obj any) (config.GroupVersionKind, bool) { switch obj.(type) { case *istioioapisecurityv1beta1.AuthorizationPolicy: return gvk.AuthorizationPolicy, true case *apiistioioapisecurityv1beta1.AuthorizationPolicy:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 6.2K bytes - Viewed (0) -
pkg/config/schema/kubeclient/common.go
watch func(c ClientGetter, namespace string, o metav1.ListOptions) (watch.Interface, error) gvr schema.GroupVersionResource gvk config.GroupVersionKind } func (t *internalTypeReg[T]) GetGVK() config.GroupVersionKind { return t.gvk } func (t *internalTypeReg[T]) GetGVR() schema.GroupVersionResource { return t.gvr }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 8.1K bytes - Viewed (0)