Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Adding digital ocean cluster connection setup #9388

Draft
wants to merge 20 commits into
base: dev
Choose a base branch
from

Conversation

muradkhateeb78
Copy link
Contributor

This branch has the code changes for setting up DO specific cluster configurations for EE.

References

closes #insert number here

QA Steps

bash ./scripts/setup_aws.sh $EKS_AWS_ACCESS_KEY_ID $EKS_AWS_ACCESS_KEY_SECRET $AWS_REGION $CLUSTER_NAME
elif [[ "$CLOUD_PROVIDER" == "do" ]]; then
bash ./scripts/setup_do.sh $DO_API_TOKEN $CLUSTER_NAME
else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just think, the default case can be aws. Like if CLOUD_PROVIDER is missing then assume its running for aws. This will ensure all our existing deployments are not broken / does not needs any change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated this as suggested.


import S3Provider from './s3.storage'

const MAX_ITEMS = 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think this is required

import S3Provider from './s3.storage'

const MAX_ITEMS = 1
const CFFunctionTemplate = `
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think this is required

: `${config.aws.cloudfront.domain}/${this.bucket}`

originURLs = [this.cacheDomain]

private bucketAssetURL =
config.server.storageProvider === 's3'
public bucketAssetURL =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the 's3-do' specific check in this file should be moved to S3DOStorageProvider. The class variable should be updated based on DO in constructor of it.

export class S3DOProvider extends S3Provider {
constructor() {
super()
this.bucketAssetURL = 'https://etherealengine-static-resources.sfo2.digitaloceanspaces.com'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to remove this.

@barankyle barankyle force-pushed the feat/setup-DO-cluster branch from 08664f2 to b6df1cd Compare January 11, 2024 22:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants