Giter Site home page Giter Site logo

radix-cluster-cleanup's Introduction

build workflow

go build -o rx-cleanup

LOG_LEVEL=DEBUG ./rx-cleanup --help

Building and releasing

We are making releases available as GitHub releases using go-releaser. The release process is controlled by the .goreleaser.yml file.

To make a release:

  1. Set the version number in the constant version in the file cmd/version.go
  2. Ensure there is no dist folder in the project (left from previous release)
  3. Get the Personal Access Token (PAT) - with access to repository and write:packages scope, and with enabled SSO for organisation (or create it)
  4. Login to the docker repository with your PAT
    echo $CR_PAT | docker login ghcr.io -u magnus-longva-bouvet --password-stdin
    
  5. Run the command to create a version with a tag, build a docker image and push them to GitHub repository. Recommended to set <number_of_cores> to a number well below your CPU count if you want to get any work done while compiling.
    git tag -a v<version_numnber> -m "<release_note>"
    git push origin v<version_number>
    goreleaser release --rm-dist --parallelism <number_of_cores>
    
  6. If something goes wrong:
    • open the GitHub repository and delete created tag (with release)
    • delete it locally git tag -d v0.0.1
    • reset changes git reset --hard
    • delete the dist folder
    • perform the previous step make release ... again

To generate a local version for debugging purposes, it can be built using:

CGO_ENABLED=0 GOOS=darwin go build -ldflags "-s -w" -a -installsuffix cgo -o ./rx-cleanup

Contributing

Want to contribute? Read our contributing guidelines


Security notification

radix-cluster-cleanup's People

Contributors

magnus-longva-bouvet avatar nilsgstrabo avatar emirgens avatar richard87 avatar satr avatar snyk-bot avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

radix-cluster-cleanup's Issues

fix radix-cicd-canary deleting new apps

Evaluate RR creationTimestamp as RR age criterium even when there are no RDs

if len(rds) == 0 {
log.Debugf("no RadixDeployments found, assuming RadixRegistration is inactive")
return true, nil
}

Enable automatic deletion of apps in playground

  • Write new app
  • Add scripts to bootstrap new app in radix-platform
  • Fix bug which makes it crash in dev
  • Fix wrong sort of radixjobs
  • Change from dry-run to wet-run in dev
  • Change from dry-run to wet-run in playground
  • Add Slack notification message upon cleanup (optional)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.