Skip to content

Commit

Permalink
Merge pull request #30 from ministryofjustice/NIT-1098-alfresco-autom…
Browse files Browse the repository at this point in the history
…ate-data-refresh-process/tidy-up

NIT-1098 update names for consistency
  • Loading branch information
pete-j-g authored Mar 19, 2024
2 parents e6b1e67 + 3d63f97 commit 5f57c99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cloud-platform-deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
fi
# Upgrad an existing release or create a new one if one does not exist
BUCKET_NAME=$(awk '{print substr($0, 0)}' <<< $(kubectl get secrets s3-bucket-output -o jsonpath='{.data.bucket_name}' | base64 -d))
BUCKET_NAME=$(awk '{print substr($0, 0)}' <<< $(kubectl get secrets s3-bucket-output -o jsonpath='{.data.BUCKET_NAME}' | base64 -d))
helm upgrade --install alfresco-content-services . --values=./values.yaml --values=./${{ matrix.values }} \
--set s3connector.config.bucketName=$BUCKET_NAME \
--set global.tracking.sharedsecret=$SECRET \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Start k8s services by executing helm command _(Helm will complain if a random se
```bash
cd hmpps-delius-alfresco-poc/alfresco-content-services
export SECRET=$(openssl rand -base64 20)
export BUCKET_NAME=$(awk '{print substr($0, 0)}' <<< $(kubectl get secrets s3-bucket-output -o jsonpath='{.data.bucket_name}' | base64 -d))
export BUCKET_NAME=$(awk '{print substr($0, 0)}' <<< $(kubectl get secrets s3-bucket-output -o jsonpath='{.data.BUCKET_NAME}' | base64 -d))
helm install alfresco-content-services . --values=./values.yaml \
--set s3connector.config.bucketName=$BUCKET_NAME \
--set global.tracking.sharedsecret=$SECRET
Expand Down Expand Up @@ -48,7 +48,7 @@ rm -rf charts/alfresco-sync-service-4.1.0.tgz
2. Make your changes and then test them by upgrading Helm release
```
- export SECRET=$(awk '{print substr($0, 19)}' <<< $(kubectl get secrets alfresco-content-services-alfresco-repository-properties-secret -o jsonpath='{.data.alfresco-global\.properties}' | base64 -d))
- export BUCKET_NAME=$(awk '{print substr($0, 0)}' <<< $(kubectl get secrets s3-bucket-output -o jsonpath='{.data.bucket_name}' | base64 -d))
- export BUCKET_NAME=$(awk '{print substr($0, 0)}' <<< $(kubectl get secrets s3-bucket-output -o jsonpath='{.data.BUCKET_NAME}' | base64 -d))
- helm upgrade alfresco-content-services . --values=./values.yaml --set s3connector.config.bucketName=$BUCKET_NAME --set global.tracking.sharedsecret=$SECRET
- NOTE: For the release upgrade, use the existing secret. You will otherwise have to restart pods consuming those secrets
```
Expand Down
2 changes: 1 addition & 1 deletion alfresco-content-services/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ database:
secretName:
# -- An existing secret that contains DATABASE_USERNAME and DATABASE_PASSWORD keys.
# When using embedded postgres you need to also set `postgresql.existingSecret`.
existingSecretName: rds-alf-psql-instance-output
existingSecretName: rds-instance-output
alfresco-search-enterprise:
enabled: false
liveIndexing:
Expand Down

0 comments on commit 5f57c99

Please sign in to comment.