Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

AckeeCZ/goproxie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Deprecation Notice

As of 2024-02-13, this repository is deprecated and no longer actively maintained. We recommend using official cloud-sql-proxy as a replacement.

Key Points:

  • No new features or bug fixes will be implemented.
  • Issues and pull requests may not be addressed.
  • The repository may be archived in the future.

Thank you for your support!

goproxie

Build Status Coverage Status Go Report

Go clone of proxie cli for Node.js.

User manual

  • goproxie version to print the version
  • Use default goproxie to start interactive wizard
  • Use goproxie history to pick a used proxy settings
  • Use goproxie use to interactively select and set your default GCP project. -project flag available.
  • Use goproxie -project=... -cluster=... for non-interactive mode, see --help for all the options available

Installation

  1. Make sure you have Go, kubectl and gcloud installed.
  2. Authorize gcloud to access the Cloud Platform with Google user credentials:
gcloud auth login
gcloud auth application-default login
  1. Get goproxie:

    a) Build from source

    go get -u github.com/AckeeCZ/goproxie
    

    This will download the source and compile the executable $GOPATH/bin/goproxie. Make sure $GOPATH/bin is in your $PATH.

    b) Download latest executable for macOS, Windows, Linux here

Test

Run all tests

go test ./...

See coverage

go test ./... -v -coverprofile=coverage.out && go tool cover -html=coverage.out

Release a new version

  • add a new git version tag , prefixed with v, e.g. v12.34.56
  • set it based on last tag and respect Semantic Versioning
  • goproxie will incorporate this tag in it's version command during release step when tags are pushed