-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kuttl tests to validate config overrides with extraMounts
Added config override check for both secret and configmap. Also update debug config check pod to filter only running containers. Resolves: OSPRH-4296
- Loading branch information
1 parent
e0d3f1c
commit 9fcb695
Showing
5 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# Check for: | ||
# | ||
# - Secret | ||
# - ConfigMap | ||
|
||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: test-secret-vol | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: test-configmap-vol |
19 changes: 19 additions & 0 deletions
19
test/kuttl/tests/change_neutron_config/00-test-resources.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# test-secret-vol Secret | ||
# test-configmap-vol ConfiMap | ||
# | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: test-secret-vol | ||
data: | ||
testsecret.conf: W0RFRkFVTFRdCnJwY193b3JrZXJzID0gMAo= | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: test-configmap-vol | ||
data: | ||
testcm.conf: | | ||
[DEFAULT] | ||
api_workers = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
test/kuttl/tests/change_neutron_config/02-extramounts.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: neutron.openstack.org/v1beta1 | ||
kind: NeutronAPI | ||
metadata: | ||
name: neutron | ||
spec: | ||
extraMounts: | ||
- extraVol: | ||
- volumes: | ||
- name: test-configmap-vol | ||
configMap: | ||
name: test-configmap-vol | ||
- name: test-secret-vol | ||
secret: | ||
secretName: test-secret-vol | ||
mounts: | ||
- name: test-configmap-vol | ||
mountPath: /etc/neutron/neutron.conf.d/testcm.conf | ||
subPath: testcm.conf | ||
readOnly: true | ||
- name: test-secret-vol | ||
mountPath: /etc/neutron/neutron.conf.d/testsecret.conf | ||
subPath: testsecret.conf | ||
readOnly: false |