Skip to content

Commit

Permalink
Merge pull request #123 from bcgov/chore/terraform
Browse files Browse the repository at this point in the history
chore: update keycloak log pvc in gold
  • Loading branch information
junminahn authored May 31, 2022
2 parents 51b9b11 + 8e90ead commit 1d63248
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ fi
helm repo add sso-charts https://bcgov.github.io/sso-helm-charts
helm repo update

helm upgrade --install sso-keycloak sso-charts/sso-keycloak -n eb75ad-dev -f values-eb75ad-dev.yaml --version v1.5.2
helm upgrade --install sso-keycloak sso-charts/sso-keycloak -n eb75ad-dev -f values-gold-eb75ad-dev.yaml --version v1.6.0
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ fi
helm repo add sso-charts https://bcgov.github.io/sso-helm-charts
helm repo update

helm upgrade --install sso-keycloak sso-charts/sso-keycloak -n eb75ad-prod -f values-eb75ad-prod.yaml --version v1.5.2
helm upgrade --install sso-keycloak sso-charts/sso-keycloak -n eb75ad-prod -f values-gold-eb75ad-prod.yaml --version v1.6.0
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ fi
helm repo add sso-charts https://bcgov.github.io/sso-helm-charts
helm repo update

helm upgrade --install sso-keycloak sso-charts/sso-keycloak -n eb75ad-test -f values-eb75ad-test.yaml --version v1.5.2
helm upgrade --install sso-keycloak sso-charts/sso-keycloak -n eb75ad-test -f values-gold-eb75ad-test.yaml --version v1.6.0
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ service:
tls:
enabled: true

persistentLog:
size: 10Gi

resources:
limits:
cpu: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ service:
tls:
enabled: true

persistentLog:
size: 15Gi

resources:
limits:
cpu: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ service:
tls:
enabled: true

persistentLog:
size: 10Gi

resources:
limits:
cpu: 2
Expand Down
13 changes: 6 additions & 7 deletions scripts/role-migrations/groups-clientroles.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ async function main() {
// find the role in the target realm to see if already exists, otherwise create one
let role = await targetAdminClient.clients.findRole({ realm: targetRealm, id: clientId, roleName: name });
if (role) {
console.log(`"${role.name}" already exists in the standard realm.`);
console.log(`=====> "${role.name}" already exists in the standard realm.`);
} else {
role = await targetAdminClient.clients.createRole({
await targetAdminClient.clients.createRole({
id: clientId,
realm: targetRealm,
name,
Expand All @@ -62,8 +62,8 @@ async function main() {
containerId: clientId,
attributes: {},
});

console.log(`"${role.name}" created in the standard realm.`);
role = await targetAdminClient.clients.findRole({ realm: targetRealm, id: clientId, roleName: name });
console.log(`=====> "${role.name}" created in the standard realm.`);
}

// find all members belong to the group in the base realm
Expand Down Expand Up @@ -115,15 +115,14 @@ async function main() {
}
}

first = first + max;
if (count < max) break;

await baseAdminClient.reauth();
await targetAdminClient.reauth();
first = first + max;
console.log(`complete ${first} groups`);
}

console.log(`${total} groups imported.`);
console.log(`=====> ${total} groups imported.`);
process.exit(0);
} catch (err) {
handleError(err);
Expand Down

0 comments on commit 1d63248

Please sign in to comment.