Make a change to AWX Operator

Hi,

I have installed AWX using the instructions here:

https://ansible.readthedocs.io/projects/awx-operator/en/latest/installation/basic-install.html

However I now need to make a change to the awx-demo.yaml file to allow persistent storage of the projects folder as described here:

https://ansible.readthedocs.io/projects/awx-operator/en/latest/user-guide/advanced-configuration/persisting-projects-directory.html

However when I make this change and run kubectl apply -k . nothing changes.
I have googled quite a lot and found something about patches but that doesn’t seem to change anything either.

This is my kustomize.yaml file

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
  # https://github.com/ansible/awx-operator/releases (find the latest release and replace 2.9.0 below with latest)
  - github.com/ansible/awx-operator/config/default?ref=2.9.0
  - awx-deploy.yaml
images:
  - name: quay.io/ansible/awx-operator
    newTag: 2.9.0

namespace: awx2
patches:
  - path: awx-patch.yaml

this is my awx-demo.yaml file:

---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx2
spec:
  service_type: nodeport
  nodeport_port: 30080
  # I tried adding these lines in after it was applied but it didn't work
  projects_persistence: true
  projects_storage_access_mode: ReadWriteOnce

This is the patch file I tried

---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx2
spec:
  nodeport_port: 80
  projects_persistence: true
  projects_storage_access_mode: ReadWriteOnce

Any help would be appreciated.

Hello @Purple can the logs from when you run the apply command? That will help us identify what may be occurring here.