-
Notifications
You must be signed in to change notification settings - Fork 7
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
OPSEXP-2286: allow passing the ATS location #115
Merged
Merged
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0b9418f
add new required values
alxgomz 3501dfb
add template to get ATS venv vars from url
alxgomz 537b5f6
consistency in rendering
alxgomz 8eacfa3
add to checkov config
alxgomz 4e5ef53
move indexname var to deployment
alxgomz 8eb8888
move other static env var to deployment using template
alxgomz 05e14b9
move reindex "static" env var to deployment & use template in cm
alxgomz 9b8f8cb
align tests with latest changes
alxgomz db554f1
move env vars to deployment/job
alxgomz e3980e6
bump alfresco-search-enterprise subchart & its dependencies
alxgomz 33b4693
support for custom cm & keys
alxgomz 3ff81a1
split cm by service
alxgomz 3ff83d7
review comments
alxgomz 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,6 @@ elasticsearch: | |
reindexing: | ||
db: | ||
url: something | ||
ats: | ||
transform_url: http://transform | ||
sfs_url: http://sfs |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
dependencies: | ||
- name: alfresco-common | ||
repository: https://alfresco.github.io/alfresco-helm-charts/ | ||
version: 2.1.0 | ||
version: 3.0.0-alpha.1 | ||
- name: activemq | ||
repository: https://alfresco.github.io/alfresco-helm-charts/ | ||
version: 3.3.0 | ||
- name: elasticsearch | ||
repository: https://helm.elastic.co | ||
version: 7.17.3 | ||
digest: sha256:d542f131a0a88f216fdfefa55a132ad373051776e52f6cb334ad8b30dbdf5137 | ||
generated: "2023-09-20T17:55:19.77609+02:00" | ||
digest: sha256:3217395d08bca2dca3ada26c8045f92409e4173deb0e881dd0d020c975b6217c | ||
generated: "2023-09-21T19:55:50.962494+02:00" |
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
39 changes: 39 additions & 0 deletions
39
charts/alfresco-search-enterprise/templates/_helpers-ats.tpl
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{{/* | ||
|
||
Render Alfresco Trasnform Service related env vars | ||
|
||
Usage: include "alfresco-search-enterprise.transform.fullurl" "URL" | ||
|
||
*/}} | ||
{{- define "alfresco-search-enterprise.ats.fullurl" -}} | ||
ATS_URL: {{ printf "%s/transform/config" . }} | ||
{{- end -}} | ||
|
||
{{/* | ||
|
||
Render Alfresco Shared Filesotre related env vars | ||
|
||
Usage: include "alfresco-search-enterprise.sfs.fullurl" "URL" | ||
|
||
*/}} | ||
{{- define "alfresco-search-enterprise.sfs.fullurl" -}} | ||
SFS_URL: {{ printf "%s/alfresco/api/-default-/private/sfs/versions/1/file/" . }} | ||
{{- end -}} | ||
|
||
{{/* | ||
|
||
Render common env vars | ||
|
||
Usage: include "alfresco-search-enterprise.env" $ | ||
|
||
*/}} | ||
{{- define "alfresco-search-enterprise.env" -}} | ||
- name: ELASTICSEARCH_INDEXNAME | ||
value: {{ .Values.indexName }} | ||
- name: ALFRESCO_ACCEPTEDCONTENTMEDIATYPESCACHE_REFRESHTIME | ||
value: {{ .Values.contentMediaTypeCache.refreshTime }} | ||
- name: ALFRESCO_ACCEPTEDCONTENTMEDIATYPESCACHE_ENABLED | ||
value: {{ .Values.contentMediaTypeCache.enabled | quote }} | ||
- name: ALFRESCO_PATHINDEXINGCOMPONENT_ENABLED | ||
value: {{ .Values.pathIndexingComponent.enabled | quote }} | ||
{{- end -}} |
8 changes: 4 additions & 4 deletions
8
charts/alfresco-search-enterprise/templates/_helpers-elasticsearch.tpl
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
11 changes: 11 additions & 0 deletions
11
charts/alfresco-search-enterprise/templates/config-ats.yaml
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{- if not .Values.ats.existingConfigMap.name }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ template "alfresco-search-enterprise.fullname" . }}-ats | ||
labels: | ||
{{- include "alfresco-search-enterprise.labels" $ | nindent 4 }} | ||
data: | ||
{{ template "alfresco-search-enterprise.ats.fullurl" (required "You need to provide the ATS URL using either ats.transform_url value or a configmap" .Values.ats.transform_url) }} | ||
{{ template "alfresco-search-enterprise.sfs.fullurl" (required "You need to provide the SFS URL using either ats.sfs_url value or a configmap" .Values.ats.sfs_url) }} | ||
{{- end }} |
8 changes: 8 additions & 0 deletions
8
charts/alfresco-search-enterprise/templates/config-elasticsearch.yaml
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ template "alfresco-search-enterprise.fullname" . }}-es | ||
labels: | ||
{{- include "alfresco-search-enterprise.labels" $ | nindent 4 }} | ||
data: | ||
{{ template "alfresco-search-enterprise.config.spring" . }} |
19 changes: 0 additions & 19 deletions
19
charts/alfresco-search-enterprise/templates/liveindexing-config.yaml
This file was deleted.
Oops, something went wrong.
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
17 changes: 0 additions & 17 deletions
17
charts/alfresco-search-enterprise/templates/reindexing-config.yaml
This file was deleted.
Oops, something went wrong.
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
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.
is the closing
-
really necessary?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.
that's cosmetic tbh 💅 ut I would argue that a named template should never start with a carriage return.