How to update 2 git repo details in SCS
search cancel

How to update 2 git repo details in SCS

book

Article ID: 401714

calendar_today

Updated On:

Products

VMware Tanzu Application Platform VMware Tanzu Spring Essentials

Issue/Introduction

Environment

TAS
SCS

Cause

The git repository has rotated the ssh key

Resolution

If two git repositories are used, run the following command to update the SCS instance.

cf update-service config-server-instance -c '{ "composite": [ { "type": "git", "uri": "https://github.com/spring-cloud-services-samples/cook-config","privateKey": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaCxxxxxxxxxxxxxbQECAwQF\n-----END OPENSSH PRIVATE KEY-----\n","searchPaths":""} ,  { "type": "git", "uri": "https://github.com/spring-cloud-samples/config-repo","privateKey": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaCxxxxxxxxxxxxxbQECAwQF\n-----END OPENSSH PRIVATE KEY-----\n","searchPaths":"" }]}'

Additional Information