Skip to content

Commit

Permalink
remove plrlctl
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Dec 4, 2024
1 parent f774be1 commit f4cee40
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 243 deletions.
89 changes: 0 additions & 89 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,11 @@ builds:
- -X "github.com/pluralsh/plural-cli/pkg/common.Date={{.Date}}"
- -X "github.com/pluralsh/plural-cli/pkg/scm.GitlabClientSecret={{.Env.GITLAB_CLIENT_SECRET}}"
binary: plural
- id: plrlctl
main: ./cmd/plrlctl
targets:
- linux_amd64
- linux_arm64
- windows_amd64
- windows_arm64
- darwin_amd64
- darwin_arm64
env:
- CGO_ENABLED=0
ldflags:
- -s
- -w
- -X "github.com/pluralsh/plural-cli/pkg/common.Version={{.Version}}"
- -X "github.com/pluralsh/plural-cli/pkg/common.Commit={{.Commit}}"
- -X "github.com/pluralsh/plural-cli/pkg/common.Date={{.Date}}"
- -X "github.com/pluralsh/plural-cli/pkg/scm.GitlabClientSecret={{.Env.GITLAB_CLIENT_SECRET}}"
binary: pluralctl

archives:
- id: plural-cli
builds: [plural-cli]
name_template: '{{ .ProjectName }}_{{ .Version }}_{{- title .Os -}}_{{- if eq .Arch "386" -}}i386{{- else -}}{{ .Arch }}{{- end -}}'
- id: plrlctl
builds: [plrlctl]
name_template: '{{ .Binary }}_{{ .Version }}_{{- title .Os -}}_{{- if eq .Arch "386" -}}i386{{- else -}}{{ .Arch }}{{- end -}}'

checksum:
name_template: 'checksums.txt'
Expand Down Expand Up @@ -160,70 +138,3 @@ brews:
test: |
system "#{bin}/plural", "--help"
- name: plrlctl
ids: [plrlctl]
repository:
owner: pluralsh
name: homebrew-plural

# Optionally a branch can be provided.
# Defaults to the default repository branch.
branch: main

# Optionally a token can be provided, if it differs from the token provided to GoReleaser
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"

# Template for the url which is determined by the given Token (github, gitlab or gitea)
#
# Default depends on the client.
url_template: "https://github.com/pluralsh/plural-cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"

# Allows you to set a custom download strategy. Note that you'll need
# to implement the strategy and add it to your tap repository.
# Example: https://docs.brew.sh/Formula-Cookbook#specifying-the-download-strategy-explicitly
# Default is empty.
download_strategy: CurlDownloadStrategy

# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: plural-bot
email: [email protected]

# The project name and current git tag are used in the format string.
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"

# Folder inside the repository to put the formula.
# Default is the root folder.
directory: Formula

# Your app's homepage.
# Default is empty.
homepage: "https://docs.plural.sh"

# Template of your app's description.
# Default is empty.
description: "CLI to manage and operate a fleet of clusters"

# SPDX identifier of your app's license.
# Default is empty.
license: "MIT"

# Setting this will prevent goreleaser to actually try to commit the updated
# formula - instead, the formula file will be stored on the dist folder only,
# leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
skip_upload: "auto"

# Custom block for brew.
# Can be used to specify alternate downloads for devel or head releases.
# Default is empty.
custom_block: |
head "https://github.com/pluralsh/plural-cli.git"
test: |
system "#{bin}/plrlctl", "--help"
19 changes: 0 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ include $(ROOT_DIRECTORY)/hack/include/build.mk

GCP_PROJECT ?= pluralsh
APP_NAME ?= plural-cli
APP_CTL_NAME ?= plrlctl
APP_VSN ?= $(shell git describe --tags --always --dirty)
APP_DATE ?= $(shell date -u +"%Y-%m-%dT%H:%M:%S%z")
BUILD ?= $(shell git rev-parse --short HEAD)
Expand All @@ -27,7 +26,6 @@ WAILS_BINDINGS_TAGS ?= bindings,generate
WAILS_BINDINGS_BINARY_NAME ?= wailsbindings
TAGS ?= $(WAILS_TAGS)
OUTFILE ?= plural.o
OUTCTLFILE ?= plrlctl.o
GOBIN ?= go env GOBIN

# Targets to run before other targets
Expand All @@ -42,16 +40,11 @@ git-push:
.PHONY: install
install:
go build -ldflags '$(LDFLAGS)' -o $(GOBIN)/plural ./cmd/plural
go build -ldflags '$(LDFLAGS)' -o $(GOBIN)/plrlctl ./cmd/plrlctl

.PHONY: build-cli
build-cli: ## Build a CLI binary for the host architecture without embedded UI
go build -ldflags='$(LDFLAGS)' -o $(OUTFILE) ./cmd/plural

.PHONY: build-ctl
build-ctl: ## Build a CLI binary for the fleet management
go build -ldflags='$(LDFLAGS)' -o $(OUTCTLFILE) ./cmd/plrlctl

.PHONY: build-cli-ui
build-cli-ui: $(PRE) generate-bindings ## Build a CLI binary for the host architecture with embedded UI
CGO_LDFLAGS=$(CGO_LDFLAGS) go build -tags $(WAILS_TAGS) -ldflags='$(LDFLAGS)' -o $(OUTFILE) ./cmd/plural
Expand All @@ -78,7 +71,6 @@ generate-bindings: build-web ## Generate backend bindings for the embedded UI
.PHONY: release
release:
GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags='$(LDFLAGS)' -o $(OUTFILE) ./cmd/plural
GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags='$(LDFLAGS)' -o $(OUTCTLFILE) ./cmd/plrlctl

.PHONY: goreleaser
goreleaser:
Expand All @@ -103,17 +95,6 @@ build: ## Build the Docker image
-t gcr.io/$(GCP_PROJECT)/$(APP_NAME):$(APP_VSN) \
-t $(DKR_HOST)/plural/$(APP_NAME):$(APP_VSN) .

.PHONY: build-ctl
build-ctl: ## Build the plrctl Docker image
docker build --build-arg APP_NAME=$(APP_CTL_NAME) \
--build-arg APP_VSN=$(APP_VSN) \
--build-arg APP_DATE=$(APP_DATE) \
--build-arg APP_COMMIT=$(BUILD) \
-t $(APP_CTL_NAME):$(APP_VSN) \
-t $(APP_CTL_NAME):latest \
-t gcr.io/$(GCP_PROJECT)/$(APP_CTL_NAME):$(APP_VSN) \
-t $(DKR_HOST)/plural/$(APP_CTL_NAME):$(APP_VSN) -f dockerfiles/plrlctl/Dockerfile .

.PHONY: build-cloud
build-cloud: ## build the cloud docker image
docker build --build-arg APP_NAME=$(APP_NAME) \
Expand Down
2 changes: 1 addition & 1 deletion cmd/command/plural/plural.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func globalFlags() []cli.Flag {
cli.BoolFlag{
Name: "bootstrap",
Usage: "enable bootstrap mode",
Destination: &common.BootstrapMode,
Destination: &common.BootstrapMode, // TODO Remove
Hidden: !exp.IsFeatureEnabled(exp.EXP_PLURAL_CAPI),
},
}
Expand Down
87 changes: 0 additions & 87 deletions cmd/plrlctl/main.go

This file was deleted.

47 changes: 0 additions & 47 deletions dockerfiles/plrlctl/Dockerfile

This file was deleted.

0 comments on commit f4cee40

Please sign in to comment.