Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion ci/playbooks/install-openstack-lightspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,42 @@
kind: ClusterRole
name: lightspeed-access
subjects:
# The current test-operator uses the namespace's default account.
- kind: ServiceAccount
name: "{{ openstack_lightspeed_ansibletest_service_account }}"
namespace: "{{ cifmw_test_operator_namespace | default('openstack') }}"

- name: Authorize the test Pod to exec into the openstack-assistant Pod
when: openstack_assistant_enabled | default(false) | bool
kubernetes.core.k8s:
state: present
definition:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: lightspeed-tests-assistant-exec
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["pods/exec"]
verbs: ["create", "get"]

- name: Bind the exec permissions to the test-operator ServiceAccount
when: openstack_assistant_enabled | default(false) | bool
kubernetes.core.k8s:
state: present
definition:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: lightspeed-tests-assistant-exec
namespace: "{{ cifmw_test_operator_namespace | default('openstack') }}"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: lightspeed-tests-assistant-exec
subjects:
- kind: ServiceAccount
name: "{{ openstack_lightspeed_ansibletest_service_account }}"
namespace: "{{ cifmw_test_operator_namespace | default('openstack') }}"
Expand Down
5 changes: 5 additions & 0 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@
- serviceAccountToken:
path: token
expirationSeconds: 3600
- configMap:
name: kube-root-ca.crt
items:
- key: ca.crt
path: ca.crt
- name: prometheus-ca
secret:
secretName: combined-ca-bundle
Expand Down
Loading