apiVersion: k8s.mariadb.com/v1alpha1 kind: User metadata: name: app-demo-user spec: # If you want the user to be created with a different name than the resource name # name: user-custom mariaDbRef: name: mariadb passwordSecretKeyRef: name: app-demo-database-secret key: password maxUserConnections: 20 host: "%" # Delete the resource in the database whenever the CR gets deleted. # Alternatively, you can specify Skip in order to omit deletion. cleanupPolicy: Skip requeueInterval: 10h retryInterval: 30s