To link the Edge Compute Stack host to GitHub, perform the following steps:

Procedure

  1. Edit the ks.cfg file in the root of the VMware Edge Compute Stack Deployment Media.
  2. Find the section that starts with the following:
    # -->8--
    # ----------------------------------------------------------------------------
    # Sample: Optional: Inject workload through gitops
    # Must provide:
    # - a k8s `Secret` for git repo access
    # - a flux `GitRepository` custom resource for git repo (also referring
    #   above Secret object)
    # - a flux `Kustomization` custom resource for applying yamls in above git
    #   repo into VMware Edge Cloud Orchestrator k8s cluster (referring to above GitRepository object)
    # Replace all strings with `replace-with-...` values in below yamls.
    # ----------------------------------------------------------------------------
     

    In Visual Studio Code, click Edit > Toggle Line Comment to show the sample workload that injects a workload directly.

  3. Uncomment the lines starting with the following line: cat <<EOT > $KESWICK_FIRSTBOOT_DIR/03-flux_create.yaml and ending with EOT.
  4. Change the replace-with-some-access-token entry with the access token you created and stored earlier. For example:
    password: ghp_PmiypzR5JGLA2V7u3AkGBJ2yWmH2nI45VRWx
  5. Change the replace-with-some-username entry with your Git username. For example:
    username: alanrenouf
  6. Change the replace-with-some-branch-name entry with your Git branch name. If you have not created a branch, this value is main, by default. For example:
    branch: main
  7. Change the https://git.com/replace-with-some-username/replace-with-somereponame.git entry with your Git URL. You can find the URL by clicking the Code button in your Git repository and copying the HTTPs address. For example:
    url: https://github.com/alanrenouf/EdgeApp.git
  8. Save the file.