release.yaml 109 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023
  1. # Copyright 2019 The Tekton Authors
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. apiVersion: v1
  15. kind: Namespace
  16. metadata:
  17. name: tekton-pipelines
  18. labels:
  19. app.kubernetes.io/instance: default
  20. app.kubernetes.io/part-of: tekton-pipelines
  21. pod-security.kubernetes.io/enforce: restricted
  22. ---
  23. # Copyright 2020-2022 The Tekton Authors
  24. #
  25. # Licensed under the Apache License, Version 2.0 (the "License");
  26. # you may not use this file except in compliance with the License.
  27. # You may obtain a copy of the License at
  28. #
  29. # https://www.apache.org/licenses/LICENSE-2.0
  30. #
  31. # Unless required by applicable law or agreed to in writing, software
  32. # distributed under the License is distributed on an "AS IS" BASIS,
  33. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  34. # See the License for the specific language governing permissions and
  35. # limitations under the License.
  36. kind: ClusterRole
  37. apiVersion: rbac.authorization.k8s.io/v1
  38. metadata:
  39. name: tekton-pipelines-controller-cluster-access
  40. labels:
  41. app.kubernetes.io/component: controller
  42. app.kubernetes.io/instance: default
  43. app.kubernetes.io/part-of: tekton-pipelines
  44. rules:
  45. - apiGroups: [""]
  46. # Controller needs to watch Pods created by TaskRuns to see them progress.
  47. resources: ["pods"]
  48. verbs: ["list", "watch"]
  49. # Controller needs cluster access to all of the CRDs that it is responsible for
  50. # managing.
  51. - apiGroups: ["tekton.dev"]
  52. resources: ["tasks", "clustertasks", "taskruns", "pipelines", "pipelineruns", "pipelineresources", "runs", "customruns"]
  53. verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
  54. - apiGroups: ["tekton.dev"]
  55. resources: ["verificationpolicies"]
  56. verbs: ["get", "list", "watch"]
  57. - apiGroups: ["tekton.dev"]
  58. resources: ["taskruns/finalizers", "pipelineruns/finalizers", "runs/finalizers", "customruns/finalizers"]
  59. verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
  60. - apiGroups: ["tekton.dev"]
  61. resources: ["tasks/status", "clustertasks/status", "taskruns/status", "pipelines/status", "pipelineruns/status", "pipelineresources/status", "runs/status", "customruns/status", "verificationpolicies/status"]
  62. verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
  63. # resolution.tekton.dev
  64. - apiGroups: ["resolution.tekton.dev"]
  65. resources: ["resolutionrequests", "resolutionrequests/status"]
  66. verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
  67. ---
  68. kind: ClusterRole
  69. apiVersion: rbac.authorization.k8s.io/v1
  70. metadata:
  71. # This is the access that the controller needs on a per-namespace basis.
  72. name: tekton-pipelines-controller-tenant-access
  73. labels:
  74. app.kubernetes.io/component: controller
  75. app.kubernetes.io/instance: default
  76. app.kubernetes.io/part-of: tekton-pipelines
  77. rules:
  78. # Read-write access to create Pods and PVCs (for Workspaces)
  79. - apiGroups: [""]
  80. resources: ["pods", "persistentvolumeclaims"]
  81. verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
  82. # Write permissions to publish events.
  83. - apiGroups: [""]
  84. resources: ["events"]
  85. verbs: ["create", "update", "patch"]
  86. # Read-only access to these.
  87. - apiGroups: [""]
  88. resources: ["configmaps", "limitranges", "secrets", "serviceaccounts"]
  89. verbs: ["get", "list", "watch"]
  90. # Read-write access to StatefulSets for Affinity Assistant.
  91. - apiGroups: ["apps"]
  92. resources: ["statefulsets"]
  93. verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
  94. ---
  95. kind: ClusterRole
  96. apiVersion: rbac.authorization.k8s.io/v1
  97. metadata:
  98. name: tekton-pipelines-webhook-cluster-access
  99. labels:
  100. app.kubernetes.io/component: webhook
  101. app.kubernetes.io/instance: default
  102. app.kubernetes.io/part-of: tekton-pipelines
  103. rules:
  104. # The webhook needs to be able to get and update customresourcedefinitions,
  105. # mainly to update the webhook certificates.
  106. - apiGroups: ["apiextensions.k8s.io"]
  107. resources: ["customresourcedefinitions", "customresourcedefinitions/status"]
  108. verbs: ["get", "update", "patch"]
  109. resourceNames:
  110. - pipelines.tekton.dev
  111. - pipelineruns.tekton.dev
  112. - runs.tekton.dev
  113. - tasks.tekton.dev
  114. - clustertasks.tekton.dev
  115. - taskruns.tekton.dev
  116. - pipelineresources.tekton.dev
  117. - resolutionrequests.resolution.tekton.dev
  118. - customruns.tekton.dev
  119. - verificationpolicies.tekton.dev
  120. # knative.dev/pkg needs list/watch permissions to set up informers for the webhook.
  121. - apiGroups: ["apiextensions.k8s.io"]
  122. resources: ["customresourcedefinitions"]
  123. verbs: ["list", "watch"]
  124. - apiGroups: ["admissionregistration.k8s.io"]
  125. # The webhook performs a reconciliation on these two resources and continuously
  126. # updates configuration.
  127. resources: ["mutatingwebhookconfigurations", "validatingwebhookconfigurations"]
  128. # knative starts informers on these things, which is why we need get, list and watch.
  129. verbs: ["list", "watch"]
  130. - apiGroups: ["admissionregistration.k8s.io"]
  131. resources: ["mutatingwebhookconfigurations"]
  132. # This mutating webhook is responsible for applying defaults to tekton objects
  133. # as they are received.
  134. resourceNames: ["webhook.pipeline.tekton.dev"]
  135. # When there are changes to the configs or secrets, knative updates the mutatingwebhook config
  136. # with the updated certificates or the refreshed set of rules.
  137. verbs: ["get", "update", "delete"]
  138. - apiGroups: ["admissionregistration.k8s.io"]
  139. resources: ["validatingwebhookconfigurations"]
  140. # validation.webhook.pipeline.tekton.dev performs schema validation when you, for example, create TaskRuns.
  141. # config.webhook.pipeline.tekton.dev validates the logging configuration against knative's logging structure
  142. resourceNames: ["validation.webhook.pipeline.tekton.dev", "config.webhook.pipeline.tekton.dev"]
  143. # When there are changes to the configs or secrets, knative updates the validatingwebhook config
  144. # with the updated certificates or the refreshed set of rules.
  145. verbs: ["get", "update", "delete"]
  146. - apiGroups: [""]
  147. resources: ["namespaces"]
  148. verbs: ["get"]
  149. # The webhook configured the namespace as the OwnerRef on various cluster-scoped resources,
  150. # which requires we can Get the system namespace.
  151. resourceNames: ["tekton-pipelines"]
  152. - apiGroups: [""]
  153. resources: ["namespaces/finalizers"]
  154. verbs: ["update"]
  155. # The webhook configured the namespace as the OwnerRef on various cluster-scoped resources,
  156. # which requires we can update the system namespace finalizers.
  157. resourceNames: ["tekton-pipelines"]
  158. ---
  159. # Copyright 2020 The Tekton Authors
  160. #
  161. # Licensed under the Apache License, Version 2.0 (the "License");
  162. # you may not use this file except in compliance with the License.
  163. # You may obtain a copy of the License at
  164. #
  165. # https://www.apache.org/licenses/LICENSE-2.0
  166. #
  167. # Unless required by applicable law or agreed to in writing, software
  168. # distributed under the License is distributed on an "AS IS" BASIS,
  169. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  170. # See the License for the specific language governing permissions and
  171. # limitations under the License.
  172. kind: Role
  173. apiVersion: rbac.authorization.k8s.io/v1
  174. metadata:
  175. name: tekton-pipelines-controller
  176. namespace: tekton-pipelines
  177. labels:
  178. app.kubernetes.io/component: controller
  179. app.kubernetes.io/instance: default
  180. app.kubernetes.io/part-of: tekton-pipelines
  181. rules:
  182. - apiGroups: [""]
  183. resources: ["configmaps"]
  184. verbs: ["list", "watch"]
  185. # The controller needs access to these configmaps for logging information and runtime configuration.
  186. - apiGroups: [""]
  187. resources: ["configmaps"]
  188. verbs: ["get"]
  189. resourceNames: ["config-logging", "config-observability", "config-artifact-bucket", "config-artifact-pvc", "feature-flags", "config-leader-election", "config-registry-cert"]
  190. ---
  191. kind: Role
  192. apiVersion: rbac.authorization.k8s.io/v1
  193. metadata:
  194. name: tekton-pipelines-webhook
  195. namespace: tekton-pipelines
  196. labels:
  197. app.kubernetes.io/component: webhook
  198. app.kubernetes.io/instance: default
  199. app.kubernetes.io/part-of: tekton-pipelines
  200. rules:
  201. - apiGroups: [""]
  202. resources: ["configmaps"]
  203. verbs: ["list", "watch"]
  204. # The webhook needs access to these configmaps for logging information.
  205. - apiGroups: [""]
  206. resources: ["configmaps"]
  207. verbs: ["get"]
  208. resourceNames: ["config-logging", "config-observability", "config-leader-election", "feature-flags"]
  209. - apiGroups: [""]
  210. resources: ["secrets"]
  211. verbs: ["list", "watch"]
  212. # The webhook daemon makes a reconciliation loop on webhook-certs. Whenever
  213. # the secret changes it updates the webhook configurations with the certificates
  214. # stored in the secret.
  215. - apiGroups: [""]
  216. resources: ["secrets"]
  217. verbs: ["get", "update"]
  218. resourceNames: ["webhook-certs"]
  219. ---
  220. kind: Role
  221. apiVersion: rbac.authorization.k8s.io/v1
  222. metadata:
  223. name: tekton-pipelines-leader-election
  224. namespace: tekton-pipelines
  225. labels:
  226. app.kubernetes.io/instance: default
  227. app.kubernetes.io/part-of: tekton-pipelines
  228. rules:
  229. # We uses leases for leaderelection
  230. - apiGroups: ["coordination.k8s.io"]
  231. resources: ["leases"]
  232. verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
  233. ---
  234. apiVersion: rbac.authorization.k8s.io/v1
  235. kind: Role
  236. metadata:
  237. name: tekton-pipelines-info
  238. namespace: tekton-pipelines
  239. labels:
  240. app.kubernetes.io/instance: default
  241. app.kubernetes.io/part-of: tekton-pipelines
  242. rules:
  243. # All system:authenticated users needs to have access
  244. # of the pipelines-info ConfigMap even if they don't
  245. # have access to the other resources present in the
  246. # installed namespace.
  247. - apiGroups: [""]
  248. resources: ["configmaps"]
  249. resourceNames: ["pipelines-info"]
  250. verbs: ["get"]
  251. ---
  252. # Copyright 2019 The Tekton Authors
  253. #
  254. # Licensed under the Apache License, Version 2.0 (the "License");
  255. # you may not use this file except in compliance with the License.
  256. # You may obtain a copy of the License at
  257. #
  258. # http://www.apache.org/licenses/LICENSE-2.0
  259. #
  260. # Unless required by applicable law or agreed to in writing, software
  261. # distributed under the License is distributed on an "AS IS" BASIS,
  262. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  263. # See the License for the specific language governing permissions and
  264. # limitations under the License.
  265. apiVersion: v1
  266. kind: ServiceAccount
  267. metadata:
  268. name: tekton-pipelines-controller
  269. namespace: tekton-pipelines
  270. labels:
  271. app.kubernetes.io/component: controller
  272. app.kubernetes.io/instance: default
  273. app.kubernetes.io/part-of: tekton-pipelines
  274. ---
  275. apiVersion: v1
  276. kind: ServiceAccount
  277. metadata:
  278. name: tekton-pipelines-webhook
  279. namespace: tekton-pipelines
  280. labels:
  281. app.kubernetes.io/component: webhook
  282. app.kubernetes.io/instance: default
  283. app.kubernetes.io/part-of: tekton-pipelines
  284. ---
  285. # Copyright 2019 The Tekton Authors
  286. #
  287. # Licensed under the Apache License, Version 2.0 (the "License");
  288. # you may not use this file except in compliance with the License.
  289. # You may obtain a copy of the License at
  290. #
  291. # http://www.apache.org/licenses/LICENSE-2.0
  292. #
  293. # Unless required by applicable law or agreed to in writing, software
  294. # distributed under the License is distributed on an "AS IS" BASIS,
  295. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  296. # See the License for the specific language governing permissions and
  297. # limitations under the License.
  298. apiVersion: rbac.authorization.k8s.io/v1
  299. kind: ClusterRoleBinding
  300. metadata:
  301. name: tekton-pipelines-controller-cluster-access
  302. labels:
  303. app.kubernetes.io/component: controller
  304. app.kubernetes.io/instance: default
  305. app.kubernetes.io/part-of: tekton-pipelines
  306. subjects:
  307. - kind: ServiceAccount
  308. name: tekton-pipelines-controller
  309. namespace: tekton-pipelines
  310. roleRef:
  311. kind: ClusterRole
  312. name: tekton-pipelines-controller-cluster-access
  313. apiGroup: rbac.authorization.k8s.io
  314. ---
  315. # If this ClusterRoleBinding is replaced with a RoleBinding
  316. # then the ClusterRole would be namespaced. The access described by
  317. # the tekton-pipelines-controller-tenant-access ClusterRole would
  318. # be scoped to individual tenant namespaces.
  319. apiVersion: rbac.authorization.k8s.io/v1
  320. kind: ClusterRoleBinding
  321. metadata:
  322. name: tekton-pipelines-controller-tenant-access
  323. labels:
  324. app.kubernetes.io/component: controller
  325. app.kubernetes.io/instance: default
  326. app.kubernetes.io/part-of: tekton-pipelines
  327. subjects:
  328. - kind: ServiceAccount
  329. name: tekton-pipelines-controller
  330. namespace: tekton-pipelines
  331. roleRef:
  332. kind: ClusterRole
  333. name: tekton-pipelines-controller-tenant-access
  334. apiGroup: rbac.authorization.k8s.io
  335. ---
  336. apiVersion: rbac.authorization.k8s.io/v1
  337. kind: ClusterRoleBinding
  338. metadata:
  339. name: tekton-pipelines-webhook-cluster-access
  340. labels:
  341. app.kubernetes.io/component: webhook
  342. app.kubernetes.io/instance: default
  343. app.kubernetes.io/part-of: tekton-pipelines
  344. subjects:
  345. - kind: ServiceAccount
  346. name: tekton-pipelines-webhook
  347. namespace: tekton-pipelines
  348. roleRef:
  349. kind: ClusterRole
  350. name: tekton-pipelines-webhook-cluster-access
  351. apiGroup: rbac.authorization.k8s.io
  352. ---
  353. # Copyright 2020 The Tekton Authors
  354. #
  355. # Licensed under the Apache License, Version 2.0 (the "License");
  356. # you may not use this file except in compliance with the License.
  357. # You may obtain a copy of the License at
  358. #
  359. # http://www.apache.org/licenses/LICENSE-2.0
  360. #
  361. # Unless required by applicable law or agreed to in writing, software
  362. # distributed under the License is distributed on an "AS IS" BASIS,
  363. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  364. # See the License for the specific language governing permissions and
  365. # limitations under the License.
  366. apiVersion: rbac.authorization.k8s.io/v1
  367. kind: RoleBinding
  368. metadata:
  369. name: tekton-pipelines-controller
  370. namespace: tekton-pipelines
  371. labels:
  372. app.kubernetes.io/component: controller
  373. app.kubernetes.io/instance: default
  374. app.kubernetes.io/part-of: tekton-pipelines
  375. subjects:
  376. - kind: ServiceAccount
  377. name: tekton-pipelines-controller
  378. namespace: tekton-pipelines
  379. roleRef:
  380. kind: Role
  381. name: tekton-pipelines-controller
  382. apiGroup: rbac.authorization.k8s.io
  383. ---
  384. apiVersion: rbac.authorization.k8s.io/v1
  385. kind: RoleBinding
  386. metadata:
  387. name: tekton-pipelines-webhook
  388. namespace: tekton-pipelines
  389. labels:
  390. app.kubernetes.io/component: webhook
  391. app.kubernetes.io/instance: default
  392. app.kubernetes.io/part-of: tekton-pipelines
  393. subjects:
  394. - kind: ServiceAccount
  395. name: tekton-pipelines-webhook
  396. namespace: tekton-pipelines
  397. roleRef:
  398. kind: Role
  399. name: tekton-pipelines-webhook
  400. apiGroup: rbac.authorization.k8s.io
  401. ---
  402. apiVersion: rbac.authorization.k8s.io/v1
  403. kind: RoleBinding
  404. metadata:
  405. name: tekton-pipelines-controller-leaderelection
  406. namespace: tekton-pipelines
  407. labels:
  408. app.kubernetes.io/component: controller
  409. app.kubernetes.io/instance: default
  410. app.kubernetes.io/part-of: tekton-pipelines
  411. subjects:
  412. - kind: ServiceAccount
  413. name: tekton-pipelines-controller
  414. namespace: tekton-pipelines
  415. roleRef:
  416. kind: Role
  417. name: tekton-pipelines-leader-election
  418. apiGroup: rbac.authorization.k8s.io
  419. ---
  420. apiVersion: rbac.authorization.k8s.io/v1
  421. kind: RoleBinding
  422. metadata:
  423. name: tekton-pipelines-webhook-leaderelection
  424. namespace: tekton-pipelines
  425. labels:
  426. app.kubernetes.io/component: webhook
  427. app.kubernetes.io/instance: default
  428. app.kubernetes.io/part-of: tekton-pipelines
  429. subjects:
  430. - kind: ServiceAccount
  431. name: tekton-pipelines-webhook
  432. namespace: tekton-pipelines
  433. roleRef:
  434. kind: Role
  435. name: tekton-pipelines-leader-election
  436. apiGroup: rbac.authorization.k8s.io
  437. ---
  438. apiVersion: rbac.authorization.k8s.io/v1
  439. kind: RoleBinding
  440. metadata:
  441. name: tekton-pipelines-info
  442. namespace: tekton-pipelines
  443. labels:
  444. app.kubernetes.io/instance: default
  445. app.kubernetes.io/part-of: tekton-pipelines
  446. subjects:
  447. # Giving all system:authenticated users the access of the
  448. # ConfigMap which contains version information.
  449. - kind: Group
  450. name: system:authenticated
  451. apiGroup: rbac.authorization.k8s.io
  452. roleRef:
  453. apiGroup: rbac.authorization.k8s.io
  454. kind: Role
  455. name: tekton-pipelines-info
  456. ---
  457. # Copyright 2019 The Tekton Authors
  458. #
  459. # Licensed under the Apache License, Version 2.0 (the "License");
  460. # you may not use this file except in compliance with the License.
  461. # You may obtain a copy of the License at
  462. #
  463. # https://www.apache.org/licenses/LICENSE-2.0
  464. #
  465. # Unless required by applicable law or agreed to in writing, software
  466. # distributed under the License is distributed on an "AS IS" BASIS,
  467. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  468. # See the License for the specific language governing permissions and
  469. # limitations under the License.
  470. apiVersion: apiextensions.k8s.io/v1
  471. kind: CustomResourceDefinition
  472. metadata:
  473. name: clustertasks.tekton.dev
  474. labels:
  475. app.kubernetes.io/instance: default
  476. app.kubernetes.io/part-of: tekton-pipelines
  477. pipeline.tekton.dev/release: "v0.43.0"
  478. version: "v0.43.0"
  479. spec:
  480. group: tekton.dev
  481. preserveUnknownFields: false
  482. versions:
  483. - name: v1beta1
  484. served: true
  485. storage: true
  486. schema:
  487. openAPIV3Schema:
  488. type: object
  489. # One can use x-kubernetes-preserve-unknown-fields: true
  490. # at the root of the schema (and inside any properties, additionalProperties)
  491. # to get the traditional CRD behaviour that nothing is pruned, despite
  492. # setting spec.preserveUnknownProperties: false.
  493. #
  494. # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
  495. # See issue: https://github.com/knative/serving/issues/912
  496. x-kubernetes-preserve-unknown-fields: true
  497. # Opt into the status subresource so metadata.generation
  498. # starts to increment
  499. subresources:
  500. status: {}
  501. names:
  502. kind: ClusterTask
  503. plural: clustertasks
  504. singular: clustertask
  505. categories:
  506. - tekton
  507. - tekton-pipelines
  508. scope: Cluster
  509. conversion:
  510. strategy: Webhook
  511. webhook:
  512. conversionReviewVersions: ["v1beta1"]
  513. clientConfig:
  514. service:
  515. name: tekton-pipelines-webhook
  516. namespace: tekton-pipelines
  517. ---
  518. # Copyright 2020 The Tekton Authors
  519. #
  520. # Licensed under the Apache License, Version 2.0 (the "License");
  521. # you may not use this file except in compliance with the License.
  522. # You may obtain a copy of the License at
  523. #
  524. # https://www.apache.org/licenses/LICENSE-2.0
  525. #
  526. # Unless required by applicable law or agreed to in writing, software
  527. # distributed under the License is distributed on an "AS IS" BASIS,
  528. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  529. # See the License for the specific language governing permissions and
  530. # limitations under the License.
  531. apiVersion: apiextensions.k8s.io/v1
  532. kind: CustomResourceDefinition
  533. metadata:
  534. name: customruns.tekton.dev
  535. labels:
  536. app.kubernetes.io/instance: default
  537. app.kubernetes.io/part-of: tekton-pipelines
  538. pipeline.tekton.dev/release: "v0.43.0"
  539. version: "v0.43.0"
  540. spec:
  541. group: tekton.dev
  542. preserveUnknownFields: false
  543. versions:
  544. - name: v1beta1
  545. served: true
  546. storage: true
  547. schema:
  548. openAPIV3Schema:
  549. type: object
  550. # One can use x-kubernetes-preserve-unknown-fields: true
  551. # at the root of the schema (and inside any properties, additionalProperties)
  552. # to get the traditional CRD behaviour that nothing is pruned, despite
  553. # setting spec.preserveUnknownProperties: false.
  554. #
  555. # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
  556. # See issue: https://github.com/knative/serving/issues/912
  557. x-kubernetes-preserve-unknown-fields: true
  558. additionalPrinterColumns:
  559. - name: Succeeded
  560. type: string
  561. jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
  562. - name: Reason
  563. type: string
  564. jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason"
  565. - name: StartTime
  566. type: date
  567. jsonPath: .status.startTime
  568. - name: CompletionTime
  569. type: date
  570. jsonPath: .status.completionTime
  571. # Opt into the status subresource so metadata.generation
  572. # starts to increment
  573. subresources:
  574. status: {}
  575. names:
  576. kind: CustomRun
  577. plural: customruns
  578. singular: customrun
  579. categories:
  580. - tekton
  581. - tekton-pipelines
  582. scope: Namespaced
  583. ---
  584. # Copyright 2019 The Tekton Authors
  585. #
  586. # Licensed under the Apache License, Version 2.0 (the "License");
  587. # you may not use this file except in compliance with the License.
  588. # You may obtain a copy of the License at
  589. #
  590. # https://www.apache.org/licenses/LICENSE-2.0
  591. #
  592. # Unless required by applicable law or agreed to in writing, software
  593. # distributed under the License is distributed on an "AS IS" BASIS,
  594. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  595. # See the License for the specific language governing permissions and
  596. # limitations under the License.
  597. apiVersion: apiextensions.k8s.io/v1
  598. kind: CustomResourceDefinition
  599. metadata:
  600. name: pipelines.tekton.dev
  601. labels:
  602. app.kubernetes.io/instance: default
  603. app.kubernetes.io/part-of: tekton-pipelines
  604. pipeline.tekton.dev/release: "v0.43.0"
  605. version: "v0.43.0"
  606. spec:
  607. group: tekton.dev
  608. preserveUnknownFields: false
  609. versions:
  610. - name: v1beta1
  611. served: true
  612. storage: true
  613. subresources:
  614. status: {}
  615. schema:
  616. openAPIV3Schema:
  617. type: object
  618. # One can use x-kubernetes-preserve-unknown-fields: true
  619. # at the root of the schema (and inside any properties, additionalProperties)
  620. # to get the traditional CRD behaviour that nothing is pruned, despite
  621. # setting spec.preserveUnknownProperties: false.
  622. #
  623. # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
  624. # See issue: https://github.com/knative/serving/issues/912
  625. x-kubernetes-preserve-unknown-fields: true
  626. - name: v1
  627. served: true
  628. storage: false
  629. schema:
  630. openAPIV3Schema:
  631. type: object
  632. # OpenAPIV3 schema allows Kubernetes to perform validation on the schema fields
  633. # and use the schema in tooling such as `kubectl explain`.
  634. # Using "x-kubernetes-preserve-unknown-fields: true"
  635. # at the root of the schema (or within it) allows arbitrary fields.
  636. # We currently perform our own validation separately.
  637. # See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#specifying-a-structural-schema
  638. # for more info.
  639. x-kubernetes-preserve-unknown-fields: true
  640. # Opt into the status subresource so metadata.generation
  641. # starts to increment
  642. subresources:
  643. status: {}
  644. names:
  645. kind: Pipeline
  646. plural: pipelines
  647. singular: pipeline
  648. categories:
  649. - tekton
  650. - tekton-pipelines
  651. scope: Namespaced
  652. conversion:
  653. strategy: Webhook
  654. webhook:
  655. conversionReviewVersions: ["v1beta1", "v1"]
  656. clientConfig:
  657. service:
  658. name: tekton-pipelines-webhook
  659. namespace: tekton-pipelines
  660. ---
  661. # Copyright 2019 The Tekton Authors
  662. #
  663. # Licensed under the Apache License, Version 2.0 (the "License");
  664. # you may not use this file except in compliance with the License.
  665. # You may obtain a copy of the License at
  666. #
  667. # https://www.apache.org/licenses/LICENSE-2.0
  668. #
  669. # Unless required by applicable law or agreed to in writing, software
  670. # distributed under the License is distributed on an "AS IS" BASIS,
  671. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  672. # See the License for the specific language governing permissions and
  673. # limitations under the License.
  674. apiVersion: apiextensions.k8s.io/v1
  675. kind: CustomResourceDefinition
  676. metadata:
  677. name: pipelineruns.tekton.dev
  678. labels:
  679. app.kubernetes.io/instance: default
  680. app.kubernetes.io/part-of: tekton-pipelines
  681. pipeline.tekton.dev/release: "v0.43.0"
  682. version: "v0.43.0"
  683. spec:
  684. group: tekton.dev
  685. preserveUnknownFields: false
  686. versions:
  687. - name: v1beta1
  688. served: true
  689. storage: true
  690. schema:
  691. openAPIV3Schema:
  692. type: object
  693. # One can use x-kubernetes-preserve-unknown-fields: true
  694. # at the root of the schema (and inside any properties, additionalProperties)
  695. # to get the traditional CRD behaviour that nothing is pruned, despite
  696. # setting spec.preserveUnknownProperties: false.
  697. #
  698. # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
  699. # See issue: https://github.com/knative/serving/issues/912
  700. x-kubernetes-preserve-unknown-fields: true
  701. additionalPrinterColumns:
  702. - name: Succeeded
  703. type: string
  704. jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
  705. - name: Reason
  706. type: string
  707. jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason"
  708. - name: StartTime
  709. type: date
  710. jsonPath: .status.startTime
  711. - name: CompletionTime
  712. type: date
  713. jsonPath: .status.completionTime
  714. # Opt into the status subresource so metadata.generation
  715. # starts to increment
  716. subresources:
  717. status: {}
  718. - name: v1
  719. served: true
  720. storage: false
  721. schema:
  722. openAPIV3Schema:
  723. type: object
  724. # One can use x-kubernetes-preserve-unknown-fields: true
  725. # at the root of the schema (and inside any properties, additionalProperties)
  726. # to get the traditional CRD behaviour that nothing is pruned, despite
  727. # setting spec.preserveUnknownProperties: false.
  728. #
  729. # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
  730. # See issue: https://github.com/knative/serving/issues/912
  731. x-kubernetes-preserve-unknown-fields: true
  732. additionalPrinterColumns:
  733. - name: Succeeded
  734. type: string
  735. jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
  736. - name: Reason
  737. type: string
  738. jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason"
  739. - name: StartTime
  740. type: date
  741. jsonPath: .status.startTime
  742. - name: CompletionTime
  743. type: date
  744. jsonPath: .status.completionTime
  745. # Opt into the status subresource so metadata.generation
  746. # starts to increment
  747. subresources:
  748. status: {}
  749. names:
  750. kind: PipelineRun
  751. plural: pipelineruns
  752. singular: pipelinerun
  753. categories:
  754. - tekton
  755. - tekton-pipelines
  756. shortNames:
  757. - pr
  758. - prs
  759. scope: Namespaced
  760. conversion:
  761. strategy: Webhook
  762. webhook:
  763. conversionReviewVersions: ["v1beta1", "v1"]
  764. clientConfig:
  765. service:
  766. name: tekton-pipelines-webhook
  767. namespace: tekton-pipelines
  768. ---
  769. # Copyright 2022 The Tekton Authors
  770. #
  771. # Licensed under the Apache License, Version 2.0 (the "License");
  772. # you may not use this file except in compliance with the License.
  773. # You may obtain a copy of the License at
  774. #
  775. # https://www.apache.org/licenses/LICENSE-2.0
  776. #
  777. # Unless required by applicable law or agreed to in writing, software
  778. # distributed under the License is distributed on an "AS IS" BASIS,
  779. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  780. # See the License for the specific language governing permissions and
  781. # limitations under the License.
  782. apiVersion: apiextensions.k8s.io/v1
  783. kind: CustomResourceDefinition
  784. metadata:
  785. name: resolutionrequests.resolution.tekton.dev
  786. labels:
  787. resolution.tekton.dev/release: devel
  788. spec:
  789. group: resolution.tekton.dev
  790. scope: Namespaced
  791. names:
  792. kind: ResolutionRequest
  793. plural: resolutionrequests
  794. singular: resolutionrequest
  795. categories:
  796. - tekton
  797. - tekton-pipelines
  798. shortNames:
  799. - resolutionrequest
  800. - resolutionrequests
  801. versions:
  802. - name: v1alpha1
  803. served: true
  804. deprecated: true
  805. storage: false
  806. subresources:
  807. status: {}
  808. schema:
  809. openAPIV3Schema:
  810. type: object
  811. # One can use x-kubernetes-preserve-unknown-fields: true
  812. # at the root of the schema (and inside any properties, additionalProperties)
  813. # to get the traditional CRD behaviour that nothing is pruned, despite
  814. # setting spec.preserveUnknownProperties: false.
  815. #
  816. # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
  817. # See issue: https://github.com/knative/serving/issues/912
  818. x-kubernetes-preserve-unknown-fields: true
  819. additionalPrinterColumns:
  820. - name: Succeeded
  821. type: string
  822. jsonPath: ".status.conditions[?(@.type=='Succeeded')].status"
  823. - name: Reason
  824. type: string
  825. jsonPath: ".status.conditions[?(@.type=='Succeeded')].reason"
  826. - name: v1beta1
  827. served: true
  828. storage: true
  829. subresources:
  830. status: {}
  831. schema:
  832. openAPIV3Schema:
  833. type: object
  834. # One can use x-kubernetes-preserve-unknown-fields: true
  835. # at the root of the schema (and inside any properties, additionalProperties)
  836. # to get the traditional CRD behaviour that nothing is pruned, despite
  837. # setting spec.preserveUnknownProperties: false.
  838. #
  839. # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
  840. # See issue: https://github.com/knative/serving/issues/912
  841. x-kubernetes-preserve-unknown-fields: true
  842. additionalPrinterColumns:
  843. - name: OwnerKind
  844. type: string
  845. jsonPath: ".metadata.ownerReferences[0].kind"
  846. - name: Owner
  847. type: string
  848. jsonPath: ".metadata.ownerReferences[0].name"
  849. - name: Succeeded
  850. type: string
  851. jsonPath: ".status.conditions[?(@.type=='Succeeded')].status"
  852. - name: Reason
  853. type: string
  854. jsonPath: ".status.conditions[?(@.type=='Succeeded')].reason"
  855. - name: StartTime
  856. type: string
  857. jsonPath: .metadata.creationTimestamp
  858. - name: EndTime
  859. type: string
  860. jsonPath: .status.conditions[?(@.type=='Succeeded')].lastTransitionTime
  861. conversion:
  862. strategy: Webhook
  863. webhook:
  864. conversionReviewVersions: ["v1alpha1", "v1beta1"]
  865. clientConfig:
  866. service:
  867. name: tekton-pipelines-webhook
  868. namespace: tekton-pipelines
  869. ---
  870. # Copyright 2019 The Tekton Authors
  871. #
  872. # Licensed under the Apache License, Version 2.0 (the "License");
  873. # you may not use this file except in compliance with the License.
  874. # You may obtain a copy of the License at
  875. #
  876. # https://www.apache.org/licenses/LICENSE-2.0
  877. #
  878. # Unless required by applicable law or agreed to in writing, software
  879. # distributed under the License is distributed on an "AS IS" BASIS,
  880. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  881. # See the License for the specific language governing permissions and
  882. # limitations under the License.
  883. apiVersion: apiextensions.k8s.io/v1
  884. kind: CustomResourceDefinition
  885. metadata:
  886. name: pipelineresources.tekton.dev
  887. labels:
  888. app.kubernetes.io/instance: default
  889. app.kubernetes.io/part-of: tekton-pipelines
  890. pipeline.tekton.dev/release: "v0.43.0"
  891. version: "v0.43.0"
  892. spec:
  893. group: tekton.dev
  894. versions:
  895. - name: v1alpha1
  896. served: true
  897. storage: true
  898. schema:
  899. openAPIV3Schema:
  900. type: object
  901. # One can use x-kubernetes-preserve-unknown-fields: true
  902. # at the root of the schema (and inside any properties, additionalProperties)
  903. # to get the traditional CRD behaviour that nothing is pruned, despite
  904. # setting spec.preserveUnknownProperties: false.
  905. #
  906. # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
  907. # See issue: https://github.com/knative/serving/issues/912
  908. x-kubernetes-preserve-unknown-fields: true
  909. # Opt into the status subresource so metadata.generation
  910. # starts to increment
  911. subresources:
  912. status: {}
  913. names:
  914. kind: PipelineResource
  915. plural: pipelineresources
  916. singular: pipelineresource
  917. categories:
  918. - tekton
  919. - tekton-pipelines
  920. scope: Namespaced
  921. ---
  922. # Copyright 2020 The Tekton Authors
  923. #
  924. # Licensed under the Apache License, Version 2.0 (the "License");
  925. # you may not use this file except in compliance with the License.
  926. # You may obtain a copy of the License at
  927. #
  928. # https://www.apache.org/licenses/LICENSE-2.0
  929. #
  930. # Unless required by applicable law or agreed to in writing, software
  931. # distributed under the License is distributed on an "AS IS" BASIS,
  932. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  933. # See the License for the specific language governing permissions and
  934. # limitations under the License.
  935. apiVersion: apiextensions.k8s.io/v1
  936. kind: CustomResourceDefinition
  937. metadata:
  938. name: runs.tekton.dev
  939. labels:
  940. app.kubernetes.io/instance: default
  941. app.kubernetes.io/part-of: tekton-pipelines
  942. pipeline.tekton.dev/release: "v0.43.0"
  943. version: "v0.43.0"
  944. spec:
  945. group: tekton.dev
  946. preserveUnknownFields: false
  947. versions:
  948. - name: v1alpha1
  949. served: true
  950. storage: true
  951. schema:
  952. openAPIV3Schema:
  953. type: object
  954. # One can use x-kubernetes-preserve-unknown-fields: true
  955. # at the root of the schema (and inside any properties, additionalProperties)
  956. # to get the traditional CRD behaviour that nothing is pruned, despite
  957. # setting spec.preserveUnknownProperties: false.
  958. #
  959. # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
  960. # See issue: https://github.com/knative/serving/issues/912
  961. x-kubernetes-preserve-unknown-fields: true
  962. additionalPrinterColumns:
  963. - name: Succeeded
  964. type: string
  965. jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
  966. - name: Reason
  967. type: string
  968. jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason"
  969. - name: StartTime
  970. type: date
  971. jsonPath: .status.startTime
  972. - name: CompletionTime
  973. type: date
  974. jsonPath: .status.completionTime
  975. # Opt into the status subresource so metadata.generation
  976. # starts to increment
  977. subresources:
  978. status: {}
  979. names:
  980. kind: Run
  981. plural: runs
  982. singular: run
  983. categories:
  984. - tekton
  985. - tekton-pipelines
  986. scope: Namespaced
  987. ---
  988. # Copyright 2019 The Tekton Authors
  989. #
  990. # Licensed under the Apache License, Version 2.0 (the "License");
  991. # you may not use this file except in compliance with the License.
  992. # You may obtain a copy of the License at
  993. #
  994. # https://www.apache.org/licenses/LICENSE-2.0
  995. #
  996. # Unless required by applicable law or agreed to in writing, software
  997. # distributed under the License is distributed on an "AS IS" BASIS,
  998. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  999. # See the License for the specific language governing permissions and
  1000. # limitations under the License.
  1001. apiVersion: apiextensions.k8s.io/v1
  1002. kind: CustomResourceDefinition
  1003. metadata:
  1004. name: tasks.tekton.dev
  1005. labels:
  1006. app.kubernetes.io/instance: default
  1007. app.kubernetes.io/part-of: tekton-pipelines
  1008. pipeline.tekton.dev/release: "v0.43.0"
  1009. version: "v0.43.0"
  1010. spec:
  1011. group: tekton.dev
  1012. preserveUnknownFields: false
  1013. versions:
  1014. - name: v1beta1
  1015. served: true
  1016. storage: true
  1017. schema:
  1018. openAPIV3Schema:
  1019. type: object
  1020. # One can use x-kubernetes-preserve-unknown-fields: true
  1021. # at the root of the schema (and inside any properties, additionalProperties)
  1022. # to get the traditional CRD behaviour that nothing is pruned, despite
  1023. # setting spec.preserveUnknownProperties: false.
  1024. #
  1025. # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
  1026. # See issue: https://github.com/knative/serving/issues/912
  1027. x-kubernetes-preserve-unknown-fields: true
  1028. # Opt into the status subresource so metadata.generation
  1029. # starts to increment
  1030. subresources:
  1031. status: {}
  1032. - name: v1
  1033. served: true
  1034. storage: false
  1035. schema:
  1036. openAPIV3Schema:
  1037. type: object
  1038. # TODO(#1461): Add OpenAPIV3 schema
  1039. # OpenAPIV3 schema allows Kubernetes to perform validation on the schema fields
  1040. # and use the schema in tooling such as `kubectl explain`.
  1041. # Using "x-kubernetes-preserve-unknown-fields: true"
  1042. # at the root of the schema (or within it) allows arbitrary fields.
  1043. # We currently perform our own validation separately.
  1044. # See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#specifying-a-structural-schema
  1045. # for more info.
  1046. x-kubernetes-preserve-unknown-fields: true
  1047. # Opt into the status subresource so metadata.generation
  1048. # starts to increment
  1049. subresources:
  1050. status: {}
  1051. names:
  1052. kind: Task
  1053. plural: tasks
  1054. singular: task
  1055. categories:
  1056. - tekton
  1057. - tekton-pipelines
  1058. scope: Namespaced
  1059. conversion:
  1060. strategy: Webhook
  1061. webhook:
  1062. conversionReviewVersions: ["v1beta1", "v1"]
  1063. clientConfig:
  1064. service:
  1065. name: tekton-pipelines-webhook
  1066. namespace: tekton-pipelines
  1067. ---
  1068. # Copyright 2019 The Tekton Authors
  1069. #
  1070. # Licensed under the Apache License, Version 2.0 (the "License");
  1071. # you may not use this file except in compliance with the License.
  1072. # You may obtain a copy of the License at
  1073. #
  1074. # https://www.apache.org/licenses/LICENSE-2.0
  1075. #
  1076. # Unless required by applicable law or agreed to in writing, software
  1077. # distributed under the License is distributed on an "AS IS" BASIS,
  1078. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1079. # See the License for the specific language governing permissions and
  1080. # limitations under the License.
  1081. apiVersion: apiextensions.k8s.io/v1
  1082. kind: CustomResourceDefinition
  1083. metadata:
  1084. name: taskruns.tekton.dev
  1085. labels:
  1086. app.kubernetes.io/instance: default
  1087. app.kubernetes.io/part-of: tekton-pipelines
  1088. pipeline.tekton.dev/release: "v0.43.0"
  1089. version: "v0.43.0"
  1090. spec:
  1091. group: tekton.dev
  1092. preserveUnknownFields: false
  1093. versions:
  1094. - name: v1beta1
  1095. served: true
  1096. storage: true
  1097. schema:
  1098. openAPIV3Schema:
  1099. type: object
  1100. # One can use x-kubernetes-preserve-unknown-fields: true
  1101. # at the root of the schema (and inside any properties, additionalProperties)
  1102. # to get the traditional CRD behaviour that nothing is pruned, despite
  1103. # setting spec.preserveUnknownProperties: false.
  1104. #
  1105. # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
  1106. # See issue: https://github.com/knative/serving/issues/912
  1107. x-kubernetes-preserve-unknown-fields: true
  1108. additionalPrinterColumns:
  1109. - name: Succeeded
  1110. type: string
  1111. jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
  1112. - name: Reason
  1113. type: string
  1114. jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason"
  1115. - name: StartTime
  1116. type: date
  1117. jsonPath: .status.startTime
  1118. - name: CompletionTime
  1119. type: date
  1120. jsonPath: .status.completionTime
  1121. # Opt into the status subresource so metadata.generation
  1122. # starts to increment
  1123. subresources:
  1124. status: {}
  1125. - name: v1
  1126. served: true
  1127. storage: false
  1128. schema:
  1129. openAPIV3Schema:
  1130. type: object
  1131. # One can use x-kubernetes-preserve-unknown-fields: true
  1132. # at the root of the schema (and inside any properties, additionalProperties)
  1133. # to get the traditional CRD behaviour that nothing is pruned, despite
  1134. # setting spec.preserveUnknownProperties: false.
  1135. #
  1136. # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
  1137. # See issue: https://github.com/knative/serving/issues/912
  1138. x-kubernetes-preserve-unknown-fields: true
  1139. additionalPrinterColumns:
  1140. - name: Succeeded
  1141. type: string
  1142. jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
  1143. - name: Reason
  1144. type: string
  1145. jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason"
  1146. - name: StartTime
  1147. type: date
  1148. jsonPath: .status.startTime
  1149. - name: CompletionTime
  1150. type: date
  1151. jsonPath: .status.completionTime
  1152. # Opt into the status subresource so metadata.generation
  1153. # starts to increment
  1154. subresources:
  1155. status: {}
  1156. names:
  1157. kind: TaskRun
  1158. plural: taskruns
  1159. singular: taskrun
  1160. categories:
  1161. - tekton
  1162. - tekton-pipelines
  1163. shortNames:
  1164. - tr
  1165. - trs
  1166. scope: Namespaced
  1167. conversion:
  1168. strategy: Webhook
  1169. webhook:
  1170. conversionReviewVersions: ["v1beta1", "v1"]
  1171. clientConfig:
  1172. service:
  1173. name: tekton-pipelines-webhook
  1174. namespace: tekton-pipelines
  1175. ---
  1176. # Copyright 2022 The Tekton Authors
  1177. #
  1178. # Licensed under the Apache License, Version 2.0 (the "License");
  1179. # you may not use this file except in compliance with the License.
  1180. # You may obtain a copy of the License at
  1181. #
  1182. # https://www.apache.org/licenses/LICENSE-2.0
  1183. #
  1184. # Unless required by applicable law or agreed to in writing, software
  1185. # distributed under the License is distributed on an "AS IS" BASIS,
  1186. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1187. # See the License for the specific language governing permissions and
  1188. # limitations under the License.
  1189. apiVersion: apiextensions.k8s.io/v1
  1190. kind: CustomResourceDefinition
  1191. metadata:
  1192. name: verificationpolicies.tekton.dev
  1193. labels:
  1194. app.kubernetes.io/instance: default
  1195. app.kubernetes.io/part-of: tekton-pipelines
  1196. pipeline.tekton.dev/release: "v0.43.0"
  1197. version: "v0.43.0"
  1198. spec:
  1199. group: tekton.dev
  1200. versions:
  1201. - name: v1alpha1
  1202. served: true
  1203. storage: true
  1204. schema:
  1205. openAPIV3Schema:
  1206. type: object
  1207. # One can use x-kubernetes-preserve-unknown-fields: true
  1208. # at the root of the schema (and inside any properties, additionalProperties)
  1209. # to get the traditional CRD behaviour that nothing is pruned, despite
  1210. # setting spec.preserveUnknownProperties: false.
  1211. #
  1212. # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
  1213. # See issue: https://github.com/knative/serving/issues/912
  1214. x-kubernetes-preserve-unknown-fields: true
  1215. names:
  1216. kind: VerificationPolicy
  1217. plural: verificationpolicies
  1218. singular: verificationpolicy
  1219. categories:
  1220. - tekton
  1221. - tekton-pipelines
  1222. scope: Namespaced
  1223. ---
  1224. # Copyright 2020 The Tekton Authors
  1225. #
  1226. # Licensed under the Apache License, Version 2.0 (the "License");
  1227. # you may not use this file except in compliance with the License.
  1228. # You may obtain a copy of the License at
  1229. #
  1230. # https://www.apache.org/licenses/LICENSE-2.0
  1231. #
  1232. # Unless required by applicable law or agreed to in writing, software
  1233. # distributed under the License is distributed on an "AS IS" BASIS,
  1234. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1235. # See the License for the specific language governing permissions and
  1236. # limitations under the License.
  1237. apiVersion: v1
  1238. kind: Secret
  1239. metadata:
  1240. name: webhook-certs
  1241. namespace: tekton-pipelines
  1242. labels:
  1243. app.kubernetes.io/component: webhook
  1244. app.kubernetes.io/instance: default
  1245. app.kubernetes.io/part-of: tekton-pipelines
  1246. pipeline.tekton.dev/release: "v0.43.0"
  1247. # The data is populated at install time.
  1248. ---
  1249. apiVersion: admissionregistration.k8s.io/v1
  1250. kind: ValidatingWebhookConfiguration
  1251. metadata:
  1252. name: validation.webhook.pipeline.tekton.dev
  1253. labels:
  1254. app.kubernetes.io/component: webhook
  1255. app.kubernetes.io/instance: default
  1256. app.kubernetes.io/part-of: tekton-pipelines
  1257. pipeline.tekton.dev/release: "v0.43.0"
  1258. webhooks:
  1259. - admissionReviewVersions: ["v1"]
  1260. clientConfig:
  1261. service:
  1262. name: tekton-pipelines-webhook
  1263. namespace: tekton-pipelines
  1264. failurePolicy: Fail
  1265. sideEffects: None
  1266. name: validation.webhook.pipeline.tekton.dev
  1267. ---
  1268. apiVersion: admissionregistration.k8s.io/v1
  1269. kind: MutatingWebhookConfiguration
  1270. metadata:
  1271. name: webhook.pipeline.tekton.dev
  1272. labels:
  1273. app.kubernetes.io/component: webhook
  1274. app.kubernetes.io/instance: default
  1275. app.kubernetes.io/part-of: tekton-pipelines
  1276. pipeline.tekton.dev/release: "v0.43.0"
  1277. webhooks:
  1278. - admissionReviewVersions: ["v1"]
  1279. clientConfig:
  1280. service:
  1281. name: tekton-pipelines-webhook
  1282. namespace: tekton-pipelines
  1283. failurePolicy: Fail
  1284. sideEffects: None
  1285. name: webhook.pipeline.tekton.dev
  1286. ---
  1287. apiVersion: admissionregistration.k8s.io/v1
  1288. kind: ValidatingWebhookConfiguration
  1289. metadata:
  1290. name: config.webhook.pipeline.tekton.dev
  1291. labels:
  1292. app.kubernetes.io/component: webhook
  1293. app.kubernetes.io/instance: default
  1294. app.kubernetes.io/part-of: tekton-pipelines
  1295. pipeline.tekton.dev/release: "v0.43.0"
  1296. webhooks:
  1297. - admissionReviewVersions: ["v1"]
  1298. clientConfig:
  1299. service:
  1300. name: tekton-pipelines-webhook
  1301. namespace: tekton-pipelines
  1302. failurePolicy: Fail
  1303. sideEffects: None
  1304. name: config.webhook.pipeline.tekton.dev
  1305. objectSelector:
  1306. matchLabels:
  1307. app.kubernetes.io/part-of: tekton-pipelines
  1308. ---
  1309. # Copyright 2019-2022 The Tekton Authors
  1310. #
  1311. # Licensed under the Apache License, Version 2.0 (the "License");
  1312. # you may not use this file except in compliance with the License.
  1313. # You may obtain a copy of the License at
  1314. #
  1315. # https://www.apache.org/licenses/LICENSE-2.0
  1316. #
  1317. # Unless required by applicable law or agreed to in writing, software
  1318. # distributed under the License is distributed on an "AS IS" BASIS,
  1319. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1320. # See the License for the specific language governing permissions and
  1321. # limitations under the License.
  1322. apiVersion: rbac.authorization.k8s.io/v1
  1323. kind: ClusterRole
  1324. metadata:
  1325. name: tekton-aggregate-edit
  1326. labels:
  1327. app.kubernetes.io/instance: default
  1328. app.kubernetes.io/part-of: tekton-pipelines
  1329. rbac.authorization.k8s.io/aggregate-to-edit: "true"
  1330. rbac.authorization.k8s.io/aggregate-to-admin: "true"
  1331. rules:
  1332. - apiGroups:
  1333. - tekton.dev
  1334. resources:
  1335. - tasks
  1336. - taskruns
  1337. - pipelines
  1338. - pipelineruns
  1339. - pipelineresources
  1340. - runs
  1341. - customruns
  1342. verbs:
  1343. - create
  1344. - delete
  1345. - deletecollection
  1346. - get
  1347. - list
  1348. - patch
  1349. - update
  1350. - watch
  1351. ---
  1352. # Copyright 2019-2022 The Tekton Authors
  1353. #
  1354. # Licensed under the Apache License, Version 2.0 (the "License");
  1355. # you may not use this file except in compliance with the License.
  1356. # You may obtain a copy of the License at
  1357. #
  1358. # https://www.apache.org/licenses/LICENSE-2.0
  1359. #
  1360. # Unless required by applicable law or agreed to in writing, software
  1361. # distributed under the License is distributed on an "AS IS" BASIS,
  1362. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1363. # See the License for the specific language governing permissions and
  1364. # limitations under the License.
  1365. apiVersion: rbac.authorization.k8s.io/v1
  1366. kind: ClusterRole
  1367. metadata:
  1368. name: tekton-aggregate-view
  1369. labels:
  1370. app.kubernetes.io/instance: default
  1371. app.kubernetes.io/part-of: tekton-pipelines
  1372. rbac.authorization.k8s.io/aggregate-to-view: "true"
  1373. rules:
  1374. - apiGroups:
  1375. - tekton.dev
  1376. resources:
  1377. - tasks
  1378. - taskruns
  1379. - pipelines
  1380. - pipelineruns
  1381. - pipelineresources
  1382. - runs
  1383. - customruns
  1384. verbs:
  1385. - get
  1386. - list
  1387. - watch
  1388. ---
  1389. # Copyright 2019 The Tekton Authors
  1390. #
  1391. # Licensed under the Apache License, Version 2.0 (the "License");
  1392. # you may not use this file except in compliance with the License.
  1393. # You may obtain a copy of the License at
  1394. #
  1395. # https://www.apache.org/licenses/LICENSE-2.0
  1396. #
  1397. # Unless required by applicable law or agreed to in writing, software
  1398. # distributed under the License is distributed on an "AS IS" BASIS,
  1399. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1400. # See the License for the specific language governing permissions and
  1401. # limitations under the License.
  1402. apiVersion: v1
  1403. kind: ConfigMap
  1404. metadata:
  1405. name: config-artifact-bucket
  1406. namespace: tekton-pipelines
  1407. labels:
  1408. app.kubernetes.io/instance: default
  1409. app.kubernetes.io/part-of: tekton-pipelines
  1410. # data:
  1411. # # location of the gcs bucket to be used for artifact storage
  1412. # location: "gs://bucket-name"
  1413. # # name of the secret that will contain the credentials for the service account
  1414. # # with access to the bucket
  1415. # bucket.service.account.secret.name:
  1416. # # The key in the secret with the required service account json
  1417. # bucket.service.account.secret.key:
  1418. # # The field name that should be used for the service account
  1419. # # Valid values: GOOGLE_APPLICATION_CREDENTIALS, BOTO_CONFIG.
  1420. # bucket.service.account.field.name: GOOGLE_APPLICATION_CREDENTIALS
  1421. ---
  1422. # Copyright 2019 The Tekton Authors
  1423. #
  1424. # Licensed under the Apache License, Version 2.0 (the "License");
  1425. # you may not use this file except in compliance with the License.
  1426. # You may obtain a copy of the License at
  1427. #
  1428. # https://www.apache.org/licenses/LICENSE-2.0
  1429. #
  1430. # Unless required by applicable law or agreed to in writing, software
  1431. # distributed under the License is distributed on an "AS IS" BASIS,
  1432. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1433. # See the License for the specific language governing permissions and
  1434. # limitations under the License.
  1435. apiVersion: v1
  1436. kind: ConfigMap
  1437. metadata:
  1438. name: config-artifact-pvc
  1439. namespace: tekton-pipelines
  1440. labels:
  1441. app.kubernetes.io/instance: default
  1442. app.kubernetes.io/part-of: tekton-pipelines
  1443. # data:
  1444. # # size of the PVC volume
  1445. # size: 5Gi
  1446. #
  1447. # # storage class of the PVC volume
  1448. # storageClassName: storage-class-name
  1449. ---
  1450. # Copyright 2019 The Tekton Authors
  1451. #
  1452. # Licensed under the Apache License, Version 2.0 (the "License");
  1453. # you may not use this file except in compliance with the License.
  1454. # You may obtain a copy of the License at
  1455. #
  1456. # https://www.apache.org/licenses/LICENSE-2.0
  1457. #
  1458. # Unless required by applicable law or agreed to in writing, software
  1459. # distributed under the License is distributed on an "AS IS" BASIS,
  1460. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1461. # See the License for the specific language governing permissions and
  1462. # limitations under the License.
  1463. apiVersion: v1
  1464. kind: ConfigMap
  1465. metadata:
  1466. name: config-defaults
  1467. namespace: tekton-pipelines
  1468. labels:
  1469. app.kubernetes.io/instance: default
  1470. app.kubernetes.io/part-of: tekton-pipelines
  1471. data:
  1472. _example: |
  1473. ################################
  1474. # #
  1475. # EXAMPLE CONFIGURATION #
  1476. # #
  1477. ################################
  1478. # This block is not actually functional configuration,
  1479. # but serves to illustrate the available configuration
  1480. # options and document them in a way that is accessible
  1481. # to users that `kubectl edit` this config map.
  1482. #
  1483. # These sample configuration options may be copied out of
  1484. # this example block and unindented to be in the data block
  1485. # to actually change the configuration.
  1486. # default-timeout-minutes contains the default number of
  1487. # minutes to use for TaskRun and PipelineRun, if none is specified.
  1488. default-timeout-minutes: "60" # 60 minutes
  1489. # default-service-account contains the default service account name
  1490. # to use for TaskRun and PipelineRun, if none is specified.
  1491. default-service-account: "default"
  1492. # default-managed-by-label-value contains the default value given to the
  1493. # "app.kubernetes.io/managed-by" label applied to all Pods created for
  1494. # TaskRuns. If a user's requested TaskRun specifies another value for this
  1495. # label, the user's request supercedes.
  1496. default-managed-by-label-value: "tekton-pipelines"
  1497. # default-pod-template contains the default pod template to use for
  1498. # TaskRun and PipelineRun. If a pod template is specified on the
  1499. # PipelineRun, the default-pod-template is merged with that one.
  1500. # default-pod-template:
  1501. # default-affinity-assistant-pod-template contains the default pod template
  1502. # to use for affinity assistant pods. If a pod template is specified on the
  1503. # PipelineRun, the default-affinity-assistant-pod-template is merged with
  1504. # that one.
  1505. # default-affinity-assistant-pod-template:
  1506. # default-cloud-events-sink contains the default CloudEvents sink to be
  1507. # used for TaskRun and PipelineRun, when no sink is specified.
  1508. # Note that right now it is still not possible to set a PipelineRun or
  1509. # TaskRun specific sink, so the default is the only option available.
  1510. # If no sink is specified, no CloudEvent is generated
  1511. # default-cloud-events-sink:
  1512. # default-task-run-workspace-binding contains the default workspace
  1513. # configuration provided for any Workspaces that a Task declares
  1514. # but that a TaskRun does not explicitly provide.
  1515. # default-task-run-workspace-binding: |
  1516. # emptyDir: {}
  1517. # default-max-matrix-combinations-count contains the default maximum number
  1518. # of combinations from a Matrix, if none is specified.
  1519. default-max-matrix-combinations-count: "256"
  1520. # default-forbidden-env contains comma seperated environment variables that cannot be
  1521. # overridden by podTemplate.
  1522. default-forbidden-env:
  1523. ---
  1524. # Copyright 2019 The Tekton Authors
  1525. #
  1526. # Licensed under the Apache License, Version 2.0 (the "License");
  1527. # you may not use this file except in compliance with the License.
  1528. # You may obtain a copy of the License at
  1529. #
  1530. # https://www.apache.org/licenses/LICENSE-2.0
  1531. #
  1532. # Unless required by applicable law or agreed to in writing, software
  1533. # distributed under the License is distributed on an "AS IS" BASIS,
  1534. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1535. # See the License for the specific language governing permissions and
  1536. # limitations under the License.
  1537. apiVersion: v1
  1538. kind: ConfigMap
  1539. metadata:
  1540. name: feature-flags
  1541. namespace: tekton-pipelines
  1542. labels:
  1543. app.kubernetes.io/instance: default
  1544. app.kubernetes.io/part-of: tekton-pipelines
  1545. data:
  1546. # Setting this flag to "true" will prevent Tekton to create an
  1547. # Affinity Assistant for every TaskRun sharing a PVC workspace
  1548. #
  1549. # The default behaviour is for Tekton to create Affinity Assistants
  1550. #
  1551. # See more in the workspace documentation about Affinity Assistant
  1552. # https://github.com/tektoncd/pipeline/blob/main/docs/workspaces.md#affinity-assistant-and-specifying-workspace-order-in-a-pipeline
  1553. # or https://github.com/tektoncd/pipeline/pull/2630 for more info.
  1554. disable-affinity-assistant: "false"
  1555. # Setting this flag to "true" will prevent Tekton scanning attached
  1556. # service accounts and injecting any credentials it finds into your
  1557. # Steps.
  1558. #
  1559. # The default behaviour currently is for Tekton to search service
  1560. # accounts for secrets matching a specified format and automatically
  1561. # mount those into your Steps.
  1562. #
  1563. # Note: setting this to "true" will prevent PipelineResources from
  1564. # working.
  1565. #
  1566. # See https://github.com/tektoncd/pipeline/issues/2791 for more
  1567. # info.
  1568. disable-creds-init: "false"
  1569. # Setting this flag to "false" will stop Tekton from waiting for a
  1570. # TaskRun's sidecar containers to be running before starting the first
  1571. # step. This will allow Tasks to be run in environments that don't
  1572. # support the DownwardAPI volume type, but may lead to unintended
  1573. # behaviour if sidecars are used.
  1574. #
  1575. # See https://github.com/tektoncd/pipeline/issues/4937 for more info.
  1576. await-sidecar-readiness: "true"
  1577. # This option should be set to false when Pipelines is running in a
  1578. # cluster that does not use injected sidecars such as Istio. Setting
  1579. # it to false should decrease the time it takes for a TaskRun to start
  1580. # running. For clusters that use injected sidecars, setting this
  1581. # option to false can lead to unexpected behavior.
  1582. #
  1583. # See https://github.com/tektoncd/pipeline/issues/2080 for more info.
  1584. running-in-environment-with-injected-sidecars: "true"
  1585. # Setting this flag to "true" will require that any Git SSH Secret
  1586. # offered to Tekton must have known_hosts included.
  1587. #
  1588. # See https://github.com/tektoncd/pipeline/issues/2981 for more
  1589. # info.
  1590. require-git-ssh-secret-known-hosts: "false"
  1591. # Setting this flag to "true" enables the use of Tekton OCI bundle.
  1592. # This is an experimental feature and thus should still be considered
  1593. # an alpha feature.
  1594. enable-tekton-oci-bundles: "false"
  1595. # Setting this flag to "true" enables the use of custom tasks from
  1596. # within pipelines.
  1597. enable-custom-tasks: "true"
  1598. # Setting this flag will determine which gated features are enabled.
  1599. # Acceptable values are "stable", "beta", or "alpha".
  1600. enable-api-fields: "stable"
  1601. # Setting this flag to "true" enables CloudEvents for CustomRuns and Runs, as long as a
  1602. # CloudEvents sink is configured in the config-defaults config map
  1603. send-cloudevents-for-runs: "false"
  1604. # Setting this flag to "enforce" will enforce verification of tasks/pipeline. Failing to verify
  1605. # will fail the taskrun/pipelinerun. "warn" will only log the err message and "skip"
  1606. # will skip the whole verification
  1607. resource-verification-mode: "skip"
  1608. # Setting this flag to "true" enables populating the "provenance" field in TaskRun
  1609. # and PipelineRun status. This field contains metadata about resources used
  1610. # in the TaskRun/PipelineRun such as the source from where a remote Task/Pipeline
  1611. # definition was fetched.
  1612. enable-provenance-in-status: "false"
  1613. # Setting this flag to "full" to enable full embedding of `TaskRun` and `Run` statuses in the
  1614. # `PipelineRun` status. Set it to "minimal" to populate the `ChildReferences` field in the
  1615. # `PipelineRun` status with name, kind, and API version information for each `TaskRun` and
  1616. # `Run` in the `PipelineRun` instead. Set it to "both" to do both.
  1617. embedded-status: "full"
  1618. # Setting this flag will determine the version for custom tasks created by PipelineRuns.
  1619. # Acceptable values are "v1beta1" and "v1alpha1".
  1620. # The default is "v1alpha1".
  1621. custom-task-version: "v1alpha1"
  1622. ---
  1623. # Copyright 2021 The Tekton Authors
  1624. #
  1625. # Licensed under the Apache License, Version 2.0 (the "License");
  1626. # you may not use this file except in compliance with the License.
  1627. # You may obtain a copy of the License at
  1628. #
  1629. # https://www.apache.org/licenses/LICENSE-2.0
  1630. #
  1631. # Unless required by applicable law or agreed to in writing, software
  1632. # distributed under the License is distributed on an "AS IS" BASIS,
  1633. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1634. # See the License for the specific language governing permissions and
  1635. # limitations under the License.
  1636. apiVersion: v1
  1637. kind: ConfigMap
  1638. metadata:
  1639. name: pipelines-info
  1640. namespace: tekton-pipelines
  1641. labels:
  1642. app.kubernetes.io/instance: default
  1643. app.kubernetes.io/part-of: tekton-pipelines
  1644. data:
  1645. # Contains pipelines version which can be queried by external
  1646. # tools such as CLI. Elevated permissions are already given to
  1647. # this ConfigMap such that even if we don't have access to
  1648. # other resources in the namespace we still can have access to
  1649. # this ConfigMap.
  1650. version: "v0.43.0"
  1651. ---
  1652. # Copyright 2020 Tekton Authors LLC
  1653. #
  1654. # Licensed under the Apache License, Version 2.0 (the "License");
  1655. # you may not use this file except in compliance with the License.
  1656. # You may obtain a copy of the License at
  1657. #
  1658. # https://www.apache.org/licenses/LICENSE-2.0
  1659. #
  1660. # Unless required by applicable law or agreed to in writing, software
  1661. # distributed under the License is distributed on an "AS IS" BASIS,
  1662. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1663. # See the License for the specific language governing permissions and
  1664. # limitations under the License.
  1665. apiVersion: v1
  1666. kind: ConfigMap
  1667. metadata:
  1668. name: config-leader-election
  1669. namespace: tekton-pipelines
  1670. labels:
  1671. app.kubernetes.io/instance: default
  1672. app.kubernetes.io/part-of: tekton-pipelines
  1673. data:
  1674. _example: |
  1675. ################################
  1676. # #
  1677. # EXAMPLE CONFIGURATION #
  1678. # #
  1679. ################################
  1680. # This block is not actually functional configuration,
  1681. # but serves to illustrate the available configuration
  1682. # options and document them in a way that is accessible
  1683. # to users that `kubectl edit` this config map.
  1684. #
  1685. # These sample configuration options may be copied out of
  1686. # this example block and unindented to be in the data block
  1687. # to actually change the configuration.
  1688. # lease-duration is how long non-leaders will wait to try to acquire the
  1689. # lock; 15 seconds is the value used by core kubernetes controllers.
  1690. lease-duration: "60s"
  1691. # renew-deadline is how long a leader will try to renew the lease before
  1692. # giving up; 10 seconds is the value used by core kubernetes controllers.
  1693. renew-deadline: "40s"
  1694. # retry-period is how long the leader election client waits between tries of
  1695. # actions; 2 seconds is the value used by core kubernetes controllers.
  1696. retry-period: "10s"
  1697. # buckets is the number of buckets used to partition key space of each
  1698. # Reconciler. If this number is M and the replica number of the controller
  1699. # is N, the N replicas will compete for the M buckets. The owner of a
  1700. # bucket will take care of the reconciling for the keys partitioned into
  1701. # that bucket.
  1702. buckets: "1"
  1703. ---
  1704. # Copyright 2019 Tekton Authors LLC
  1705. #
  1706. # Licensed under the Apache License, Version 2.0 (the "License");
  1707. # you may not use this file except in compliance with the License.
  1708. # You may obtain a copy of the License at
  1709. #
  1710. # https://www.apache.org/licenses/LICENSE-2.0
  1711. #
  1712. # Unless required by applicable law or agreed to in writing, software
  1713. # distributed under the License is distributed on an "AS IS" BASIS,
  1714. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1715. # See the License for the specific language governing permissions and
  1716. # limitations under the License.
  1717. apiVersion: v1
  1718. kind: ConfigMap
  1719. metadata:
  1720. name: config-logging
  1721. namespace: tekton-pipelines
  1722. labels:
  1723. app.kubernetes.io/instance: default
  1724. app.kubernetes.io/part-of: tekton-pipelines
  1725. data:
  1726. zap-logger-config: |
  1727. {
  1728. "level": "info",
  1729. "development": false,
  1730. "sampling": {
  1731. "initial": 100,
  1732. "thereafter": 100
  1733. },
  1734. "outputPaths": ["stdout"],
  1735. "errorOutputPaths": ["stderr"],
  1736. "encoding": "json",
  1737. "encoderConfig": {
  1738. "timeKey": "timestamp",
  1739. "levelKey": "severity",
  1740. "nameKey": "logger",
  1741. "callerKey": "caller",
  1742. "messageKey": "message",
  1743. "stacktraceKey": "stacktrace",
  1744. "lineEnding": "",
  1745. "levelEncoder": "",
  1746. "timeEncoder": "iso8601",
  1747. "durationEncoder": "",
  1748. "callerEncoder": ""
  1749. }
  1750. }
  1751. # Log level overrides
  1752. loglevel.controller: "info"
  1753. loglevel.webhook: "info"
  1754. ---
  1755. # Copyright 2019 The Tekton Authors
  1756. #
  1757. # Licensed under the Apache License, Version 2.0 (the "License");
  1758. # you may not use this file except in compliance with the License.
  1759. # You may obtain a copy of the License at
  1760. #
  1761. # https://www.apache.org/licenses/LICENSE-2.0
  1762. #
  1763. # Unless required by applicable law or agreed to in writing, software
  1764. # distributed under the License is distributed on an "AS IS" BASIS,
  1765. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1766. # See the License for the specific language governing permissions and
  1767. # limitations under the License.
  1768. apiVersion: v1
  1769. kind: ConfigMap
  1770. metadata:
  1771. name: config-observability
  1772. namespace: tekton-pipelines
  1773. labels:
  1774. app.kubernetes.io/instance: default
  1775. app.kubernetes.io/part-of: tekton-pipelines
  1776. data:
  1777. _example: |
  1778. ################################
  1779. # #
  1780. # EXAMPLE CONFIGURATION #
  1781. # #
  1782. ################################
  1783. # This block is not actually functional configuration,
  1784. # but serves to illustrate the available configuration
  1785. # options and document them in a way that is accessible
  1786. # to users that `kubectl edit` this config map.
  1787. #
  1788. # These sample configuration options may be copied out of
  1789. # this example block and unindented to be in the data block
  1790. # to actually change the configuration.
  1791. # metrics.backend-destination field specifies the system metrics destination.
  1792. # It supports either prometheus (the default) or stackdriver.
  1793. # Note: Using Stackdriver will incur additional charges.
  1794. metrics.backend-destination: prometheus
  1795. # metrics.stackdriver-project-id field specifies the Stackdriver project ID. This
  1796. # field is optional. When running on GCE, application default credentials will be
  1797. # used and metrics will be sent to the cluster's project if this field is
  1798. # not provided.
  1799. metrics.stackdriver-project-id: "<your stackdriver project id>"
  1800. # metrics.allow-stackdriver-custom-metrics indicates whether it is allowed
  1801. # to send metrics to Stackdriver using "global" resource type and custom
  1802. # metric type. Setting this flag to "true" could cause extra Stackdriver
  1803. # charge. If metrics.backend-destination is not Stackdriver, this is
  1804. # ignored.
  1805. metrics.allow-stackdriver-custom-metrics: "false"
  1806. metrics.taskrun.level: "task"
  1807. metrics.taskrun.duration-type: "histogram"
  1808. metrics.pipelinerun.level: "pipeline"
  1809. metrics.pipelinerun.duration-type: "histogram"
  1810. ---
  1811. # Copyright 2020 Tekton Authors LLC
  1812. #
  1813. # Licensed under the Apache License, Version 2.0 (the "License");
  1814. # you may not use this file except in compliance with the License.
  1815. # You may obtain a copy of the License at
  1816. #
  1817. # https://www.apache.org/licenses/LICENSE-2.0
  1818. #
  1819. # Unless required by applicable law or agreed to in writing, software
  1820. # distributed under the License is distributed on an "AS IS" BASIS,
  1821. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1822. # See the License for the specific language governing permissions and
  1823. # limitations under the License.
  1824. apiVersion: v1
  1825. kind: ConfigMap
  1826. metadata:
  1827. name: config-registry-cert
  1828. namespace: tekton-pipelines
  1829. labels:
  1830. app.kubernetes.io/instance: default
  1831. app.kubernetes.io/part-of: tekton-pipelines
  1832. # data:
  1833. # # Registry's self-signed certificate
  1834. # cert: |
  1835. ---
  1836. # Copyright 2022 The Tekton Authors
  1837. #
  1838. # Licensed under the Apache License, Version 2.0 (the "License");
  1839. # you may not use this file except in compliance with the License.
  1840. # You may obtain a copy of the License at
  1841. #
  1842. # https://www.apache.org/licenses/LICENSE-2.0
  1843. #
  1844. # Unless required by applicable law or agreed to in writing, software
  1845. # distributed under the License is distributed on an "AS IS" BASIS,
  1846. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1847. # See the License for the specific language governing permissions and
  1848. # limitations under the License.
  1849. apiVersion: v1
  1850. kind: ConfigMap
  1851. metadata:
  1852. name: config-trusted-resources
  1853. namespace: tekton-pipelines
  1854. labels:
  1855. app.kubernetes.io/instance: default
  1856. app.kubernetes.io/part-of: tekton-pipelines
  1857. data:
  1858. _example: |
  1859. ################################
  1860. # #
  1861. # EXAMPLE CONFIGURATION #
  1862. # #
  1863. ################################
  1864. # This block is not actually functional configuration,
  1865. # but serves to illustrate the available configuration
  1866. # options and document them in a way that is accessible
  1867. # to users that `kubectl edit` this config map.
  1868. #
  1869. # These sample configuration options may be copied out of
  1870. # this example block and unindented to be in the data block
  1871. # to actually change the configuration.
  1872. # publickeys specifies the list of public keys, the paths are separated by comma
  1873. # publickeys: "/etc/verification-secrets/cosign.pub,
  1874. # gcpkms://projects/tekton/locations/us/keyRings/trusted-resources/cryptoKeys/trusted-resources"
  1875. ---
  1876. # Copyright 2019 The Tekton Authors
  1877. #
  1878. # Licensed under the Apache License, Version 2.0 (the "License");
  1879. # you may not use this file except in compliance with the License.
  1880. # You may obtain a copy of the License at
  1881. #
  1882. # http://www.apache.org/licenses/LICENSE-2.0
  1883. #
  1884. # Unless required by applicable law or agreed to in writing, software
  1885. # distributed under the License is distributed on an "AS IS" BASIS,
  1886. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1887. # See the License for the specific language governing permissions and
  1888. # limitations under the License.
  1889. apiVersion: apps/v1
  1890. kind: Deployment
  1891. metadata:
  1892. name: tekton-pipelines-controller
  1893. namespace: tekton-pipelines
  1894. labels:
  1895. app.kubernetes.io/name: controller
  1896. app.kubernetes.io/component: controller
  1897. app.kubernetes.io/instance: default
  1898. app.kubernetes.io/version: "v0.43.0"
  1899. app.kubernetes.io/part-of: tekton-pipelines
  1900. # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
  1901. pipeline.tekton.dev/release: "v0.43.0"
  1902. # labels below are related to istio and should not be used for resource lookup
  1903. version: "v0.43.0"
  1904. spec:
  1905. replicas: 1
  1906. selector:
  1907. matchLabels:
  1908. app.kubernetes.io/name: controller
  1909. app.kubernetes.io/component: controller
  1910. app.kubernetes.io/instance: default
  1911. app.kubernetes.io/part-of: tekton-pipelines
  1912. template:
  1913. metadata:
  1914. labels:
  1915. app.kubernetes.io/name: controller
  1916. app.kubernetes.io/component: controller
  1917. app.kubernetes.io/instance: default
  1918. app.kubernetes.io/version: "v0.43.0"
  1919. app.kubernetes.io/part-of: tekton-pipelines
  1920. # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
  1921. pipeline.tekton.dev/release: "v0.43.0"
  1922. # labels below are related to istio and should not be used for resource lookup
  1923. app: tekton-pipelines-controller
  1924. version: "v0.43.0"
  1925. spec:
  1926. affinity:
  1927. nodeAffinity:
  1928. requiredDuringSchedulingIgnoredDuringExecution:
  1929. nodeSelectorTerms:
  1930. - matchExpressions:
  1931. - key: kubernetes.io/os
  1932. operator: NotIn
  1933. values:
  1934. - windows
  1935. serviceAccountName: tekton-pipelines-controller
  1936. containers:
  1937. - name: tekton-pipelines-controller
  1938. image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/controller:v0.43.0@sha256:f71d7dc4fa4760f0cd3236e4869d40b163ddb48ecb7a81af8c84b45ba63db669
  1939. args: [
  1940. # These images are built on-demand by `ko resolve` and are replaced
  1941. # by image references by digest.
  1942. "-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",
  1943. # This is gcr.io/google.com/cloudsdktool/cloud-sdk:302.0.0-slim
  1944. "-gsutil-image", "gcr.io/google.com/cloudsdktool/cloud-sdk@sha256:27b2c22bf259d9bc1a291e99c63791ba0c27a04d2db0a43241ba0f1f20f4067f",
  1945. # The shell image must allow root in order to create directories and copy files to PVCs.
  1946. # cgr.dev/chainguard/busybox as of April 14 2022
  1947. # image shall not contains tag, so it will be supported on a runtime like cri-o
  1948. "-shell-image", "cgr.dev/chainguard/busybox@sha256:19f02276bf8dbdd62f069b922f10c65262cc34b710eea26ff928129a736be791",
  1949. # for script mode to work with windows we need a powershell image
  1950. # pinning to nanoserver tag as of July 15 2021
  1951. "-shell-image-win", "mcr.microsoft.com/powershell:nanoserver@sha256:b6d5ff841b78bdf2dfed7550000fd4f3437385b8fa686ec0f010be24777654d6"]
  1952. volumeMounts:
  1953. - name: config-logging
  1954. mountPath: /etc/config-logging
  1955. - name: config-registry-cert
  1956. mountPath: /etc/config-registry-cert
  1957. # Mount secret for trusted resources
  1958. - name: verification-secrets
  1959. mountPath: /etc/verification-secrets
  1960. readOnly: true
  1961. env:
  1962. - name: SYSTEM_NAMESPACE
  1963. valueFrom:
  1964. fieldRef:
  1965. fieldPath: metadata.namespace
  1966. # If you are changing these names, you will also need to update
  1967. # the controller's Role in 200-role.yaml to include the new
  1968. # values in the "configmaps" "get" rule.
  1969. - name: CONFIG_DEFAULTS_NAME
  1970. value: config-defaults
  1971. - name: CONFIG_LOGGING_NAME
  1972. value: config-logging
  1973. - name: CONFIG_OBSERVABILITY_NAME
  1974. value: config-observability
  1975. - name: CONFIG_ARTIFACT_BUCKET_NAME
  1976. value: config-artifact-bucket
  1977. - name: CONFIG_ARTIFACT_PVC_NAME
  1978. value: config-artifact-pvc
  1979. - name: CONFIG_FEATURE_FLAGS_NAME
  1980. value: feature-flags
  1981. - name: CONFIG_LEADERELECTION_NAME
  1982. value: config-leader-election
  1983. - name: CONFIG_TRUSTED_RESOURCES_NAME
  1984. value: config-trusted-resources
  1985. - name: SSL_CERT_FILE
  1986. value: /etc/config-registry-cert/cert
  1987. - name: SSL_CERT_DIR
  1988. value: /etc/ssl/certs
  1989. - name: METRICS_DOMAIN
  1990. value: tekton.dev/pipeline
  1991. securityContext:
  1992. allowPrivilegeEscalation: false
  1993. capabilities:
  1994. drop:
  1995. - "ALL"
  1996. # User 65532 is the nonroot user ID
  1997. runAsUser: 65532
  1998. runAsGroup: 65532
  1999. runAsNonRoot: true
  2000. seccompProfile:
  2001. type: RuntimeDefault
  2002. ports:
  2003. - name: metrics
  2004. containerPort: 9090
  2005. - name: profiling
  2006. containerPort: 8008
  2007. - name: probes
  2008. containerPort: 8080
  2009. livenessProbe:
  2010. httpGet:
  2011. path: /health
  2012. port: probes
  2013. scheme: HTTP
  2014. initialDelaySeconds: 5
  2015. periodSeconds: 10
  2016. timeoutSeconds: 5
  2017. readinessProbe:
  2018. httpGet:
  2019. path: /readiness
  2020. port: probes
  2021. scheme: HTTP
  2022. initialDelaySeconds: 5
  2023. periodSeconds: 10
  2024. timeoutSeconds: 5
  2025. volumes:
  2026. - name: config-logging
  2027. configMap:
  2028. name: config-logging
  2029. - name: config-registry-cert
  2030. configMap:
  2031. name: config-registry-cert
  2032. # Mount secret for trusted resources
  2033. - name: verification-secrets
  2034. secret:
  2035. secretName: verification-secrets
  2036. optional: true
  2037. ---
  2038. apiVersion: v1
  2039. kind: Service
  2040. metadata:
  2041. labels:
  2042. app.kubernetes.io/name: controller
  2043. app.kubernetes.io/component: controller
  2044. app.kubernetes.io/instance: default
  2045. app.kubernetes.io/version: "v0.43.0"
  2046. app.kubernetes.io/part-of: tekton-pipelines
  2047. # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
  2048. pipeline.tekton.dev/release: "v0.43.0"
  2049. # labels below are related to istio and should not be used for resource lookup
  2050. app: tekton-pipelines-controller
  2051. version: "v0.43.0"
  2052. name: tekton-pipelines-controller
  2053. namespace: tekton-pipelines
  2054. spec:
  2055. ports:
  2056. - name: http-metrics
  2057. port: 9090
  2058. protocol: TCP
  2059. targetPort: 9090
  2060. - name: http-profiling
  2061. port: 8008
  2062. targetPort: 8008
  2063. - name: probes
  2064. port: 8080
  2065. selector:
  2066. app.kubernetes.io/name: controller
  2067. app.kubernetes.io/component: controller
  2068. app.kubernetes.io/instance: default
  2069. app.kubernetes.io/part-of: tekton-pipelines
  2070. ---
  2071. # Copyright 2022 The Tekton Authors
  2072. #
  2073. # Licensed under the Apache License, Version 2.0 (the "License");
  2074. # you may not use this file except in compliance with the License.
  2075. # You may obtain a copy of the License at
  2076. #
  2077. # http://www.apache.org/licenses/LICENSE-2.0
  2078. #
  2079. # Unless required by applicable law or agreed to in writing, software
  2080. # distributed under the License is distributed on an "AS IS" BASIS,
  2081. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2082. # See the License for the specific language governing permissions and
  2083. # limitations under the License.
  2084. apiVersion: v1
  2085. kind: Namespace
  2086. metadata:
  2087. name: tekton-pipelines-resolvers
  2088. labels:
  2089. app.kubernetes.io/component: resolvers
  2090. app.kubernetes.io/instance: default
  2091. app.kubernetes.io/part-of: tekton-pipelines
  2092. pod-security.kubernetes.io/enforce: restricted
  2093. ---
  2094. # Copyright 2022 The Tekton Authors
  2095. #
  2096. # Licensed under the Apache License, Version 2.0 (the "License");
  2097. # you may not use this file except in compliance with the License.
  2098. # You may obtain a copy of the License at
  2099. #
  2100. # https://www.apache.org/licenses/LICENSE-2.0
  2101. #
  2102. # Unless required by applicable law or agreed to in writing, software
  2103. # distributed under the License is distributed on an "AS IS" BASIS,
  2104. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2105. # See the License for the specific language governing permissions and
  2106. # limitations under the License.
  2107. kind: ClusterRole
  2108. apiVersion: rbac.authorization.k8s.io/v1
  2109. metadata:
  2110. # ClusterRole for resolvers to monitor and update resolutionrequests.
  2111. name: tekton-pipelines-resolvers-resolution-request-updates
  2112. labels:
  2113. app.kubernetes.io/component: resolvers
  2114. app.kubernetes.io/instance: default
  2115. app.kubernetes.io/part-of: tekton-pipelines
  2116. rules:
  2117. - apiGroups: ["resolution.tekton.dev"]
  2118. resources: ["resolutionrequests", "resolutionrequests/status"]
  2119. verbs: ["get", "list", "watch", "update", "patch"]
  2120. - apiGroups: ["tekton.dev"]
  2121. resources: ["tasks", "pipelines"]
  2122. verbs: ["get", "list"]
  2123. # Read-only access to these.
  2124. - apiGroups: [""]
  2125. resources: ["secrets"]
  2126. verbs: ["get", "list", "watch"]
  2127. ---
  2128. # Copyright 2022 The Tekton Authors
  2129. #
  2130. # Licensed under the Apache License, Version 2.0 (the "License");
  2131. # you may not use this file except in compliance with the License.
  2132. # You may obtain a copy of the License at
  2133. #
  2134. # https://www.apache.org/licenses/LICENSE-2.0
  2135. #
  2136. # Unless required by applicable law or agreed to in writing, software
  2137. # distributed under the License is distributed on an "AS IS" BASIS,
  2138. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2139. # See the License for the specific language governing permissions and
  2140. # limitations under the License.
  2141. kind: Role
  2142. apiVersion: rbac.authorization.k8s.io/v1
  2143. metadata:
  2144. name: tekton-pipelines-resolvers-namespace-rbac
  2145. namespace: tekton-pipelines-resolvers
  2146. labels:
  2147. app.kubernetes.io/component: resolvers
  2148. app.kubernetes.io/instance: default
  2149. app.kubernetes.io/part-of: tekton-pipelines
  2150. rules:
  2151. # Needed to watch and load configuration and secret data.
  2152. - apiGroups: [""]
  2153. resources: ["configmaps", "secrets"]
  2154. verbs: ["get", "list", "update", "watch"]
  2155. # This is needed by leader election to run the controller in HA.
  2156. - apiGroups: ["coordination.k8s.io"]
  2157. resources: ["leases"]
  2158. verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
  2159. ---
  2160. # Copyright 2022 The Tekton Authors
  2161. #
  2162. # Licensed under the Apache License, Version 2.0 (the "License");
  2163. # you may not use this file except in compliance with the License.
  2164. # You may obtain a copy of the License at
  2165. #
  2166. # https://www.apache.org/licenses/LICENSE-2.0
  2167. #
  2168. # Unless required by applicable law or agreed to in writing, software
  2169. # distributed under the License is distributed on an "AS IS" BASIS,
  2170. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2171. # See the License for the specific language governing permissions and
  2172. # limitations under the License.
  2173. apiVersion: v1
  2174. kind: ServiceAccount
  2175. metadata:
  2176. name: tekton-pipelines-resolvers
  2177. namespace: tekton-pipelines-resolvers
  2178. labels:
  2179. app.kubernetes.io/component: resolvers
  2180. app.kubernetes.io/instance: default
  2181. app.kubernetes.io/part-of: tekton-pipelines
  2182. ---
  2183. # Copyright 2021 The Tekton Authors
  2184. #
  2185. # Licensed under the Apache License, Version 2.0 (the "License");
  2186. # you may not use this file except in compliance with the License.
  2187. # You may obtain a copy of the License at
  2188. #
  2189. # https://www.apache.org/licenses/LICENSE-2.0
  2190. #
  2191. # Unless required by applicable law or agreed to in writing, software
  2192. # distributed under the License is distributed on an "AS IS" BASIS,
  2193. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2194. # See the License for the specific language governing permissions and
  2195. # limitations under the License.
  2196. apiVersion: rbac.authorization.k8s.io/v1
  2197. kind: ClusterRoleBinding
  2198. metadata:
  2199. name: tekton-pipelines-resolvers
  2200. namespace: tekton-pipelines-resolvers
  2201. labels:
  2202. app.kubernetes.io/component: resolvers
  2203. app.kubernetes.io/instance: default
  2204. app.kubernetes.io/part-of: tekton-pipelines
  2205. subjects:
  2206. - kind: ServiceAccount
  2207. name: tekton-pipelines-resolvers
  2208. namespace: tekton-pipelines-resolvers
  2209. roleRef:
  2210. kind: ClusterRole
  2211. name: tekton-pipelines-resolvers-resolution-request-updates
  2212. apiGroup: rbac.authorization.k8s.io
  2213. ---
  2214. # Copyright 2021 The Tekton Authors
  2215. #
  2216. # Licensed under the Apache License, Version 2.0 (the "License");
  2217. # you may not use this file except in compliance with the License.
  2218. # You may obtain a copy of the License at
  2219. #
  2220. # https://www.apache.org/licenses/LICENSE-2.0
  2221. #
  2222. # Unless required by applicable law or agreed to in writing, software
  2223. # distributed under the License is distributed on an "AS IS" BASIS,
  2224. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2225. # See the License for the specific language governing permissions and
  2226. # limitations under the License.
  2227. apiVersion: rbac.authorization.k8s.io/v1
  2228. kind: RoleBinding
  2229. metadata:
  2230. name: tekton-pipelines-resolvers-namespace-rbac
  2231. namespace: tekton-pipelines-resolvers
  2232. labels:
  2233. app.kubernetes.io/component: resolvers
  2234. app.kubernetes.io/instance: default
  2235. app.kubernetes.io/part-of: tekton-pipelines
  2236. subjects:
  2237. - kind: ServiceAccount
  2238. name: tekton-pipelines-resolvers
  2239. namespace: tekton-pipelines-resolvers
  2240. roleRef:
  2241. kind: Role
  2242. name: tekton-pipelines-resolvers-namespace-rbac
  2243. apiGroup: rbac.authorization.k8s.io
  2244. ---
  2245. # Copyright 2022 The Tekton Authors
  2246. #
  2247. # Licensed under the Apache License, Version 2.0 (the "License");
  2248. # you may not use this file except in compliance with the License.
  2249. # You may obtain a copy of the License at
  2250. #
  2251. # https://www.apache.org/licenses/LICENSE-2.0
  2252. #
  2253. # Unless required by applicable law or agreed to in writing, software
  2254. # distributed under the License is distributed on an "AS IS" BASIS,
  2255. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2256. # See the License for the specific language governing permissions and
  2257. # limitations under the License.
  2258. apiVersion: v1
  2259. kind: ConfigMap
  2260. metadata:
  2261. name: bundleresolver-config
  2262. namespace: tekton-pipelines-resolvers
  2263. labels:
  2264. app.kubernetes.io/component: resolvers
  2265. app.kubernetes.io/instance: default
  2266. app.kubernetes.io/part-of: tekton-pipelines
  2267. data:
  2268. # the default service account name to use for bundle requests.
  2269. default-service-account: "default"
  2270. # The default layer kind in the bundle image.
  2271. default-kind: "task"
  2272. ---
  2273. # Copyright 2022 The Tekton Authors
  2274. #
  2275. # Licensed under the Apache License, Version 2.0 (the "License");
  2276. # you may not use this file except in compliance with the License.
  2277. # You may obtain a copy of the License at
  2278. #
  2279. # https://www.apache.org/licenses/LICENSE-2.0
  2280. #
  2281. # Unless required by applicable law or agreed to in writing, software
  2282. # distributed under the License is distributed on an "AS IS" BASIS,
  2283. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2284. # See the License for the specific language governing permissions and
  2285. # limitations under the License.
  2286. apiVersion: v1
  2287. kind: ConfigMap
  2288. metadata:
  2289. name: cluster-resolver-config
  2290. namespace: tekton-pipelines-resolvers
  2291. labels:
  2292. app.kubernetes.io/component: resolvers
  2293. app.kubernetes.io/instance: default
  2294. app.kubernetes.io/part-of: tekton-pipelines
  2295. data:
  2296. # The default kind to fetch.
  2297. default-kind: "task"
  2298. # The default namespace to look for resources in.
  2299. default-namespace: ""
  2300. # An optional comma-separated list of namespaces which the resolver is allowed to access. Defaults to empty, meaning all namespaces are allowed.
  2301. allowed-namespaces: ""
  2302. # An optional comma-separated list of namespaces which the resolver is blocked from accessing. Defaults to empty, meaning all namespaces are allowed.
  2303. blocked-namespaces: ""
  2304. ---
  2305. # Copyright 2019 The Tekton Authors
  2306. #
  2307. # Licensed under the Apache License, Version 2.0 (the "License");
  2308. # you may not use this file except in compliance with the License.
  2309. # You may obtain a copy of the License at
  2310. #
  2311. # https://www.apache.org/licenses/LICENSE-2.0
  2312. #
  2313. # Unless required by applicable law or agreed to in writing, software
  2314. # distributed under the License is distributed on an "AS IS" BASIS,
  2315. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2316. # See the License for the specific language governing permissions and
  2317. # limitations under the License.
  2318. apiVersion: v1
  2319. kind: ConfigMap
  2320. metadata:
  2321. name: resolvers-feature-flags
  2322. namespace: tekton-pipelines-resolvers
  2323. labels:
  2324. app.kubernetes.io/component: resolvers
  2325. app.kubernetes.io/instance: default
  2326. app.kubernetes.io/part-of: tekton-pipelines
  2327. data:
  2328. # Setting this flag to "true" enables remote resolution of Tekton OCI bundles.
  2329. enable-bundles-resolver: "true"
  2330. # Setting this flag to "true" enables remote resolution of tasks and pipelines via the Tekton Hub.
  2331. enable-hub-resolver: "true"
  2332. # Setting this flag to "true" enables remote resolution of tasks and pipelines from Git repositories.
  2333. enable-git-resolver: "true"
  2334. # Setting this flag to "true" enables remote resolution of tasks and pipelines from other namespaces within the cluster.
  2335. enable-cluster-resolver: "true"
  2336. ---
  2337. # Copyright 2020 Tekton Authors LLC
  2338. #
  2339. # Licensed under the Apache License, Version 2.0 (the "License");
  2340. # you may not use this file except in compliance with the License.
  2341. # You may obtain a copy of the License at
  2342. #
  2343. # https://www.apache.org/licenses/LICENSE-2.0
  2344. #
  2345. # Unless required by applicable law or agreed to in writing, software
  2346. # distributed under the License is distributed on an "AS IS" BASIS,
  2347. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2348. # See the License for the specific language governing permissions and
  2349. # limitations under the License.
  2350. apiVersion: v1
  2351. kind: ConfigMap
  2352. metadata:
  2353. name: config-leader-election
  2354. namespace: tekton-pipelines-resolvers
  2355. labels:
  2356. app.kubernetes.io/component: resolvers
  2357. app.kubernetes.io/instance: default
  2358. app.kubernetes.io/part-of: tekton-pipelines
  2359. data:
  2360. _example: |
  2361. ################################
  2362. # #
  2363. # EXAMPLE CONFIGURATION #
  2364. # #
  2365. ################################
  2366. # This block is not actually functional configuration,
  2367. # but serves to illustrate the available configuration
  2368. # options and document them in a way that is accessible
  2369. # to users that `kubectl edit` this config map.
  2370. #
  2371. # These sample configuration options may be copied out of
  2372. # this example block and unindented to be in the data block
  2373. # to actually change the configuration.
  2374. # lease-duration is how long non-leaders will wait to try to acquire the
  2375. # lock; 15 seconds is the value used by core kubernetes controllers.
  2376. lease-duration: "60s"
  2377. # renew-deadline is how long a leader will try to renew the lease before
  2378. # giving up; 10 seconds is the value used by core kubernetes controllers.
  2379. renew-deadline: "40s"
  2380. # retry-period is how long the leader election client waits between tries of
  2381. # actions; 2 seconds is the value used by core kubernetes controllers.
  2382. retry-period: "10s"
  2383. # buckets is the number of buckets used to partition key space of each
  2384. # Reconciler. If this number is M and the replica number of the controller
  2385. # is N, the N replicas will compete for the M buckets. The owner of a
  2386. # bucket will take care of the reconciling for the keys partitioned into
  2387. # that bucket.
  2388. buckets: "1"
  2389. ---
  2390. # Copyright 2019 Tekton Authors LLC
  2391. #
  2392. # Licensed under the Apache License, Version 2.0 (the "License");
  2393. # you may not use this file except in compliance with the License.
  2394. # You may obtain a copy of the License at
  2395. #
  2396. # https://www.apache.org/licenses/LICENSE-2.0
  2397. #
  2398. # Unless required by applicable law or agreed to in writing, software
  2399. # distributed under the License is distributed on an "AS IS" BASIS,
  2400. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2401. # See the License for the specific language governing permissions and
  2402. # limitations under the License.
  2403. apiVersion: v1
  2404. kind: ConfigMap
  2405. metadata:
  2406. name: config-logging
  2407. namespace: tekton-pipelines-resolvers
  2408. labels:
  2409. app.kubernetes.io/component: resolvers
  2410. app.kubernetes.io/instance: default
  2411. app.kubernetes.io/part-of: tekton-pipelines
  2412. data:
  2413. zap-logger-config: |
  2414. {
  2415. "level": "info",
  2416. "development": false,
  2417. "sampling": {
  2418. "initial": 100,
  2419. "thereafter": 100
  2420. },
  2421. "outputPaths": ["stdout"],
  2422. "errorOutputPaths": ["stderr"],
  2423. "encoding": "json",
  2424. "encoderConfig": {
  2425. "timeKey": "timestamp",
  2426. "levelKey": "severity",
  2427. "nameKey": "logger",
  2428. "callerKey": "caller",
  2429. "messageKey": "message",
  2430. "stacktraceKey": "stacktrace",
  2431. "lineEnding": "",
  2432. "levelEncoder": "",
  2433. "timeEncoder": "iso8601",
  2434. "durationEncoder": "",
  2435. "callerEncoder": ""
  2436. }
  2437. }
  2438. # Log level overrides
  2439. loglevel.controller: "info"
  2440. loglevel.webhook: "info"
  2441. ---
  2442. # Copyright 2022 The Tekton Authors
  2443. #
  2444. # Licensed under the Apache License, Version 2.0 (the "License");
  2445. # you may not use this file except in compliance with the License.
  2446. # You may obtain a copy of the License at
  2447. #
  2448. # https://www.apache.org/licenses/LICENSE-2.0
  2449. #
  2450. # Unless required by applicable law or agreed to in writing, software
  2451. # distributed under the License is distributed on an "AS IS" BASIS,
  2452. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2453. # See the License for the specific language governing permissions and
  2454. # limitations under the License.
  2455. apiVersion: v1
  2456. kind: ConfigMap
  2457. metadata:
  2458. name: config-observability
  2459. namespace: tekton-pipelines-resolvers
  2460. labels:
  2461. app.kubernetes.io/component: resolvers
  2462. app.kubernetes.io/instance: default
  2463. app.kubernetes.io/part-of: tekton-pipelines
  2464. data:
  2465. _example: |
  2466. ################################
  2467. # #
  2468. # EXAMPLE CONFIGURATION #
  2469. # #
  2470. ################################
  2471. # This block is not actually functional configuration,
  2472. # but serves to illustrate the available configuration
  2473. # options and document them in a way that is accessible
  2474. # to users that `kubectl edit` this config map.
  2475. #
  2476. # These sample configuration options may be copied out of
  2477. # this example block and unindented to be in the data block
  2478. # to actually change the configuration.
  2479. # metrics.backend-destination field specifies the system metrics destination.
  2480. # It supports either prometheus (the default) or stackdriver.
  2481. # Note: Using stackdriver will incur additional charges
  2482. metrics.backend-destination: prometheus
  2483. # metrics.request-metrics-backend-destination specifies the request metrics
  2484. # destination. If non-empty, it enables queue proxy to send request metrics.
  2485. # Currently supported values: prometheus, stackdriver.
  2486. metrics.request-metrics-backend-destination: prometheus
  2487. # metrics.stackdriver-project-id field specifies the stackdriver project ID. This
  2488. # field is optional. When running on GCE, application default credentials will be
  2489. # used if this field is not provided.
  2490. metrics.stackdriver-project-id: "<your stackdriver project id>"
  2491. # metrics.allow-stackdriver-custom-metrics indicates whether it is allowed to send metrics to
  2492. # Stackdriver using "global" resource type and custom metric type if the
  2493. # metrics are not supported by "knative_revision" resource type. Setting this
  2494. # flag to "true" could cause extra Stackdriver charge.
  2495. # If metrics.backend-destination is not Stackdriver, this is ignored.
  2496. metrics.allow-stackdriver-custom-metrics: "false"
  2497. ---
  2498. # Copyright 2022 The Tekton Authors
  2499. #
  2500. # Licensed under the Apache License, Version 2.0 (the "License");
  2501. # you may not use this file except in compliance with the License.
  2502. # You may obtain a copy of the License at
  2503. #
  2504. # https://www.apache.org/licenses/LICENSE-2.0
  2505. #
  2506. # Unless required by applicable law or agreed to in writing, software
  2507. # distributed under the License is distributed on an "AS IS" BASIS,
  2508. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2509. # See the License for the specific language governing permissions and
  2510. # limitations under the License.
  2511. apiVersion: v1
  2512. kind: ConfigMap
  2513. metadata:
  2514. name: git-resolver-config
  2515. namespace: tekton-pipelines-resolvers
  2516. labels:
  2517. app.kubernetes.io/component: resolvers
  2518. app.kubernetes.io/instance: default
  2519. app.kubernetes.io/part-of: tekton-pipelines
  2520. data:
  2521. # The maximum amount of time a single anonymous cloning resolution may take.
  2522. fetch-timeout: "1m"
  2523. # The git url to fetch the remote resource from when using anonymous cloning.
  2524. default-url: "https://github.com/tektoncd/catalog.git"
  2525. # The git revision to fetch the remote resource from with either anonymous cloning or the authenticated API.
  2526. default-revision: "main"
  2527. # The SCM type to use with the authenticated API. Can be github, gitlab, gitea, bitbucketserver, bitbucketcloud
  2528. scm-type: "github"
  2529. # The SCM server URL to use with the authenticated API. Not needed when using github.com, gitlab.com, or BitBucket Cloud
  2530. server-url: ""
  2531. # The Kubernetes secret containing the API token for the SCM provider. Required when using the authenticated API.
  2532. api-token-secret-name: ""
  2533. # The key in the API token secret containing the actual token. Required when using the authenticated API.
  2534. api-token-secret-key: ""
  2535. # The namespace containing the API token secret. Defaults to "default".
  2536. api-token-secret-namespace: "default"
  2537. # The default organization to look for repositories under when using the authenticated API,
  2538. # if not specified in the resolver parameters. Optional.
  2539. default-org: ""
  2540. ---
  2541. # Copyright 2022 The Tekton Authors
  2542. #
  2543. # Licensed under the Apache License, Version 2.0 (the "License");
  2544. # you may not use this file except in compliance with the License.
  2545. # You may obtain a copy of the License at
  2546. #
  2547. # https://www.apache.org/licenses/LICENSE-2.0
  2548. #
  2549. # Unless required by applicable law or agreed to in writing, software
  2550. # distributed under the License is distributed on an "AS IS" BASIS,
  2551. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2552. # See the License for the specific language governing permissions and
  2553. # limitations under the License.
  2554. apiVersion: v1
  2555. kind: ConfigMap
  2556. metadata:
  2557. name: hubresolver-config
  2558. namespace: tekton-pipelines-resolvers
  2559. labels:
  2560. app.kubernetes.io/component: resolvers
  2561. app.kubernetes.io/instance: default
  2562. app.kubernetes.io/part-of: tekton-pipelines
  2563. data:
  2564. # the default Tekton Hub catalog from where to pull the resource.
  2565. default-tekton-hub-catalog: "Tekton"
  2566. # the default Artifact Hub Task catalog from where to pull the resource.
  2567. default-artifact-hub-task-catalog: "tekton-catalog-tasks"
  2568. # the default Artifact Hub Pipeline catalog from where to pull the resource.
  2569. default-artifact-hub-pipeline-catalog: "tekton-catalog-pipelines"
  2570. # the default layer kind in the hub image.
  2571. default-kind: "task"
  2572. # the default hub source to pull the resource from.
  2573. default-type: "artifact"
  2574. ---
  2575. # Copyright 2022 The Tekton Authors
  2576. #
  2577. # Licensed under the Apache License, Version 2.0 (the "License");
  2578. # you may not use this file except in compliance with the License.
  2579. # You may obtain a copy of the License at
  2580. #
  2581. # http://www.apache.org/licenses/LICENSE-2.0
  2582. #
  2583. # Unless required by applicable law or agreed to in writing, software
  2584. # distributed under the License is distributed on an "AS IS" BASIS,
  2585. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2586. # See the License for the specific language governing permissions and
  2587. # limitations under the License.
  2588. apiVersion: apps/v1
  2589. kind: Deployment
  2590. metadata:
  2591. name: tekton-pipelines-remote-resolvers
  2592. namespace: tekton-pipelines-resolvers
  2593. labels:
  2594. app.kubernetes.io/name: resolvers
  2595. app.kubernetes.io/component: resolvers
  2596. app.kubernetes.io/instance: default
  2597. app.kubernetes.io/version: "v0.43.0"
  2598. app.kubernetes.io/part-of: tekton-pipelines
  2599. # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
  2600. pipeline.tekton.dev/release: "v0.43.0"
  2601. # labels below are related to istio and should not be used for resource lookup
  2602. version: "v0.43.0"
  2603. spec:
  2604. replicas: 1
  2605. selector:
  2606. matchLabels:
  2607. app.kubernetes.io/name: resolvers
  2608. app.kubernetes.io/component: resolvers
  2609. app.kubernetes.io/instance: default
  2610. app.kubernetes.io/part-of: tekton-pipelines
  2611. template:
  2612. metadata:
  2613. labels:
  2614. app.kubernetes.io/name: resolvers
  2615. app.kubernetes.io/component: resolvers
  2616. app.kubernetes.io/instance: default
  2617. app.kubernetes.io/version: "v0.43.0"
  2618. app.kubernetes.io/part-of: tekton-pipelines
  2619. # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
  2620. pipeline.tekton.dev/release: "v0.43.0"
  2621. # labels below are related to istio and should not be used for resource lookup
  2622. app: tekton-pipelines-resolvers
  2623. version: "v0.43.0"
  2624. spec:
  2625. affinity:
  2626. podAntiAffinity:
  2627. preferredDuringSchedulingIgnoredDuringExecution:
  2628. - podAffinityTerm:
  2629. labelSelector:
  2630. matchLabels:
  2631. app.kubernetes.io/name: resolvers
  2632. app.kubernetes.io/component: resolvers
  2633. app.kubernetes.io/instance: default
  2634. app.kubernetes.io/part-of: tekton-pipelines
  2635. topologyKey: kubernetes.io/hostname
  2636. weight: 100
  2637. serviceAccountName: tekton-pipelines-resolvers
  2638. containers:
  2639. - name: controller
  2640. image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/resolvers:v0.43.0@sha256:5d09d332306e7efa92a40503a793eac9f164a93b21f13385e6e322e26e55065b
  2641. resources:
  2642. requests:
  2643. cpu: 100m
  2644. memory: 100Mi
  2645. limits:
  2646. cpu: 1000m
  2647. memory: 1000Mi
  2648. ports:
  2649. - name: metrics
  2650. containerPort: 9090
  2651. env:
  2652. - name: SYSTEM_NAMESPACE
  2653. valueFrom:
  2654. fieldRef:
  2655. fieldPath: metadata.namespace
  2656. # If you are changing these names, you will also need to update
  2657. # the controller's Role in 200-role.yaml to include the new
  2658. # values in the "configmaps" "get" rule.
  2659. - name: CONFIG_LOGGING_NAME
  2660. value: config-logging
  2661. - name: CONFIG_OBSERVABILITY_NAME
  2662. value: config-observability
  2663. - name: CONFIG_FEATURE_FLAGS_NAME
  2664. value: feature-flags
  2665. - name: CONFIG_LEADERELECTION_NAME
  2666. value: config-leader-election
  2667. - name: METRICS_DOMAIN
  2668. value: tekton.dev/resolution
  2669. # Override this env var to set a private hub api endpoint
  2670. - name: ARTIFACT_HUB_API
  2671. value: "https://artifacthub.io/"
  2672. securityContext:
  2673. allowPrivilegeEscalation: false
  2674. readOnlyRootFilesystem: true
  2675. runAsNonRoot: true
  2676. capabilities:
  2677. drop:
  2678. - "ALL"
  2679. seccompProfile:
  2680. type: RuntimeDefault
  2681. ---
  2682. # Copyright 2020 The Tekton Authors
  2683. #
  2684. # Licensed under the Apache License, Version 2.0 (the "License");
  2685. # you may not use this file except in compliance with the License.
  2686. # You may obtain a copy of the License at
  2687. #
  2688. # https://www.apache.org/licenses/LICENSE-2.0
  2689. #
  2690. # Unless required by applicable law or agreed to in writing, software
  2691. # distributed under the License is distributed on an "AS IS" BASIS,
  2692. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2693. # See the License for the specific language governing permissions and
  2694. # limitations under the License.
  2695. apiVersion: autoscaling/v2
  2696. kind: HorizontalPodAutoscaler
  2697. metadata:
  2698. name: tekton-pipelines-webhook
  2699. namespace: tekton-pipelines
  2700. labels:
  2701. app.kubernetes.io/name: webhook
  2702. app.kubernetes.io/component: webhook
  2703. app.kubernetes.io/instance: default
  2704. app.kubernetes.io/version: "v0.43.0"
  2705. app.kubernetes.io/part-of: tekton-pipelines
  2706. # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
  2707. pipeline.tekton.dev/release: "v0.43.0"
  2708. # labels below are related to istio and should not be used for resource lookup
  2709. version: "v0.43.0"
  2710. spec:
  2711. minReplicas: 1
  2712. maxReplicas: 5
  2713. scaleTargetRef:
  2714. apiVersion: apps/v1
  2715. kind: Deployment
  2716. name: tekton-pipelines-webhook
  2717. metrics:
  2718. - type: Resource
  2719. resource:
  2720. name: cpu
  2721. target:
  2722. type: Utilization
  2723. averageUtilization: 100
  2724. ---
  2725. # Copyright 2020 The Tekton Authors
  2726. #
  2727. # Licensed under the Apache License, Version 2.0 (the "License");
  2728. # you may not use this file except in compliance with the License.
  2729. # You may obtain a copy of the License at
  2730. #
  2731. # https://www.apache.org/licenses/LICENSE-2.0
  2732. #
  2733. # Unless required by applicable law or agreed to in writing, software
  2734. # distributed under the License is distributed on an "AS IS" BASIS,
  2735. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2736. # See the License for the specific language governing permissions and
  2737. # limitations under the License.
  2738. apiVersion: apps/v1
  2739. kind: Deployment
  2740. metadata:
  2741. # Note: the Deployment name must be the same as the Service name specified in
  2742. # config/400-webhook-service.yaml. If you change this name, you must also
  2743. # change the value of WEBHOOK_SERVICE_NAME below.
  2744. name: tekton-pipelines-webhook
  2745. namespace: tekton-pipelines
  2746. labels:
  2747. app.kubernetes.io/name: webhook
  2748. app.kubernetes.io/component: webhook
  2749. app.kubernetes.io/instance: default
  2750. app.kubernetes.io/version: "v0.43.0"
  2751. app.kubernetes.io/part-of: tekton-pipelines
  2752. # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
  2753. pipeline.tekton.dev/release: "v0.43.0"
  2754. # labels below are related to istio and should not be used for resource lookup
  2755. version: "v0.43.0"
  2756. spec:
  2757. selector:
  2758. matchLabels:
  2759. app.kubernetes.io/name: webhook
  2760. app.kubernetes.io/component: webhook
  2761. app.kubernetes.io/instance: default
  2762. app.kubernetes.io/part-of: tekton-pipelines
  2763. template:
  2764. metadata:
  2765. labels:
  2766. app.kubernetes.io/name: webhook
  2767. app.kubernetes.io/component: webhook
  2768. app.kubernetes.io/instance: default
  2769. app.kubernetes.io/version: "v0.43.0"
  2770. app.kubernetes.io/part-of: tekton-pipelines
  2771. # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
  2772. pipeline.tekton.dev/release: "v0.43.0"
  2773. # labels below are related to istio and should not be used for resource lookup
  2774. app: tekton-pipelines-webhook
  2775. version: "v0.43.0"
  2776. spec:
  2777. affinity:
  2778. nodeAffinity:
  2779. requiredDuringSchedulingIgnoredDuringExecution:
  2780. nodeSelectorTerms:
  2781. - matchExpressions:
  2782. - key: kubernetes.io/os
  2783. operator: NotIn
  2784. values:
  2785. - windows
  2786. podAntiAffinity:
  2787. preferredDuringSchedulingIgnoredDuringExecution:
  2788. - podAffinityTerm:
  2789. labelSelector:
  2790. matchLabels:
  2791. app.kubernetes.io/name: webhook
  2792. app.kubernetes.io/component: webhook
  2793. app.kubernetes.io/instance: default
  2794. app.kubernetes.io/part-of: tekton-pipelines
  2795. topologyKey: kubernetes.io/hostname
  2796. weight: 100
  2797. serviceAccountName: tekton-pipelines-webhook
  2798. containers:
  2799. - name: webhook
  2800. # This is the Go import path for the binary that is containerized
  2801. # and substituted here.
  2802. image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/webhook:v0.43.0@sha256:3bb1035120f7eccf0ad8c36b08f74ad48797e128313a1d2cbe2977a73d40c1e1
  2803. # Resource request required for autoscaler to take any action for a metric
  2804. resources:
  2805. requests:
  2806. cpu: 100m
  2807. memory: 100Mi
  2808. limits:
  2809. cpu: 500m
  2810. memory: 500Mi
  2811. env:
  2812. - name: SYSTEM_NAMESPACE
  2813. valueFrom:
  2814. fieldRef:
  2815. fieldPath: metadata.namespace
  2816. # If you are changing these names, you will also need to update
  2817. # the webhook's Role in 200-role.yaml to include the new
  2818. # values in the "configmaps" "get" rule.
  2819. - name: CONFIG_LOGGING_NAME
  2820. value: config-logging
  2821. - name: CONFIG_OBSERVABILITY_NAME
  2822. value: config-observability
  2823. - name: CONFIG_LEADERELECTION_NAME
  2824. value: config-leader-election
  2825. - name: CONFIG_FEATURE_FLAGS_NAME
  2826. value: feature-flags
  2827. # If you change WEBHOOK_PORT, you will also need to change the
  2828. # containerPort "https-webhook" to the same value.
  2829. - name: WEBHOOK_PORT
  2830. value: "8443"
  2831. - name: WEBHOOK_SERVICE_NAME
  2832. value: tekton-pipelines-webhook
  2833. - name: WEBHOOK_SECRET_NAME
  2834. value: webhook-certs
  2835. - name: METRICS_DOMAIN
  2836. value: tekton.dev/pipeline
  2837. securityContext:
  2838. allowPrivilegeEscalation: false
  2839. capabilities:
  2840. drop:
  2841. - "ALL"
  2842. # User 65532 is the distroless nonroot user ID
  2843. runAsUser: 65532
  2844. runAsGroup: 65532
  2845. runAsNonRoot: true
  2846. seccompProfile:
  2847. type: RuntimeDefault
  2848. ports:
  2849. - name: metrics
  2850. containerPort: 9090
  2851. - name: profiling
  2852. containerPort: 8008
  2853. # This must match the value of the environment variable WEBHOOK_PORT.
  2854. - name: https-webhook
  2855. containerPort: 8443
  2856. - name: probes
  2857. containerPort: 8080
  2858. livenessProbe:
  2859. httpGet:
  2860. path: /health
  2861. port: probes
  2862. scheme: HTTP
  2863. initialDelaySeconds: 5
  2864. periodSeconds: 10
  2865. timeoutSeconds: 5
  2866. readinessProbe:
  2867. httpGet:
  2868. path: /readiness
  2869. port: probes
  2870. scheme: HTTP
  2871. initialDelaySeconds: 5
  2872. periodSeconds: 10
  2873. timeoutSeconds: 5
  2874. ---
  2875. apiVersion: v1
  2876. kind: Service
  2877. metadata:
  2878. labels:
  2879. app.kubernetes.io/name: webhook
  2880. app.kubernetes.io/component: webhook
  2881. app.kubernetes.io/instance: default
  2882. app.kubernetes.io/version: "v0.43.0"
  2883. app.kubernetes.io/part-of: tekton-pipelines
  2884. # tekton.dev/release value replaced with inputs.params.versionTag in pipeline/tekton/publish.yaml
  2885. pipeline.tekton.dev/release: "v0.43.0"
  2886. # labels below are related to istio and should not be used for resource lookup
  2887. app: tekton-pipelines-webhook
  2888. version: "v0.43.0"
  2889. name: tekton-pipelines-webhook
  2890. namespace: tekton-pipelines
  2891. spec:
  2892. ports:
  2893. # Define metrics and profiling for them to be accessible within service meshes.
  2894. - name: http-metrics
  2895. port: 9090
  2896. targetPort: 9090
  2897. - name: http-profiling
  2898. port: 8008
  2899. targetPort: 8008
  2900. - name: https-webhook
  2901. port: 443
  2902. targetPort: https-webhook
  2903. - name: probes
  2904. port: 8080
  2905. selector:
  2906. app.kubernetes.io/name: webhook
  2907. app.kubernetes.io/component: webhook
  2908. app.kubernetes.io/instance: default
  2909. app.kubernetes.io/part-of: tekton-pipelines
  2910. ---