Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit e09e034

Browse files
authored
Merge pull request #256 from vincepri/add-release-notes
🏃Add release notes utility / update controller-tools & CRDs
2 parents 7b907ab + a7b1b1c commit e09e034

File tree

8 files changed

+173
-19
lines changed

8 files changed

+173
-19
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ CONTROLLER_GEN_BIN := bin/controller-gen
5151
CONTROLLER_GEN := $(TOOLS_DIR)/$(CONTROLLER_GEN_BIN)
5252
GOLANGCI_LINT_BIN := bin/golangci-lint
5353
GOLANGCI_LINT := $(TOOLS_DIR)/$(GOLANGCI_LINT_BIN)
54+
RELEASE_NOTES_BIN := bin/release-notes
55+
RELEASE_NOTES := $(TOOLS_DIR)/$(RELEASE_NOTES_BIN)
5456

5557
# Allow overriding manifest generation destination directory
5658
MANIFEST_ROOT ?= "config"
@@ -175,6 +177,9 @@ RELEASE_DIR := out
175177
$(RELEASE_DIR):
176178
mkdir -p $(RELEASE_DIR)/
177179

180+
$(RELEASE_NOTES) : $(TOOLS_DIR)/go.mod
181+
cd $(TOOLS_DIR) && go build -o $(RELEASE_NOTES_BIN) -tags tools sigs.k8s.io/cluster-api/hack/tools/release
182+
178183
.PHONY: release
179184
release: clean-release ## Builds and push container images using the latest git tag for the commit.
180185
@if [ -z "${RELEASE_TAG}" ]; then echo "RELEASE_TAG is not set"; exit 1; fi
@@ -194,6 +199,9 @@ release-manifests: $(RELEASE_DIR) ## Builds the manifests to publish with a rele
194199
release-staging: ## Builds and push container images to the staging bucket.
195200
REGISTRY=$(STAGING_REGISTRY) $(MAKE) docker-build-all docker-push-all release-tag-latest
196201

202+
.PHONY: release-notes
203+
release-notes: $(RELEASE_NOTES)
204+
$(RELEASE_NOTES)
197205

198206
.PHONY: release-tag-latest
199207
release-tag-latest: ## Adds the latest tag to the last build tag.

config/crd/bases/bootstrap.cluster.x-k8s.io_kubeadmconfigs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ spec:
1111
categories:
1212
- cluster-api
1313
kind: KubeadmConfig
14+
listKind: KubeadmConfigList
1415
plural: kubeadmconfigs
16+
singular: kubeadmconfig
1517
scope: Namespaced
1618
subresources:
1719
status: {}

config/crd/bases/bootstrap.cluster.x-k8s.io_kubeadmconfigtemplates.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ spec:
1111
categories:
1212
- cluster-api
1313
kind: KubeadmConfigTemplate
14+
listKind: KubeadmConfigTemplateList
1415
plural: kubeadmconfigtemplates
16+
singular: kubeadmconfigtemplate
1517
scope: Namespaced
1618
validation:
1719
openAPIV3Schema:

go.mod

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,27 @@ go 1.12
44

55
require (
66
github.com/go-logr/logr v0.1.0
7-
github.com/google/gofuzz v1.0.0 // indirect
8-
github.com/onsi/ginkgo v1.8.0
9-
github.com/onsi/gomega v1.5.0
7+
github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d // indirect
8+
github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef // indirect
9+
github.com/json-iterator/go v1.1.7 // indirect
10+
github.com/onsi/ginkgo v1.10.1
11+
github.com/onsi/gomega v1.7.0
1012
github.com/pkg/errors v0.8.1
11-
golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8 // indirect
12-
golang.org/x/net v0.0.0-20190620200207-3b0461eec859
13-
golang.org/x/sys v0.0.0-20190621203818-d432491b9138 // indirect
13+
github.com/prometheus/client_golang v0.9.3 // indirect
14+
github.com/spf13/pflag v1.0.5 // indirect
15+
github.com/stretchr/testify v1.4.0 // indirect
16+
go.uber.org/atomic v1.4.0 // indirect
17+
go.uber.org/zap v1.10.0 // indirect
18+
golang.org/x/crypto v0.0.0-20190911031432-227b76d455e7 // indirect
19+
golang.org/x/net v0.0.0-20190909003024-a7b16738d86b
20+
golang.org/x/sys v0.0.0-20190911201528-7ad0cfa0b7b5 // indirect
21+
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
1422
k8s.io/api v0.0.0-20190409021203-6e4e0e4f393b
1523
k8s.io/apimachinery v0.0.0-20190404173353-6a84e37a896d
1624
k8s.io/client-go v11.0.1-0.20190409021438-1a26190bd76a+incompatible
1725
k8s.io/cluster-bootstrap v0.0.0-20190516232516-d7d78ab2cfe7
1826
k8s.io/klog v0.4.0
19-
k8s.io/kube-openapi v0.0.0-20190603182131-db7b694dc208 // indirect
27+
k8s.io/kube-openapi v0.0.0-20190816220812-743ec37842bf // indirect
2028
sigs.k8s.io/cluster-api v0.2.0
2129
sigs.k8s.io/controller-runtime v0.2.0
2230
)

go.sum

Lines changed: 54 additions & 9 deletions
Large diffs are not rendered by default.

hack/tools/go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ go 1.12
44

55
require (
66
github.com/golangci/golangci-lint v1.18.0
7-
sigs.k8s.io/controller-tools v0.2.0
7+
sigs.k8s.io/cluster-api/hack/tools v0.0.0-20190926205936-6fc621a1c6af
8+
sigs.k8s.io/controller-tools v0.2.1
89
)

hack/tools/go.sum

Lines changed: 89 additions & 2 deletions
Large diffs are not rendered by default.

hack/tools/tools.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ package tools
2121

2222
import (
2323
_ "github.com/golangci/golangci-lint/cmd/golangci-lint" // nolint
24+
_ "sigs.k8s.io/cluster-api/hack/tools/release" //nolint
2425
_ "sigs.k8s.io/controller-tools/cmd/controller-gen" // nolint
2526
)

0 commit comments

Comments
 (0)