
This change request demonstrates using the iframe capability in octant. It requires that argo-ui is running and available locally, which can be accomplished with the commands: kubectl create namespace argo kubectl apply -n argo -f https://raw.githubusercontent.com/argoproj\ /argo/stable/manifests/install.yaml kubectl -n argo port-forward deployment/argo-ui 8001:8001 A check is made for the presence of the argo-ui deployments and will only attempt to show the iframe if it is present. Change-Id: I1a26e788366d0adb770368083c4f1996311bcd33
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
# Copyright (c) 2019 VMware, Inc. All Rights Reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
SHELL=/bin/bash
|
|
# Obtain the version and git commit info
|
|
GIT_VERSION=$(shell git describe --match 'v*' --always)
|
|
|
|
# Override the value of the version variable in main.go
|
|
LD_FLAGS= '-X main.version=$(GIT_VERSION)'
|
|
GO_FLAGS= -ldflags=$(LD_FLAGS)
|
|
PLUGINS:= $(shell ls cmd)
|
|
|
|
ifdef XDG_CONFIG_HOME
|
|
OCTANT_PLUGINSTUB_DIR ?= ${XDG_CONFIG_HOME}/octant/plugins
|
|
# Determine in on windows
|
|
else ifeq ($(OS),Windows_NT)
|
|
OCTANT_PLUGINSTUB_DIR ?= ${LOCALAPPDATA}/octant/plugins
|
|
else
|
|
OCTANT_PLUGINSTUB_DIR ?= ${HOME}/.config/octant/plugins
|
|
endif
|
|
|
|
DIRS = internal pkg
|
|
RECURSIVE_DIRS = $(addsuffix /...,$(DIRS))
|
|
|
|
.PHONY: install-plugins
|
|
install-plugins: $(PLUGINS)
|
|
$(PLUGINS):
|
|
mkdir -p $(OCTANT_PLUGINSTUB_DIR)
|
|
go build -o $(OCTANT_PLUGINSTUB_DIR)/$@-plugin $(GO_FLAGS) opendev.org/airship/airshipui/cmd/$@
|
|
|
|
.PHONY: test
|
|
test: generate
|
|
go test -v $(RECURSIVE_DIRS)
|
|
|
|
.PHONY: vet
|
|
vet:
|
|
go vet $(RECURSIVE_DIRS)
|
|
|
|
.PHONY: generate
|
|
generate:
|
|
go generate -v $(RECURSIVE_DIRS)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
git clean -dx $(DIRS)
|
|
|
|
.PHONY: ci
|
|
ci: test vet
|