Skip to content
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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants