- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 46 for SetGroupVersionKind (0.34 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/types.go
// like this: // // type MyAwesomeAPIObject struct { // runtime.TypeMeta `json:",inline"` // ... // other fields // } // // func (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *metav1.GroupVersionKind) { metav1.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind // // TypeMeta is provided here for convenience. You may use it directly from this package or define
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 19:12:58 UTC 2023 - 4.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go
if kind.Version == APIVersionInternal { // internal is a special case // TODO: look at removing the need to special case this obj.GetObjectKind().SetGroupVersionKind(schema.GroupVersionKind{}) return } obj.GetObjectKind().SetGroupVersionKind(kind) } // SetVersionPriority allows specifying a precise order of priority. All specified versions must be in the same group,
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/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go
func (in *Unstructured) NewEmptyInstance() runtime.Unstructured { out := new(Unstructured) if in != nil { out.GetObjectKind().SetGroupVersionKind(in.GetObjectKind().GroupVersionKind()) } return out } func (in *Unstructured) DeepCopy() *Unstructured { if in == nil { return nil } out := new(Unstructured) *out = *in
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 28 03:26:35 UTC 2023 - 13.7K bytes - Viewed (0) -
operator/pkg/helmreconciler/prune.go
usList = append(usList, ioplist) } } for _, gvk := range gvkList { objects := &unstructured.UnstructuredList{} objects.SetGroupVersionKind(gvk) componentRequirement, err := klabels.NewRequirement(IstioComponentLabelStr, selection.Exists, nil) if err != nil { return usList, err } if includeClusterResources {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 08:32:06 UTC 2024 - 15.9K bytes - Viewed (0) -
pkg/scheduler/apis/config/v1/defaults.go
args, err := scheme.New(gvk) if err != nil { // This plugin is out-of-tree or doesn't require configuration. continue } scheme.Default(args) args.GetObjectKind().SetGroupVersionKind(gvk) prof.PluginConfig = append(prof.PluginConfig, configv1.PluginConfig{ Name: name, Args: runtime.RawExtension{Object: args}, }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 13 07:42:19 UTC 2023 - 7.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/meta.go
return obj.GetObjectKind().GroupVersionKind().Kind } func (obj objectAccessor) SetKind(kind string) { gvk := obj.GetObjectKind().GroupVersionKind() gvk.Kind = kind obj.GetObjectKind().SetGroupVersionKind(gvk) } func (obj objectAccessor) GetAPIVersion() string { return obj.GetObjectKind().GroupVersionKind().GroupVersion().String() } func (obj objectAccessor) SetAPIVersion(version string) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 25 16:23:43 UTC 2022 - 16.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
err := errors.NewInvalid(schema.GroupKind{Group: metav1.GroupName, Kind: "PatchOptions"}, "", errs) scope.err(err, w, req) return } options.TypeMeta.SetGroupVersionKind(metav1.SchemeGroupVersion.WithKind("PatchOptions")) admit = admission.WithAudit(admit) audit.LogRequestPatch(req.Context(), patchBytes) span.AddEvent("Recorded the audit event")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 28.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/scheme_test.go
t.Errorf("unexpected error: %v", err) } emptyObj.SetGroupVersionKind(schema.GroupVersionKind{Kind: "Test"}) if _, _, err := scheme.ObjectKinds(emptyObj); !runtime.IsMissingVersion(err) { t.Errorf("unexpected error: %v", err) } emptyObj.SetGroupVersionKind(schema.GroupVersionKind{Kind: "Test", Version: "v1"}) if _, _, err := scheme.ObjectKinds(emptyObj); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 38.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go
if intoUnknown, ok := into.(*runtime.Unknown); ok && intoUnknown != nil { intoUnknown.Raw = data intoUnknown.ContentEncoding = "" intoUnknown.ContentType = runtime.ContentTypeProtobuf intoUnknown.SetGroupVersionKind(*actual) return intoUnknown, actual, nil } types, _, err := s.typer.ObjectKinds(into) switch { case runtime.IsNotRegisteredError(err): pb, ok := into.(proto.Message) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 23 13:38:23 UTC 2022 - 17.8K bytes - Viewed (0) -
pkg/webhooks/validation/server/server_test.go
t.Helper() var key string if validConfig { key = "key" } name := fmt.Sprintf("%s%d", "mock-config", i) r := collections.Mock var un unstructured.Unstructured un.SetGroupVersionKind(r.GroupVersionKind().Kubernetes()) un.SetName(name) un.SetLabels(map[string]string{"key": name}) un.SetAnnotations(map[string]string{"annotationKey": name}) un.Object["spec"] = &config.MockConfig{ Key: key,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 01 01:34:15 UTC 2023 - 9.6K bytes - Viewed (0)