Status: Proposal
kmx gives developers one command-line entry point for creating and running
Kubernetes agents. It packages the working Kaimahi developer journey without
replacing Kubernetes, kagent, or the agent YAML.
Automated cleanup for Azure Container Registry repositories. Deploys a scheduled ACR task that retains only the last N images per repository and deletes the rest.
The ACR task uses the built-in acr purge command with:
| Flag | Value | Purpose |
|---|
| #!/bin/bash | |
| echo 'linux/amd64' > README-linux-amd64.md | |
| echo 'linux/arm64' > README-linux-arm64.md | |
| # Push the artifact for amd64 and get the digest | |
| DIGEST_LINUX_AMD64=$(oras push --oci-layout layout-dir README-linux-amd64.md --format go-template='{{.digest}}') | |
| # Push the artifact for arm64 and get the digest | |
| DIGEST_LINUX_ARM64=$(oras push --oci-layout layout-dir README-linux-arm64.md --format go-template='{{.digest}}') |
| #!/bin/bash | |
| # Variables | |
| acrName= | |
| resourceGroup= | |
| vmName= | |
| # Create ACR task with encoded YAML | |
| az acr task create \ | |
| --name startvm \ |
Create readonly token in the security tab - https://hub.docker.com/settings/security
This is optional and you can use an existing keyvault
| #gh api repos/opencontainers/image-spec/contributors > /tmp/contributors.json | |
| # cat /tmp/contributors.json | jq -r '.[] | @text "| \(.login) | ) | "' | |
| get_contributors() | |
| { | |
| REPO=$1 | |
| FILE_NAME=/tmp/contributors-$REPO.json | |
| gh api repos/opencontainers/$REPO/contributors > $FILE_NAME | |
| cat $FILE_NAME | jq -r '.[] | @text "| \(.login) | ) | "' | |
| } |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| for REGION in $(aws ec2 describe-regions --output text --query 'Regions[].[RegionName]'| cat) ; do | |
| echo $REGION | |
| id=$(aws ec2 describe-volumes \ | |
| --filter "Name=status,Values=available" \ | |
| --query 'Volumes[*].[VolumeId]' \ | |
| --output text --region $REGION | cat) ; | |
| echo $id |