From 9ca9fd0721c757d38f3b58ab2c3a2b5959db9bb6 Mon Sep 17 00:00:00 2001 From: Jehoszafat Zimnowoda Date: Thu, 4 Jul 2024 14:00:20 +0200 Subject: [PATCH] feat: use npm packages from linode org --- src/tasks/gitea/gitea-drone-oauth.ts | 4 ++-- src/tasks/gitea/gitea.ts | 2 +- src/tasks/harbor/harbor.ts | 2 +- src/tasks/keycloak/config.ts | 2 +- src/tasks/keycloak/keycloak.ts | 2 +- src/tasks/keycloak/realm-factory.ts | 6 +++--- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/tasks/gitea/gitea-drone-oauth.ts b/src/tasks/gitea/gitea-drone-oauth.ts index e2ffb9b8..19100e24 100644 --- a/src/tasks/gitea/gitea-drone-oauth.ts +++ b/src/tasks/gitea/gitea-drone-oauth.ts @@ -1,10 +1,10 @@ -import { CreateOAuth2ApplicationOptions, OAuth2Application, UserApi } from '@redkubes/gitea-client-node' +import { CreateOAuth2ApplicationOptions, OAuth2Application, UserApi } from '@linodegitea-client-node' import axios, { AxiosRequestConfig, AxiosResponse } from 'axios' import cookie from 'cookie' import { URLSearchParams } from 'url' import { createSecret, getSecret, k8s } from '../../k8s' import { doApiCall } from '../../utils' -import { cleanEnv, DRONE_NAMESPACE, DRONE_URL, GITEA_PASSWORD, GITEA_URL, OTOMI_VALUES } from '../../validators' +import { DRONE_NAMESPACE, DRONE_URL, GITEA_PASSWORD, GITEA_URL, OTOMI_VALUES, cleanEnv } from '../../validators' import { username } from '../common' import { GiteaDroneError } from './common' diff --git a/src/tasks/gitea/gitea.ts b/src/tasks/gitea/gitea.ts index 7ca4a376..7a455362 100644 --- a/src/tasks/gitea/gitea.ts +++ b/src/tasks/gitea/gitea.ts @@ -8,7 +8,7 @@ import { Repository, RepositoryApi, Team, -} from '@redkubes/gitea-client-node' +} from '@linodegitea-client-node' import { doApiCall, waitTillAvailable } from '../../utils' import { GITEA_PASSWORD, GITEA_URL, OTOMI_VALUES, cleanEnv } from '../../validators' import { orgName, otomiValuesRepoName, teamNameViewer, username } from '../common' diff --git a/src/tasks/harbor/harbor.ts b/src/tasks/harbor/harbor.ts index ef7246ac..68594e4e 100644 --- a/src/tasks/harbor/harbor.ts +++ b/src/tasks/harbor/harbor.ts @@ -16,7 +16,7 @@ import { RobotCreate, // eslint-disable-next-line no-unused-vars RobotCreated, -} from '@redkubes/harbor-client-node' +} from '@linodeharbor-client-node' import { createBuildsK8sSecret, createK8sSecret, createSecret, getSecret, k8s } from '../../k8s' import { doApiCall, handleErrors, waitTillAvailable } from '../../utils' import { diff --git a/src/tasks/keycloak/config.ts b/src/tasks/keycloak/config.ts index 2182aac2..9ff165d6 100644 --- a/src/tasks/keycloak/config.ts +++ b/src/tasks/keycloak/config.ts @@ -1,6 +1,6 @@ /* eslint-disable no-template-curly-in-string */ /* eslint-disable camelcase */ -import { ProtocolMapperRepresentation } from '@redkubes/keycloak-client-node' +import { ProtocolMapperRepresentation } from '@linodekeycloak-client-node' import axios from 'axios' export const keycloakRealm = 'otomi' diff --git a/src/tasks/keycloak/keycloak.ts b/src/tasks/keycloak/keycloak.ts index 4b06f0c4..184b6ef5 100644 --- a/src/tasks/keycloak/keycloak.ts +++ b/src/tasks/keycloak/keycloak.ts @@ -18,7 +18,7 @@ import { RolesApi, UserRepresentation, UsersApi, -} from '@redkubes/keycloak-client-node' +} from '@linodekeycloak-client-node' import { forEach } from 'lodash' import { custom, Issuer, TokenSet } from 'openid-client' import { doApiCall, handleErrors, waitTillAvailable } from '../../utils' diff --git a/src/tasks/keycloak/realm-factory.ts b/src/tasks/keycloak/realm-factory.ts index 77073324..f80b44a9 100644 --- a/src/tasks/keycloak/realm-factory.ts +++ b/src/tasks/keycloak/realm-factory.ts @@ -9,11 +9,10 @@ import { RealmRepresentation, RoleRepresentation, UserRepresentation, -} from '@redkubes/keycloak-client-node' +} from '@linodekeycloak-client-node' import { defaultsDeep } from 'lodash' import * as utils from '../../utils' import { - cleanEnv, FEAT_EXTERNAL_IDP, IDP_ALIAS, IDP_CLIENT_ID, @@ -29,8 +28,10 @@ import { KEYCLOAK_REALM, REDIRECT_URIS, TEAM_IDS, + cleanEnv, } from '../../validators' import { + TeamMapping, adminUserCfgTpl, clientEmailClaimMapper, clientScopeCfgTpl, @@ -41,7 +42,6 @@ import { protocolMappersList, realmCfgTpl, roleTpl, - TeamMapping, } from './config' const env = cleanEnv({