Move cred req policies under providerSpec
@@ -175,6 +175,17 @@ spec:
---
apiVersion: cloudcredential.openshift.io/v1
kind: CredentialsRequest
+metadata:
+ labels:
+ controller-tools.k8s.io: "1.0"
+ name: openshift-machine-api-ibmcloud
+ namespace: openshift-cloud-credential-operator
+ annotations:
+ include.release.openshift.io/self-managed-high-availability: "true"
+spec:
+ providerSpec:
+ apiVersion: cloudcredential.openshift.io/v1
+ kind: IBMCloudProviderSpec
policies:
- roles:
- "crn:v1:bluemix:public:iam::::role:Operator"
@@ -188,17 +199,6 @@ policies:
attributes:
- name: "serviceName"
value: "resource-controller"
-metadata:
- labels:
- controller-tools.k8s.io: "1.0"
- name: openshift-machine-api-ibmcloud
- namespace: openshift-cloud-credential-operator
- annotations:
- include.release.openshift.io/self-managed-high-availability: "true"
-spec:
secretRef:
namespace: openshift-machine-api
name: ibmcloud-credentials
- providerSpec:
- apiVersion: cloudcredential.openshift.io/v1
- kind: IBMCloudProviderSpec
