-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
7 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Set directory for installation - Chocolatey does not lock | ||
# down the directory if not the default | ||
$InstallDir='C:\ProgramData\chocoportable' | ||
$env:ChocolateyInstall="$InstallDir" | ||
|
||
# If your PowerShell Execution policy is restrictive, you may | ||
# not be able to get around that. Try setting your session to | ||
# Bypass. | ||
Set-ExecutionPolicy Bypass -Scope Process -Force; | ||
|
||
# All install options - offline, proxy, etc at | ||
# https://chocolatey.org/install | ||
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#VENDIR_GITHUB_API_TOKEN=<your-github-token> | ||
$ENV:VENDIR_GITHUB_API_TOKEN = "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" | ||
|
||
# Download installation files | ||
ytt -f setup/vendir.yml --data-values-file config.yaml | vendir sync --chdir setup -f- | ||
|
||
# Make binaries executable and put them in the PATH | ||
if ( -not (Test-Path -Path $HOME\tce)) | ||
{ | ||
mkdir $HOME\tce | ||
mkdir $HOME\tce\bin | ||
} | ||
|
||
# Copy files to the bin directory under $HOME\tce | ||
copy setup\vendir\binaries\kn\kn*.exe $HOME\tce\bin\kn.exe | ||
copy setup\vendir\binaries\kp\kp*.exe $HOME\tce\bin\kp.exe | ||
copy setup\vendir\binaries\yq\yq*.exe $HOME\tce\bin\yq.exe | ||
copy setup\vendir\binaries\kubectl\kubectl.exe $HOME\tce\bin\ | ||
|
||
# Add location for tools to path | ||
$ENV:PATH = "$ENV:PATH;$HOME\tce\bin;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Install SecretGen Controller | ||
kapp deploy --yes -a secretgen-controller -f setup/vendir/secretgen-controller | ||
|
||
# Install Cert Manager | ||
kapp deploy --yes -a cert-manager -f setup/vendir/cert-manager | ||
|
||
# Install Cartographer | ||
kapp deploy --yes -a cartographer -f setup/overlays/cartographer -f setup/vendir/cartographer | ||
|
||
# Install source controller, the source part of the supply chain | ||
kubectl create namespace gitops-toolkit --dry-run=client -o yaml | kubectl apply -f - | ||
kapp deploy --yes -a gitops-toolkit --into-ns gitops-toolkit -f setup/vendir/source-controller | ||
|
||
## install sample supply chain | ||
ytt --data-values-file config.yaml --ignore-unknown-comments -f source-to-knative-service | kapp deploy -y -a source-to-knative-service -f- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
tanzu package install contour --package-name contour.community.tanzu.vmware.com --version 1.18.1 -f config.yaml | ||
tanzu package install knative-serving --package-name knative-serving.community.tanzu.vmware.com --version 0.22.0 -f config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$ENV:REGISTRY_USERNAME=$(yq eval '.registry.username' config.yaml) | ||
$ENV:REGISTRY_PASSWORD=$(yq eval '.registry.password' config.yaml) | ||
$ENV:REGISTRY_URL=$(yq eval '.registry.server' config.yaml) | ||
|
||
kubectl create secret docker-registry registry-credentials --docker-username=$ENV:REGISTRY_USERNAME --docker-password=$ENV:REGISTRY_PASSWORD --docker-server=$ENV:REGISTRY_URL --namespace default | ||
|
||
ytt -f setup/vendir/kpack -f setup/overlays/kpack --data-values-file config.yaml | kapp deploy -a kpack -f- --yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Add the tools path to the session | ||
# * Path can be added to the environment variables or via the Powershell profile | ||
|
||
$ENV:PATH += ";$HOME\tce\bin" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters