Skip to content

Commit

Permalink
update cluster-service deployment to use operator managed identities
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-schndr committed Nov 6, 2024
1 parent 8a149ce commit d83983a
Showing 1 changed file with 108 additions and 0 deletions.
108 changes: 108 additions & 0 deletions cluster-service/deploy/openshift-templates/arohcp-service-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,107 @@ objects:
}
}
# TODO: parameterize data.platform-identities.yaml after templatize refactor and helm chart conversion
- apiVersion: v1
kind: ConfigMap
metadata:
name: azure-operators-managed-identities-config
namespace: ${NAMESPACE}
data:
azure-operators-managed-identities-config.yaml: |
controlPlaneOperatorsIdentities:
cloud-controller-manager:
minOpenShiftVersion: 4.17
azureRoleDefinitionResourceId: '/subscriptions/1d3378d3-5a3f-4712-85a1-2485495dfc4b/providers/Microsoft.Authorization/roleDefinitions/ebe170ec-1247-536a-86d9-74c829dd9844'
azureRoleDefinitionName: 'Azure Red Hat OpenShift Cloud Controller Manager - Dev'
optional: false
ingress:
minOpenShiftVersion: 4.17
azureRoleDefinitionResourceId: '/subscriptions/1d3378d3-5a3f-4712-85a1-2485495dfc4b/providers/Microsoft.Authorization/roleDefinitions/589ca160-4fac-501e-ad6c-006a19583727'
azureRoleDefinitionName: 'Azure Red Hat OpenShift Cluster Ingress Operator - Dev'
optional: false
disk-csi-driver:
minOpenShiftVersion: 4.17
azureRoleDefinitionResourceId: '/subscriptions/1d3378d3-5a3f-4712-85a1-2485495dfc4b/providers/Microsoft.Authorization/roleDefinitions/4367fe74-0b43-5033-b629-15d9f28415ac'
azureRoleDefinitionName: 'Azure Red Hat OpenShift Disk Storage Operator - Dev'
optional: false
file-csi-driver:
minOpenShiftVersion: 4.17
azureRoleDefinitionResourceId: '/subscriptions/1d3378d3-5a3f-4712-85a1-2485495dfc4b/providers/Microsoft.Authorization/roleDefinitions/fdc0aaaa-1c3e-548e-ad27-0321e5fab18b'
azureRoleDefinitionName: 'Azure Red Hat OpenShift File Storage Operator - Dev'
optional: false
image-registry:
minOpenShiftVersion: 4.17
azureRoleDefinitionResourceId: '/subscriptions/1d3378d3-5a3f-4712-85a1-2485495dfc4b/providers/Microsoft.Authorization/roleDefinitions/357b9263-656f-5d45-9d7a-ccb825f0683f'
azureRoleDefinitionName: 'Azure Red Hat OpenShift Image Registry Operator - Dev'
optional: false
cloud-network-config:
minOpenShiftVersion: 4.17
azureRoleDefinitionResourceId: '/subscriptions/1d3378d3-5a3f-4712-85a1-2485495dfc4b/providers/Microsoft.Authorization/roleDefinitions/4e4f23fe-3fab-568b-a001-10b233b0f840'
azureRoleDefinitionName: 'Azure Red Hat OpenShift Network Operator - Dev'
optional: false
dataPlaneOperatorsIdentities:
disk-csi-driver:
minOpenShiftVersion: 4.17
azureRoleDefinitionResourceId: '/subscriptions/1d3378d3-5a3f-4712-85a1-2485495dfc4b/providers/Microsoft.Authorization/roleDefinitions/4367fe74-0b43-5033-b629-15d9f28415ac'
azureRoleDefinitionName: 'Azure Red Hat OpenShift Disk Storage Operator - Dev'
k8sServiceAccounts:
- name: 'system:serviceaccount:openshift-cluster-csi-drivers:azure-disk-csi-driver-operator'
namespace: 'openshift-cluster-csi-drivers'
- name: 'system:serviceaccount:openshift-cluster-csi-drivers:azure-disk-csi-driver-controller-sa'
namespace: 'openshift-cluster-csi-drivers'
optional: false
image-registry:
minOpenShiftVersion: 4.17
azureRoleDefinitionResourceId: '/subscriptions/1d3378d3-5a3f-4712-85a1-2485495dfc4b/providers/Microsoft.Authorization/roleDefinitions/357b9263-656f-5d45-9d7a-ccb825f0683f'
azureRoleDefinitionName: 'Azure Red Hat OpenShift Image Registry Operator - Dev'
k8sServiceAccounts:
- name: 'system:serviceaccount:openshift-image-registry:cluster-image-registry-operator'
namespace: 'openshift-image-registry'
- name: 'system:serviceaccount:openshift-image-registry:registry'
namespace: 'openshift-image-registry'
optional: false
file-csi-driver:
minOpenShiftVersion: 4.17
azureRoleDefinitionResourceId: '/subscriptions/1d3378d3-5a3f-4712-85a1-2485495dfc4b/providers/Microsoft.Authorization/roleDefinitions/fdc0aaaa-1c3e-548e-ad27-0321e5fab18b'
azureRoleDefinitionName: 'Azure Red Hat OpenShift File Storage Operator - Dev'
k8sServiceAccounts:
- name: 'system:serviceaccount:openshift-cluster-csi-drivers:azure-file-csi-driver-operator'
namespace: 'openshift-cluster-csi-drivers'
- name: 'system:serviceaccount:openshift-cluster-csi-drivers:azure-file-csi-driver-controller-sa'
namespace: 'openshift-cluster-csi-drivers'
- name: 'system:serviceaccount:openshift-cluster-csi-drivers:azure-file-csi-driver-node-sa'
namespace: 'openshift-cluster-csi-drivers'
optional: false
ingress:
minOpenShiftVersion: 4.17
azureRoleDefinitionResourceId: '/subscriptions/1d3378d3-5a3f-4712-85a1-2485495dfc4b/providers/Microsoft.Authorization/roleDefinitions/589ca160-4fac-501e-ad6c-006a19583727'
azureRoleDefinitionName: 'Azure Red Hat OpenShift Cluster Ingress Operator - Dev'
k8sServiceAccounts:
- name: 'system:serviceaccount:openshift-ingress-operator:ingress-operator'
namespace: 'openshift-ingress-operator'
optional: false
cloud-network-config:
minOpenShiftVersion: 4.17
azureRoleDefinitionResourceId: '/subscriptions/1d3378d3-5a3f-4712-85a1-2485495dfc4b/providers/Microsoft.Authorization/roleDefinitions/4e4f23fe-3fab-568b-a001-10b233b0f840'
azureRoleDefinitionName: 'Azure Red Hat OpenShift Network Operator - Dev'
k8sServiceAccounts:
- name: 'system:serviceaccount:openshift-cloud-network-config-controller:cloud-network-config-controller'
namespace: 'openshift-cloud-network-config-controller'
optional: false
- apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down Expand Up @@ -444,6 +545,9 @@ objects:
- name: azure-runtime-config
configMap:
name: azure-runtime-config
- name: azure-operators-managed-identities-config
configMap:
name: azure-operators-managed-identities-config
- name: mixin-pull-secret
secret:
secretName: hive-ci-global-pull-secret
Expand Down Expand Up @@ -517,6 +621,9 @@ objects:
readOnly: true
- name: azure-runtime-config
mountPath: /configs/azure-runtime-config
- name: azure-operators-managed-identities-config
mountPath: /configs/azure-operators-managed-identities-config.yaml
subPath: azure-operators-managed-identities-config.yaml
env:
- name: NAMESPACE
valueFrom:
Expand Down Expand Up @@ -568,6 +675,7 @@ objects:
- --azure-first-party-application-client-id=${AZURE_FIRST_PARTY_APPLICATION_CLIENT_ID}
- --azure-first-party-application-certificate-bundle-path=/secrets/keyvault/firstPartyApplicationCertificateBundle
- --azure-runtime-config-path=/configs/azure-runtime-config/config.json
- --azure-operators-managed-identities-config-path=/configs/azure-operators-managed-identities-config.yaml
livenessProbe:
httpGet:
path: /api/clusters_mgmt/v1
Expand Down

0 comments on commit d83983a

Please sign in to comment.