Skip to content

Commit

Permalink
Merge pull request #385 from ashu-011/kuttl_extramount
Browse files Browse the repository at this point in the history
Add kuttl tests for extramounts option
  • Loading branch information
openshift-merge-bot[bot] authored Nov 11, 2024
2 parents a53c18d + 1c940fc commit 2ef2b1f
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: horizon.openstack.org/v1beta1
kind: Horizon
metadata:
name: horizon
spec:
extraMounts:
- extraVol:
- extraVolType: Policy
mounts:
- mountPath: /etc/openstack-dashboard/mycustomPolicy.yaml
name: policy
readOnly: true
subPath: mycustomPolicy.yaml
volumes:
- name: policy
name: v1
region: r1
replicas: 1
secret: "osp-secret"
customServiceConfig: |
DEBUG = True
LOGGING['handlers']['console']['level'] = 'DEBUG'
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: |
touch mycustompolicy.yaml
oc create configmap -n $NAMESPACE horizon-policy --from-file mycustompolicy.yaml
- script: |
oc patch horizon -n $NAMESPACE horizon --type='merge' -p '{
"spec": {
"extraMounts": [
{
"name": "v1",
"region": "r1",
"extraVol": [
{
"extraVolType": "Policy",
"mounts": [
{
"mountPath": "/etc/openstack-dashboard/mycustomPolicy.yaml",
"name": "policy",
"readOnly": true,
"subPath": "mycustomPolicy.yaml"
}
],
"volumes": [
{
"name": "policy",
"configMap": {
"name": "horizon-policy"
}
}
]
}
]
}
]
}
}'

0 comments on commit 2ef2b1f

Please sign in to comment.