12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023 |
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: Namespace
- metadata:
- name: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pod-security.kubernetes.io/enforce: restricted
- ---
- # Copyright 2020-2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- kind: ClusterRole
- apiVersion: rbac.authorization.k8s.io/v1
- metadata:
- name: tekton-pipelines-controller-cluster-access
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- rules:
- - apiGroups: [""]
- # Controller needs to watch Pods created by TaskRuns to see them progress.
- resources: ["pods"]
- verbs: ["list", "watch"]
- # Controller needs cluster access to all of the CRDs that it is responsible for
- # managing.
- - apiGroups: ["tekton.dev"]
- resources: ["tasks", "clustertasks", "taskruns", "pipelines", "pipelineruns", "pipelineresources", "runs", "customruns"]
- verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
- - apiGroups: ["tekton.dev"]
- resources: ["verificationpolicies"]
- verbs: ["get", "list", "watch"]
- - apiGroups: ["tekton.dev"]
- resources: ["taskruns/finalizers", "pipelineruns/finalizers", "runs/finalizers", "customruns/finalizers"]
- verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
- - apiGroups: ["tekton.dev"]
- resources: ["tasks/status", "clustertasks/status", "taskruns/status", "pipelines/status", "pipelineruns/status", "pipelineresources/status", "runs/status", "customruns/status", "verificationpolicies/status"]
- verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
- # resolution.tekton.dev
- - apiGroups: ["resolution.tekton.dev"]
- resources: ["resolutionrequests", "resolutionrequests/status"]
- verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
- ---
- kind: ClusterRole
- apiVersion: rbac.authorization.k8s.io/v1
- metadata:
- # This is the access that the controller needs on a per-namespace basis.
- name: tekton-pipelines-controller-tenant-access
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- rules:
- # Read-write access to create Pods and PVCs (for Workspaces)
- - apiGroups: [""]
- resources: ["pods", "persistentvolumeclaims"]
- verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
- # Write permissions to publish events.
- - apiGroups: [""]
- resources: ["events"]
- verbs: ["create", "update", "patch"]
- # Read-only access to these.
- - apiGroups: [""]
- resources: ["configmaps", "limitranges", "secrets", "serviceaccounts"]
- verbs: ["get", "list", "watch"]
- # Read-write access to StatefulSets for Affinity Assistant.
- - apiGroups: ["apps"]
- resources: ["statefulsets"]
- verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
- ---
- kind: ClusterRole
- apiVersion: rbac.authorization.k8s.io/v1
- metadata:
- name: tekton-pipelines-webhook-cluster-access
- labels:
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- rules:
- # The webhook needs to be able to get and update customresourcedefinitions,
- # mainly to update the webhook certificates.
- - apiGroups: ["apiextensions.k8s.io"]
- resources: ["customresourcedefinitions", "customresourcedefinitions/status"]
- verbs: ["get", "update", "patch"]
- resourceNames:
- - pipelines.tekton.dev
- - pipelineruns.tekton.dev
- - runs.tekton.dev
- - tasks.tekton.dev
- - clustertasks.tekton.dev
- - taskruns.tekton.dev
- - pipelineresources.tekton.dev
- - resolutionrequests.resolution.tekton.dev
- - customruns.tekton.dev
- - verificationpolicies.tekton.dev
- # knative.dev/pkg needs list/watch permissions to set up informers for the webhook.
- - apiGroups: ["apiextensions.k8s.io"]
- resources: ["customresourcedefinitions"]
- verbs: ["list", "watch"]
- - apiGroups: ["admissionregistration.k8s.io"]
- # The webhook performs a reconciliation on these two resources and continuously
- # updates configuration.
- resources: ["mutatingwebhookconfigurations", "validatingwebhookconfigurations"]
- # knative starts informers on these things, which is why we need get, list and watch.
- verbs: ["list", "watch"]
- - apiGroups: ["admissionregistration.k8s.io"]
- resources: ["mutatingwebhookconfigurations"]
- # This mutating webhook is responsible for applying defaults to tekton objects
- # as they are received.
- resourceNames: ["webhook.pipeline.tekton.dev"]
- # When there are changes to the configs or secrets, knative updates the mutatingwebhook config
- # with the updated certificates or the refreshed set of rules.
- verbs: ["get", "update", "delete"]
- - apiGroups: ["admissionregistration.k8s.io"]
- resources: ["validatingwebhookconfigurations"]
- # validation.webhook.pipeline.tekton.dev performs schema validation when you, for example, create TaskRuns.
- # config.webhook.pipeline.tekton.dev validates the logging configuration against knative's logging structure
- resourceNames: ["validation.webhook.pipeline.tekton.dev", "config.webhook.pipeline.tekton.dev"]
- # When there are changes to the configs or secrets, knative updates the validatingwebhook config
- # with the updated certificates or the refreshed set of rules.
- verbs: ["get", "update", "delete"]
- - apiGroups: [""]
- resources: ["namespaces"]
- verbs: ["get"]
- # The webhook configured the namespace as the OwnerRef on various cluster-scoped resources,
- # which requires we can Get the system namespace.
- resourceNames: ["tekton-pipelines"]
- - apiGroups: [""]
- resources: ["namespaces/finalizers"]
- verbs: ["update"]
- # The webhook configured the namespace as the OwnerRef on various cluster-scoped resources,
- # which requires we can update the system namespace finalizers.
- resourceNames: ["tekton-pipelines"]
- ---
- # Copyright 2020 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- kind: Role
- apiVersion: rbac.authorization.k8s.io/v1
- metadata:
- name: tekton-pipelines-controller
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- rules:
- - apiGroups: [""]
- resources: ["configmaps"]
- verbs: ["list", "watch"]
- # The controller needs access to these configmaps for logging information and runtime configuration.
- - apiGroups: [""]
- resources: ["configmaps"]
- verbs: ["get"]
- resourceNames: ["config-logging", "config-observability", "config-artifact-bucket", "config-artifact-pvc", "feature-flags", "config-leader-election", "config-registry-cert"]
- ---
- kind: Role
- apiVersion: rbac.authorization.k8s.io/v1
- metadata:
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- rules:
- - apiGroups: [""]
- resources: ["configmaps"]
- verbs: ["list", "watch"]
- # The webhook needs access to these configmaps for logging information.
- - apiGroups: [""]
- resources: ["configmaps"]
- verbs: ["get"]
- resourceNames: ["config-logging", "config-observability", "config-leader-election", "feature-flags"]
- - apiGroups: [""]
- resources: ["secrets"]
- verbs: ["list", "watch"]
- # The webhook daemon makes a reconciliation loop on webhook-certs. Whenever
- # the secret changes it updates the webhook configurations with the certificates
- # stored in the secret.
- - apiGroups: [""]
- resources: ["secrets"]
- verbs: ["get", "update"]
- resourceNames: ["webhook-certs"]
- ---
- kind: Role
- apiVersion: rbac.authorization.k8s.io/v1
- metadata:
- name: tekton-pipelines-leader-election
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- rules:
- # We uses leases for leaderelection
- - apiGroups: ["coordination.k8s.io"]
- resources: ["leases"]
- verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
- ---
- apiVersion: rbac.authorization.k8s.io/v1
- kind: Role
- metadata:
- name: tekton-pipelines-info
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- rules:
- # All system:authenticated users needs to have access
- # of the pipelines-info ConfigMap even if they don't
- # have access to the other resources present in the
- # installed namespace.
- - apiGroups: [""]
- resources: ["configmaps"]
- resourceNames: ["pipelines-info"]
- verbs: ["get"]
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ServiceAccount
- metadata:
- name: tekton-pipelines-controller
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- ---
- apiVersion: v1
- kind: ServiceAccount
- metadata:
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: rbac.authorization.k8s.io/v1
- kind: ClusterRoleBinding
- metadata:
- name: tekton-pipelines-controller-cluster-access
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- subjects:
- - kind: ServiceAccount
- name: tekton-pipelines-controller
- namespace: tekton-pipelines
- roleRef:
- kind: ClusterRole
- name: tekton-pipelines-controller-cluster-access
- apiGroup: rbac.authorization.k8s.io
- ---
- # If this ClusterRoleBinding is replaced with a RoleBinding
- # then the ClusterRole would be namespaced. The access described by
- # the tekton-pipelines-controller-tenant-access ClusterRole would
- # be scoped to individual tenant namespaces.
- apiVersion: rbac.authorization.k8s.io/v1
- kind: ClusterRoleBinding
- metadata:
- name: tekton-pipelines-controller-tenant-access
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- subjects:
- - kind: ServiceAccount
- name: tekton-pipelines-controller
- namespace: tekton-pipelines
- roleRef:
- kind: ClusterRole
- name: tekton-pipelines-controller-tenant-access
- apiGroup: rbac.authorization.k8s.io
- ---
- apiVersion: rbac.authorization.k8s.io/v1
- kind: ClusterRoleBinding
- metadata:
- name: tekton-pipelines-webhook-cluster-access
- labels:
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- subjects:
- - kind: ServiceAccount
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- roleRef:
- kind: ClusterRole
- name: tekton-pipelines-webhook-cluster-access
- apiGroup: rbac.authorization.k8s.io
- ---
- # Copyright 2020 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: rbac.authorization.k8s.io/v1
- kind: RoleBinding
- metadata:
- name: tekton-pipelines-controller
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- subjects:
- - kind: ServiceAccount
- name: tekton-pipelines-controller
- namespace: tekton-pipelines
- roleRef:
- kind: Role
- name: tekton-pipelines-controller
- apiGroup: rbac.authorization.k8s.io
- ---
- apiVersion: rbac.authorization.k8s.io/v1
- kind: RoleBinding
- metadata:
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- subjects:
- - kind: ServiceAccount
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- roleRef:
- kind: Role
- name: tekton-pipelines-webhook
- apiGroup: rbac.authorization.k8s.io
- ---
- apiVersion: rbac.authorization.k8s.io/v1
- kind: RoleBinding
- metadata:
- name: tekton-pipelines-controller-leaderelection
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- subjects:
- - kind: ServiceAccount
- name: tekton-pipelines-controller
- namespace: tekton-pipelines
- roleRef:
- kind: Role
- name: tekton-pipelines-leader-election
- apiGroup: rbac.authorization.k8s.io
- ---
- apiVersion: rbac.authorization.k8s.io/v1
- kind: RoleBinding
- metadata:
- name: tekton-pipelines-webhook-leaderelection
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- subjects:
- - kind: ServiceAccount
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- roleRef:
- kind: Role
- name: tekton-pipelines-leader-election
- apiGroup: rbac.authorization.k8s.io
- ---
- apiVersion: rbac.authorization.k8s.io/v1
- kind: RoleBinding
- metadata:
- name: tekton-pipelines-info
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- subjects:
- # Giving all system:authenticated users the access of the
- # ConfigMap which contains version information.
- - kind: Group
- name: system:authenticated
- apiGroup: rbac.authorization.k8s.io
- roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: tekton-pipelines-info
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: apiextensions.k8s.io/v1
- kind: CustomResourceDefinition
- metadata:
- name: clustertasks.tekton.dev
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pipeline.tekton.dev/release: "v0.43.0"
- version: "v0.43.0"
- spec:
- group: tekton.dev
- preserveUnknownFields: false
- versions:
- - name: v1beta1
- served: true
- storage: true
- schema:
- openAPIV3Schema:
- type: object
- # One can use x-kubernetes-preserve-unknown-fields: true
- # at the root of the schema (and inside any properties, additionalProperties)
- # to get the traditional CRD behaviour that nothing is pruned, despite
- # setting spec.preserveUnknownProperties: false.
- #
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
- # See issue: https://github.com/knative/serving/issues/912
- x-kubernetes-preserve-unknown-fields: true
- # Opt into the status subresource so metadata.generation
- # starts to increment
- subresources:
- status: {}
- names:
- kind: ClusterTask
- plural: clustertasks
- singular: clustertask
- categories:
- - tekton
- - tekton-pipelines
- scope: Cluster
- conversion:
- strategy: Webhook
- webhook:
- conversionReviewVersions: ["v1beta1"]
- clientConfig:
- service:
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- ---
- # Copyright 2020 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: apiextensions.k8s.io/v1
- kind: CustomResourceDefinition
- metadata:
- name: customruns.tekton.dev
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pipeline.tekton.dev/release: "v0.43.0"
- version: "v0.43.0"
- spec:
- group: tekton.dev
- preserveUnknownFields: false
- versions:
- - name: v1beta1
- served: true
- storage: true
- schema:
- openAPIV3Schema:
- type: object
- # One can use x-kubernetes-preserve-unknown-fields: true
- # at the root of the schema (and inside any properties, additionalProperties)
- # to get the traditional CRD behaviour that nothing is pruned, despite
- # setting spec.preserveUnknownProperties: false.
- #
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
- # See issue: https://github.com/knative/serving/issues/912
- x-kubernetes-preserve-unknown-fields: true
- additionalPrinterColumns:
- - name: Succeeded
- type: string
- jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
- - name: Reason
- type: string
- jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason"
- - name: StartTime
- type: date
- jsonPath: .status.startTime
- - name: CompletionTime
- type: date
- jsonPath: .status.completionTime
- # Opt into the status subresource so metadata.generation
- # starts to increment
- subresources:
- status: {}
- names:
- kind: CustomRun
- plural: customruns
- singular: customrun
- categories:
- - tekton
- - tekton-pipelines
- scope: Namespaced
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: apiextensions.k8s.io/v1
- kind: CustomResourceDefinition
- metadata:
- name: pipelines.tekton.dev
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pipeline.tekton.dev/release: "v0.43.0"
- version: "v0.43.0"
- spec:
- group: tekton.dev
- preserveUnknownFields: false
- versions:
- - name: v1beta1
- served: true
- storage: true
- subresources:
- status: {}
- schema:
- openAPIV3Schema:
- type: object
- # One can use x-kubernetes-preserve-unknown-fields: true
- # at the root of the schema (and inside any properties, additionalProperties)
- # to get the traditional CRD behaviour that nothing is pruned, despite
- # setting spec.preserveUnknownProperties: false.
- #
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
- # See issue: https://github.com/knative/serving/issues/912
- x-kubernetes-preserve-unknown-fields: true
- - name: v1
- served: true
- storage: false
- schema:
- openAPIV3Schema:
- type: object
- # OpenAPIV3 schema allows Kubernetes to perform validation on the schema fields
- # and use the schema in tooling such as `kubectl explain`.
- # Using "x-kubernetes-preserve-unknown-fields: true"
- # at the root of the schema (or within it) allows arbitrary fields.
- # We currently perform our own validation separately.
- # See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#specifying-a-structural-schema
- # for more info.
- x-kubernetes-preserve-unknown-fields: true
- # Opt into the status subresource so metadata.generation
- # starts to increment
- subresources:
- status: {}
- names:
- kind: Pipeline
- plural: pipelines
- singular: pipeline
- categories:
- - tekton
- - tekton-pipelines
- scope: Namespaced
- conversion:
- strategy: Webhook
- webhook:
- conversionReviewVersions: ["v1beta1", "v1"]
- clientConfig:
- service:
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: apiextensions.k8s.io/v1
- kind: CustomResourceDefinition
- metadata:
- name: pipelineruns.tekton.dev
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pipeline.tekton.dev/release: "v0.43.0"
- version: "v0.43.0"
- spec:
- group: tekton.dev
- preserveUnknownFields: false
- versions:
- - name: v1beta1
- served: true
- storage: true
- schema:
- openAPIV3Schema:
- type: object
- # One can use x-kubernetes-preserve-unknown-fields: true
- # at the root of the schema (and inside any properties, additionalProperties)
- # to get the traditional CRD behaviour that nothing is pruned, despite
- # setting spec.preserveUnknownProperties: false.
- #
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
- # See issue: https://github.com/knative/serving/issues/912
- x-kubernetes-preserve-unknown-fields: true
- additionalPrinterColumns:
- - name: Succeeded
- type: string
- jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
- - name: Reason
- type: string
- jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason"
- - name: StartTime
- type: date
- jsonPath: .status.startTime
- - name: CompletionTime
- type: date
- jsonPath: .status.completionTime
- # Opt into the status subresource so metadata.generation
- # starts to increment
- subresources:
- status: {}
- - name: v1
- served: true
- storage: false
- schema:
- openAPIV3Schema:
- type: object
- # One can use x-kubernetes-preserve-unknown-fields: true
- # at the root of the schema (and inside any properties, additionalProperties)
- # to get the traditional CRD behaviour that nothing is pruned, despite
- # setting spec.preserveUnknownProperties: false.
- #
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
- # See issue: https://github.com/knative/serving/issues/912
- x-kubernetes-preserve-unknown-fields: true
- additionalPrinterColumns:
- - name: Succeeded
- type: string
- jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
- - name: Reason
- type: string
- jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason"
- - name: StartTime
- type: date
- jsonPath: .status.startTime
- - name: CompletionTime
- type: date
- jsonPath: .status.completionTime
- # Opt into the status subresource so metadata.generation
- # starts to increment
- subresources:
- status: {}
- names:
- kind: PipelineRun
- plural: pipelineruns
- singular: pipelinerun
- categories:
- - tekton
- - tekton-pipelines
- shortNames:
- - pr
- - prs
- scope: Namespaced
- conversion:
- strategy: Webhook
- webhook:
- conversionReviewVersions: ["v1beta1", "v1"]
- clientConfig:
- service:
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- ---
- # Copyright 2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: apiextensions.k8s.io/v1
- kind: CustomResourceDefinition
- metadata:
- name: resolutionrequests.resolution.tekton.dev
- labels:
- resolution.tekton.dev/release: devel
- spec:
- group: resolution.tekton.dev
- scope: Namespaced
- names:
- kind: ResolutionRequest
- plural: resolutionrequests
- singular: resolutionrequest
- categories:
- - tekton
- - tekton-pipelines
- shortNames:
- - resolutionrequest
- - resolutionrequests
- versions:
- - name: v1alpha1
- served: true
- deprecated: true
- storage: false
- subresources:
- status: {}
- schema:
- openAPIV3Schema:
- type: object
- # One can use x-kubernetes-preserve-unknown-fields: true
- # at the root of the schema (and inside any properties, additionalProperties)
- # to get the traditional CRD behaviour that nothing is pruned, despite
- # setting spec.preserveUnknownProperties: false.
- #
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
- # See issue: https://github.com/knative/serving/issues/912
- x-kubernetes-preserve-unknown-fields: true
- additionalPrinterColumns:
- - name: Succeeded
- type: string
- jsonPath: ".status.conditions[?(@.type=='Succeeded')].status"
- - name: Reason
- type: string
- jsonPath: ".status.conditions[?(@.type=='Succeeded')].reason"
- - name: v1beta1
- served: true
- storage: true
- subresources:
- status: {}
- schema:
- openAPIV3Schema:
- type: object
- # One can use x-kubernetes-preserve-unknown-fields: true
- # at the root of the schema (and inside any properties, additionalProperties)
- # to get the traditional CRD behaviour that nothing is pruned, despite
- # setting spec.preserveUnknownProperties: false.
- #
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
- # See issue: https://github.com/knative/serving/issues/912
- x-kubernetes-preserve-unknown-fields: true
- additionalPrinterColumns:
- - name: OwnerKind
- type: string
- jsonPath: ".metadata.ownerReferences[0].kind"
- - name: Owner
- type: string
- jsonPath: ".metadata.ownerReferences[0].name"
- - name: Succeeded
- type: string
- jsonPath: ".status.conditions[?(@.type=='Succeeded')].status"
- - name: Reason
- type: string
- jsonPath: ".status.conditions[?(@.type=='Succeeded')].reason"
- - name: StartTime
- type: string
- jsonPath: .metadata.creationTimestamp
- - name: EndTime
- type: string
- jsonPath: .status.conditions[?(@.type=='Succeeded')].lastTransitionTime
- conversion:
- strategy: Webhook
- webhook:
- conversionReviewVersions: ["v1alpha1", "v1beta1"]
- clientConfig:
- service:
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: apiextensions.k8s.io/v1
- kind: CustomResourceDefinition
- metadata:
- name: pipelineresources.tekton.dev
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pipeline.tekton.dev/release: "v0.43.0"
- version: "v0.43.0"
- spec:
- group: tekton.dev
- versions:
- - name: v1alpha1
- served: true
- storage: true
- schema:
- openAPIV3Schema:
- type: object
- # One can use x-kubernetes-preserve-unknown-fields: true
- # at the root of the schema (and inside any properties, additionalProperties)
- # to get the traditional CRD behaviour that nothing is pruned, despite
- # setting spec.preserveUnknownProperties: false.
- #
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
- # See issue: https://github.com/knative/serving/issues/912
- x-kubernetes-preserve-unknown-fields: true
- # Opt into the status subresource so metadata.generation
- # starts to increment
- subresources:
- status: {}
- names:
- kind: PipelineResource
- plural: pipelineresources
- singular: pipelineresource
- categories:
- - tekton
- - tekton-pipelines
- scope: Namespaced
- ---
- # Copyright 2020 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: apiextensions.k8s.io/v1
- kind: CustomResourceDefinition
- metadata:
- name: runs.tekton.dev
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pipeline.tekton.dev/release: "v0.43.0"
- version: "v0.43.0"
- spec:
- group: tekton.dev
- preserveUnknownFields: false
- versions:
- - name: v1alpha1
- served: true
- storage: true
- schema:
- openAPIV3Schema:
- type: object
- # One can use x-kubernetes-preserve-unknown-fields: true
- # at the root of the schema (and inside any properties, additionalProperties)
- # to get the traditional CRD behaviour that nothing is pruned, despite
- # setting spec.preserveUnknownProperties: false.
- #
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
- # See issue: https://github.com/knative/serving/issues/912
- x-kubernetes-preserve-unknown-fields: true
- additionalPrinterColumns:
- - name: Succeeded
- type: string
- jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
- - name: Reason
- type: string
- jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason"
- - name: StartTime
- type: date
- jsonPath: .status.startTime
- - name: CompletionTime
- type: date
- jsonPath: .status.completionTime
- # Opt into the status subresource so metadata.generation
- # starts to increment
- subresources:
- status: {}
- names:
- kind: Run
- plural: runs
- singular: run
- categories:
- - tekton
- - tekton-pipelines
- scope: Namespaced
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: apiextensions.k8s.io/v1
- kind: CustomResourceDefinition
- metadata:
- name: tasks.tekton.dev
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pipeline.tekton.dev/release: "v0.43.0"
- version: "v0.43.0"
- spec:
- group: tekton.dev
- preserveUnknownFields: false
- versions:
- - name: v1beta1
- served: true
- storage: true
- schema:
- openAPIV3Schema:
- type: object
- # One can use x-kubernetes-preserve-unknown-fields: true
- # at the root of the schema (and inside any properties, additionalProperties)
- # to get the traditional CRD behaviour that nothing is pruned, despite
- # setting spec.preserveUnknownProperties: false.
- #
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
- # See issue: https://github.com/knative/serving/issues/912
- x-kubernetes-preserve-unknown-fields: true
- # Opt into the status subresource so metadata.generation
- # starts to increment
- subresources:
- status: {}
- - name: v1
- served: true
- storage: false
- schema:
- openAPIV3Schema:
- type: object
- # TODO(#1461): Add OpenAPIV3 schema
- # OpenAPIV3 schema allows Kubernetes to perform validation on the schema fields
- # and use the schema in tooling such as `kubectl explain`.
- # Using "x-kubernetes-preserve-unknown-fields: true"
- # at the root of the schema (or within it) allows arbitrary fields.
- # We currently perform our own validation separately.
- # See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#specifying-a-structural-schema
- # for more info.
- x-kubernetes-preserve-unknown-fields: true
- # Opt into the status subresource so metadata.generation
- # starts to increment
- subresources:
- status: {}
- names:
- kind: Task
- plural: tasks
- singular: task
- categories:
- - tekton
- - tekton-pipelines
- scope: Namespaced
- conversion:
- strategy: Webhook
- webhook:
- conversionReviewVersions: ["v1beta1", "v1"]
- clientConfig:
- service:
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: apiextensions.k8s.io/v1
- kind: CustomResourceDefinition
- metadata:
- name: taskruns.tekton.dev
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pipeline.tekton.dev/release: "v0.43.0"
- version: "v0.43.0"
- spec:
- group: tekton.dev
- preserveUnknownFields: false
- versions:
- - name: v1beta1
- served: true
- storage: true
- schema:
- openAPIV3Schema:
- type: object
- # One can use x-kubernetes-preserve-unknown-fields: true
- # at the root of the schema (and inside any properties, additionalProperties)
- # to get the traditional CRD behaviour that nothing is pruned, despite
- # setting spec.preserveUnknownProperties: false.
- #
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
- # See issue: https://github.com/knative/serving/issues/912
- x-kubernetes-preserve-unknown-fields: true
- additionalPrinterColumns:
- - name: Succeeded
- type: string
- jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
- - name: Reason
- type: string
- jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason"
- - name: StartTime
- type: date
- jsonPath: .status.startTime
- - name: CompletionTime
- type: date
- jsonPath: .status.completionTime
- # Opt into the status subresource so metadata.generation
- # starts to increment
- subresources:
- status: {}
- - name: v1
- served: true
- storage: false
- schema:
- openAPIV3Schema:
- type: object
- # One can use x-kubernetes-preserve-unknown-fields: true
- # at the root of the schema (and inside any properties, additionalProperties)
- # to get the traditional CRD behaviour that nothing is pruned, despite
- # setting spec.preserveUnknownProperties: false.
- #
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
- # See issue: https://github.com/knative/serving/issues/912
- x-kubernetes-preserve-unknown-fields: true
- additionalPrinterColumns:
- - name: Succeeded
- type: string
- jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
- - name: Reason
- type: string
- jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason"
- - name: StartTime
- type: date
- jsonPath: .status.startTime
- - name: CompletionTime
- type: date
- jsonPath: .status.completionTime
- # Opt into the status subresource so metadata.generation
- # starts to increment
- subresources:
- status: {}
- names:
- kind: TaskRun
- plural: taskruns
- singular: taskrun
- categories:
- - tekton
- - tekton-pipelines
- shortNames:
- - tr
- - trs
- scope: Namespaced
- conversion:
- strategy: Webhook
- webhook:
- conversionReviewVersions: ["v1beta1", "v1"]
- clientConfig:
- service:
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- ---
- # Copyright 2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: apiextensions.k8s.io/v1
- kind: CustomResourceDefinition
- metadata:
- name: verificationpolicies.tekton.dev
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pipeline.tekton.dev/release: "v0.43.0"
- version: "v0.43.0"
- spec:
- group: tekton.dev
- versions:
- - name: v1alpha1
- served: true
- storage: true
- schema:
- openAPIV3Schema:
- type: object
- # One can use x-kubernetes-preserve-unknown-fields: true
- # at the root of the schema (and inside any properties, additionalProperties)
- # to get the traditional CRD behaviour that nothing is pruned, despite
- # setting spec.preserveUnknownProperties: false.
- #
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
- # See issue: https://github.com/knative/serving/issues/912
- x-kubernetes-preserve-unknown-fields: true
- names:
- kind: VerificationPolicy
- plural: verificationpolicies
- singular: verificationpolicy
- categories:
- - tekton
- - tekton-pipelines
- scope: Namespaced
- ---
- # Copyright 2020 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: Secret
- metadata:
- name: webhook-certs
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pipeline.tekton.dev/release: "v0.43.0"
- # The data is populated at install time.
- ---
- apiVersion: admissionregistration.k8s.io/v1
- kind: ValidatingWebhookConfiguration
- metadata:
- name: validation.webhook.pipeline.tekton.dev
- labels:
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pipeline.tekton.dev/release: "v0.43.0"
- webhooks:
- - admissionReviewVersions: ["v1"]
- clientConfig:
- service:
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- failurePolicy: Fail
- sideEffects: None
- name: validation.webhook.pipeline.tekton.dev
- ---
- apiVersion: admissionregistration.k8s.io/v1
- kind: MutatingWebhookConfiguration
- metadata:
- name: webhook.pipeline.tekton.dev
- labels:
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pipeline.tekton.dev/release: "v0.43.0"
- webhooks:
- - admissionReviewVersions: ["v1"]
- clientConfig:
- service:
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- failurePolicy: Fail
- sideEffects: None
- name: webhook.pipeline.tekton.dev
- ---
- apiVersion: admissionregistration.k8s.io/v1
- kind: ValidatingWebhookConfiguration
- metadata:
- name: config.webhook.pipeline.tekton.dev
- labels:
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pipeline.tekton.dev/release: "v0.43.0"
- webhooks:
- - admissionReviewVersions: ["v1"]
- clientConfig:
- service:
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- failurePolicy: Fail
- sideEffects: None
- name: config.webhook.pipeline.tekton.dev
- objectSelector:
- matchLabels:
- app.kubernetes.io/part-of: tekton-pipelines
- ---
- # Copyright 2019-2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: rbac.authorization.k8s.io/v1
- kind: ClusterRole
- metadata:
- name: tekton-aggregate-edit
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- rbac.authorization.k8s.io/aggregate-to-edit: "true"
- rbac.authorization.k8s.io/aggregate-to-admin: "true"
- rules:
- - apiGroups:
- - tekton.dev
- resources:
- - tasks
- - taskruns
- - pipelines
- - pipelineruns
- - pipelineresources
- - runs
- - customruns
- verbs:
- - create
- - delete
- - deletecollection
- - get
- - list
- - patch
- - update
- - watch
- ---
- # Copyright 2019-2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: rbac.authorization.k8s.io/v1
- kind: ClusterRole
- metadata:
- name: tekton-aggregate-view
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- rbac.authorization.k8s.io/aggregate-to-view: "true"
- rules:
- - apiGroups:
- - tekton.dev
- resources:
- - tasks
- - taskruns
- - pipelines
- - pipelineruns
- - pipelineresources
- - runs
- - customruns
- verbs:
- - get
- - list
- - watch
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: config-artifact-bucket
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- # data:
- # # location of the gcs bucket to be used for artifact storage
- # location: "gs://bucket-name"
- # # name of the secret that will contain the credentials for the service account
- # # with access to the bucket
- # bucket.service.account.secret.name:
- # # The key in the secret with the required service account json
- # bucket.service.account.secret.key:
- # # The field name that should be used for the service account
- # # Valid values: GOOGLE_APPLICATION_CREDENTIALS, BOTO_CONFIG.
- # bucket.service.account.field.name: GOOGLE_APPLICATION_CREDENTIALS
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: config-artifact-pvc
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- # data:
- # # size of the PVC volume
- # size: 5Gi
- #
- # # storage class of the PVC volume
- # storageClassName: storage-class-name
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: config-defaults
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- _example: |
- ################################
- # #
- # EXAMPLE CONFIGURATION #
- # #
- ################################
- # This block is not actually functional configuration,
- # but serves to illustrate the available configuration
- # options and document them in a way that is accessible
- # to users that `kubectl edit` this config map.
- #
- # These sample configuration options may be copied out of
- # this example block and unindented to be in the data block
- # to actually change the configuration.
- # default-timeout-minutes contains the default number of
- # minutes to use for TaskRun and PipelineRun, if none is specified.
- default-timeout-minutes: "60" # 60 minutes
- # default-service-account contains the default service account name
- # to use for TaskRun and PipelineRun, if none is specified.
- default-service-account: "default"
- # default-managed-by-label-value contains the default value given to the
- # "app.kubernetes.io/managed-by" label applied to all Pods created for
- # TaskRuns. If a user's requested TaskRun specifies another value for this
- # label, the user's request supercedes.
- default-managed-by-label-value: "tekton-pipelines"
- # default-pod-template contains the default pod template to use for
- # TaskRun and PipelineRun. If a pod template is specified on the
- # PipelineRun, the default-pod-template is merged with that one.
- # default-pod-template:
- # default-affinity-assistant-pod-template contains the default pod template
- # to use for affinity assistant pods. If a pod template is specified on the
- # PipelineRun, the default-affinity-assistant-pod-template is merged with
- # that one.
- # default-affinity-assistant-pod-template:
- # default-cloud-events-sink contains the default CloudEvents sink to be
- # used for TaskRun and PipelineRun, when no sink is specified.
- # Note that right now it is still not possible to set a PipelineRun or
- # TaskRun specific sink, so the default is the only option available.
- # If no sink is specified, no CloudEvent is generated
- # default-cloud-events-sink:
- # default-task-run-workspace-binding contains the default workspace
- # configuration provided for any Workspaces that a Task declares
- # but that a TaskRun does not explicitly provide.
- # default-task-run-workspace-binding: |
- # emptyDir: {}
- # default-max-matrix-combinations-count contains the default maximum number
- # of combinations from a Matrix, if none is specified.
- default-max-matrix-combinations-count: "256"
- # default-forbidden-env contains comma seperated environment variables that cannot be
- # overridden by podTemplate.
- default-forbidden-env:
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: feature-flags
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- # Setting this flag to "true" will prevent Tekton to create an
- # Affinity Assistant for every TaskRun sharing a PVC workspace
- #
- # The default behaviour is for Tekton to create Affinity Assistants
- #
- # See more in the workspace documentation about Affinity Assistant
- # https://github.com/tektoncd/pipeline/blob/main/docs/workspaces.md#affinity-assistant-and-specifying-workspace-order-in-a-pipeline
- # or https://github.com/tektoncd/pipeline/pull/2630 for more info.
- disable-affinity-assistant: "false"
- # Setting this flag to "true" will prevent Tekton scanning attached
- # service accounts and injecting any credentials it finds into your
- # Steps.
- #
- # The default behaviour currently is for Tekton to search service
- # accounts for secrets matching a specified format and automatically
- # mount those into your Steps.
- #
- # Note: setting this to "true" will prevent PipelineResources from
- # working.
- #
- # See https://github.com/tektoncd/pipeline/issues/2791 for more
- # info.
- disable-creds-init: "false"
- # Setting this flag to "false" will stop Tekton from waiting for a
- # TaskRun's sidecar containers to be running before starting the first
- # step. This will allow Tasks to be run in environments that don't
- # support the DownwardAPI volume type, but may lead to unintended
- # behaviour if sidecars are used.
- #
- # See https://github.com/tektoncd/pipeline/issues/4937 for more info.
- await-sidecar-readiness: "true"
- # This option should be set to false when Pipelines is running in a
- # cluster that does not use injected sidecars such as Istio. Setting
- # it to false should decrease the time it takes for a TaskRun to start
- # running. For clusters that use injected sidecars, setting this
- # option to false can lead to unexpected behavior.
- #
- # See https://github.com/tektoncd/pipeline/issues/2080 for more info.
- running-in-environment-with-injected-sidecars: "true"
- # Setting this flag to "true" will require that any Git SSH Secret
- # offered to Tekton must have known_hosts included.
- #
- # See https://github.com/tektoncd/pipeline/issues/2981 for more
- # info.
- require-git-ssh-secret-known-hosts: "false"
- # Setting this flag to "true" enables the use of Tekton OCI bundle.
- # This is an experimental feature and thus should still be considered
- # an alpha feature.
- enable-tekton-oci-bundles: "false"
- # Setting this flag to "true" enables the use of custom tasks from
- # within pipelines.
- enable-custom-tasks: "true"
- # Setting this flag will determine which gated features are enabled.
- # Acceptable values are "stable", "beta", or "alpha".
- enable-api-fields: "stable"
- # Setting this flag to "true" enables CloudEvents for CustomRuns and Runs, as long as a
- # CloudEvents sink is configured in the config-defaults config map
- send-cloudevents-for-runs: "false"
- # Setting this flag to "enforce" will enforce verification of tasks/pipeline. Failing to verify
- # will fail the taskrun/pipelinerun. "warn" will only log the err message and "skip"
- # will skip the whole verification
- resource-verification-mode: "skip"
- # Setting this flag to "true" enables populating the "provenance" field in TaskRun
- # and PipelineRun status. This field contains metadata about resources used
- # in the TaskRun/PipelineRun such as the source from where a remote Task/Pipeline
- # definition was fetched.
- enable-provenance-in-status: "false"
- # Setting this flag to "full" to enable full embedding of `TaskRun` and `Run` statuses in the
- # `PipelineRun` status. Set it to "minimal" to populate the `ChildReferences` field in the
- # `PipelineRun` status with name, kind, and API version information for each `TaskRun` and
- # `Run` in the `PipelineRun` instead. Set it to "both" to do both.
- embedded-status: "full"
- # Setting this flag will determine the version for custom tasks created by PipelineRuns.
- # Acceptable values are "v1beta1" and "v1alpha1".
- # The default is "v1alpha1".
- custom-task-version: "v1alpha1"
- ---
- # Copyright 2021 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: pipelines-info
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- # Contains pipelines version which can be queried by external
- # tools such as CLI. Elevated permissions are already given to
- # this ConfigMap such that even if we don't have access to
- # other resources in the namespace we still can have access to
- # this ConfigMap.
- version: "v0.43.0"
- ---
- # Copyright 2020 Tekton Authors LLC
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: config-leader-election
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- _example: |
- ################################
- # #
- # EXAMPLE CONFIGURATION #
- # #
- ################################
- # This block is not actually functional configuration,
- # but serves to illustrate the available configuration
- # options and document them in a way that is accessible
- # to users that `kubectl edit` this config map.
- #
- # These sample configuration options may be copied out of
- # this example block and unindented to be in the data block
- # to actually change the configuration.
- # lease-duration is how long non-leaders will wait to try to acquire the
- # lock; 15 seconds is the value used by core kubernetes controllers.
- lease-duration: "60s"
- # renew-deadline is how long a leader will try to renew the lease before
- # giving up; 10 seconds is the value used by core kubernetes controllers.
- renew-deadline: "40s"
- # retry-period is how long the leader election client waits between tries of
- # actions; 2 seconds is the value used by core kubernetes controllers.
- retry-period: "10s"
- # buckets is the number of buckets used to partition key space of each
- # Reconciler. If this number is M and the replica number of the controller
- # is N, the N replicas will compete for the M buckets. The owner of a
- # bucket will take care of the reconciling for the keys partitioned into
- # that bucket.
- buckets: "1"
- ---
- # Copyright 2019 Tekton Authors LLC
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: config-logging
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- zap-logger-config: |
- {
- "level": "info",
- "development": false,
- "sampling": {
- "initial": 100,
- "thereafter": 100
- },
- "outputPaths": ["stdout"],
- "errorOutputPaths": ["stderr"],
- "encoding": "json",
- "encoderConfig": {
- "timeKey": "timestamp",
- "levelKey": "severity",
- "nameKey": "logger",
- "callerKey": "caller",
- "messageKey": "message",
- "stacktraceKey": "stacktrace",
- "lineEnding": "",
- "levelEncoder": "",
- "timeEncoder": "iso8601",
- "durationEncoder": "",
- "callerEncoder": ""
- }
- }
- # Log level overrides
- loglevel.controller: "info"
- loglevel.webhook: "info"
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: config-observability
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- _example: |
- ################################
- # #
- # EXAMPLE CONFIGURATION #
- # #
- ################################
- # This block is not actually functional configuration,
- # but serves to illustrate the available configuration
- # options and document them in a way that is accessible
- # to users that `kubectl edit` this config map.
- #
- # These sample configuration options may be copied out of
- # this example block and unindented to be in the data block
- # to actually change the configuration.
- # metrics.backend-destination field specifies the system metrics destination.
- # It supports either prometheus (the default) or stackdriver.
- # Note: Using Stackdriver will incur additional charges.
- metrics.backend-destination: prometheus
- # metrics.stackdriver-project-id field specifies the Stackdriver project ID. This
- # field is optional. When running on GCE, application default credentials will be
- # used and metrics will be sent to the cluster's project if this field is
- # not provided.
- metrics.stackdriver-project-id: "<your stackdriver project id>"
- # metrics.allow-stackdriver-custom-metrics indicates whether it is allowed
- # to send metrics to Stackdriver using "global" resource type and custom
- # metric type. Setting this flag to "true" could cause extra Stackdriver
- # charge. If metrics.backend-destination is not Stackdriver, this is
- # ignored.
- metrics.allow-stackdriver-custom-metrics: "false"
- metrics.taskrun.level: "task"
- metrics.taskrun.duration-type: "histogram"
- metrics.pipelinerun.level: "pipeline"
- metrics.pipelinerun.duration-type: "histogram"
- ---
- # Copyright 2020 Tekton Authors LLC
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: config-registry-cert
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- # data:
- # # Registry's self-signed certificate
- # cert: |
- ---
- # Copyright 2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: config-trusted-resources
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- _example: |
- ################################
- # #
- # EXAMPLE CONFIGURATION #
- # #
- ################################
- # This block is not actually functional configuration,
- # but serves to illustrate the available configuration
- # options and document them in a way that is accessible
- # to users that `kubectl edit` this config map.
- #
- # These sample configuration options may be copied out of
- # this example block and unindented to be in the data block
- # to actually change the configuration.
- # publickeys specifies the list of public keys, the paths are separated by comma
- # publickeys: "/etc/verification-secrets/cosign.pub,
- # gcpkms://projects/tekton/locations/us/keyRings/trusted-resources/cryptoKeys/trusted-resources"
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: tekton-pipelines-controller
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/name: controller
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: default
- app.kubernetes.io/version: "v0.43.0"
- app.kubernetes.io/part-of: tekton-pipelines
- # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
- pipeline.tekton.dev/release: "v0.43.0"
- # labels below are related to istio and should not be used for resource lookup
- version: "v0.43.0"
- spec:
- replicas: 1
- selector:
- matchLabels:
- app.kubernetes.io/name: controller
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- template:
- metadata:
- labels:
- app.kubernetes.io/name: controller
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: default
- app.kubernetes.io/version: "v0.43.0"
- app.kubernetes.io/part-of: tekton-pipelines
- # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
- pipeline.tekton.dev/release: "v0.43.0"
- # labels below are related to istio and should not be used for resource lookup
- app: tekton-pipelines-controller
- version: "v0.43.0"
- spec:
- affinity:
- nodeAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- nodeSelectorTerms:
- - matchExpressions:
- - key: kubernetes.io/os
- operator: NotIn
- values:
- - windows
- serviceAccountName: tekton-pipelines-controller
- containers:
- - name: tekton-pipelines-controller
- image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/controller:v0.43.0@sha256:f71d7dc4fa4760f0cd3236e4869d40b163ddb48ecb7a81af8c84b45ba63db669
- args: [
- # These images are built on-demand by `ko resolve` and are replaced
- # by image references by digest.
- "-kubeconfig-writer-image", "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/kubeconfigwriter:v0.43.0@sha256:9e7468ffff5d888edc0bb5e274ed423580a13706738b08cf5d013585ef9dc206", "-git-image", "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.43.0@sha256:ab32d737ef21248f35c08c30bf01f583dda78ee7aad8945d6439300641b778e3", "-entrypoint-image", "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/entrypoint:v0.43.0@sha256:370f969fd846d13e1fcdc28297c152587987742a169c684d3794bd9d4db501b7", "-nop-image", "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/nop:v0.43.0@sha256:6f93beb14df2ffca5c9e05cd055f5ff67721f96430a508596e21b6ae34d58677", "-sidecarlogresults-image", "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/sidecarlogresults:v0.43.0@sha256:4f2477b2d31321d2b1d8dbea204327c1344ce2a2b149cef31e1e13b78f7ad49c", "-imagedigest-exporter-image", "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/imagedigestexporter:v0.43.0@sha256:e1be69fee38b7b6140c1751fa2c771c61e1b1d2c3afd9ca48b1b9b1f28f3f8cf", "-pr-image", "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/pullrequest-init:v0.43.0@sha256:90a54a36265f4f2c5040c54b768b878f04bacc6a32dcb13fddb7f0c8502486b8", "-workingdirinit-image", "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/workingdirinit:v0.43.0@sha256:667c4e254b94f42cdb83c0710e196ea30f2fde8ce96498b7850f0b5de72d2567",
- # This is gcr.io/google.com/cloudsdktool/cloud-sdk:302.0.0-slim
- "-gsutil-image", "gcr.io/google.com/cloudsdktool/cloud-sdk@sha256:27b2c22bf259d9bc1a291e99c63791ba0c27a04d2db0a43241ba0f1f20f4067f",
- # The shell image must allow root in order to create directories and copy files to PVCs.
- # cgr.dev/chainguard/busybox as of April 14 2022
- # image shall not contains tag, so it will be supported on a runtime like cri-o
- "-shell-image", "cgr.dev/chainguard/busybox@sha256:19f02276bf8dbdd62f069b922f10c65262cc34b710eea26ff928129a736be791",
- # for script mode to work with windows we need a powershell image
- # pinning to nanoserver tag as of July 15 2021
- "-shell-image-win", "mcr.microsoft.com/powershell:nanoserver@sha256:b6d5ff841b78bdf2dfed7550000fd4f3437385b8fa686ec0f010be24777654d6"]
- volumeMounts:
- - name: config-logging
- mountPath: /etc/config-logging
- - name: config-registry-cert
- mountPath: /etc/config-registry-cert
- # Mount secret for trusted resources
- - name: verification-secrets
- mountPath: /etc/verification-secrets
- readOnly: true
- env:
- - name: SYSTEM_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- # If you are changing these names, you will also need to update
- # the controller's Role in 200-role.yaml to include the new
- # values in the "configmaps" "get" rule.
- - name: CONFIG_DEFAULTS_NAME
- value: config-defaults
- - name: CONFIG_LOGGING_NAME
- value: config-logging
- - name: CONFIG_OBSERVABILITY_NAME
- value: config-observability
- - name: CONFIG_ARTIFACT_BUCKET_NAME
- value: config-artifact-bucket
- - name: CONFIG_ARTIFACT_PVC_NAME
- value: config-artifact-pvc
- - name: CONFIG_FEATURE_FLAGS_NAME
- value: feature-flags
- - name: CONFIG_LEADERELECTION_NAME
- value: config-leader-election
- - name: CONFIG_TRUSTED_RESOURCES_NAME
- value: config-trusted-resources
- - name: SSL_CERT_FILE
- value: /etc/config-registry-cert/cert
- - name: SSL_CERT_DIR
- value: /etc/ssl/certs
- - name: METRICS_DOMAIN
- value: tekton.dev/pipeline
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - "ALL"
- # User 65532 is the nonroot user ID
- runAsUser: 65532
- runAsGroup: 65532
- runAsNonRoot: true
- seccompProfile:
- type: RuntimeDefault
- ports:
- - name: metrics
- containerPort: 9090
- - name: profiling
- containerPort: 8008
- - name: probes
- containerPort: 8080
- livenessProbe:
- httpGet:
- path: /health
- port: probes
- scheme: HTTP
- initialDelaySeconds: 5
- periodSeconds: 10
- timeoutSeconds: 5
- readinessProbe:
- httpGet:
- path: /readiness
- port: probes
- scheme: HTTP
- initialDelaySeconds: 5
- periodSeconds: 10
- timeoutSeconds: 5
- volumes:
- - name: config-logging
- configMap:
- name: config-logging
- - name: config-registry-cert
- configMap:
- name: config-registry-cert
- # Mount secret for trusted resources
- - name: verification-secrets
- secret:
- secretName: verification-secrets
- optional: true
- ---
- apiVersion: v1
- kind: Service
- metadata:
- labels:
- app.kubernetes.io/name: controller
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: default
- app.kubernetes.io/version: "v0.43.0"
- app.kubernetes.io/part-of: tekton-pipelines
- # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
- pipeline.tekton.dev/release: "v0.43.0"
- # labels below are related to istio and should not be used for resource lookup
- app: tekton-pipelines-controller
- version: "v0.43.0"
- name: tekton-pipelines-controller
- namespace: tekton-pipelines
- spec:
- ports:
- - name: http-metrics
- port: 9090
- protocol: TCP
- targetPort: 9090
- - name: http-profiling
- port: 8008
- targetPort: 8008
- - name: probes
- port: 8080
- selector:
- app.kubernetes.io/name: controller
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- ---
- # Copyright 2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: Namespace
- metadata:
- name: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- pod-security.kubernetes.io/enforce: restricted
- ---
- # Copyright 2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- kind: ClusterRole
- apiVersion: rbac.authorization.k8s.io/v1
- metadata:
- # ClusterRole for resolvers to monitor and update resolutionrequests.
- name: tekton-pipelines-resolvers-resolution-request-updates
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- rules:
- - apiGroups: ["resolution.tekton.dev"]
- resources: ["resolutionrequests", "resolutionrequests/status"]
- verbs: ["get", "list", "watch", "update", "patch"]
- - apiGroups: ["tekton.dev"]
- resources: ["tasks", "pipelines"]
- verbs: ["get", "list"]
- # Read-only access to these.
- - apiGroups: [""]
- resources: ["secrets"]
- verbs: ["get", "list", "watch"]
- ---
- # Copyright 2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- kind: Role
- apiVersion: rbac.authorization.k8s.io/v1
- metadata:
- name: tekton-pipelines-resolvers-namespace-rbac
- namespace: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- rules:
- # Needed to watch and load configuration and secret data.
- - apiGroups: [""]
- resources: ["configmaps", "secrets"]
- verbs: ["get", "list", "update", "watch"]
- # This is needed by leader election to run the controller in HA.
- - apiGroups: ["coordination.k8s.io"]
- resources: ["leases"]
- verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
- ---
- # Copyright 2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ServiceAccount
- metadata:
- name: tekton-pipelines-resolvers
- namespace: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- ---
- # Copyright 2021 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: rbac.authorization.k8s.io/v1
- kind: ClusterRoleBinding
- metadata:
- name: tekton-pipelines-resolvers
- namespace: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- subjects:
- - kind: ServiceAccount
- name: tekton-pipelines-resolvers
- namespace: tekton-pipelines-resolvers
- roleRef:
- kind: ClusterRole
- name: tekton-pipelines-resolvers-resolution-request-updates
- apiGroup: rbac.authorization.k8s.io
- ---
- # Copyright 2021 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: rbac.authorization.k8s.io/v1
- kind: RoleBinding
- metadata:
- name: tekton-pipelines-resolvers-namespace-rbac
- namespace: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- subjects:
- - kind: ServiceAccount
- name: tekton-pipelines-resolvers
- namespace: tekton-pipelines-resolvers
- roleRef:
- kind: Role
- name: tekton-pipelines-resolvers-namespace-rbac
- apiGroup: rbac.authorization.k8s.io
- ---
- # Copyright 2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: bundleresolver-config
- namespace: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- # the default service account name to use for bundle requests.
- default-service-account: "default"
- # The default layer kind in the bundle image.
- default-kind: "task"
- ---
- # Copyright 2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: cluster-resolver-config
- namespace: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- # The default kind to fetch.
- default-kind: "task"
- # The default namespace to look for resources in.
- default-namespace: ""
- # An optional comma-separated list of namespaces which the resolver is allowed to access. Defaults to empty, meaning all namespaces are allowed.
- allowed-namespaces: ""
- # An optional comma-separated list of namespaces which the resolver is blocked from accessing. Defaults to empty, meaning all namespaces are allowed.
- blocked-namespaces: ""
- ---
- # Copyright 2019 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: resolvers-feature-flags
- namespace: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- # Setting this flag to "true" enables remote resolution of Tekton OCI bundles.
- enable-bundles-resolver: "true"
- # Setting this flag to "true" enables remote resolution of tasks and pipelines via the Tekton Hub.
- enable-hub-resolver: "true"
- # Setting this flag to "true" enables remote resolution of tasks and pipelines from Git repositories.
- enable-git-resolver: "true"
- # Setting this flag to "true" enables remote resolution of tasks and pipelines from other namespaces within the cluster.
- enable-cluster-resolver: "true"
- ---
- # Copyright 2020 Tekton Authors LLC
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: config-leader-election
- namespace: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- _example: |
- ################################
- # #
- # EXAMPLE CONFIGURATION #
- # #
- ################################
- # This block is not actually functional configuration,
- # but serves to illustrate the available configuration
- # options and document them in a way that is accessible
- # to users that `kubectl edit` this config map.
- #
- # These sample configuration options may be copied out of
- # this example block and unindented to be in the data block
- # to actually change the configuration.
- # lease-duration is how long non-leaders will wait to try to acquire the
- # lock; 15 seconds is the value used by core kubernetes controllers.
- lease-duration: "60s"
- # renew-deadline is how long a leader will try to renew the lease before
- # giving up; 10 seconds is the value used by core kubernetes controllers.
- renew-deadline: "40s"
- # retry-period is how long the leader election client waits between tries of
- # actions; 2 seconds is the value used by core kubernetes controllers.
- retry-period: "10s"
- # buckets is the number of buckets used to partition key space of each
- # Reconciler. If this number is M and the replica number of the controller
- # is N, the N replicas will compete for the M buckets. The owner of a
- # bucket will take care of the reconciling for the keys partitioned into
- # that bucket.
- buckets: "1"
- ---
- # Copyright 2019 Tekton Authors LLC
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: config-logging
- namespace: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- zap-logger-config: |
- {
- "level": "info",
- "development": false,
- "sampling": {
- "initial": 100,
- "thereafter": 100
- },
- "outputPaths": ["stdout"],
- "errorOutputPaths": ["stderr"],
- "encoding": "json",
- "encoderConfig": {
- "timeKey": "timestamp",
- "levelKey": "severity",
- "nameKey": "logger",
- "callerKey": "caller",
- "messageKey": "message",
- "stacktraceKey": "stacktrace",
- "lineEnding": "",
- "levelEncoder": "",
- "timeEncoder": "iso8601",
- "durationEncoder": "",
- "callerEncoder": ""
- }
- }
- # Log level overrides
- loglevel.controller: "info"
- loglevel.webhook: "info"
- ---
- # Copyright 2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: config-observability
- namespace: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- _example: |
- ################################
- # #
- # EXAMPLE CONFIGURATION #
- # #
- ################################
- # This block is not actually functional configuration,
- # but serves to illustrate the available configuration
- # options and document them in a way that is accessible
- # to users that `kubectl edit` this config map.
- #
- # These sample configuration options may be copied out of
- # this example block and unindented to be in the data block
- # to actually change the configuration.
- # metrics.backend-destination field specifies the system metrics destination.
- # It supports either prometheus (the default) or stackdriver.
- # Note: Using stackdriver will incur additional charges
- metrics.backend-destination: prometheus
- # metrics.request-metrics-backend-destination specifies the request metrics
- # destination. If non-empty, it enables queue proxy to send request metrics.
- # Currently supported values: prometheus, stackdriver.
- metrics.request-metrics-backend-destination: prometheus
- # metrics.stackdriver-project-id field specifies the stackdriver project ID. This
- # field is optional. When running on GCE, application default credentials will be
- # used if this field is not provided.
- metrics.stackdriver-project-id: "<your stackdriver project id>"
- # metrics.allow-stackdriver-custom-metrics indicates whether it is allowed to send metrics to
- # Stackdriver using "global" resource type and custom metric type if the
- # metrics are not supported by "knative_revision" resource type. Setting this
- # flag to "true" could cause extra Stackdriver charge.
- # If metrics.backend-destination is not Stackdriver, this is ignored.
- metrics.allow-stackdriver-custom-metrics: "false"
- ---
- # Copyright 2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: git-resolver-config
- namespace: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- # The maximum amount of time a single anonymous cloning resolution may take.
- fetch-timeout: "1m"
- # The git url to fetch the remote resource from when using anonymous cloning.
- default-url: "https://github.com/tektoncd/catalog.git"
- # The git revision to fetch the remote resource from with either anonymous cloning or the authenticated API.
- default-revision: "main"
- # The SCM type to use with the authenticated API. Can be github, gitlab, gitea, bitbucketserver, bitbucketcloud
- scm-type: "github"
- # The SCM server URL to use with the authenticated API. Not needed when using github.com, gitlab.com, or BitBucket Cloud
- server-url: ""
- # The Kubernetes secret containing the API token for the SCM provider. Required when using the authenticated API.
- api-token-secret-name: ""
- # The key in the API token secret containing the actual token. Required when using the authenticated API.
- api-token-secret-key: ""
- # The namespace containing the API token secret. Defaults to "default".
- api-token-secret-namespace: "default"
- # The default organization to look for repositories under when using the authenticated API,
- # if not specified in the resolver parameters. Optional.
- default-org: ""
- ---
- # Copyright 2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: hubresolver-config
- namespace: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- data:
- # the default Tekton Hub catalog from where to pull the resource.
- default-tekton-hub-catalog: "Tekton"
- # the default Artifact Hub Task catalog from where to pull the resource.
- default-artifact-hub-task-catalog: "tekton-catalog-tasks"
- # the default Artifact Hub Pipeline catalog from where to pull the resource.
- default-artifact-hub-pipeline-catalog: "tekton-catalog-pipelines"
- # the default layer kind in the hub image.
- default-kind: "task"
- # the default hub source to pull the resource from.
- default-type: "artifact"
- ---
- # Copyright 2022 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: tekton-pipelines-remote-resolvers
- namespace: tekton-pipelines-resolvers
- labels:
- app.kubernetes.io/name: resolvers
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/version: "v0.43.0"
- app.kubernetes.io/part-of: tekton-pipelines
- # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
- pipeline.tekton.dev/release: "v0.43.0"
- # labels below are related to istio and should not be used for resource lookup
- version: "v0.43.0"
- spec:
- replicas: 1
- selector:
- matchLabels:
- app.kubernetes.io/name: resolvers
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- template:
- metadata:
- labels:
- app.kubernetes.io/name: resolvers
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/version: "v0.43.0"
- app.kubernetes.io/part-of: tekton-pipelines
- # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
- pipeline.tekton.dev/release: "v0.43.0"
- # labels below are related to istio and should not be used for resource lookup
- app: tekton-pipelines-resolvers
- version: "v0.43.0"
- spec:
- affinity:
- podAntiAffinity:
- preferredDuringSchedulingIgnoredDuringExecution:
- - podAffinityTerm:
- labelSelector:
- matchLabels:
- app.kubernetes.io/name: resolvers
- app.kubernetes.io/component: resolvers
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- topologyKey: kubernetes.io/hostname
- weight: 100
- serviceAccountName: tekton-pipelines-resolvers
- containers:
- - name: controller
- image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/resolvers:v0.43.0@sha256:5d09d332306e7efa92a40503a793eac9f164a93b21f13385e6e322e26e55065b
- resources:
- requests:
- cpu: 100m
- memory: 100Mi
- limits:
- cpu: 1000m
- memory: 1000Mi
- ports:
- - name: metrics
- containerPort: 9090
- env:
- - name: SYSTEM_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- # If you are changing these names, you will also need to update
- # the controller's Role in 200-role.yaml to include the new
- # values in the "configmaps" "get" rule.
- - name: CONFIG_LOGGING_NAME
- value: config-logging
- - name: CONFIG_OBSERVABILITY_NAME
- value: config-observability
- - name: CONFIG_FEATURE_FLAGS_NAME
- value: feature-flags
- - name: CONFIG_LEADERELECTION_NAME
- value: config-leader-election
- - name: METRICS_DOMAIN
- value: tekton.dev/resolution
- # Override this env var to set a private hub api endpoint
- - name: ARTIFACT_HUB_API
- value: "https://artifacthub.io/"
- securityContext:
- allowPrivilegeEscalation: false
- readOnlyRootFilesystem: true
- runAsNonRoot: true
- capabilities:
- drop:
- - "ALL"
- seccompProfile:
- type: RuntimeDefault
- ---
- # Copyright 2020 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: autoscaling/v2
- kind: HorizontalPodAutoscaler
- metadata:
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/name: webhook
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/version: "v0.43.0"
- app.kubernetes.io/part-of: tekton-pipelines
- # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
- pipeline.tekton.dev/release: "v0.43.0"
- # labels below are related to istio and should not be used for resource lookup
- version: "v0.43.0"
- spec:
- minReplicas: 1
- maxReplicas: 5
- scaleTargetRef:
- apiVersion: apps/v1
- kind: Deployment
- name: tekton-pipelines-webhook
- metrics:
- - type: Resource
- resource:
- name: cpu
- target:
- type: Utilization
- averageUtilization: 100
- ---
- # Copyright 2020 The Tekton Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- # Note: the Deployment name must be the same as the Service name specified in
- # config/400-webhook-service.yaml. If you change this name, you must also
- # change the value of WEBHOOK_SERVICE_NAME below.
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- labels:
- app.kubernetes.io/name: webhook
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/version: "v0.43.0"
- app.kubernetes.io/part-of: tekton-pipelines
- # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
- pipeline.tekton.dev/release: "v0.43.0"
- # labels below are related to istio and should not be used for resource lookup
- version: "v0.43.0"
- spec:
- selector:
- matchLabels:
- app.kubernetes.io/name: webhook
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- template:
- metadata:
- labels:
- app.kubernetes.io/name: webhook
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/version: "v0.43.0"
- app.kubernetes.io/part-of: tekton-pipelines
- # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
- pipeline.tekton.dev/release: "v0.43.0"
- # labels below are related to istio and should not be used for resource lookup
- app: tekton-pipelines-webhook
- version: "v0.43.0"
- spec:
- affinity:
- nodeAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- nodeSelectorTerms:
- - matchExpressions:
- - key: kubernetes.io/os
- operator: NotIn
- values:
- - windows
- podAntiAffinity:
- preferredDuringSchedulingIgnoredDuringExecution:
- - podAffinityTerm:
- labelSelector:
- matchLabels:
- app.kubernetes.io/name: webhook
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- topologyKey: kubernetes.io/hostname
- weight: 100
- serviceAccountName: tekton-pipelines-webhook
- containers:
- - name: webhook
- # This is the Go import path for the binary that is containerized
- # and substituted here.
- image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/webhook:v0.43.0@sha256:3bb1035120f7eccf0ad8c36b08f74ad48797e128313a1d2cbe2977a73d40c1e1
- # Resource request required for autoscaler to take any action for a metric
- resources:
- requests:
- cpu: 100m
- memory: 100Mi
- limits:
- cpu: 500m
- memory: 500Mi
- env:
- - name: SYSTEM_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- # If you are changing these names, you will also need to update
- # the webhook's Role in 200-role.yaml to include the new
- # values in the "configmaps" "get" rule.
- - name: CONFIG_LOGGING_NAME
- value: config-logging
- - name: CONFIG_OBSERVABILITY_NAME
- value: config-observability
- - name: CONFIG_LEADERELECTION_NAME
- value: config-leader-election
- - name: CONFIG_FEATURE_FLAGS_NAME
- value: feature-flags
- # If you change WEBHOOK_PORT, you will also need to change the
- # containerPort "https-webhook" to the same value.
- - name: WEBHOOK_PORT
- value: "8443"
- - name: WEBHOOK_SERVICE_NAME
- value: tekton-pipelines-webhook
- - name: WEBHOOK_SECRET_NAME
- value: webhook-certs
- - name: METRICS_DOMAIN
- value: tekton.dev/pipeline
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - "ALL"
- # User 65532 is the distroless nonroot user ID
- runAsUser: 65532
- runAsGroup: 65532
- runAsNonRoot: true
- seccompProfile:
- type: RuntimeDefault
- ports:
- - name: metrics
- containerPort: 9090
- - name: profiling
- containerPort: 8008
- # This must match the value of the environment variable WEBHOOK_PORT.
- - name: https-webhook
- containerPort: 8443
- - name: probes
- containerPort: 8080
- livenessProbe:
- httpGet:
- path: /health
- port: probes
- scheme: HTTP
- initialDelaySeconds: 5
- periodSeconds: 10
- timeoutSeconds: 5
- readinessProbe:
- httpGet:
- path: /readiness
- port: probes
- scheme: HTTP
- initialDelaySeconds: 5
- periodSeconds: 10
- timeoutSeconds: 5
- ---
- apiVersion: v1
- kind: Service
- metadata:
- labels:
- app.kubernetes.io/name: webhook
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/version: "v0.43.0"
- app.kubernetes.io/part-of: tekton-pipelines
- # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
- pipeline.tekton.dev/release: "v0.43.0"
- # labels below are related to istio and should not be used for resource lookup
- app: tekton-pipelines-webhook
- version: "v0.43.0"
- name: tekton-pipelines-webhook
- namespace: tekton-pipelines
- spec:
- ports:
- # Define metrics and profiling for them to be accessible within service meshes.
- - name: http-metrics
- port: 9090
- targetPort: 9090
- - name: http-profiling
- port: 8008
- targetPort: 8008
- - name: https-webhook
- port: 443
- targetPort: https-webhook
- - name: probes
- port: 8080
- selector:
- app.kubernetes.io/name: webhook
- app.kubernetes.io/component: webhook
- app.kubernetes.io/instance: default
- app.kubernetes.io/part-of: tekton-pipelines
- ---
|