This repository has been archived by the owner on Nov 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: soorena776 <[email protected]>
- Loading branch information
soorena776
committed
Sep 26, 2019
1 parent
60fd03b
commit de6fd80
Showing
2 changed files
with
129 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright 2016 The Upbound Authors. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# ==================================================================================== | ||
# Options | ||
|
||
# ==================================================================================== | ||
# Setup go environment | ||
|
||
-include golang.mk | ||
|
||
# the packages to be built statically, for example, $(GO_PROJECT)/cmd/mytool | ||
ifeq ($(CRD_DIR),) | ||
$(error please set CRD_DIR prior to including k8scontrollers.mk) | ||
endif | ||
|
||
# ==================================================================================== | ||
# k8scontrollers Targets | ||
|
||
# Generate manifests e.g. CRD, RBAC etc. | ||
manifests: $(CONTROLLERGEN) | ||
@$(INFO) Generating CRD manifests | ||
@$(CONTROLLERGEN) crd:trivialVersions=true paths=./aws/... output:dir=$(CRD_DIR) | ||
@$(OK) Generating CRD manifests | ||
|
||
# ==================================================================================== | ||
# Common Targets | ||
|
||
# ==================================================================================== | ||
# Special Targets | ||
|
||
define K8S_CONTROLLERS_HELPTEXT | ||
Kubernetes Controllers Targets: | ||
manifests Generates Kubernetes custom resources manifests (e.g. CRDs RBACs, ...) | ||
endef | ||
export K8S_CONTROLLERS_HELPTEXT | ||
|
||
help-special: k8s_controllers.help | ||
k8s_controllers.help: | ||
@echo "$$K8S_CONTROLLERS_HELPTEXT" | ||
# ==================================================================================== | ||
# Tools install targets |