Writing files

How to write a file in your scenario

You can write files in your scenario using a bash command:

cat << EOF > /tmp/storageos-secret.yaml
apiVersion: v1
kind: Secret
  name: "storageos-api"
  namespace: "storageos-operator"
    app: "storageos"
type: "kubernetes.io/storageos"

Check the content of your file cat /tmp/storageos-secret.yaml

If you need to have those files created at the start of the scenario, you can define them as assets.