st-tech / gatling-operator

Automating distributed Gatling load testing using Kubernetes operator
MIT License
70 stars 19 forks source link

Support Custom labels and annotations to be added to Pod template of a Gatling runner job #63

Closed S-mishina closed 1 year ago

S-mishina commented 1 year ago

Description

Support Custom labels and annotations to be added to Pod template of a Gatling runner job

Relevant Issue: https://github.com/st-tech/gatling-operator/issues/62

What's been changed / added?

How to add label and annotation to a Gatling runner job

To add labels or annotations to the Gatling runner job, put them under metadata.

apiVersion: gatling-operator.tech.zozo.com/v1alpha1
kind: Gatling
metadata:
  name: gatling-sample01
  labels:
    app: my-sample-app
  annotations:
    gatling-operator.tech.zozo.com/hello: "true"

Testing

We checked the operation with and without label and annotation respectively.

Checklist

Please check if applicable

Relevant issue https://github.com/st-tech/gatling-operator/issues/62

yokawasa commented 1 year ago

Adding @akitok @ksudate to reviewers

yokawasa commented 1 year ago

Add @ikuwow for reviewers