Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
anujc25 committed Apr 3, 2023
1 parent 48f80f6 commit bdc1f43
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/plugin/builder/template/plugintemplates/main.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
var descriptor = plugin.PluginDescriptor{
Name: "{{ .PluginName | ToLower }}",
Description: "{{ .Description | ToLower }}",
Target: types.TargetUnknown,
Target: "FIXME<<<", // set the Target of the plugin to types.(one of {TargetGlobal,TargetK8s,TargetTMC})
Version: buildinfo.Version,
BuildSHA: buildinfo.SHA,
Group: plugin.ManageCmdGroup, // set group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endif

PLUGIN_BUILD_SHA ?= $(shell git describe --match=$(git rev-parse --short HEAD) --always --dirty)
PLUGIN_BUILD_DATE ?= $(shell date -u +"%Y-%m-%d")
PLUGIN_BUILD_VERSION ?= $(shell git describe --tags 2>$(NUL))
PLUGIN_BUILD_VERSION ?= $(shell git describe --tags --abbrev=0 2>$(NUL))

ifeq ($(strip $(PLUGIN_BUILD_VERSION)),)
PLUGIN_BUILD_VERSION = v0.0.0
Expand Down Expand Up @@ -46,7 +46,7 @@ TZBIN ?= tanzu
BUILDER_PLUGIN ?= $(TZBIN) builder
PUBLISHER ?= tzcli
VENDOR ?= vmware
PLUGIN_PUBLISH_REPOSITORY ?= localhost:$(REGISTRY_PORT)/test/v1/tanzu-cli/plugins
PLUGIN_PUBLISH_REPOSITORY ?= $(REGISTRY_ENDPOINT)/test/v1/tanzu-cli/plugins
PLUGIN_INVENTORY_IMAGE_TAG ?= latest

PLUGIN_SCOPE_ASSOCIATION_FILE ?= ""
Expand Down
3 changes: 1 addition & 2 deletions cmd/plugin/builder/template/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ var PluginToolingMK = Target{
}

// Codeowners target
// TODO (pbarker): replace with the CLI reviewers group
var Codeowners = Target{
Filepath: "CODEOWNERS",
Template: `* @vuil`,
Template: `* # edit as appropriate`,
}

// Tools target.
Expand Down
4 changes: 2 additions & 2 deletions plugin-tooling.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endif

PLUGIN_BUILD_SHA ?= $(shell git describe --match=$(git rev-parse --short HEAD) --always --dirty)
PLUGIN_BUILD_DATE ?= $(shell date -u +"%Y-%m-%d")
PLUGIN_BUILD_VERSION ?= $(shell git describe --tags 2>$(NUL))
PLUGIN_BUILD_VERSION ?= $(shell git describe --tags --abbrev=0 2>$(NUL))

ifeq ($(strip $(PLUGIN_BUILD_VERSION)),)
PLUGIN_BUILD_VERSION = v0.0.0
Expand Down Expand Up @@ -45,7 +45,7 @@ PLUGIN_NAME ?= *
BUILDER_PLUGIN ?= $(ROOT_DIR)/bin/builder
PUBLISHER ?= tzcli
VENDOR ?= vmware
PLUGIN_PUBLISH_REPOSITORY ?= localhost:$(REGISTRY_PORT)/test/v1/tanzu-cli/plugins
PLUGIN_PUBLISH_REPOSITORY ?= $(REGISTRY_ENDPOINT)/test/v1/tanzu-cli/plugins
PLUGIN_INVENTORY_IMAGE_TAG ?= latest

PLUGIN_SCOPE_ASSOCIATION_FILE ?= $(PLUGIN_DIR)/plugin-scope-association.yaml
Expand Down

0 comments on commit bdc1f43

Please sign in to comment.