-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: switch to prod environment in microk8s #84
base: main
Are you sure you want to change the base?
Conversation
since the internal cluster has a self-signed cert, we can't verify it without adding the root CA to the node environment.
cert-manager.io/cluster-issuer: "letsencrypt-prod" | ||
nginx.ingress.kubernetes.io/auth-type: basic | ||
nginx.ingress.kubernetes.io/auth-secret: basic-auth | ||
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - foo' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
foofoo
packages/web/src/sigil.js
Outdated
|
||
await testQueue | ||
.add('Test run request from sigil', {test_run_id, arguments: domain}) | ||
.waitUntilFinished() // todo: when this happens we should send a 'test running... svg' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Den här awaiten innebär inte att testet är klart dock, är det det som är tänkt?
packages/web/src/sigil.js
Outdated
await runOnlyOncePerDomain(domain, async () => { | ||
console.log('Running test for domain from sigil', domain) | ||
const parsedUrl = parseUrl(`https://${domain}`) | ||
const {domain_id} = await connection.one(upsertDomain(parsedUrl.host)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I main är dessa två i en transaction
// makes sure we only run a function one time per domain using a semaphore in redis | ||
async function runOnlyOncePerDomain(domain, fn, timeout = 300000) { | ||
const key = `sigil:${domain}:test_running` | ||
const semaphore = await redis.get(key) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get
och set
kunde kombineras till ett anrop här. Det spelar väl inte så stor roll, men det går 😬
Use our brand new cluster