Skip to content

Commit

Permalink
fix: rebrading from otomi to linode apl
Browse files Browse the repository at this point in the history
  • Loading branch information
CasLubbers committed Jul 4, 2024
1 parent d55cf7a commit 16b16af
Show file tree
Hide file tree
Showing 14 changed files with 182 additions and 180 deletions.
2 changes: 1 addition & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// language - current active spelling language
"language": "en",
// words - list of words to be always considered correct
"words": ["camelcase", "creds", "kubernetes", "openid", "otomi", "redkubes", "robotv"],
"words": ["camelcase", "creds", "kubernetes", "openid", "otomi", "linode", "robotv"],
// flagWords - list of words to be always considered incorrect
// This is useful for offensive words and common spelling errors.
// For example "hte" should be "the"
Expand Down
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ DRONE_TOKEN=''

OTOMI_FLAGS='{}'
WAIT_OPTIONS='{"retries":1}'
WAIT_URL='https://redkubes.com'
WAIT_URL='https://linode.com'

NODE_EXTRA_CA_CERTS="./.env.ca"
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@redkubes/fullstack
@redkubes/devops
@linode/fullstack
@linode/devops
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["local>redkubes/renovate-config"]
"extends": ["local>linode/renovate-config"]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ dist
.history

kms.json*

.idea
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# The redkubes at github packages is a proxy for all npm packages.
@redkubes:registry=https://npm.pkg.github.com/redkubes
@linode:registry=https://npm.pkg.github.com/linode
312 changes: 156 additions & 156 deletions CHANGELOG.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Otomi Tasks
# APL Tasks

Part of [Red Kubes](https://redkubes.com)' Otomi Container Platform.
Part of APL - Application Platform for LKE (Linode Kubernetes Engine).

The tasks repo contains autonomous jobs orchestrated by [redkubes/otomi-core](https://github.com/redkubes/otomi-core).

Expand All @@ -14,7 +14,7 @@ Make sure your expected environment variables exist in a mandatory `.env` file (
#
**Important**
When using `npm i` and you get the errors `Unauthorized` and `Permission denied` on the installation regarding getting packages from redkubes
> Example: `npm ERR! 403 403 Forbidden - GET https://npm.pkg.github.com/redkubes/@redkubes%2fgitea-client-node - Permission denied`
> Example: `npm ERR! 403 403 Forbidden - GET https://npm.pkg.github.com/linode/@linode%2fgitea-client-node - Permission denied`
This can be fixed by adding the following line to the `.npmrc` file.
`//npm.pkg.github.com/:_authToken=PERSONAL_ACCESS_TOKEN_HERE`
Expand Down
8 changes: 4 additions & 4 deletions docs/CODE_OF_CONDUCT
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Contributor Code of Conduct

As contributors and maintainers of the Otomi project, we pledge to respect everyone who contributes by posting issues, updating documentation, submitting pull requests, providing feedback in comments, and any other activities.
As contributors and maintainers of the APL project, we pledge to respect everyone who contributes by posting issues, updating documentation, submitting pull requests, providing feedback in comments, and any other activities.

Communication through any of Otomi's channels (GitHub, Twitter, etc.) must be constructive and never resort to personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
Communication through any of APL's channels (GitHub, Twitter, etc.) must be constructive and never resort to personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.

We promise to extend courtesy and respect to everyone involved in this project regardless of gender, gender identity, sexual orientation, disability, age, race, ethnicity, religion, or level of experience. We expect anyone contributing to the Otomi project to do the same.
We promise to extend courtesy and respect to everyone involved in this project regardless of gender, gender identity, sexual orientation, disability, age, race, ethnicity, religion, or level of experience. We expect anyone contributing to the APL project to do the same.

If any member of the community violates this code of conduct, the maintainers of the Otomi project may take action, removing issues, comments, and PRs or blocking accounts as deemed appropriate.
If any member of the community violates this code of conduct, the maintainers of the APL project may take action, removing issues, comments, and PRs or blocking accounts as deemed appropriate.

If you are subject to or witness unacceptable behavior, or have any other concerns, please email us at [[email protected]](mailto:[email protected]).
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "RedKubes",
"bugs": {
"url": "https://github.com/redkubes/otomi-tasks/issues"
"url": "https://github.com/linode/apl-tasks/issues"
},
"config": {
"commitizen": {
Expand Down Expand Up @@ -30,7 +30,7 @@
"openid-client": "5.1.0",
"ts-custom-error": "3.2.0"
},
"description": "Tasks needed by the Otomi Container Platform to glue all the pieces together.",
"description": "Tasks needed by the APL Container Platform to glue all the pieces together.",
"devDependencies": {
"@commitlint/cli": "11.0.0",
"@commitlint/config-conventional": "11.0.0",
Expand Down Expand Up @@ -85,7 +85,7 @@
"node": ">=15.0.0",
"npm": ">=6.0.0"
},
"homepage": "https://github.com/redkubes/otomi-tasks#readme",
"homepage": "https://github.com/linode/apl-tasks#readme",
"license": "Apache-2.0",
"lint-staged": {
"*.{json,md,yml,yaml}": [
Expand All @@ -100,7 +100,7 @@
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/redkubes/otomi-tasks.git"
"url": "git+https://github.com/linode/apl-tasks.git"
},
"run-if-changed": {
"package-lock.json": "npm install --prefer-offline --no-audit"
Expand Down
4 changes: 2 additions & 2 deletions src/tasks/harbor/harbor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface RobotSecret {
const systemRobot: any = {
name: 'harbor',
duration: -1,
description: 'Used by Otomi Harbor task runner',
description: 'Used by APL Harbor task runner',
disable: false,
level: 'system',
permissions: [
Expand Down Expand Up @@ -117,7 +117,7 @@ const projectsApi = new ProjectApi(env.HARBOR_USER, env.HARBOR_PASSWORD, harborB
const memberApi = new MemberApi(env.HARBOR_USER, env.HARBOR_PASSWORD, harborBaseUrl)

/**
* Create Harbor robot account that is used by Otomi tasks
* Create Harbor robot account that is used by APL tasks
* @note assumes OIDC is not yet configured, otherwise this operation is NOT possible
*/
async function createSystemRobotSecret(): Promise<RobotSecret> {
Expand Down
4 changes: 2 additions & 2 deletions src/tasks/keycloak/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const realmCfgTpl = (realm: string): Record<string, unknown> => ({
id: realm,
realm,
displayName: realm,
displayNameHtml: '<div class="kc-logo-text"><span>Otomi</span></div>',
displayNameHtml: '<div class="kc-logo-text"><span>APL</span></div>',
enabled: true,
sslRequired: 'external',
loginTheme: 'otomi',
Expand Down Expand Up @@ -166,7 +166,7 @@ export const protocolMappersList: Array<Record<string, unknown>> = [

export const roleTpl = (name: string, groupMapping: string, containerId: string): Record<string, unknown> => ({
name,
description: `Created by Otomi${groupMapping ? ` - mapped for incoming IDP GROUP_ID: ${groupMapping}` : ''}`,
description: `Created by APL${groupMapping ? ` - mapped for incoming IDP GROUP_ID: ${groupMapping}` : ''}`,
composite: false,
clientRole: false,
containerId,
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 @@ -167,7 +167,7 @@ async function main(): Promise<void> {
}),
)

// Create Otomi Client
// Create APL Client
const client = createClient()
const allClients = ((await doApiCall(errors, 'Getting otomi client', () =>
api.clients.realmClientsGet(keycloakRealm),
Expand Down
4 changes: 2 additions & 2 deletions src/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export const IDP_GROUP_MAPPINGS_TEAMS = json({
desc: 'A list of team names mapping to group IDs from the IDP',
default: undefined,
})
export const IDP_GROUP_TEAM_ADMIN = str({ desc: 'Otomi team-admin group name' })
export const IDP_GROUP_OTOMI_ADMIN = str({ desc: 'Otomi admin group name', default: undefined })
export const IDP_GROUP_TEAM_ADMIN = str({ desc: 'APL team-admin group name' })
export const IDP_GROUP_OTOMI_ADMIN = str({ desc: 'APL admin group name', default: undefined })
export const IDP_OIDC_URL = str({ desc: "The IDP's OIDC enpoints url", default: undefined })
export const IDP_USERNAME_CLAIM_MAPPER = str({
desc: "The IDP's OIDC claim to username mapper string",
Expand Down

0 comments on commit 16b16af

Please sign in to comment.