package Ġde . jos hu agle it ze . gradle . kubectl . tasks Ċ Ċ import Ġde . jos hu agle it ze . gradle . kubectl . data . Arguments Ċ import Ġde . jos hu agle it ze . gradle . kubectl . data . K ubectl Apply Spec Ċ import Ġde . jos hu agle it ze . gradle . kubectl . data . Selector Ċ import Ġde . jos hu agle it ze . gradle . kubectl . tasks . Deploy Task . DEPLOY MENT _ TASK _ GROUP Ċ import Ġorg . gradle . api . file . Directory Property Ċ import Ġorg . gradle . api . provider . Property Ċ import Ġorg . gradle . api . tasks . Input Ċ import Ġorg . gradle . api . tasks . Input Directory Ċ import Ġorg . gradle . api . tasks . Internal Ċ import Ġorg . gradle . api . tasks . Optional Ċ import Ġorg . gradle . api . tasks . Task Action Ċ import Ġorg . gradle . kotlin . dsl . property Ċ import Ġorg . gradle . workers . Worker Executor Ċ import Ġjavax . inject . Inject Ċ Ċ public Ġopen Ġclass ĠK ubectl Apply Task Ġ@ Inject Ġconstructor ( worker Executor : ĠWorker Executor ): ĠK ubectl Task ( worker Executor ), ĠK ubectl Apply Spec Ġ{ Ċ ĉ init Ġ{ Ċĉ ĉ group Ġ= ĠDEP LOY MENT _ TASK _ GROUP Ċĉ ĉ description Ġ= Ġ" de ploys Ġa Ġresources Ġto Ġa Ġkubernetes Ġcluster " Ċ ĉ } ĊĊ ĉ @ Input Directory Ċ ĉ override Ġval Ġk ustom ization Dir : ĠDirectory Property Ġ= Ġproject . objects . directory Property () ĊĊ ĉ @ Optional Ċ ĉ @ Input Ċ ĉ override Ġval Ġprune Selector : ĠProperty < Selector > Ġ= Ġproject . objects . property < Selector >(). convention ( null Ġas ĠSelector ?) ĊĊ ĉ @ Internal Ċ ĉ override Ġvar ĠwaitFor Resource Deletion : ĠBoolean Ġ= Ġfalse ĊĊ ĉ @ Task Action Ċ ĉ public Ġfun Ġapply () Ġ{ Ċĉ ĉ run K ubectl ( Ċĉĉ ĉ Arguments (" apply ") Ċĉĉĉ ĉ . add ("-- k ustom ize =${ k ustom ization Dir . as File . get (). absolute Path }") Ċĉĉĉ ĉ . addAll If Present ( prune Selector ) Ġ{ ĠArguments ("-- prune ") Ġ+ Ġit . generate K ubectl Arguments () Ġ} Ċĉĉĉ ĉ . add If ( waitFor Resource Deletion ) Ġ{ Ġ"-- wait " Ġ} Ċĉ ĉ ) Ċ ĉ } Ċ } Ċ