-
-
Notifications
You must be signed in to change notification settings - Fork 0
Adding digital ocean cluster connection setup #9388
base: dev
Are you sure you want to change the base?
Conversation
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 |
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 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.
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 have updated this as suggested.
|
||
import S3Provider from './s3.storage' | ||
|
||
const MAX_ITEMS = 1 |
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 dont think this is required
import S3Provider from './s3.storage' | ||
|
||
const MAX_ITEMS = 1 | ||
const CFFunctionTemplate = ` |
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 dont think this is required
: `${config.aws.cloudfront.domain}/${this.bucket}` | ||
|
||
originURLs = [this.cacheDomain] | ||
|
||
private bucketAssetURL = | ||
config.server.storageProvider === 's3' | ||
public bucketAssetURL = |
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.
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' |
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.
Need to remove this.
Updated pod schema to include imagePullSecrets, pods-helper to return this alongside current information.
08664f2
to
b6df1cd
Compare
This branch has the code changes for setting up DO specific cluster configurations for EE.
References
closes #insert number here
QA Steps