-
Notifications
You must be signed in to change notification settings - Fork 21
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
[RW-12876] Draft: Initial version of OfficeSuite support #4659
Draft
yonghaoy
wants to merge
3
commits into
develop
Choose a base branch
from
yyu-fuse-driver
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2993,6 +2993,7 @@ components: | |
enum: | ||
- rstudio | ||
- sas | ||
- officesuite | ||
AppStatus: | ||
type: string | ||
enum: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -394,6 +394,63 @@ class BuildHelmChartValuesSpec extends AnyFlatSpecLike with LeonardoTestSuite { | |
"""gcsfuse.enabled=false""" | ||
} | ||
|
||
it should "build OfficeSuite override values string" in { | ||
val savedCluster1 = makeKubeCluster(1) | ||
val savedDisk1 = makePersistentDisk(Some(DiskName("disk1"))) | ||
val envVariables = Map("WORKSPACE_NAME" -> "test-workspace-name") | ||
val res = buildAllowedAppChartOverrideValuesString( | ||
Config.gkeInterpConfig, | ||
AllowedChartName.OfficeSuite, | ||
appName = AppName("app1"), | ||
cluster = savedCluster1, | ||
nodepoolName = Some(NodepoolName("pool1")), | ||
namespaceName = NamespaceName("ns"), | ||
disk = savedDisk1, | ||
ksaName = ServiceAccountName("app1-officesuite-ksa"), | ||
userEmail = userEmail2, | ||
stagingBucket = GcsBucketName("test-staging-bucket"), | ||
envVariables, | ||
None, | ||
Some(GcsBucketName("fc-bucket")) | ||
) | ||
|
||
res.mkString(",") shouldBe | ||
"""ingress.officesuite.path=/proxy/google/v1/apps/dsp-leo-test1/app1/app(/|$)(.*),""" + | ||
"""ingress.welder.path=/proxy/google/v1/apps/dsp-leo-test1/app1/welder-service(/|$)(.*),""" + | ||
"""ingress.annotations.nginx\.ingress\.kubernetes\.io/proxy-redirect-from=https://1455694897.jupyter.firecloud.org,""" + | ||
"""fullnameOverride=app1,""" + | ||
"""persistence.size=250G,""" + | ||
"""persistence.gcePersistentDisk=disk1,""" + | ||
"""serviceAccount.name=app1-officesuite-ksa,""" + | ||
"""ingress.enabled=true,""" + | ||
"""ingress.annotations.nginx\.ingress\.kubernetes\.io/auth-tls-secret=ns/ca-secret,""" + | ||
"""ingress.annotations.nginx\.ingress\.kubernetes\.io/proxy-redirect-to=https://leo/proxy/google/v1/apps/dsp-leo-test1/app1/app,""" + | ||
"""ingress.annotations.nginx\.ingress\.kubernetes\.io/rewrite-target=/$2,""" + | ||
"""ingress.annotations.nginx\.ingress\.kubernetes\.io/proxy-cookie-path=/ "/; Secure; SameSite=None; HttpOnly",""" + | ||
"""ingress.host=1455694897.jupyter.firecloud.org,""" + | ||
"""ingress.tls[0].secretName=tls-secret,""" + | ||
"""ingress.tls[0].hosts[0]=1455694897.jupyter.firecloud.org,""" + | ||
"""welder.extraEnv[0].name=GOOGLE_PROJECT,""" + | ||
"""welder.extraEnv[0].value=dsp-leo-test1,""" + | ||
"""welder.extraEnv[1].name=STAGING_BUCKET,""" + | ||
"""welder.extraEnv[1].value=test-staging-bucket,""" + | ||
"""welder.extraEnv[2].name=CLUSTER_NAME,""" + | ||
"""welder.extraEnv[2].value=app1,""" + | ||
"""welder.extraEnv[3].name=OWNER_EMAIL,""" + | ||
"""welder.extraEnv[3][email protected],""" + | ||
"""welder.extraEnv[4].name=WORKSPACE_ID,""" + | ||
"""welder.extraEnv[4].value=dummy,""" + | ||
"""welder.extraEnv[5].name=WSM_URL,""" + | ||
"""welder.extraEnv[5].value=dummy,""" + | ||
"""extraEnv[0].name=WORKSPACE_NAME,""" + | ||
"""extraEnv[0].value=test-workspace-name,""" + | ||
"""replicaCount=1,""" + | ||
"""nodeSelector.cloud\.google\.com/gke-nodepool=pool1,""" + | ||
"""gcsfuse.enabled=true,""" + | ||
"""gcsfuse.bucket=fc-bucket""" | ||
"""proxySubpath=proxy/google/v1/apps/dsp-leo-test1/app1/app""" | ||
} | ||
|
||
it should "build SAS override values string in autopilot mode" in { | ||
val savedCluster1 = makeKubeCluster(1) | ||
val savedDisk1 = makePersistentDisk(Some(DiskName("disk1"))) | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 want to remove the first
/
from url, something likeproxy/google/v1/app/office/app