Skip to content

Commit

Permalink
feat: update teamids env
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderMatt committed Jun 21, 2024
1 parent 6647982 commit 4cc378f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/operator/keycloak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ export default class MyOperator extends Operator {
// Check if namespace starts with prefix 'team-'
if (metadata && !metadata.name?.startsWith('team-')) return
if (metadata && metadata.name === 'team-admin') return
const operatorConfig = await k8sApi.readNamespacedConfigMap('keycloak-cm', 'otomi-keycloak-operator')
env.TEAM_IDS = JSON.parse(operatorConfig.body.data!.TEAM_IDS)
console.log('namespace object: ', object)
console.log('namespace metadata: ', object.metadata)
console.log('Type namespace: ', type)
Expand Down

0 comments on commit 4cc378f

Please sign in to comment.