- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 375 for GVK (0.02 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go
for _, obj := range types { t := reflect.TypeOf(obj).Elem() gvk := version.WithKind(t.Name()) s.unversionedTypes[t] = gvk if old, ok := s.unversionedKinds[gvk.Kind]; ok && t != old { panic(fmt.Sprintf("%v.%v has already been registered as unversioned kind %q - kind name must be unique in scheme %q", old.PkgPath(), old.Name(), gvk, s.schemeName)) } s.unversionedKinds[gvk.Kind] = t } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 25.2K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/scheme.go
type dynamicCodec struct{} func (dynamicCodec) Decode(data []byte, gvk *schema.GroupVersionKind, obj runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { obj, gvk, err := unstructured.UnstructuredJSONScheme.Decode(data, gvk, obj) if err != nil { return nil, nil, err } if strings.EqualFold(gvk.Kind, "status") && gvk.Version == "v1" && (gvk.Group == "" || gvk.Group == "meta.k8s.io") { if _, ok := obj.(*metav1.Status); !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 21 15:58:15 UTC 2022 - 2.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go
kinds := scheme.AllKnownTypes() for gvk := range kinds { if gvk.Version == runtime.APIVersionInternal || globalNonRoundTrippableTypes.Has(gvk.Kind) { continue } t.Run(gvk.Group+"."+gvk.Version+"."+gvk.Kind, func(t *testing.T) { roundTripSpecificKind(t, gvk, scheme, codecFactory, fuzzer, nonRoundTrippableTypes, false) }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 16.8K bytes - Viewed (0) -
pkg/config/analysis/analyzers/maturity/maturity.go
func (fa *AlphaAnalyzer) Analyze(ctx analysis.Context) { ctx.ForEach(gvk.Namespace, func(r *resource.Instance) bool { fa.allowAnnotations(r, ctx, gvk.Namespace) return true }) ctx.ForEach(gvk.Service, func(r *resource.Instance) bool { fa.allowAnnotations(r, ctx, gvk.Service) return true }) ctx.ForEach(gvk.Pod, func(r *resource.Instance) bool { fa.allowAnnotations(r, ctx, gvk.Pod) return true })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 5K bytes - Viewed (0) -
pilot/pkg/config/aggregate/config_test.go
if _, err := store.Create(config.Config{ Meta: config.Meta{ GroupVersionKind: gvk.HTTPRoute, Name: "other", }, }); err != nil { t.Fatal(err) } la := store.List(gvk.HTTPRoute, "") g.Expect(la).To(HaveLen(1)) g.Expect(la[0].Name).To(Equal("other")) l := store1.List(gvk.HTTPRoute, "") g.Expect(l).To(HaveLen(1)) g.Expect(l[0].Name).To(Equal("other"))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 6.7K bytes - Viewed (0) -
pkg/config/analysis/analyzers/serviceentry/protocoladdresses.go
"istio.io/istio/pkg/config/schema/gvk" ) type ProtocolAddressesAnalyzer struct{} var _ analysis.Analyzer = &ProtocolAddressesAnalyzer{} func (serviceEntry *ProtocolAddressesAnalyzer) Metadata() analysis.Metadata { return analysis.Metadata{ Name: "serviceentry.Analyzer", Description: "Checks the validity of ServiceEntry", Inputs: []config.GroupVersionKind{ gvk.ServiceEntry, gvk.MeshConfig, },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 01 01:34:15 UTC 2023 - 2.5K bytes - Viewed (0) -
pkg/api/testing/applyconfiguration_test.go
if nonRoundTrippableTypes.Has(gvk.Kind) { continue } if gvk.Version == runtime.APIVersionInternal { continue } if builder := applyconfigurations.ForKind(gvk); builder == nil { continue } t.Run(gvk.String(), func(t *testing.T) { for i := 0; i < 3; i++ { item := fuzzObject(t, gvk) builder := applyconfigurations.ForKind(gvk)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 20:12:50 UTC 2022 - 7.3K bytes - Viewed (0) -
pkg/config/analysis/analyzers/injection/image-auto.go
Inputs: []config.GroupVersionKind{ gvk.Namespace, gvk.Pod, gvk.Deployment, gvk.MutatingWebhookConfiguration, }, } } // Analyze implements Analyzer. func (a *ImageAutoAnalyzer) Analyze(c analysis.Context) { var istioWebhooks []admitv1.MutatingWebhook c.ForEach(gvk.MutatingWebhookConfiguration, func(resource *resource.Instance) bool {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 01 01:34:15 UTC 2023 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/codec_test.go
target: gv("mygroup", "__internal"), preferredKinds: []schema.GroupKind{gk("mygroup", "Foo"), gk("anothergroup", "Bar")}, kinds: []schema.GroupVersionKind{gvk("yetanother", "v1", "Baz"), gvk("anothergroup", "v1", "Bar")}, expectKind: gvk("mygroup", "__internal", "Bar"), expectedId: "{\"accepted\":\"Foo.mygroup,Bar.anothergroup\",\"coerce\":\"true\",\"name\":\"multi\",\"target\":\"mygroup/__internal\"}", }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 30 06:58:54 UTC 2019 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/conversion_test.go
}, }, }, "no conversion for Unstructured object whose gvk matches the desired gvk": { obj: &unstructured.Unstructured{ Object: map[string]interface{}{ "apiVersion": "mygroup.k8s.io/v1", "kind": "Flunder", "data": map[string]interface{}{ "Key": "Value", }, }, }, gvk: schema.GroupVersionKind{Group: "mygroup.k8s.io", Version: "v1", Kind: "Flunder"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 13.7K bytes - Viewed (0)