fkorotkov / k8s-kotlin-dsl

Kotlin DSL for Kubernetes configs
MIT License
342 stars 19 forks source link

More examples if possible #23

Closed luistrigueiros closed 4 years ago

luistrigueiros commented 4 years ago

Hi just to say a big thanks for this repo it is very cool, and I have been exploring using it. I have found that maybe some examples maybe in the for of test per Kubernetes object type would be useful to start understanding how to use the builders.

Thank you. kindly Oscar

fkorotkov commented 4 years ago

Hey Oscar,

What kind of objects are you interested in? I'll add examples for you.

luistrigueiros commented 4 years ago

At the moment is Services, mainly. Thank you @fkorotkov .

bjartek commented 4 years ago

See here for an example on how to create a service https://github.com/Skatteetaten/boober/blob/e86f9a3120bb7a3852b4fff62c7aaee1be3eb709/src/main/kotlin/no/skatteetaten/aurora/boober/feature/AbstractDeployFeature.kt

fkorotkov commented 4 years ago

Added https://github.com/fkorotkov/k8s-kotlin-dsl/blob/master/example/src/main/kotlin/BaseService.kt

luistrigueiros commented 4 years ago

Many thanks @fkorotkov