1"use strict";(self.webpackChunkheadlamp_website=self.webpackChunkheadlamp_website||[]).push([[1603],{28453:(e,t,n)=>{n.d(t,{R:()=>i,x:()=>o});var s=n(96540);const r={},l=s.createContext(r);function i(e){const t=s.useContext(l);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(l.Provider,{value:t},e.children)}},64027:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>p,frontMatter:()=>l,metadata:()=>o,toc:()=>a});var s=n(74848),r=n(28453);const l={},i="Function: labelSelectorToQuery()",o={id:"latest/development/api/lib/k8s/functions/labelSelectorToQuery",title:"Function: labelSelectorToQuery()",description:"Defined in231",source:"@site/docs/latest/development/api/lib/k8s/functions/labelSelectorToQuery.md",sourceDirName:"latest/development/api/lib/k8s/functions",slug:"/latest/development/api/lib/k8s/functions/labelSelectorToQuery",permalink:"/docs/latest/development/api/lib/k8s/functions/labelSelectorToQuery",draft:!1,unlisted:!1,editUrl:"https://github.com/kubernetes-sigs/headlamp/edit/main/docs/development/api/lib/k8s/functions/labelSelectorToQuery.md",tags:[],version:"current",frontMatter:{},sidebar:"mainSidebar",previous:{title:"Function: getVersion()",permalink:"/docs/latest/development/api/lib/k8s/functions/getVersion"},next:{title:"Function: matchExpressionSimplifier()",permalink:"/docs/latest/development/api/lib/k8s/functions/matchExpressionSimplifier"}},c={},a=[{value:"Parameters",id:"parameters",level:2},{value:"Returns",id:"returns",level:2}];function d(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h1,{id:"function-labelselectortoquery",children:"Function: labelSelectorToQuery()"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-ts",children:"function labelSelectorToQuery(labelSelector: LabelSelector): string;\n"})}),"\n",(0,s.jsxs)(t.p,{children:["Defined in: ",(0,s.jsx)(t.a,{href:"https://github.com/kubernetes-sigs/headlamp/blob/9cb8e9a311f736f645f4a06f251f59bddca3cf60/frontend/src/lib/k8s/index.ts#L231",children:"lib/k8s/index.ts:231"})]}),"\n",(0,s.jsxs)(t.p,{children:["See ",(0,s.jsx)(t.a,{href:"https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#list-and-watch-filtering%7CLabel",children:"selector examples"}),",\n",(0,s.jsx)(t.a,{href:"https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#resources-that-support-set-based-requirements%7Cdeployment",children:"selector example"}),",\n",(0,s.jsx)(t.a,{href:"https://github.com/kubernetes/apimachinery/blob/be3a79b26814a8d7637d70f4d434a4626ee1c1e7/pkg/selection/operator.go#L24%7Cpossible",children:"operators"}),", and\n",(0,s.jsx)(t.a,{href:"https://github.com/kubernetes/apimachinery/blob/be3a79b26814a8d7637d70f4d434a4626ee1c1e7/pkg/labels/selector.go#L305%7CFormat",children:"rule for expressions"}),"."]}),"\n",(0,s.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Parameter"}),(0,s.jsx)(t.th,{children:"Type"})]})}),(0,s.jsx)(t.tbody,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"labelSelector"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.a,{href:"/docs/latest/development/api/lib/k8s/cluster/interfaces/LabelSelector",children:(0,s.jsx)(t.code,{children:"LabelSelector"})})})]})})]}),"\n",(0,s.jsx)(t.h2,{id:"returns",children:"Returns"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.code,{children:"string"})})]})}function p(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.