- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for objectMetaFieldsSet (0.59 sec)
-
pkg/registry/core/secret/strategy.go
// SelectableFields returns a field set that can be used for filter selection func SelectableFields(obj *api.Secret) fields.Set { objectMetaFieldsSet := generic.ObjectMetaFieldsSet(&obj.ObjectMeta, true) secretSpecificFieldsSet := fields.Set{ "type": string(obj.Type), } return generic.MergeFieldsSets(objectMetaFieldsSet, secretSpecificFieldsSet) } func warningsForSecret(secret *api.Secret) []string { var warnings []string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 20:38:11 UTC 2023 - 4.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/matcher.go
limitations under the License. */ package generic import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" ) // ObjectMetaFieldsSet returns a fields that represent the ObjectMeta. func ObjectMetaFieldsSet(objectMeta *metav1.ObjectMeta, hasNamespaceField bool) fields.Set { if !hasNamespaceField { return fields.Set{ "metadata.name": objectMeta.Name, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 03 06:33:43 UTC 2017 - 1.6K bytes - Viewed (0) -
pkg/registry/core/event/strategy.go
Field: field, GetAttrs: GetAttrs, } } // ToSelectableFields returns a field set that represents the object. func ToSelectableFields(event *api.Event) fields.Set { objectMetaFieldsSet := generic.ObjectMetaFieldsSet(&event.ObjectMeta, true) source := event.Source.Component if source == "" { source = event.ReportingController } specificFieldsSet := fields.Set{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 10 19:01:45 UTC 2022 - 4.8K bytes - Viewed (0) -
pkg/registry/core/node/strategy.go
func NodeToSelectableFields(node *api.Node) fields.Set { objectMetaFieldsSet := generic.ObjectMetaFieldsSet(&node.ObjectMeta, false) specificFieldsSet := fields.Set{ "spec.unschedulable": fmt.Sprint(node.Spec.Unschedulable), } return generic.MergeFieldsSets(objectMetaFieldsSet, specificFieldsSet) } // GetAttrs returns labels and fields of a given object for filtering purposes.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 13 23:06:39 UTC 2024 - 9K bytes - Viewed (0) -
pkg/registry/core/persistentvolume/strategy.go
func PersistentVolumeToSelectableFields(persistentvolume *api.PersistentVolume) fields.Set { objectMetaFieldsSet := generic.ObjectMetaFieldsSet(&persistentvolume.ObjectMeta, false) specificFieldsSet := fields.Set{ // This is a bug, but we need to support it for backward compatibility. "name": persistentvolume.Name, } return generic.MergeFieldsSets(objectMetaFieldsSet, specificFieldsSet)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 03:58:36 UTC 2023 - 7.6K bytes - Viewed (0) -
pkg/registry/core/persistentvolumeclaim/strategy.go
objectMetaFieldsSet := generic.ObjectMetaFieldsSet(&persistentvolumeclaim.ObjectMeta, true) specificFieldsSet := fields.Set{ // This is a bug, but we need to support it for backward compatibility. "name": persistentvolumeclaim.Name, } return generic.MergeFieldsSets(objectMetaFieldsSet, specificFieldsSet)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 09 20:58:25 UTC 2022 - 7.8K bytes - Viewed (0) -
pkg/registry/apps/replicaset/strategy.go
func ToSelectableFields(rs *apps.ReplicaSet) fields.Set { objectMetaFieldsSet := generic.ObjectMetaFieldsSet(&rs.ObjectMeta, true) rsSpecificFieldsSet := fields.Set{ "status.replicas": strconv.Itoa(int(rs.Status.Replicas)), } return generic.MergeFieldsSets(objectMetaFieldsSet, rsSpecificFieldsSet) } // GetAttrs returns labels and fields of a given object for filtering purposes.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 16 21:06:43 UTC 2022 - 9.3K bytes - Viewed (0) -
pkg/registry/certificates/certificates/strategy.go
func SelectableFields(obj *certificates.CertificateSigningRequest) fields.Set { objectMetaFieldsSet := generic.ObjectMetaFieldsSet(&obj.ObjectMeta, false) csrSpecificFieldsSet := fields.Set{ "spec.signerName": obj.Spec.SignerName, } return generic.MergeFieldsSets(objectMetaFieldsSet, csrSpecificFieldsSet)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 18 21:41:43 UTC 2022 - 11.4K bytes - Viewed (0) -
pkg/registry/core/namespace/strategy.go
func NamespaceToSelectableFields(namespace *api.Namespace) fields.Set { objectMetaFieldsSet := generic.ObjectMetaFieldsSet(&namespace.ObjectMeta, false) specificFieldsSet := fields.Set{ "status.phase": string(namespace.Status.Phase), // This is a bug, but we need to support it for backward compatibility. "name": namespace.Name, } return generic.MergeFieldsSets(objectMetaFieldsSet, specificFieldsSet)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 07 08:51:17 UTC 2021 - 8.3K bytes - Viewed (0) -
pkg/registry/resource/resourceclaimtemplate/strategy.go
} // toSelectableFields returns a field set that represents the object func toSelectableFields(template *resource.ResourceClaimTemplate) fields.Set { fields := generic.ObjectMetaFieldsSet(&template.ObjectMeta, true) return fields
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 10 19:08:24 UTC 2022 - 3.1K bytes - Viewed (0)