Upload Local and Remote Tanzu Resource Files
You can upload local and remote Tanzu Application Service (TAS, formerly PCF) Manifest and Variable files to your Harness TAS Service.
In this topic:
- Before You Begin
- Step 1: Upload Local Manifest and Variable Files
- Step 2: Upload Remote Manifest and Variable Files
- Next Steps
Before You Begin
- See Connect to Your Target Tanzu Account.
- See Add Container Images for Tanzu Deployments.
- See Adding and Editing Inline Tanzu Manifest Files.
Step 1: Upload Local Manifest and Variable Files
You can upload
vars.ymlfiles from your local drive into your Harness Service.
Harness allows one manifest file and one or more variable files. At runtime, Harness will evaluate the files to identify which is the manifest file and which are the variable files.
From the options menu, click Upload Local Manifest Files.
The Upload Local Manifest Files dialog appears.
Choose the local folder or files using your file explorer or drag and drop the files into the dialog. The selected files are listed.
Click Submit to add the files.
If you are uploading a manifest.yml or vars.yml file into the same folder with the default manifest.yml and vars.yml files, you will see the following warning.
Simply click Overwrite All and then Submit to replace the default files.
Step 2: Upload Remote Manifest and Variable Files
Once you have set up a Harness Source Repro Provider using your remote Git repo, you can use TAS files from the remote repo in your TAS Service Manifests section.
To use remote files, do the following:
- Create a Harness Source Repro Provider that connects to the branch where your remote files are located.
When you set up the Source Repro Provider, you specify the repo URL and branch name:
- In the TAS Service, in Manifests, click the options button, and then click Link Remote Manifests.The Remote Manifests dialog appears.
- In Source Repository, select the Source Repo Provider you set up, and that points to the remote Git repo containing your manifest files.
- In Commit ID, select Latest from Branch or Specific Commit ID.
Which one should I pick? Make your selection based on what you want to happen at runtime. If you want to always use the latest files from a repo branch at runtime, select Latest from Branch. If you want to use the files as they were at a specific commit, select Specific Commit ID. Any changes from additional commits will not be used at runtime. To use changes from additional commits, you will have to update commit ID.
- If you selected Latest from Branch, specify the Branch and File/Folder path to the remote manifest files.
- If you selected Specific Commit ID, specify the Commit ID and File/Folder path to the remote manifest files.
Click Submit. Your remote git repo is added as the source for Manifests.