Upload Local and Remote PCF Resource Files

Updated 5 days ago by Chakravarthy Tenneti

You can upload local and remote Manifest and Variable files.

In this topic:

Before You Begin

Step 1: Upload Local Manifest and Variable Files

You can upload manifest.yml and 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

Harness checks out manifest files from your repo at deployment runtime. If any files in the repository contain non UTF-8 characters (binary, zip, etc), the checkout fails. For example, sometimes an operating system file such as .DS_Store files get added to a repo.

Once you have set up a Harness Source Repro Provider using your remote Git repo, you can use PCF files from the remote repo in your PCF Service Manifests section.

To use remote files, do the following:

  1. 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:
  2. In the PCF Service, in Manifests, click the options button, and then click Link Remote Manifests.
    The Remote Manifests dialog appears.
  3. In Source Repository, select the Source Repo Provider you set up, and that points to the remote Git repo containing your manifest files.
  4. 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.
  5. If you selected Latest from Branch, specify the Branch and File/Folder path to the remote manifest files.
  6. 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.

Next Steps


How did we do?