kuttl icon indicating copy to clipboard operation
kuttl copied to clipboard

Ease Create Configmap

Open kensipe opened this issue 5 years ago • 2 comments

seeing projects is commonly looking for a configmap for a teststep example

apiVersion: kudo.dev/v1alpha1
kind: TestStep
commands:
- command: 'kubectl create configmap example-cm --from-file=../../jobs/tensorflow.py -n tensorflow-testing'

looks like a need for create, from file, from values with a namespace

kensipe avatar Apr 28 '20 21:04 kensipe

needs delete as well

apiVersion: kudo.dev/v1alpha1
kind: TestStep
commands:
  - command: kubectl delete configmap example-cm -n tensorflow-testing

Ideally, create a configmap for the duration of a testsuite and for the duration of a teststep

kensipe avatar Apr 28 '20 21:04 kensipe

In addition configmaps created for a testsuite would be deleted at end of suite... configmaps create for tests are deleted at the end of a test.

kensipe avatar Jul 17 '20 19:07 kensipe