Skip to content

Commit

Permalink
feat: use npm packages from linode org
Browse files Browse the repository at this point in the history
  • Loading branch information
j-zimnowoda committed Jul 4, 2024
1 parent b1fa870 commit 9ca9fd0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/tasks/gitea/gitea-drone-oauth.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
2 changes: 1 addition & 1 deletion src/tasks/gitea/gitea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/harbor/harbor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/keycloak/config.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/keycloak/keycloak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions src/tasks/keycloak/realm-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -29,8 +28,10 @@ import {
KEYCLOAK_REALM,
REDIRECT_URIS,
TEAM_IDS,
cleanEnv,
} from '../../validators'
import {
TeamMapping,
adminUserCfgTpl,
clientEmailClaimMapper,
clientScopeCfgTpl,
Expand All @@ -41,7 +42,6 @@ import {
protocolMappersList,
realmCfgTpl,
roleTpl,
TeamMapping,
} from './config'

const env = cleanEnv({
Expand Down

0 comments on commit 9ca9fd0

Please sign in to comment.