-
Notifications
You must be signed in to change notification settings - Fork 3
[Misc] Added Workzone service to helm chart #120
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
base: main
Are you sure you want to change the base?
Changes from all commits
f3fa277
a2da9af
8d0eb59
2b6dce5
e4c53b0
f530a96
1843494
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| serviceInstances: | ||
| workzone: | ||
| name: {{appName}}-workzone-service | ||
| serviceOfferingName: build-workzone-standard | ||
| servicePlanName: local-entry-point | ||
| parameters: | ||
| providerId: {{workzoneProviderId}} | ||
| exposureId: "{{strippedAppName}}.service" | ||
| serviceBindings: | ||
| workzone: | ||
| name: {{appName}}-workzone-bind | ||
| serviceInstanceName: {{appName}}-workzone-service | ||
| secretName: {{appName}}-workzone-bind-secret | ||
| secretKey: credentials | ||
| parameters: {} |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -122,9 +122,11 @@ module.exports = class CapOperatorAddPlugin extends cds.add.Plugin { | |||
| const project = this.readProject(isServiceOnly) | ||||
| const { | ||||
| hasDestination, hasHtml5Repo, hasXsuaa, hasApprouter, | ||||
| hasMultitenancy, hasIas | ||||
| hasMultitenancy, hasIas, hasWorkzoneStandard | ||||
| } = project | ||||
|
anirudhprasad-sap marked this conversation as resolved.
|
||||
|
|
||||
| if (hasWorkzoneStandard) project.workzoneProviderId = project.strippedAppName.slice(0, 20) | ||||
|
|
||||
|
Comment on lines
+128
to
+129
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug:
Suggested change
Double-check suggestion before committing. Edit this comment for amendments. Please provide feedback on the review comment by checking the appropriate box:
|
||||
| const valuesPath = join(cds.root, 'chart/values.yaml') | ||||
| const valuesYaml = yaml.parse(await read(valuesPath)) | ||||
|
|
||||
|
|
@@ -140,6 +142,11 @@ module.exports = class CapOperatorAddPlugin extends cds.add.Plugin { | |||
| await addIf(hasIas, '../files/ias.yaml.hbs') | ||||
| await addIf(!hasIas && hasXsuaa, '../files/xsuaa.yaml.hbs') | ||||
|
|
||||
| if (hasWorkzoneStandard) { | ||||
| project.workzoneProviderId = project.strippedAppName.slice(0, 20) | ||||
| await addIf(true, '../files/workzone.yaml.hbs') | ||||
| } | ||||
|
|
||||
| if (hasMultitenancy) { | ||||
| await addIf(hasIas, '../files/subscription-manager.yaml.hbs') | ||||
| await addIf(!hasIas && hasXsuaa, '../files/saas-registry.yaml.hbs') | ||||
|
|
||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.