ci: adjust the beta cluster configuration (#4895)
- Scale the pod counts to 10 - Set `earlyAccessPreview` to false
This commit is contained in:
5
.github/actions/deploy/deploy.mjs
vendored
5
.github/actions/deploy/deploy.mjs
vendored
@@ -68,8 +68,8 @@ const createHelmCommand = ({ isDryRun }) => {
|
|||||||
]
|
]
|
||||||
: [];
|
: [];
|
||||||
const webReplicaCount = isProduction ? 3 : isBeta ? 2 : 2;
|
const webReplicaCount = isProduction ? 3 : isBeta ? 2 : 2;
|
||||||
const graphqlReplicaCount = isProduction ? 3 : isBeta ? 2 : 2;
|
const graphqlReplicaCount = isProduction ? 10 : isBeta ? 10 : 2;
|
||||||
const syncReplicaCount = isProduction ? 6 : isBeta ? 3 : 2;
|
const syncReplicaCount = isProduction ? 10 : isBeta ? 10 : 2;
|
||||||
const namespace = isProduction ? 'production' : isBeta ? 'beta' : 'dev';
|
const namespace = isProduction ? 'production' : isBeta ? 'beta' : 'dev';
|
||||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
const host = DEPLOY_HOST || CANARY_DEPLOY_HOST;
|
const host = DEPLOY_HOST || CANARY_DEPLOY_HOST;
|
||||||
@@ -101,6 +101,7 @@ const createHelmCommand = ({ isDryRun }) => {
|
|||||||
`--set-string graphql.app.payment.stripe.apiKey="${STRIPE_API_KEY}"`,
|
`--set-string graphql.app.payment.stripe.apiKey="${STRIPE_API_KEY}"`,
|
||||||
`--set-string graphql.app.payment.stripe.webhookKey="${STRIPE_WEBHOOK_KEY}"`,
|
`--set-string graphql.app.payment.stripe.webhookKey="${STRIPE_WEBHOOK_KEY}"`,
|
||||||
`--set graphql.app.experimental.enableJwstCodec=true`,
|
`--set graphql.app.experimental.enableJwstCodec=true`,
|
||||||
|
`--set graphql.app.features.earlyAccessPreview=false`,
|
||||||
`--set sync.replicaCount=${syncReplicaCount}`,
|
`--set sync.replicaCount=${syncReplicaCount}`,
|
||||||
`--set-string sync.image.tag="${imageTag}"`,
|
`--set-string sync.image.tag="${imageTag}"`,
|
||||||
...serviceAnnotations,
|
...serviceAnnotations,
|
||||||
|
|||||||
@@ -75,6 +75,8 @@ spec:
|
|||||||
value: "{{ .Values.app.objectStorage.r2.enabled }}"
|
value: "{{ .Values.app.objectStorage.r2.enabled }}"
|
||||||
- name: ENABLE_CAPTCHA
|
- name: ENABLE_CAPTCHA
|
||||||
value: "{{ .Values.app.captcha.enabled }}"
|
value: "{{ .Values.app.captcha.enabled }}"
|
||||||
|
- name: FEATURES_EARLY_ACCESS_PREVIEW
|
||||||
|
value: "{{ .Values.app.features.earlyAccessPreview }}"
|
||||||
- name: OAUTH_EMAIL_SENDER
|
- name: OAUTH_EMAIL_SENDER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ app:
|
|||||||
secretName: 'stripe'
|
secretName: 'stripe'
|
||||||
apiKey: ''
|
apiKey: ''
|
||||||
webhookKey: ''
|
webhookKey: ''
|
||||||
|
features:
|
||||||
|
earlyAccessPreview: false
|
||||||
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
create: true
|
create: true
|
||||||
|
|||||||
@@ -91,6 +91,10 @@ export const getDefaultAFFiNEConfig: () => AFFiNEConfig = () => {
|
|||||||
ENABLE_LOCAL_EMAIL: ['auth.localEmail', 'boolean'],
|
ENABLE_LOCAL_EMAIL: ['auth.localEmail', 'boolean'],
|
||||||
STRIPE_API_KEY: 'payment.stripe.keys.APIKey',
|
STRIPE_API_KEY: 'payment.stripe.keys.APIKey',
|
||||||
STRIPE_WEBHOOK_KEY: 'payment.stripe.keys.webhookKey',
|
STRIPE_WEBHOOK_KEY: 'payment.stripe.keys.webhookKey',
|
||||||
|
FEATURES_EARLY_ACCESS_PREVIEW: [
|
||||||
|
'featureFlags.earlyAccessPreview',
|
||||||
|
'boolean',
|
||||||
|
],
|
||||||
} satisfies AFFiNEConfig['ENV_MAP'],
|
} satisfies AFFiNEConfig['ENV_MAP'],
|
||||||
affineEnv: 'dev',
|
affineEnv: 'dev',
|
||||||
get affine() {
|
get affine() {
|
||||||
|
|||||||
Reference in New Issue
Block a user