EDITD / kubetools

:nut_and_bolt: Kubetools is a tool and processes for developing and deploying microservices to Kubernetes.
MIT License
13 stars 2 forks source link

PFM-1685 / Add annotations option to resources defined in kubetools.yaml file #165

Closed DilaraOflaz closed 2 months ago

DilaraOflaz commented 2 months ago

Purpose of PR


I have tried on the following resources with and without annotations

name: telegraf-test

deployments:
  telegraf-test:
    annotations:
       app.kubernetes.io/name: "telegraf-test"
    containers:
      telegraf-test:
        image: test-image

dependencies:
  mariadb:
    annotations:
         app.kubernetes.io/name: "telegraf-test"
    containers:
      mariadb-container:
        image: test-images

cronjobs:
  my-cronjob:
    annotations:
       app.kubernetes.io/name: "telegraf-test"
    schedule: "*/1 * * * *"
    concurrency_policy: "Replace"
    containers:
      hello:
        image: test-images
        command: [/bin/sh, -c, date; echo Hello from the Kubernetes cluster]

Parts of the app this will impact

Todos

Additional information

Related links

DilaraOflaz commented 2 months ago

Here are the tests @gchazot https://github.com/EDITD/kubetools/pull/165/commits/b137d4fe92fba19f7f48e009db4d5e980d9b3878