You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2022/01/12 08:15:15 UTC

[camel-k] 15/22: Fix #1107: fix deepcopy gen

This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit b7889523191cedf1c2cc14162c807795f7a0879d
Author: nicolaferraro <ni...@gmail.com>
AuthorDate: Mon Dec 20 18:56:21 2021 +0100

    Fix #1107: fix deepcopy gen
---
 script/Makefile           |  1 -
 script/gen_client_keda.sh | 32 --------------------------------
 2 files changed, 33 deletions(-)

diff --git a/script/Makefile b/script/Makefile
index af03077..16c0198 100644
--- a/script/Makefile
+++ b/script/Makefile
@@ -175,7 +175,6 @@ generate-json-schema:
 
 generate-keda:
 	cd addons/keda/duck && $(CONTROLLER_GEN) paths="./..." object
-	./script/gen_client_keda.sh
 
 generate-strimzi:
 	cd addons/strimzi/duck && $(CONTROLLER_GEN) paths="./..." object
diff --git a/script/gen_client_keda.sh b/script/gen_client_keda.sh
deleted file mode 100755
index e5dd2ca..0000000
--- a/script/gen_client_keda.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You 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.
-
-set -e
-
-location=$(dirname $0)
-rootdir=$location/..
-
-unset GOPATH
-GO111MODULE=on
-
-echo "Generating boilerplate code for Keda addon..."
-
-cd $rootdir
-
-go run k8s.io/code-generator/cmd/deepcopy-gen \
-  -h ./script/headers/default.txt \
-  --input-dirs=github.com/apache/camel-k/addons/keda