Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
helm-operator-plugins/Makefile at main · operator-framework/helm-operator-plugins · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
operator-framework
helm-operator-plugins
Repository navigation
Code
Issues
4
(4)
Pull requests
3
(3)
Actions
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
helm-operator-plugins
/
Makefile
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
81 lines (66 loc) · 2.49 KB
main
Breadcrumbs
helm-operator-plugins
/
Makefile
Copy path
Top
File metadata and controls
Code
Blame
81 lines (66 loc) · 2.49 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.DEFAULT_GOAL
:= all
#
GO_BUILD_ARGS should be set when running 'go build' or 'go install'.
VERSION_PKG
= "
$(
shell
go list -m)
/internal/version"
export
GIT_VERSION
=
$(
shell
git describe --dirty --tags --always)
export
GIT_COMMIT
=
$(
shell
git rev-parse HEAD)
BUILD_DIR
=
$(
PWD
)
/bin
GO_BUILD_ARGS
=
\
-gcflags "all=-trimpath=
$(
shell
dirname
$(
shell
pwd)
)
"
\
-asmflags "all=-trimpath=
$(
shell
dirname
$(
shell
pwd)
)
"
\
-ldflags "
\
-s
\
-w
\
-X '
$(
VERSION_PKG
)
.GitVersion=
$(
GIT_VERSION
)
'
\
-X '
$(
VERSION_PKG
)
.GitCommit=
$(
GIT_COMMIT
)
'
\
"
\
#
Always use Go modules
export
GO111MODULE
= on
#
Setup project-local paths and build settings
SHELL
=/bin/bash
export
PATH
:=
$(
BUILD_DIR
)
:
$(
PATH
)
#
bingo manages consistent tooling versions for things like kind, kustomize, etc.
include
.bingo/Variables.mk
#
#@ Development
.PHONY
: all
all
: test lint build
#
Run tests
.PHONY
: test
#
Use envtest based on the version of kubernetes/client-go configured in the go.mod file.
#
If this version of envtest is not available yet, submit a PR similar to
#
https://github.com/kubernetes-sigs/kubebuilder/pull/2287 targeting the kubebuilder
#
"tools-releases" branch. Make sure to look up the appropriate etcd version in the
#
kubernetes release notes for the minor version you're building tools for.
CLIENT_GO_VERSION
=
$(
shell
go list -m k8s.io/client-go | cut -d" " -f2 | sed 's/^v0\.\([[:digit:]]\{1,\}\)
\.[[:digit:]]\{1,\}$$/1.\1.x/')
TESTPKG
?= ./...
test
: build
$(
SETUP_ENVTEST
)
eval
$$(
$(
SETUP_ENVTEST
)
use -p env
$(
CLIENT_GO_VERSION
)
)
&&
go
test
-race -covermode atomic -coverprofile cover.out
$(
TESTPKG
)
.PHONY
: test-sanity
test-sanity
: fix lint
#
# Test repo formatting, linting, etc.
go vet ./...
git diff --exit-code
#
diff again to ensure other checks don't change repo
#
Build manager binary
.PHONY
: build
build
:
mkdir -p
$(
BUILD_DIR
)
&&
go build
$(
GO_BUILD_ARGS
)
-o
$(
BUILD_DIR
)
./
#
Run various checks against code
.PHONY
: lint
lint
:
$(
GOLANGCI_LINT
)
$(
GOLANGCI_LINT
)
run
.PHONY
: fix
fix
:
$(
GOLANGCI_LINT
)
#
# Fixup files in the repo.
go mod tidy
go fmt ./...
$(
GOLANGCI_LINT
)
run --fix
.PHONY
: bingo-upgrade
bingo-upgrade
:
$(
BINGO
)
#
EXHELP Upgrade tools
@for pkg
in
$$(
$(
BINGO
)
list | awk '{ print $$3 }' | tail -n +3 | sed 's/@.*//')
;
do
\
echo
-e
"
Upgrading \033[35m
$$
pkg\033[0m to latest...
"
;
\
$(
BINGO
)
get
"
$$
pkg@latest
"
;
\
done
.PHONY
: release
release
: GORELEASER_ARGS ?= --snapshot --clean --skip=sign
release
:
$(
GORELEASER
)
$(
GORELEASER
)
$(
GORELEASER_ARGS
)
.PHONY
: clean
clean
:
rm -rf
$(
BUILD_DIR
)
You can’t perform that action at this time.