i have used configmap with changes and mounted the same in .
---
apiVersion:
awx.ansible.com/v1beta1kind: AWX
metadata:
name: awx-demo
spec:
service_type: nodeport
extra_volumes: |
- name: awx-demo-awx-configmapy
configMap:
name: awx-demo-awx-configmapy
items:
- key: settings
path: settings.py
web_extra_volume_mounts: |
- name: awx-demo-awx-configmapy
mountPath: /etc/tower/settings.py
subPath: settings.py
readOnly: false
and it fails with
both inclusive\\\",\\\"field\\\":\\\"spec.template.spec.volumes[13].configMap.defaultMode\\\"},{\\\"reason\\\":\\\"FieldValueNotFound\\\",\\\"message\\\":\\\"Not found: \\\\\\\\\\\\\\\"\\\",\\\"field\\\":\\\"spec.template.spec.containers[1].volumeMounts[4].name\\\"}]},\\\"code\\\":422}\\\\n'\", \"reason\": \"Unprocessable Entity\", \"status\": 422}\n\