File tree Expand file tree Collapse file tree 7 files changed +71
-0
lines changed Expand file tree Collapse file tree 7 files changed +71
-0
lines changed Original file line number Diff line number Diff line change 55! /api /**
66! /cloud /**
77! /controllers /**
8+ ! /exp /**
89! /pkg /**
910! /main.go
1011! /go.mod
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ KUBECTL=$(TOOLS_BIN_DIR)/kubectl
5050KUSTOMIZE := $(abspath $(TOOLS_BIN_DIR ) /kustomize)
5151MOCKGEN := $(TOOLS_BIN_DIR ) /mockgen
5252RELEASE_NOTES := $(TOOLS_DIR ) /$(RELEASE_NOTES_BIN )
53+ EXP_DIR := exp
5354
5455# Define Docker related variables. Releases should modify and double check these vars.
5556REGISTRY ?= gcr.io/$(shell gcloud config get-value project)
@@ -174,6 +175,7 @@ generate: ## Generate code
174175generate-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
186188generate-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
Original file line number Diff line number Diff line change 1+ domain: exp.infrastructure.x-k8s.io
2+ repo: sigs.k8s.io/cluster-api-provider-azure/exp
3+ version: "2"
4+ resources: []
Original file line number Diff line number Diff line change 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 ) .
Original file line number Diff line number Diff line change 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+ )
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments