This project is designed to gather data from Codefresh Hybrid Runtimes OnPrem isntallation, and Open Source ArgoCD. It collects information about various Kubernetes resources such as Pods, Nodes, Configmaps, Services, and Events. For Pipelines and OnPrem we gather some informtion from the platform itself.
kubectl
- Current Context must be the context of the cluster where the Codefresh is installed.
- Codefresh
- CLI installed and configured.
- Or the following ENV vars set.
CF_API_KEY
: Codefresh API TokenCF_URL
: URL of the platform (ex:https://g.codefresh.io
)
- Need an Account Admin Token for Pipelines Hybrid Runtime.
- Need a System Admin Token for the OnPrem Installation.
- JQ
- Used only to get the latest version of the binary for *nix systems.
# get the latest version or change to a specific version
VERSION=$(curl --silent "https://api.github.com/repos/codefresh-support/codefresh-support-package/releases/latest" | jq -r ".tag_name")
# download and extract the binary
curl -L --output - https://github.com/codefresh-support/codefresh-support-package/releases/download/$VERSION/cf-support_darwin_arm64.tar.gz | tar -zx -O cf-support > cf-support
# set execution to binary
chmod +x cf-support
# run application
./cf-support
# get the latest version or change to a specific version
VERSION=$(curl --silent "https://api.github.com/repos/codefresh-support/codefresh-support-package/releases/latest" | jq -r ".tag_name")
# download and extract the binary
curl -L --output - https://github.com/codefresh-support/codefresh-support-package/releases/download/$VERSION/cf-support_darwin_amd64.tar.gz | tar -zx -O cf-support > cf-support
# set execution to binary
chmod +x cf-support
# run application
./cf-support
# get the latest version or change to a specific version
VERSION=$(curl --silent "https://api.github.com/repos/codefresh-support/codefresh-support-package/releases/latest" | jq -r ".tag_name")
# download and extract the binary
curl -L --output - https://github.com/codefresh-support/codefresh-support-package/releases/download/$VERSION/cf-support_linux_arm64.tar.gz | tar -zx -O cf-support > cf-support
# set execution to binary
chmod +x cf-support
# run application
./cf-support
# get the latest version or change to a specific version
VERSION=$(curl --silent "https://api.github.com/repos/codefresh-support/codefresh-support-package/releases/latest" | jq -r ".tag_name")
# download and extract the binary
curl -L --output - https://github.com/codefresh-support/codefresh-support-package/releases/download/$VERSION/cf-support_linux_amd64.tar.gz | tar -zx -O cf-support > cf-support
# set execution to binary
chmod +x cf-support
# run application
./cf-support
- Go the the Latest release.
- Download the cf-support_windows_arm64.zip / cf-support_windows_amd64.zip file
- Run the
.exe
file via CMD or PowerShell
- Create a tag starting with
v
- Push tag to repo
git tag -a v1.0.0 -m "Release version 1.0.0"
git push origin v1.0.0