-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
201 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,87 @@ | ||
apiVersion: barbican.openstack.org/v1beta1 | ||
kind: Barbican | ||
metadata: | ||
name: barbican | ||
spec: | ||
serviceUser: barbican | ||
customServiceConfig: | | ||
[DEFAULT] | ||
debug = True | ||
databaseInstance: openstack | ||
databaseUser: barbican | ||
rabbitMqClusterName: rabbitmq | ||
barbicanAPI: | ||
replicas: 1 | ||
barbicanWorker: | ||
replicas: 1 | ||
barbicanKeystoneListener: | ||
replicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: barbican | ||
app.kubernetes.io/instance: barbican | ||
app.kubernetes.io/part-of: barbican-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/created-by: barbican-operator | ||
name: barbican | ||
spec: | ||
serviceAccount: barbican | ||
serviceUser: barbican | ||
containerImage: quay.io/podified-antelope-centos9/openstack-barbican-api:current-podified | ||
databaseInstance: openstack | ||
databaseUser: barbican | ||
rabbitMqCusterName: barbican_rabbit | ||
secret: osp-secret | ||
passwordSelectors: | ||
database: BarbicanDatabasePassword | ||
service: BarbicanPassword | ||
debug: | ||
dbInitContainer: false | ||
dbSync: false | ||
initContainer: false | ||
service: false | ||
preserveJobs: true | ||
nodeSelector: | ||
node: controller | ||
customServiceConfig: | | ||
[DEFAULT] | ||
debug = True | ||
defaultConfigOverwrite: | ||
policy.json: | | ||
{"some": "custom policy"} | ||
barbicanAPI: | ||
containerImage: quay.io/podified-antelope-centos9/openstack-barbican-api:current-podified | ||
nodeSelector: | ||
optional_override: here | ||
customServiceConfig: | | ||
[optional] | ||
overrides = True | ||
defautlConfigOverwrite: | ||
optional_policy.json: | | ||
{"some": "custom policy"} | ||
passwordSelectors: | ||
database: BarbicanDatabasePassword | ||
service: BarbicanPassword | ||
barbicanWorker: | ||
containerImage: quay.io/podified-antelope-centos9/openstack-barbican-worker:current-podified | ||
nodeSelector: | ||
optional_override: here | ||
customServiceConfig: | | ||
[optional] | ||
overrides = True | ||
defautlConfigOverwrite: | ||
optional_policy.json: | | ||
{"some": "custom policy"} | ||
barbicanKeystoneListener: | ||
containerImage: quay.io/podified-antelope-centos9/openstack-barbican-keystone-listener:current-podified | ||
nodeSelector: | ||
optional_override: here | ||
customServiceConfig: | | ||
[optional] | ||
overrides = True | ||
defautlConfigOverwrite: | ||
optional_policy.json: | | ||
{"some": "custom policy"} |
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 @@ | ||
../../common/assert_sample_deployment.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,6 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
cp ../../../../config/samples/barbican_v1beta1_barbican.*yaml deploy | ||
oc kustomize deploy | oc apply -n $NAMESPACE -f - |
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,6 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
oc kustomize deploy | oc delete -n $NAMESPACE -f - | ||
rm deploy/barbican_v1beta1_barbican.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,17 @@ | ||
# | ||
# Check for: | ||
# | ||
# No BarbicanAPI CR | ||
# No Deployment for BarbicanAPI CR | ||
# No Pods in barbican Deployment | ||
# No Barbican Services | ||
# | ||
apiVersion: barbican.openstack.org/v1beta1 | ||
kind: Barbican | ||
metadata: | ||
name: barbican | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: barbican |
68 changes: 68 additions & 0 deletions
68
test/kuttl/tests/barbican_scale/deploy/barbican_v1beta1_barbican.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,68 @@ | ||
apiVersion: barbican.openstack.org/v1beta1 | ||
kind: Barbican | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: barbican | ||
app.kubernetes.io/instance: barbican | ||
app.kubernetes.io/part-of: barbican-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/created-by: barbican-operator | ||
name: barbican | ||
spec: | ||
serviceAccount: barbican | ||
serviceUser: barbican | ||
containerImage: quay.io/podified-antelope-centos9/openstack-barbican-api:current-podified | ||
databaseInstance: openstack | ||
databaseUser: barbican | ||
rabbitMqCusterName: barbican_rabbit | ||
secret: osp-secret | ||
passwordSelectors: | ||
database: BarbicanDatabasePassword | ||
service: BarbicanPassword | ||
debug: | ||
dbInitContainer: false | ||
dbSync: false | ||
initContainer: false | ||
service: false | ||
preserveJobs: true | ||
nodeSelector: | ||
node: controller | ||
customServiceConfig: | | ||
[DEFAULT] | ||
debug = True | ||
defaultConfigOverwrite: | ||
policy.json: | | ||
{"some": "custom policy"} | ||
barbicanAPI: | ||
containerImage: quay.io/podified-antelope-centos9/openstack-barbican-api:current-podified | ||
nodeSelector: | ||
optional_override: here | ||
customServiceConfig: | | ||
[optional] | ||
overrides = True | ||
defautlConfigOverwrite: | ||
optional_policy.json: | | ||
{"some": "custom policy"} | ||
passwordSelectors: | ||
database: BarbicanDatabasePassword | ||
service: BarbicanPassword | ||
barbicanWorker: | ||
containerImage: quay.io/podified-antelope-centos9/openstack-barbican-worker:current-podified | ||
nodeSelector: | ||
optional_override: here | ||
customServiceConfig: | | ||
[optional] | ||
overrides = True | ||
defautlConfigOverwrite: | ||
optional_policy.json: | | ||
{"some": "custom policy"} | ||
barbicanKeystoneListener: | ||
containerImage: quay.io/podified-antelope-centos9/openstack-barbican-keystone-listener:current-podified | ||
nodeSelector: | ||
optional_override: here | ||
customServiceConfig: | | ||
[optional] | ||
overrides = True | ||
defautlConfigOverwrite: | ||
optional_policy.json: | | ||
{"some": "custom policy"} |
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,13 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./barbican_v1beta1_barbican.yaml | ||
patches: | ||
- patch: |- | ||
- op: replace | ||
path: /spec/secret | ||
value: osp-secret | ||
- op: replace | ||
path: /metadata/namespace | ||
target: | ||
kind: Barbican |