Skip to content

Commit 994b380

Browse files
authored
Merge pull request kubernetes-sigs#567 from alexeldeib/ace/exp
✨ add exp folder to prepare for aks/machinepool
2 parents 7613ea0 + 9fb2357 commit 994b380

File tree

7 files changed

+71
-0
lines changed

7 files changed

+71
-0
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
!/api/**
66
!/cloud/**
77
!/controllers/**
8+
!/exp/**
89
!/pkg/**
910
!/main.go
1011
!/go.mod

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ KUBECTL=$(TOOLS_BIN_DIR)/kubectl
5050
KUSTOMIZE := $(abspath $(TOOLS_BIN_DIR)/kustomize)
5151
MOCKGEN := $(TOOLS_BIN_DIR)/mockgen
5252
RELEASE_NOTES := $(TOOLS_DIR)/$(RELEASE_NOTES_BIN)
53+
EXP_DIR := exp
5354

5455
# Define Docker related variables. Releases should modify and double check these vars.
5556
REGISTRY ?= gcr.io/$(shell gcloud config get-value project)
@@ -174,6 +175,7 @@ generate: ## Generate code
174175
generate-go: $(CONTROLLER_GEN) $(MOCKGEN) $(CONVERSION_GEN) ## Runs Go related generate targets
175176
$(CONTROLLER_GEN) \
176177
paths=./api/... \
178+
paths=./$(EXP_DIR)/api/... \
177179
object:headerFile=./hack/boilerplate/boilerplate.generatego.txt
178180

179181
$(CONVERSION_GEN) \
@@ -186,12 +188,14 @@ generate-go: $(CONTROLLER_GEN) $(MOCKGEN) $(CONVERSION_GEN) ## Runs Go related g
186188
generate-manifests: $(CONTROLLER_GEN) ## Generate manifests e.g. CRD, RBAC etc.
187189
$(CONTROLLER_GEN) \
188190
paths=./api/... \
191+
paths=./$(EXP_DIR)/api/... \
189192
crd:crdVersions=v1 \
190193
output:crd:dir=$(CRD_ROOT) \
191194
output:webhook:dir=$(WEBHOOK_ROOT) \
192195
webhook
193196
$(CONTROLLER_GEN) \
194197
paths=./controllers/... \
198+
paths=./$(EXP_DIR)/controllers/... \
195199
output:rbac:dir=$(RBAC_ROOT) \
196200
rbac:roleName=manager-role
197201

exp/PROJECT

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
domain: exp.infrastructure.x-k8s.io
2+
repo: sigs.k8s.io/cluster-api-provider-azure/exp
3+
version: "2"
4+
resources: []

exp/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# exp
2+
3+
This subrepository holds experimental code and API types.
4+
5+
**Warning**: Packages here are experimental and unreliable. Some may one day be promoted to the main repository, or they may be modified arbitrarily or even disappear altogether.
6+
7+
In short, code in this subrepository is not subject to any compatibility or deprecation promise.
8+
9+
For policy around graduation timeline, see [Cluster API Exp](https://github.com/kubernetes-sigs/cluster-api/tree/master/exp).
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
Copyright 2020 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
// Package v1alpha3 contains API Schema definitions for the exp v1alpha3 API group
18+
// +kubebuilder:object:generate=true
19+
// +groupName=exp.infrastructure.cluster.x-k8s.io
20+
package v1alpha3
21+
22+
import (
23+
"k8s.io/apimachinery/pkg/runtime/schema"
24+
"sigs.k8s.io/controller-runtime/pkg/scheme"
25+
)
26+
27+
var (
28+
// GroupVersion is group version used to register these objects
29+
GroupVersion = schema.GroupVersion{Group: "exp.infrastructure.cluster.x-k8s.io", Version: "v1alpha3"}
30+
31+
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
32+
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
33+
34+
// AddToScheme adds the types in this group-version to the given scheme.
35+
AddToScheme = SchemeBuilder.AddToScheme
36+
)

exp/controllers/.gitkeep

Whitespace-only changes.

exp/doc.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
Copyright 2020 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package exp

0 commit comments

Comments
 (0)