Skip to content

Commit 23e9850

Browse files
hypnocemanusa
authored andcommitted
feat: add support for kustomize api v1beta1 (#4929)
Signed-off-by: hypnoce <[email protected]>
1 parent f57fe5b commit 23e9850

File tree

39 files changed

+7477
-32
lines changed

39 files changed

+7477
-32
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848

4949
#### New Features
5050
* Fix #4758: added support for pod ephemeral container operations
51+
* Fix #4929: added support for kustomize api v1beta1
5152

5253
#### _**Note**_: Breaking changes
5354
* Fix #4708: The signature of the Interceptor methods changed to pass the full HttpRequest, rather than just the headers, and explicitly pass request tags - in particular the RequestConfig. To simplify authentication concerns the following fields have been removed from RequestConfig: username, password, oauthToken, and oauthTokenProvider. Not all HttpClient implementation support setting the connectionTimeout at a request level, thus it was removed from the RequestConfig as well.

kubernetes-client/src/test/resources/raw-custom-resource-operations/custom-resource.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
#
2+
# Copyright (C) 2015 Red Hat, Inc.
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+
117
apiVersion: test.fabric8.io/v1alpha1
218
kind: Hello
319
metadata:

kubernetes-model-generator/generateModel.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ declare -a modules=(
4343
"kubernetes-model-scheduling"
4444
"kubernetes-model-storageclass"
4545
"kubernetes-model-resource"
46+
"kubernetes-model-kustomize"
4647
"openshift-model-config"
4748
"openshift-model"
4849
"openshift-model-operator"

kubernetes-model-generator/go.mod

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ require (
2525
k8s.io/kube-aggregator v0.26.0
2626
k8s.io/metrics v0.26.0
2727
sigs.k8s.io/kube-storage-version-migrator v0.0.5
28+
sigs.k8s.io/kustomize/api v0.13.1
29+
sigs.k8s.io/gateway-api v0.6.1
2830
)
2931

3032
require (
@@ -34,27 +36,29 @@ require (
3436
github.com/blang/semver/v4 v4.0.0 // indirect
3537
github.com/cespare/xxhash/v2 v2.1.2 // indirect
3638
github.com/davecgh/go-spew v1.1.1 // indirect
37-
github.com/docker/docker v20.10.2+incompatible // indirect
38-
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
39+
github.com/emicklei/go-restful/v3 v3.10.1 // indirect
40+
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
3941
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
4042
github.com/fsnotify/fsnotify v1.6.0 // indirect
43+
github.com/go-errors/errors v1.4.2 // indirect
4144
github.com/go-logr/logr v1.2.3 // indirect
42-
github.com/go-openapi/jsonpointer v0.19.5 // indirect
43-
github.com/go-openapi/jsonreference v0.20.0 // indirect
44-
github.com/go-openapi/swag v0.19.14 // indirect
45+
github.com/go-openapi/jsonpointer v0.19.6 // indirect
46+
github.com/go-openapi/jsonreference v0.20.2 // indirect
47+
github.com/go-openapi/swag v0.22.3 // indirect
4548
github.com/gogo/protobuf v1.3.2 // indirect
4649
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
4750
github.com/golang/protobuf v1.5.2 // indirect
48-
github.com/google/gnostic v0.5.7-v3refs // indirect
51+
github.com/google/gnostic v0.6.9 // indirect
4952
github.com/google/go-cmp v0.5.9 // indirect
5053
github.com/google/gofuzz v1.2.0 // indirect
5154
github.com/google/uuid v1.2.0 // indirect
5255
github.com/h2non/filetype v1.1.1 // indirect
5356
github.com/h2non/go-is-svg v0.0.0-20160927212452-35e8c4b0612c // indirect
5457
github.com/imdario/mergo v0.3.12 // indirect
58+
github.com/inconshreveable/mousetrap v1.1.0 // indirect
5559
github.com/josharian/intern v1.0.0 // indirect
5660
github.com/json-iterator/go v1.1.12 // indirect
57-
github.com/mailru/easyjson v0.7.6 // indirect
61+
github.com/mailru/easyjson v0.7.7 // indirect
5862
github.com/matttproud/golang_protobuf_extensions v1.0.2 // indirect
5963
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
6064
github.com/modern-go/reflect2 v1.0.2 // indirect
@@ -67,10 +71,12 @@ require (
6771
github.com/prometheus/common v0.37.0 // indirect
6872
github.com/prometheus/procfs v0.8.0 // indirect
6973
github.com/sirupsen/logrus v1.8.1 // indirect
74+
github.com/spf13/cobra v1.6.1 // indirect
7075
github.com/spf13/pflag v1.0.5 // indirect
7176
github.com/vmware/govmomi v0.24.0 // indirect
7277
golang.org/x/net v0.7.0 // indirect
7378
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect
79+
golang.org/x/sync v0.1.0 // indirect
7480
golang.org/x/sys v0.5.0 // indirect
7581
golang.org/x/term v0.5.0 // indirect
7682
golang.org/x/text v0.7.0 // indirect
@@ -84,12 +90,12 @@ require (
8490
gopkg.in/yaml.v2 v2.4.0 // indirect
8591
gopkg.in/yaml.v3 v3.0.1 // indirect
8692
k8s.io/component-base v0.26.0 // indirect
87-
k8s.io/klog/v2 v2.80.1 // indirect
88-
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
89-
k8s.io/utils v0.0.0-20221128185143-99ec85e7a448 // indirect
93+
k8s.io/klog/v2 v2.90.0 // indirect
94+
k8s.io/kube-openapi v0.0.0-20230228151317-19cbebb19cb7 // indirect
95+
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 // indirect
9096
sigs.k8s.io/controller-runtime v0.12.1 // indirect
91-
sigs.k8s.io/gateway-api v0.6.0
92-
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
97+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
98+
sigs.k8s.io/kustomize/kyaml v0.14.0 // indirect
9399
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
94100
sigs.k8s.io/yaml v1.3.0 // indirect
95101
)

0 commit comments

Comments
 (0)