Skip to content

Commit

Permalink
fix: drone namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Morriz committed Jul 3, 2022
1 parent 12dc9d2 commit 8f81090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/gitea/gitea-drone-oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface DroneSecret {
}

const errors: string[] = []
const namespace = 'team-admin'
const namespace = env.DRONE_NAMESPACE
const secretName = 'drone-source-control'
const csrfCookieName = '_csrf' // _csrf cookie is the MVC (Minimal Viable Cookie) for authorization & grant to work.
const giteaUrl: string = env.GITEA_URL.endsWith('/') ? env.GITEA_URL.slice(0, -1) : env.GITEA_URL
Expand Down
1 change: 1 addition & 0 deletions src/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const IDP_SUB_CLAIM_MAPPER = str({
default: 'sub',
})

export const DRONE_NAMESPACE = str({ desc: 'The namespace of the drone release', default: 'drone' })
export const DRONE_TOKEN = str({ desc: 'The admin token to use for drone api server' })
export const DRONE_URL = str({ desc: 'The public url of the drone server' })
export const GITEA_PASSWORD = str({ desc: 'The gitea admin password' })
Expand Down

0 comments on commit 8f81090

Please sign in to comment.