Skip to content

Commit

Permalink
rhdh ado
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzheng422 committed Dec 17, 2024
1 parent 1dae46d commit 8f7a183
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions redhat/ocp4/4.16/2024.12.rhdh.ado.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ The `app registration` for azure devops integration is `rhdh-azure-devops`, and
> [!NOTE]
> Recode down the `tenant id`, `client id` and `client secret` for both `app registration`, we will use it in the next step.
And for demo purpose, we create sever group and users

- L1Support(group)
- l1.u01(user)
- l1.u02(user)
- L2Support(group)
- l2.u01(user)
- l2.u02(user)
- L3Support(group)
- l3.u01(user)
- l3.u02(user)

# azure devops setup

<!-- In azure devops settings, import the user of the azure user
Expand Down Expand Up @@ -116,7 +128,7 @@ global:
# Azure Repositories
# - package: ./dynamic-plugins/dist/parfuemerie-douglas-scaffolder-backend-module-azure-repositories
# disabled: false

# MS Graph
# this is used to import users from azure ad.
- package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-msgraph-dynamic
Expand Down Expand Up @@ -246,18 +258,20 @@ data:
tenantId: \${AZURE_TENANT_ID}
clientId: \${AZURE_CLIENT_ID}
clientSecret: \${AZURE_CLIENT_SECRET}
headers:
ConsistencyLevel: eventual
# queryMode: advanced
# user:
# loadPhotos: true
userGroupMember:
filter: "displayName eq 'L1Support' or displayName eq 'L2Support' or displayName eq 'L3Support'"
filter: >
displayName eq 'L1Support' OR displayName eq 'L2Support' OR displayName eq 'L3Support'
group:
filter: >
endswith(displayName, 'Support')
displayName eq 'L1Support' OR displayName eq 'L2Support' OR displayName eq 'L3Support'
schedule:
frequency: { hours: 1 }
timeout: { minutes: 50 }
# frequency: { hours: 1 }
# timeout: { minutes: 50 }
frequency: { minutes: 10 }
timeout: { minutes: 5 }
azureDevOps:
yourProviderId: # identifies your dataset / provider independent of config changes
Expand Down Expand Up @@ -290,6 +304,12 @@ oc scale deployment redhat-developer-hub --replicas=0 -n $NAMESPACES
oc scale deployment redhat-developer-hub --replicas=1 -n $NAMESPACES


# if you want to see the logs
POD_NAME=$(oc get pods --selector=app.kubernetes.io/instance=redhat-developer-hub --output=jsonpath='{.items[0].metadata.name}')

oc logs $POD_NAME | grep --color=always -i 'error' | awk '{print; print "";}'


```

# rhdh demo run through
Expand Down

0 comments on commit 8f7a183

Please sign in to comment.