diff --git a/Makefile b/Makefile index fb5529b0f0..ab1faca1ff 100644 --- a/Makefile +++ b/Makefile @@ -596,25 +596,20 @@ apimachinery: apimachinery-codegen goimports .PHONY: apimachinery-codegen apimachinery-codegen: sh -c hack/make-apimachinery.sh - ${GOPATH}/bin/conversion-gen ${API_OPTIONS} --skip-unsafe=true --input-dirs k8s.io/kops/pkg/apis/kops/v1alpha1 --v=0 --output-file-base=zz_generated.conversion \ - --go-header-file "hack/boilerplate/boilerplate.go.txt" ${GOPATH}/bin/conversion-gen ${API_OPTIONS} --skip-unsafe=true --input-dirs k8s.io/kops/pkg/apis/kops/v1alpha2 --v=0 --output-file-base=zz_generated.conversion \ --go-header-file "hack/boilerplate/boilerplate.go.txt" ${GOPATH}/bin/deepcopy-gen ${API_OPTIONS} --input-dirs k8s.io/kops/pkg/apis/kops --v=0 --output-file-base=zz_generated.deepcopy \ --go-header-file "hack/boilerplate/boilerplate.go.txt" - ${GOPATH}/bin/deepcopy-gen ${API_OPTIONS} --input-dirs k8s.io/kops/pkg/apis/kops/v1alpha1 --v=0 --output-file-base=zz_generated.deepcopy \ ${GOPATH}/bin/deepcopy-gen ${API_OPTIONS} --input-dirs k8s.io/kops/pkg/apis/kops/v1alpha2 --v=0 --output-file-base=zz_generated.deepcopy \ --go-header-file "hack/boilerplate/boilerplate.go.txt" - ${GOPATH}/bin/defaulter-gen ${API_OPTIONS} --input-dirs k8s.io/kops/pkg/apis/kops/v1alpha1 --v=0 --output-file-base=zz_generated.defaults \ - --go-header-file "hack/boilerplate/boilerplate.go.txt" ${GOPATH}/bin/defaulter-gen ${API_OPTIONS} --input-dirs k8s.io/kops/pkg/apis/kops/v1alpha2 --v=0 --output-file-base=zz_generated.defaults \ --go-header-file "hack/boilerplate/boilerplate.go.txt" #go install github.com/ugorji/go/codec/codecgen # codecgen works only if invoked from directory where the file is located. #cd pkg/apis/kops/ && ~/k8s/bin/codecgen -d 1234 -o types.generated.go instancegroup.go cluster.go - ${GOPATH}/bin/client-gen ${API_OPTIONS} --input-base k8s.io/kops/pkg/apis/ --input="kops/,kops/v1alpha1,kops/v1alpha2" --clientset-path k8s.io/kops/pkg/client/clientset_generated/ \ + ${GOPATH}/bin/client-gen ${API_OPTIONS} --input-base k8s.io/kops/pkg/apis/ --input="kops/,kops/v1alpha2" --clientset-path k8s.io/kops/pkg/client/clientset_generated/ \ --go-header-file "hack/boilerplate/boilerplate.go.txt" - ${GOPATH}/bin/client-gen ${API_OPTIONS} --clientset-name="clientset" --input-base k8s.io/kops/pkg/apis/ --input="kops/,kops/v1alpha1,kops/v1alpha2" --clientset-path k8s.io/kops/pkg/client/clientset_generated/ \ + ${GOPATH}/bin/client-gen ${API_OPTIONS} --clientset-name="clientset" --input-base k8s.io/kops/pkg/apis/ --input="kops/,kops/v1alpha2" --clientset-path k8s.io/kops/pkg/client/clientset_generated/ \ --go-header-file "hack/boilerplate/boilerplate.go.txt" .PHONY: verify-apimachinery diff --git a/cmd/kops/BUILD.bazel b/cmd/kops/BUILD.bazel index a030de3297..4d4a2161c2 100644 --- a/cmd/kops/BUILD.bazel +++ b/cmd/kops/BUILD.bazel @@ -64,7 +64,6 @@ go_library( "//pkg/apis/kops/model:go_default_library", "//pkg/apis/kops/registry:go_default_library", "//pkg/apis/kops/util:go_default_library", - "//pkg/apis/kops/v1alpha1:go_default_library", "//pkg/apis/kops/validation:go_default_library", "//pkg/assets:go_default_library", "//pkg/bundle:go_default_library", @@ -113,7 +112,6 @@ go_library( "//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/validation/field:go_default_library", "//vendor/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library", diff --git a/cmd/kops/create.go b/cmd/kops/create.go index 86e9b506ae..35e21adfd6 100644 --- a/cmd/kops/create.go +++ b/cmd/kops/create.go @@ -23,11 +23,9 @@ import ( "github.com/spf13/cobra" apierrors "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/klog" "k8s.io/kops/cmd/kops/util" kopsapi "k8s.io/kops/pkg/apis/kops" - "k8s.io/kops/pkg/apis/kops/v1alpha1" "k8s.io/kops/pkg/featureflag" "k8s.io/kops/pkg/kopscodecs" "k8s.io/kops/upup/pkg/fi/cloudup" @@ -137,11 +135,7 @@ func RunCreate(f *util.Factory, out io.Writer, c *CreateOptions) error { // TODO: this does not support a JSON array sections := text.SplitContentToSections(contents) for _, section := range sections { - defaults := &schema.GroupVersionKind{ - Group: v1alpha1.SchemeGroupVersion.Group, - Version: v1alpha1.SchemeGroupVersion.Version, - } - o, gvk, err := kopscodecs.Decode(section, defaults) + o, gvk, err := kopscodecs.Decode(section, nil) if err != nil { return fmt.Errorf("error parsing file %q: %v", f, err) } diff --git a/cmd/kops/create_cluster_integration_test.go b/cmd/kops/create_cluster_integration_test.go index a7a67abdef..62ab69d451 100644 --- a/cmd/kops/create_cluster_integration_test.go +++ b/cmd/kops/create_cluster_integration_test.go @@ -43,7 +43,6 @@ var MagicTimestamp = metav1.Time{Time: time.Date(2017, 1, 1, 0, 0, 0, 0, time.UT // TestCreateClusterMinimal runs kops create cluster minimal.example.com --zones us-test-1a func TestCreateClusterMinimal(t *testing.T) { - runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/minimal", "v1alpha1") runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/minimal", "v1alpha2") } @@ -59,9 +58,7 @@ func TestCreateClusterComplex(t *testing.T) { // TestCreateClusterHA runs kops create cluster ha.example.com --zones us-test-1a,us-test-1b,us-test-1c --master-zones us-test-1a,us-test-1b,us-test-1c func TestCreateClusterHA(t *testing.T) { - runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/ha", "v1alpha1") runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/ha", "v1alpha2") - runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/ha_encrypt", "v1alpha1") runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/ha_encrypt", "v1alpha2") } @@ -72,49 +69,41 @@ func TestCreateClusterHAGCE(t *testing.T) { // TestCreateClusterHASharedZones tests kops create cluster when the master count is bigger than the number of zones func TestCreateClusterHASharedZones(t *testing.T) { - // Cannot be expressed in v1alpha1 API: runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/ha_shared_zones", "v1alpha1") runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/ha_shared_zones", "v1alpha2") } // TestCreateClusterPrivate runs kops create cluster private.example.com --zones us-test-1a --master-zones us-test-1a func TestCreateClusterPrivate(t *testing.T) { - runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/private", "v1alpha1") runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/private", "v1alpha2") } // TestCreateClusterWithNGWSpecified runs kops create cluster private.example.com --zones us-test-1a --master-zones us-test-1a func TestCreateClusterWithNGWSpecified(t *testing.T) { - runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/ngwspecified", "v1alpha1") runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/ngwspecified", "v1alpha2") } // TestCreateClusterWithINGWSpecified runs kops create cluster private.example.com --zones us-test-1a --master-zones us-test-1a func TestCreateClusterWithINGWSpecified(t *testing.T) { - runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/ingwspecified", "v1alpha1") runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/ingwspecified", "v1alpha2") } // TestCreateClusterSharedVPC runs kops create cluster vpc.example.com --zones us-test-1a --master-zones us-test-1a --vpc vpc-12345678 func TestCreateClusterSharedVPC(t *testing.T) { - runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/shared_vpc", "v1alpha1") runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/shared_vpc", "v1alpha2") } // TestCreateClusterSharedSubnets runs kops create cluster subnet.example.com --zones us-test-1a --master-zones us-test-1a --vpc vpc-12345678 --subnets subnet-1 func TestCreateClusterSharedSubnets(t *testing.T) { - runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/shared_subnets", "v1alpha1") runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/shared_subnets", "v1alpha2") } // TestCreateClusterSharedSubnetsVpcLookup runs kops create cluster subnet.example.com --zones us-test-1a --master-zones us-test-1a --vpc --subnets subnet-1 func TestCreateClusterSharedSubnetsVpcLookup(t *testing.T) { - runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/shared_subnets_vpc_lookup", "v1alpha1") runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/shared_subnets_vpc_lookup", "v1alpha2") } // TestCreateClusterPrivateSharedSubnets runs kops create cluster private-subnet.example.com --zones us-test-1a --master-zones us-test-1a --vpc vpc-12345678 --subnets subnet-1 --utility-subnets subnet-2 func TestCreateClusterPrivateSharedSubnets(t *testing.T) { - // Cannot be expressed in v1alpha1 API: runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/private_shared_subnets", "v1alpha1") runCreateClusterIntegrationTest(t, "../../tests/integration/create_cluster/private_shared_subnets", "v1alpha2") } diff --git a/cmd/kops/delete.go b/cmd/kops/delete.go index 2a19596ecf..4407c246b5 100644 --- a/cmd/kops/delete.go +++ b/cmd/kops/delete.go @@ -21,12 +21,10 @@ import ( "io" "github.com/spf13/cobra" - "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/klog" "k8s.io/kops/cmd/kops/util" kopsapi "k8s.io/kops/pkg/apis/kops" - "k8s.io/kops/pkg/apis/kops/v1alpha1" "k8s.io/kops/pkg/kopscodecs" "k8s.io/kops/pkg/sshcredentials" "k8s.io/kops/util/pkg/text" @@ -115,11 +113,7 @@ func RunDelete(factory *util.Factory, out io.Writer, d *DeleteOptions) error { sections := text.SplitContentToSections(contents) for _, section := range sections { - defaults := &schema.GroupVersionKind{ - Group: v1alpha1.SchemeGroupVersion.Group, - Version: v1alpha1.SchemeGroupVersion.Version, - } - o, gvk, err := kopscodecs.Decode(section, defaults) + o, gvk, err := kopscodecs.Decode(section, nil) if err != nil { return fmt.Errorf("error parsing file %q: %v", f, err) } diff --git a/cmd/kops/integration_test.go b/cmd/kops/integration_test.go index 9986d856fb..f347f62be2 100644 --- a/cmd/kops/integration_test.go +++ b/cmd/kops/integration_test.go @@ -52,8 +52,6 @@ const updateClusterTestBase = "../../tests/integration/update_cluster/" // TestMinimal runs the test on a minimum configuration, similar to kops create cluster minimal.example.com --zones us-west-1a func TestMinimal(t *testing.T) { - runTestAWS(t, "minimal.example.com", "minimal", "v1alpha0", false, 1, true, false, nil, true, false) - runTestAWS(t, "minimal.example.com", "minimal", "v1alpha1", false, 1, true, false, nil, true, false) runTestAWS(t, "minimal.example.com", "minimal", "v1alpha2", false, 1, true, false, nil, true, false) } @@ -69,7 +67,6 @@ func TestRestrictAccess(t *testing.T) { // TestHA runs the test on a simple HA configuration, similar to kops create cluster minimal.example.com --zones us-west-1a,us-west-1b,us-west-1c --master-count=3 func TestHA(t *testing.T) { - runTestAWS(t, "ha.example.com", "ha", "v1alpha1", false, 3, true, false, nil, true, false) runTestAWS(t, "ha.example.com", "ha", "v1alpha2", false, 3, true, false, nil, true, false) } @@ -138,36 +135,27 @@ func TestMinimal_json(t *testing.T) { featureflag.ParseFlags("-TerraformJSON") } defer unsetFeaureFlag() - runTestAWS(t, "minimal-json.example.com", "minimal-json", "v1alpha0", false, 1, true, false, nil, true, true) -} - -// TestMinimal_141 runs the test on a configuration from 1.4.1 release -func TestMinimal_141(t *testing.T) { - runTestAWS(t, "minimal-141.example.com", "minimal-141", "v1alpha0", false, 1, true, false, nil, true, false) + runTestAWS(t, "minimal-json.example.com", "minimal-json", "v1alpha2", false, 1, true, false, nil, true, true) } // TestPrivateWeave runs the test on a configuration with private topology, weave networking func TestPrivateWeave(t *testing.T) { - runTestAWS(t, "privateweave.example.com", "privateweave", "v1alpha1", true, 1, true, false, nil, true, false) runTestAWS(t, "privateweave.example.com", "privateweave", "v1alpha2", true, 1, true, false, nil, true, false) } // TestPrivateFlannel runs the test on a configuration with private topology, flannel networking func TestPrivateFlannel(t *testing.T) { - runTestAWS(t, "privateflannel.example.com", "privateflannel", "v1alpha1", true, 1, true, false, nil, true, false) runTestAWS(t, "privateflannel.example.com", "privateflannel", "v1alpha2", true, 1, true, false, nil, true, false) } // TestPrivateCalico runs the test on a configuration with private topology, calico networking func TestPrivateCalico(t *testing.T) { - runTestAWS(t, "privatecalico.example.com", "privatecalico", "v1alpha1", true, 1, true, false, nil, true, false) runTestAWS(t, "privatecalico.example.com", "privatecalico", "v1alpha2", true, 1, true, false, nil, true, false) runTestCloudformation(t, "privatecalico.example.com", "privatecalico", "v1alpha2", true, nil, true) } // TestPrivateCanal runs the test on a configuration with private topology, canal networking func TestPrivateCanal(t *testing.T) { - runTestAWS(t, "privatecanal.example.com", "privatecanal", "v1alpha1", true, 1, true, false, nil, true, false) runTestAWS(t, "privatecanal.example.com", "privatecanal", "v1alpha2", true, 1, true, false, nil, true, false) } diff --git a/docs/development/api_updates.md b/docs/development/api_updates.md index 9b0a5f2c13..d552ca0e9a 100644 --- a/docs/development/api_updates.md +++ b/docs/development/api_updates.md @@ -6,7 +6,7 @@ jump through some hoops to use it. Recommended reading: [kubernetes API convention doc](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md) and [kubernetes API changes doc](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api_changes.md). The kops APIs live in [pkg/apis/kops](https://github.com/kubernetes/kops/tree/master/pkg/apis/kops), both in -that directory directly (the unversioned API) and in the versioned subdirectories (`v1alpha1`, `v1alpha2`). +that directory directly (the unversioned API) and in the versioned subdirectory (`v1alpha2`). ## Updating the generated API code @@ -19,7 +19,7 @@ need for `&& make`. The most common task you will do will be to add a new field. This is relatively straightforward, because it is backwards compatible (you have to make sure that the field is optional). -* Add the field to pkg/apis/kops, and then also to each versioned copy: pkg/apis/kops/v1alpha1, pkg/apis/kops/v1alpha2, etc +* Add the field to pkg/apis/kops, and then also to each versioned copy: pkg/apis/kops/v1alpha2, etc * Run the apimachinery update as above (`make apimachinery && make crds && make`) * You likely want to update the validation logic * You likely want to update the defaulting logic diff --git a/docs/releases/1.18-NOTES.md b/docs/releases/1.18-NOTES.md index 843e9c6b4f..870c6c5394 100644 --- a/docs/releases/1.18-NOTES.md +++ b/docs/releases/1.18-NOTES.md @@ -26,6 +26,8 @@ * A controller is now used to apply labels to nodes. If you are not using AWS, GCE or OpenStack your (non-master) nodes may not have labels applied correctly. +* The `kops/v1alpha1` API has been removed. Users of `kops replace` will need to supply v1alpha2 resources. + * Please see the notes in the 1.15 release about the apiGroup changing from kops to kops.k8s.io # Required Actions diff --git a/hack/.packages b/hack/.packages index a6fce0443a..93a41890c1 100644 --- a/hack/.packages +++ b/hack/.packages @@ -52,7 +52,6 @@ k8s.io/kops/pkg/apis/kops/install k8s.io/kops/pkg/apis/kops/model k8s.io/kops/pkg/apis/kops/registry k8s.io/kops/pkg/apis/kops/util -k8s.io/kops/pkg/apis/kops/v1alpha1 k8s.io/kops/pkg/apis/kops/v1alpha2 k8s.io/kops/pkg/apis/kops/validation k8s.io/kops/pkg/apis/nodeup @@ -64,8 +63,6 @@ k8s.io/kops/pkg/client/clientset_generated/clientset/fake k8s.io/kops/pkg/client/clientset_generated/clientset/scheme k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/internalversion k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/internalversion/fake -k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1 -k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha2 k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha2/fake k8s.io/kops/pkg/client/clientset_generated/internalclientset @@ -73,8 +70,6 @@ k8s.io/kops/pkg/client/clientset_generated/internalclientset/fake k8s.io/kops/pkg/client/clientset_generated/internalclientset/scheme k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/internalversion k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/internalversion/fake -k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1 -k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha2 k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha2/fake k8s.io/kops/pkg/client/simple diff --git a/pkg/apis/kops/install/BUILD.bazel b/pkg/apis/kops/install/BUILD.bazel index c2333a6cfb..ba9accaa33 100644 --- a/pkg/apis/kops/install/BUILD.bazel +++ b/pkg/apis/kops/install/BUILD.bazel @@ -7,7 +7,6 @@ go_library( visibility = ["//visibility:public"], deps = [ "//pkg/apis/kops:go_default_library", - "//pkg/apis/kops/v1alpha1:go_default_library", "//pkg/apis/kops/v1alpha2:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library", diff --git a/pkg/apis/kops/install/install.go b/pkg/apis/kops/install/install.go index aa2cfe80c3..fa3ae8b5b6 100644 --- a/pkg/apis/kops/install/install.go +++ b/pkg/apis/kops/install/install.go @@ -22,13 +22,11 @@ import ( "k8s.io/apimachinery/pkg/runtime" utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/kops/pkg/apis/kops" - "k8s.io/kops/pkg/apis/kops/v1alpha1" "k8s.io/kops/pkg/apis/kops/v1alpha2" ) func Install(scheme *runtime.Scheme) { utilruntime.Must(kops.AddToScheme(scheme)) - utilruntime.Must(v1alpha1.AddToScheme(scheme)) utilruntime.Must(v1alpha2.AddToScheme(scheme)) - utilruntime.Must(scheme.SetVersionPriority(v1alpha2.SchemeGroupVersion, v1alpha1.SchemeGroupVersion)) + utilruntime.Must(scheme.SetVersionPriority(v1alpha2.SchemeGroupVersion)) } diff --git a/pkg/apis/kops/v1alpha1/BUILD.bazel b/pkg/apis/kops/v1alpha1/BUILD.bazel deleted file mode 100644 index b4560c234a..0000000000 --- a/pkg/apis/kops/v1alpha1/BUILD.bazel +++ /dev/null @@ -1,35 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "bastion.go", - "cluster.go", - "componentconfig.go", - "containerdconfig.go", - "conversion.go", - "defaults.go", - "doc.go", - "dockerconfig.go", - "instancegroup.go", - "networking.go", - "register.go", - "sshcredential.go", - "topology.go", - "zz_generated.conversion.go", - "zz_generated.deepcopy.go", - "zz_generated.defaults.go", - ], - importpath = "k8s.io/kops/pkg/apis/kops/v1alpha1", - visibility = ["//visibility:public"], - deps = [ - "//pkg/apis/kops:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/util/intstr:go_default_library", - "//vendor/k8s.io/klog:go_default_library", - ], -) diff --git a/pkg/apis/kops/v1alpha1/bastion.go b/pkg/apis/kops/v1alpha1/bastion.go deleted file mode 100644 index e932b69b8d..0000000000 --- a/pkg/apis/kops/v1alpha1/bastion.go +++ /dev/null @@ -1,29 +0,0 @@ -/* -Copyright 2019 The Kubernetes Authors. - -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. -*/ - -package v1alpha1 - -// +k8s:conversion-gen=false -type BastionSpec struct { - // Controls if a private topology should deploy a bastion host or not - // The bastion host is designed to be a simple, and secure bridge between - // the public subnet and the private subnet - Enable bool `json:"enable,omitempty"` - MachineType string `json:"machineType,omitempty"` - PublicName string `json:"name,omitempty"` - // IdleTimeout is the bastion's Loadbalancer idle timeout - IdleTimeout *int64 `json:"idleTimeout,omitempty"` -} diff --git a/pkg/apis/kops/v1alpha1/cluster.go b/pkg/apis/kops/v1alpha1/cluster.go deleted file mode 100644 index 395d1494ba..0000000000 --- a/pkg/apis/kops/v1alpha1/cluster.go +++ /dev/null @@ -1,597 +0,0 @@ -/* -Copyright 2019 The Kubernetes Authors. - -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. -*/ - -package v1alpha1 - -import ( - "k8s.io/apimachinery/pkg/api/resource" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/util/intstr" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// Cluster is a specific cluster wrapper -type Cluster struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - // Spec defines the behavior of a Cluster. - Spec ClusterSpec `json:"spec,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// ClusterList is a list of clusters -type ClusterList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - - Items []Cluster `json:"items"` -} - -// ClusterSpec defines the configuration for a cluster -type ClusterSpec struct { - // Channel we are following - Channel string `json:"channel,omitempty"` - // Additional addons that should be installed on the cluster - Addons []AddonSpec `json:"addons,omitempty"` - // ConfigBase is the path where we store configuration for the cluster - // This might be different that the location when the cluster spec itself is stored, - // both because this must be accessible to the cluster, - // and because it might be on a different cloud or storage system (etcd vs S3) - ConfigBase string `json:"configBase,omitempty"` - // The CloudProvider to use (aws or gce) - CloudProvider string `json:"cloudProvider,omitempty"` - // GossipConfig for the cluster assuming the use of gossip DNS - GossipConfig *GossipConfig `json:"gossipConfig,omitempty"` - // Container runtime to use for Kubernetes - ContainerRuntime string `json:"containerRuntime,omitempty"` - // The version of kubernetes to install (optional, and can be a "spec" like stable) - KubernetesVersion string `json:"kubernetesVersion,omitempty"` - // Configuration of zones we are targeting - Zones []*ClusterZoneSpec `json:"zones,omitempty"` - // Project is the cloud project we should use, required on GCE - Project string `json:"project,omitempty"` - // MasterPublicName is the external DNS name for the master nodes - MasterPublicName string `json:"masterPublicName,omitempty"` - // MasterInternalName is the internal DNS name for the master nodes - MasterInternalName string `json:"masterInternalName,omitempty"` - // NetworkCIDR is the CIDR used for the AWS VPC Network, or otherwise allocated to k8s - // This is a real CIDR, not the internal k8s network - // On AWS, it maps to the VPC CIDR. It is not required on GCE. - NetworkCIDR string `json:"networkCIDR,omitempty"` - // AdditionalNetworkCIDRs is a list of additional CIDR used for the AWS VPC - // or otherwise allocated to k8s. This is a real CIDR, not the internal k8s network - // On AWS, it maps to any additional CIDRs added to a VPC. - AdditionalNetworkCIDRs []string `json:"additionalNetworkCIDRs,omitempty"` - // NetworkID is an identifier of a network, if we want to reuse/share an existing network (e.g. an AWS VPC) - NetworkID string `json:"networkID,omitempty"` - // Topology defines the type of network topology to use on the cluster - default public - // This is heavily weighted towards AWS for the time being, but should also be agnostic enough - // to port out to GCE later if needed - Topology *TopologySpec `json:"topology,omitempty"` - // SecretStore is the VFS path to where secrets are stored - SecretStore string `json:"secretStore,omitempty"` - // KeyStore is the VFS path to where SSL keys and certificates are stored - KeyStore string `json:"keyStore,omitempty"` - // ConfigStore is the VFS path to where the configuration (Cluster, InstanceGroups etc) is stored - ConfigStore string `json:"configStore,omitempty"` - // DNSZone is the DNS zone we should use when configuring DNS - // This is because some clouds let us define a managed zone foo.bar, and then have - // kubernetes.dev.foo.bar, without needing to define dev.foo.bar as a hosted zone. - // DNSZone will probably be a suffix of the MasterPublicName and MasterInternalName - // Note that DNSZone can either by the host name of the zone (containing dots), - // or can be an identifier for the zone. - DNSZone string `json:"dnsZone,omitempty"` - // DNSControllerGossipConfig for the cluster assuming the use of gossip DNS - DNSControllerGossipConfig *DNSControllerGossipConfig `json:"dnsControllerGossipConfig,omitempty"` - // AdditionalSANs adds additional Subject Alternate Names to apiserver cert that kops generates - AdditionalSANs []string `json:"additionalSans,omitempty"` - // ClusterDNSDomain is the suffix we use for internal DNS names (normally cluster.local) - ClusterDNSDomain string `json:"clusterDNSDomain,omitempty"` - // ClusterName is a unique identifier for the cluster, and currently must be a DNS name - //ClusterName string `json:",omitempty"` - Multizone *bool `json:"multizone,omitempty"` - // ServiceClusterIPRange is the CIDR, from the internal network, where we allocate IPs for services - ServiceClusterIPRange string `json:"serviceClusterIPRange,omitempty"` - // PodCIDR is the CIDR from which we allocate IPs for pods - PodCIDR string `json:"podCIDR,omitempty"` - // NonMasqueradeCIDR is the CIDR for the internal k8s network (on which pods & services live) - // It cannot overlap ServiceClusterIPRange - NonMasqueradeCIDR string `json:"nonMasqueradeCIDR,omitempty"` - // AdminAccess determines the permitted access to the admin endpoints (SSH & master HTTPS) - // Currently only a single CIDR is supported (though a richer grammar could be added in future) - AdminAccess []string `json:"adminAccess,omitempty"` - // IsolateMasters determines whether we should lock down masters so that they are not on the pod network. - // true is the kube-up behaviour, but it is very surprising: it means that daemonsets only work on the master - // if they have hostNetwork=true. - // false is now the default, and it will: - // * give the master a normal PodCIDR - // * run kube-proxy on the master - // * enable debugging handlers on the master, so kubectl logs works - IsolateMasters *bool `json:"isolateMasters,omitempty"` - // UpdatePolicy determines the policy for applying upgrades automatically. - // Valid values: - // 'external' do not apply updates automatically - they are applied manually or by an external system - // missing: default policy (currently OS security upgrades that do not require a reboot) - UpdatePolicy *string `json:"updatePolicy,omitempty"` - // ExternalPolicies allows the insertion of pre-existing managed policies on IG Roles - ExternalPolicies *map[string][]string `json:"externalPolicies,omitempty"` - // Additional policies to add for roles - AdditionalPolicies *map[string]string `json:"additionalPolicies,omitempty"` - // A collection of files assets for deployed cluster wide - FileAssets []FileAssetSpec `json:"fileAssets,omitempty"` - // HTTPProxy defines connection information to support use of a private cluster behind an forward HTTP Proxy - EgressProxy *EgressProxySpec `json:"egressProxy,omitempty"` - // SSHKeyName specifies a preexisting SSH key to use - SSHKeyName *string `json:"sshKeyName,omitempty"` - // EtcdClusters stores the configuration for each cluster - EtcdClusters []*EtcdClusterSpec `json:"etcdClusters,omitempty"` - // Component configurations - Containerd *ContainerdConfig `json:"containerd,omitempty"` - Docker *DockerConfig `json:"docker,omitempty"` - KubeDNS *KubeDNSConfig `json:"kubeDNS,omitempty"` - KubeAPIServer *KubeAPIServerConfig `json:"kubeAPIServer,omitempty"` - KubeControllerManager *KubeControllerManagerConfig `json:"kubeControllerManager,omitempty"` - ExternalCloudControllerManager *CloudControllerManagerConfig `json:"cloudControllerManager,omitempty"` - KubeScheduler *KubeSchedulerConfig `json:"kubeScheduler,omitempty"` - KubeProxy *KubeProxyConfig `json:"kubeProxy,omitempty"` - Kubelet *KubeletConfigSpec `json:"kubelet,omitempty"` - MasterKubelet *KubeletConfigSpec `json:"masterKubelet,omitempty"` - CloudConfig *CloudConfiguration `json:"cloudConfig,omitempty"` - ExternalDNS *ExternalDNSConfig `json:"externalDns,omitempty"` - - // Networking configuration - Networking *NetworkingSpec `json:"networking,omitempty"` - // API field controls how the API is exposed outside the cluster - API *AccessSpec `json:"api,omitempty"` - // Authentication field controls how the cluster is configured for authentication - Authentication *AuthenticationSpec `json:"authentication,omitempty"` - // Authorization field controls how the cluster is configured for authorization - Authorization *AuthorizationSpec `json:"authorization,omitempty"` - // NodeAuthorization defined the custom node authorization configuration - NodeAuthorization *NodeAuthorizationSpec `json:"nodeAuthorization,omitempty"` - // Tags for AWS instance groups - CloudLabels map[string]string `json:"cloudLabels,omitempty"` - // Hooks for custom actions e.g. on first installation - Hooks []HookSpec `json:"hooks,omitempty"` - // Alternative locations for files and containers - Assets *Assets `json:"assets,omitempty"` - // IAM field adds control over the IAM security policies applied to resources - IAM *IAMSpec `json:"iam,omitempty"` - // EncryptionConfig holds the encryption config - EncryptionConfig *bool `json:"encryptionConfig,omitempty"` - // DisableSubnetTags controls if subnets are tagged in AWS - DisableSubnetTags bool `json:"DisableSubnetTags,omitempty"` - // Target allows for us to nest extra config for targets such as terraform - Target *TargetSpec `json:"target,omitempty"` - // UseHostCertificates will mount /etc/ssl/certs to inside needed containers. - // This is needed if some APIs do have self-signed certs - UseHostCertificates *bool `json:"useHostCertificates,omitempty"` - // SysctlParameters will configure kernel parameters using sysctl(8). When - // specified, each parameter must follow the form variable=value, the way - // it would appear in sysctl.conf. - SysctlParameters []string `json:"sysctlParameters,omitempty"` - // RollingUpdate defines the default rolling-update settings for instance groups - RollingUpdate *RollingUpdate `json:"rollingUpdate,omitempty"` -} - -// NodeAuthorizationSpec is used to node authorization -type NodeAuthorizationSpec struct { - // NodeAuthorizer defined the configuration for the node authorizer - NodeAuthorizer *NodeAuthorizerSpec `json:"nodeAuthorizer,omitempty"` -} - -// NodeAuthorizerSpec defines the configuration for a node authorizer -type NodeAuthorizerSpec struct { - // Authorizer is the authorizer to use - Authorizer string `json:"authorizer,omitempty"` - // Features is a series of authorizer features to enable or disable - Features *[]string `json:"features,omitempty"` - // Image is the location of container - Image string `json:"image,omitempty"` - // NodeURL is the node authorization service url - NodeURL string `json:"nodeURL,omitempty"` - // Port is the port the service is running on the master - Port int `json:"port,omitempty"` - // Interval the time between retires for authorization request - Interval *metav1.Duration `json:"interval,omitempty"` - // Timeout the max time for authorization request - Timeout *metav1.Duration `json:"timeout,omitempty"` - // TokenTTL is the max ttl for an issued token - TokenTTL *metav1.Duration `json:"tokenTTL,omitempty"` -} - -// AddonSpec defines an addon that we want to install in the cluster -type AddonSpec struct { - // Manifest is a path to the manifest that defines the addon - Manifest string `json:"manifest,omitempty"` -} - -// FileAssetSpec defines the structure for a file asset -type FileAssetSpec struct { - // Name is a shortened reference to the asset - Name string `json:"name,omitempty"` - // Path is the location this file should reside - Path string `json:"path,omitempty"` - // Roles is a list of roles the file asset should be applied, defaults to all - Roles []InstanceGroupRole `json:"roles,omitempty"` - // Content is the contents of the file - Content string `json:"content,omitempty"` - // IsBase64 indicates the contents is base64 encoded - IsBase64 bool `json:"isBase64,omitempty"` -} - -// Assets defined the privately hosted assets -type Assets struct { - // ContainerRegistry is a url for to a docker registry - ContainerRegistry *string `json:"containerRegistry,omitempty"` - // FileRepository is the url for a private file serving repository - FileRepository *string `json:"fileRepository,omitempty"` - // ContainerProxy is a url for a pull-through proxy of a docker registry - ContainerProxy *string `json:"containerProxy,omitempty"` -} - -// IAMSpec adds control over the IAM security policies applied to resources -type IAMSpec struct { - Legacy bool `json:"legacy"` - AllowContainerRegistry bool `json:"allowContainerRegistry,omitempty"` -} - -// HookSpec is a definition hook -type HookSpec struct { - // Name is an optional name for the hook, otherwise the name is kops-hook- - Name string `json:"name,omitempty"` - // Disabled indicates if you want the unit switched off - Disabled bool `json:"disabled,omitempty"` - // Roles is an optional list of roles the hook should be rolled out to, defaults to all - Roles []InstanceGroupRole `json:"roles,omitempty"` - // Requires is a series of systemd units the action requires - Requires []string `json:"requires,omitempty"` - // Before is a series of systemd units which this hook must run before - Before []string `json:"before,omitempty"` - // ExecContainer is the image itself - ExecContainer *ExecContainerAction `json:"execContainer,omitempty"` - // Manifest is a raw systemd unit file - Manifest string `json:"manifest,omitempty"` - // UseRawManifest indicates that the contents of Manifest should be used as the contents - // of the systemd unit, unmodified. Before and Requires are ignored when used together - // with this value (and validation shouldn't allow them to be set) - UseRawManifest bool `json:"useRawManifest,omitempty"` -} - -// ExecContainerAction defines an hood action -type ExecContainerAction struct { - // Image is the docker image - Image string `json:"image,omitempty" ` - // Command is the command supplied to the above image - Command []string `json:"command,omitempty"` - // Environment is a map of environment variables added to the hook - Environment map[string]string `json:"environment,omitempty"` -} - -type AuthenticationSpec struct { - Kopeio *KopeioAuthenticationSpec `json:"kopeio,omitempty"` - Aws *AwsAuthenticationSpec `json:"aws,omitempty"` -} - -func (s *AuthenticationSpec) IsEmpty() bool { - return s.Kopeio == nil && s.Aws == nil -} - -type KopeioAuthenticationSpec struct { -} - -type AwsAuthenticationSpec struct { - // Image is the AWS IAM Authenticator docker image to use - Image string `json:"image,omitempty"` - // MemoryRequest memory request of AWS IAM Authenticator container. Default 20Mi - MemoryRequest *resource.Quantity `json:"memoryRequest,omitempty"` - // CPURequest CPU request of AWS IAM Authenticator container. Default 10m - CPURequest *resource.Quantity `json:"cpuRequest,omitempty"` - // MemoryLimit memory limit of AWS IAM Authenticator container. Default 20Mi - MemoryLimit *resource.Quantity `json:"memoryLimit,omitempty"` - // CPULimit CPU limit of AWS IAM Authenticator container. Default 10m - CPULimit *resource.Quantity `json:"cpuLimit,omitempty"` -} - -type AuthorizationSpec struct { - AlwaysAllow *AlwaysAllowAuthorizationSpec `json:"alwaysAllow,omitempty"` - RBAC *RBACAuthorizationSpec `json:"rbac,omitempty"` -} - -func (s *AuthorizationSpec) IsEmpty() bool { - return s.RBAC == nil && s.AlwaysAllow == nil -} - -type RBACAuthorizationSpec struct { -} - -type AlwaysAllowAuthorizationSpec struct { -} - -// AccessSpec provides configuration details related to kubeapi dns and ELB access -type AccessSpec struct { - // DNS will be used to provide config on kube-apiserver ELB DNS - DNS *DNSAccessSpec `json:"dns,omitempty"` - // LoadBalancer is the configuration for the kube-apiserver ELB - LoadBalancer *LoadBalancerAccessSpec `json:"loadBalancer,omitempty"` -} - -func (s *AccessSpec) IsEmpty() bool { - return s.DNS == nil && s.LoadBalancer == nil -} - -type DNSAccessSpec struct { -} - -// LoadBalancerType string describes LoadBalancer types (public, internal) -type LoadBalancerType string - -const ( - LoadBalancerTypePublic LoadBalancerType = "Public" - LoadBalancerTypeInternal LoadBalancerType = "Internal" -) - -// LoadBalancerAccessSpec provides configuration details related to API LoadBalancer and its access -type LoadBalancerAccessSpec struct { - // Type of load balancer to create may Public or Internal. - Type LoadBalancerType `json:"type,omitempty"` - // IdleTimeoutSeconds sets the timeout of the api loadbalancer. - IdleTimeoutSeconds *int64 `json:"idleTimeoutSeconds,omitempty"` - // SecurityGroupOverride overrides the default Kops created SG for the load balancer. - SecurityGroupOverride *string `json:"securityGroupOverride,omitempty"` - // AdditionalSecurityGroups attaches additional security groups (e.g. sg-123456). - AdditionalSecurityGroups []string `json:"additionalSecurityGroups,omitempty"` - // UseForInternalApi indicates whether the LB should be used by the kubelet - UseForInternalApi bool `json:"useForInternalApi,omitempty"` - // SSLCertificate allows you to specify the ACM cert to be used the LB - SSLCertificate string `json:"sslCertificate,omitempty"` - // CrossZoneLoadBalancing allows you to enable the cross zone load balancing - CrossZoneLoadBalancing *bool `json:"crossZoneLoadBalancing,omitempty"` -} - -// KubeDNSConfig defines the kube dns configuration -type KubeDNSConfig struct { - // CacheMaxSize is the maximum entries to keep in dnsmasq - CacheMaxSize int `json:"cacheMaxSize,omitempty"` - // CacheMaxConcurrent is the maximum number of concurrent queries for dnsmasq - CacheMaxConcurrent int `json:"cacheMaxConcurrent,omitempty"` - // CoreDNSImage is used to override the default image used for CoreDNS - CoreDNSImage string `json:"coreDNSImage,omitempty"` - // Domain is the dns domain - Domain string `json:"domain,omitempty"` - // ExternalCoreFile is used to provide a complete CoreDNS CoreFile by the user - ignores other provided flags which modify the CoreFile. - ExternalCoreFile string `json:"externalCoreFile,omitempty"` - // Image is the name of the docker image to run - @deprecated as this is now in the addon - Image string `json:"image,omitempty"` - // Replicas is the number of pod replicas - @deprecated as this is now in the addon, and controlled by autoscaler - Replicas int `json:"replicas,omitempty"` - // Provider indicates whether CoreDNS or kube-dns will be the default service discovery. - Provider string `json:"provider,omitempty"` - // ServerIP is the server ip - ServerIP string `json:"serverIP,omitempty"` - // StubDomains redirects a domains to another DNS service - StubDomains map[string][]string `json:"stubDomains,omitempty"` - // UpstreamNameservers sets the upstream nameservers for queries not on the cluster domain - UpstreamNameservers []string `json:"upstreamNameservers,omitempty"` - // MemoryRequest specifies the memory requests of each dns container in the cluster. Default 70m. - MemoryRequest *resource.Quantity `json:"memoryRequest,omitempty"` - // CPURequest specifies the cpu requests of each dns container in the cluster. Default 100m. - CPURequest *resource.Quantity `json:"cpuRequest,omitempty"` - // MemoryLimit specifies the memory limit of each dns container in the cluster. Default 170m. - MemoryLimit *resource.Quantity `json:"memoryLimit,omitempty"` -} - -// ExternalDNSConfig are options of the dns-controller -type ExternalDNSConfig struct { - // Disable indicates we do not wish to run the dns-controller addon - Disable bool `json:"disable,omitempty"` - // WatchIngress indicates you want the dns-controller to watch and create dns entries for ingress resources - WatchIngress *bool `json:"watchIngress,omitempty"` - // WatchNamespace is namespace to watch, defaults to all (use to control whom can creates dns entries) - WatchNamespace string `json:"watchNamespace,omitempty"` -} - -// EtcdProviderType describes etcd cluster provisioning types (Standalone, Manager) -type EtcdProviderType string - -const ( - EtcdProviderTypeManager EtcdProviderType = "Manager" - EtcdProviderTypeLegacy EtcdProviderType = "Legacy" -) - -// EtcdClusterSpec is the etcd cluster specification -type EtcdClusterSpec struct { - // Name is the name of the etcd cluster (main, events etc) - Name string `json:"name,omitempty"` - // Provider is the provider used to run etcd: standalone, manager. - // We default to manager for kubernetes 1.11 or if the manager is configured; otherwise standalone. - Provider EtcdProviderType `json:"provider,omitempty"` - // Members stores the configurations for each member of the cluster (including the data volume) - Members []*EtcdMemberSpec `json:"etcdMembers,omitempty"` - // EnableTLSAuth indicates client and peer TLS auth should be enforced - EnableTLSAuth bool `json:"enableTLSAuth,omitempty"` - // EnableEtcdTLS indicates the etcd service should use TLS between peers and clients - EnableEtcdTLS bool `json:"enableEtcdTLS,omitempty"` - // Version is the version of etcd to run i.e. 2.1.2, 3.0.17 etcd - Version string `json:"version,omitempty"` - // LeaderElectionTimeout is the time (in milliseconds) for an etcd leader election timeout - LeaderElectionTimeout *metav1.Duration `json:"leaderElectionTimeout,omitempty"` - // HeartbeatInterval is the time (in milliseconds) for an etcd heartbeat interval - HeartbeatInterval *metav1.Duration `json:"heartbeatInterval,omitempty"` - // Image is the etcd docker image to use. Setting this will ignore the Version specified. - Image string `json:"image,omitempty"` - // Backups describes how we do backups of etcd - Backups *EtcdBackupSpec `json:"backups,omitempty"` - // Manager describes the manager configuration - Manager *EtcdManagerSpec `json:"manager,omitempty"` - // MemoryRequest specifies the memory requests of each etcd container in the cluster. - MemoryRequest *resource.Quantity `json:"memoryRequest,omitempty"` - // CPURequest specifies the cpu requests of each etcd container in the cluster. - CPURequest *resource.Quantity `json:"cpuRequest,omitempty"` -} - -// EtcdBackupSpec describes how we want to do backups of etcd -type EtcdBackupSpec struct { - // BackupStore is the VFS path where we will read/write backup data - BackupStore string `json:"backupStore,omitempty"` - // Image is the etcd backup manager image to use. Setting this will create a sidecar container in the etcd pod with the specified image. - Image string `json:"image,omitempty"` -} - -// EtcdManagerSpec describes how we configure the etcd manager -type EtcdManagerSpec struct { - // Image is the etcd manager image to use. - Image string `json:"image,omitempty"` - // Env allows users to pass in env variables to the etcd-manager container. - // Variables starting with ETCD_ will be further passed down to the etcd process. - // This allows etcd setting to be configured/overwriten. No config validation is done. - // A list of etcd config ENV vars can be found at https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/configuration.md - Env []EnvVar `json:"env,omitempty"` -} - -// EtcdMemberSpec is a specification for a etcd member -type EtcdMemberSpec struct { - // Name is the name of the member within the etcd cluster - Name string `json:"name,omitempty"` - // Zone is the zone the member lives - Zone *string `json:"zone,omitempty"` - // VolumeType is the underlying cloud storage class - VolumeType *string `json:"volumeType,omitempty"` - // If volume type is io1, then we need to specify the number of Iops. - VolumeIops *int32 `json:"volumeIops,omitempty"` - // VolumeSize is the underlying cloud volume size - VolumeSize *int32 `json:"volumeSize,omitempty"` - // KmsKeyId is a AWS KMS ID used to encrypt the volume - KmsKeyId *string `json:"kmsKeyId,omitempty"` - // EncryptedVolume indicates you want to encrypt the volume - EncryptedVolume *bool `json:"encryptedVolume,omitempty"` -} - -type ClusterZoneSpec struct { - Name string `json:"name,omitempty"` - - // For Private network topologies we need to have 2 - // CIDR blocks. - // 1 - Utility (Public) Subnets - // 2 - Operating (Private) Subnets - - PrivateCIDR string `json:"privateCIDR,omitempty"` - CIDR string `json:"cidr,omitempty"` - - // ProviderID is the cloud provider id for the objects associated with the zone (the subnet on AWS) - ProviderID string `json:"id,omitempty"` - - // Egress defines the method of traffic egress for this subnet - Egress string `json:"egress,omitempty"` -} - -type EgressProxySpec struct { - HTTPProxy HTTPProxy `json:"httpProxy,omitempty"` - ProxyExcludes string `json:"excludes,omitempty"` -} - -type HTTPProxy struct { - Host string `json:"host,omitempty"` - Port int `json:"port,omitempty"` - // TODO #3070 - // User string `json:"user,omitempty"` - // Password string `json:"password,omitempty"` -} - -// TargetSpec allows for specifying target config in an extensible way -type TargetSpec struct { - Terraform *TerraformSpec `json:"terraform,omitempty"` -} - -func (t *TargetSpec) IsEmpty() bool { - return t.Terraform == nil -} - -// TerraformSpec allows us to specify terraform config in an extensible way -type TerraformSpec struct { - // ProviderExtraConfig contains key/value pairs to add to the rendered terraform "provider" block - ProviderExtraConfig *map[string]string `json:"providerExtraConfig,omitempty"` -} - -func (t *TerraformSpec) IsEmpty() bool { - return t.ProviderExtraConfig == nil -} - -// EnvVar represents an environment variable present in a Container. -type EnvVar struct { - // Name of the environment variable. Must be a C_IDENTIFIER. - Name string `json:"name"` - - // Variable references $(VAR_NAME) are expanded - // using the previous defined environment variables in the container and - // any service environment variables. If a variable cannot be resolved, - // the reference in the input string will be unchanged. The $(VAR_NAME) - // syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped - // references will never be expanded, regardless of whether the variable - // exists or not. - // Defaults to "". - // +optional - Value string `json:"value,omitempty"` -} - -type GossipConfig struct { - Protocol *string `json:"protocol,omitempty"` - Listen *string `json:"listen,omitempty"` - Secret *string `json:"secret,omitempty"` - Secondary *GossipConfig `json:"secondary,omitempty"` -} - -type DNSControllerGossipConfig struct { - Protocol *string `json:"protocol,omitempty"` - Listen *string `json:"listen,omitempty"` - Secret *string `json:"secret,omitempty"` - Secondary *DNSControllerGossipConfig `json:"secondary,omitempty"` - Seed *string `json:"seed,omitempty"` -} - -type RollingUpdate struct { - // MaxUnavailable is the maximum number of nodes that can be unavailable during the update. - // The value can be an absolute number (for example 5) or a percentage of desired - // nodes (for example 10%). - // The absolute number is calculated from a percentage by rounding down. - // A value of 0 for both this and MaxSurge disables rolling updates. - // Defaults to 1 if MaxSurge is 0, otherwise defaults to 0. - // Example: when this is set to 30%, the InstanceGroup can be scaled - // down to 70% of desired nodes immediately when the rolling update - // starts. Once new nodes are ready, more old nodes can be drained, - // ensuring that the total number of nodes available at all times - // during the update is at least 70% of desired nodes. - // +optional - MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"` - // MaxSurge is the maximum number of extra nodes that can be created - // during the update. - // The value can be an absolute number (for example 5) or a percentage of - // desired machines (for example 10%). - // The absolute number is calculated from a percentage by rounding up. - // A value of 0 for both this and MaxUnavailable disables rolling updates. - // Has no effect on instance groups with role "Master". - // Defaults to 1 on AWS, 0 otherwise. - // Example: when this is set to 30%, the InstanceGroup can be scaled - // up immediately when the rolling update starts, such that the total - // number of old and new nodes do not exceed 130% of desired - // nodes. - // +optional - MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty"` -} diff --git a/pkg/apis/kops/v1alpha1/componentconfig.go b/pkg/apis/kops/v1alpha1/componentconfig.go deleted file mode 100644 index 5147488d0f..0000000000 --- a/pkg/apis/kops/v1alpha1/componentconfig.go +++ /dev/null @@ -1,735 +0,0 @@ -/* -Copyright 2019 The Kubernetes Authors. - -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. -*/ - -package v1alpha1 - -import ( - "k8s.io/apimachinery/pkg/api/resource" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// KubeletConfigSpec defines the kubelet configuration -type KubeletConfigSpec struct { - // APIServers is not used for clusters version 1.6 and later - flag removed - APIServers string `json:"apiServers,omitempty" flag:"api-servers"` - // AnonymousAuth permits you to control auth to the kubelet api - AnonymousAuth *bool `json:"anonymousAuth,omitempty" flag:"anonymous-auth"` - // AuthorizationMode is the authorization mode the kubelet is running in - AuthorizationMode string `json:"authorizationMode,omitempty" flag:"authorization-mode"` - // BootstrapKubeconfig is the path to a kubeconfig file that will be used to get client certificate for kube - BootstrapKubeconfig string `json:"bootstrapKubeconfig,omitempty" flag:"bootstrap-kubeconfig"` - // ClientCAFile is the path to a CA certificate - ClientCAFile string `json:"clientCaFile,omitempty" flag:"client-ca-file"` - // TODO: Remove unused TLSCertFile - TLSCertFile string `json:"tlsCertFile,omitempty" flag:"tls-cert-file"` - // TODO: Remove unused TLSPrivateKeyFile - TLSPrivateKeyFile string `json:"tlsPrivateKeyFile,omitempty" flag:"tls-private-key-file"` - // TLSCipherSuites indicates the allowed TLS cipher suite - TLSCipherSuites []string `json:"tlsCipherSuites,omitempty" flag:"tls-cipher-suites"` - // TLSMinVersion indicates the minimum TLS version allowed - TLSMinVersion string `json:"tlsMinVersion,omitempty" flag:"tls-min-version"` - // KubeconfigPath is the path of kubeconfig for the kubelet - KubeconfigPath string `json:"kubeconfigPath,omitempty" flag:"kubeconfig"` - // RequireKubeconfig indicates a kubeconfig is required - RequireKubeconfig *bool `json:"requireKubeconfig,omitempty" flag:"require-kubeconfig"` - // LogLevel is the logging level of the kubelet - LogLevel *int32 `json:"logLevel,omitempty" flag:"v" flag-empty:"0"` - // config is the path to the config file or directory of files - PodManifestPath string `json:"podManifestPath,omitempty" flag:"pod-manifest-path"` - // HostnameOverride is the hostname used to identify the kubelet instead of the actual hostname. - HostnameOverride string `json:"hostnameOverride,omitempty" flag:"hostname-override"` - // PodInfraContainerImage is the image whose network/ipc containers in each pod will use. - PodInfraContainerImage string `json:"podInfraContainerImage,omitempty" flag:"pod-infra-container-image"` - // SeccompProfileRoot is the directory path for seccomp profiles. - SeccompProfileRoot *string `json:"seccompProfileRoot,omitempty" flag:"seccomp-profile-root"` - // AllowPrivileged enables containers to request privileged mode (defaults to false) - AllowPrivileged *bool `json:"allowPrivileged,omitempty" flag:"allow-privileged"` - // EnableDebuggingHandlers enables server endpoints for log collection and local running of containers and commands - EnableDebuggingHandlers *bool `json:"enableDebuggingHandlers,omitempty" flag:"enable-debugging-handlers"` - // RegisterNode enables automatic registration with the apiserver. - RegisterNode *bool `json:"registerNode,omitempty" flag:"register-node"` - // NodeStatusUpdateFrequency Specifies how often kubelet posts node status to master (default 10s) - // must work with nodeMonitorGracePeriod in KubeControllerManagerConfig. - NodeStatusUpdateFrequency *metav1.Duration `json:"nodeStatusUpdateFrequency,omitempty" flag:"node-status-update-frequency"` - // ClusterDomain is the DNS domain for this cluster - ClusterDomain string `json:"clusterDomain,omitempty" flag:"cluster-domain"` - // ClusterDNS is the IP address for a cluster DNS server - ClusterDNS string `json:"clusterDNS,omitempty" flag:"cluster-dns"` - // NetworkPluginName is the name of the network plugin to be invoked for various events in kubelet/pod lifecycle - NetworkPluginName string `json:"networkPluginName,omitempty" flag:"network-plugin"` - // CloudProvider is the provider for cloud services. - CloudProvider string `json:"cloudProvider,omitempty" flag:"cloud-provider"` - // KubeletCgroups is the absolute name of cgroups to isolate the kubelet in. - KubeletCgroups string `json:"kubeletCgroups,omitempty" flag:"kubelet-cgroups"` - // Cgroups that container runtime is expected to be isolated in. - RuntimeCgroups string `json:"runtimeCgroups,omitempty" flag:"runtime-cgroups"` - // ReadOnlyPort is the port used by the kubelet api for read-only access (default 10255) - ReadOnlyPort *int32 `json:"readOnlyPort,omitempty" flag:"read-only-port"` - // SystemCgroups is absolute name of cgroups in which to place - // all non-kernel processes that are not already in a container. Empty - // for no container. Rolling back the flag requires a reboot. - SystemCgroups string `json:"systemCgroups,omitempty" flag:"system-cgroups"` - // cgroupRoot is the root cgroup to use for pods. This is handled by the container runtime on a best effort basis. - CgroupRoot string `json:"cgroupRoot,omitempty" flag:"cgroup-root"` - // configureCBR0 enables the kubelet to configure cbr0 based on Node.Spec.PodCIDR. - ConfigureCBR0 *bool `json:"configureCbr0,omitempty" flag:"configure-cbr0"` - // How should the kubelet configure the container bridge for hairpin packets. - // Setting this flag allows endpoints in a Service to loadbalance back to - // themselves if they should try to access their own Service. Values: - // "promiscuous-bridge": make the container bridge promiscuous. - // "hairpin-veth": set the hairpin flag on container veth interfaces. - // "none": do nothing. - // Setting --configure-cbr0 to false implies that to achieve hairpin NAT - // one must set --hairpin-mode=veth-flag, because bridge assumes the - // existence of a container bridge named cbr0. - HairpinMode string `json:"hairpinMode,omitempty" flag:"hairpin-mode"` - // The node has babysitter process monitoring docker and kubelet. Removed as of 1.7 - BabysitDaemons *bool `json:"babysitDaemons,omitempty" flag:"babysit-daemons"` - // MaxPods is the number of pods that can run on this Kubelet. - MaxPods *int32 `json:"maxPods,omitempty" flag:"max-pods"` - // NvidiaGPUs is the number of NVIDIA GPU devices on this node. - NvidiaGPUs int32 `json:"nvidiaGPUs,omitempty" flag:"experimental-nvidia-gpus" flag-empty:"0"` - // PodCIDR is the CIDR to use for pod IP addresses, only used in standalone mode. - // In cluster mode, this is obtained from the master. - PodCIDR string `json:"podCIDR,omitempty" flag:"pod-cidr"` - // ResolverConfig is the resolver configuration file used as the basis for the container DNS resolution configuration."), [] - ResolverConfig *string `json:"resolvConf,omitempty" flag:"resolv-conf" flag-include-empty:"true"` - // ReconcileCIDR is Reconcile node CIDR with the CIDR specified by the - // API server. No-op if register-node or configure-cbr0 is false. - ReconcileCIDR *bool `json:"reconcileCIDR,omitempty" flag:"reconcile-cidr"` - // registerSchedulable tells the kubelet to register the node as schedulable. No-op if register-node is false. - RegisterSchedulable *bool `json:"registerSchedulable,omitempty" flag:"register-schedulable"` - //// SerializeImagePulls when enabled, tells the Kubelet to pull images one - //// at a time. We recommend *not* changing the default value on nodes that - //// run docker daemon with version < 1.9 or an Aufs storage backend. - //// Issue #10959 has more details. - SerializeImagePulls *bool `json:"serializeImagePulls,omitempty" flag:"serialize-image-pulls"` - // NodeLabels to add when registering the node in the cluster. - NodeLabels map[string]string `json:"nodeLabels,omitempty" flag:"node-labels"` - // NonMasqueradeCIDR configures masquerading: traffic to IPs outside this range will use IP masquerade. - NonMasqueradeCIDR string `json:"nonMasqueradeCIDR,omitempty" flag:"non-masquerade-cidr"` - // Enable gathering custom metrics. - EnableCustomMetrics *bool `json:"enableCustomMetrics,omitempty" flag:"enable-custom-metrics"` - // NetworkPluginMTU is the MTU to be passed to the network plugin, - // and overrides the default MTU for cases where it cannot be automatically - // computed (such as IPSEC). - NetworkPluginMTU *int32 `json:"networkPluginMTU,omitempty" flag:"network-plugin-mtu"` - // ImageGCHighThresholdPercent is the percent of disk usage after which - // image garbage collection is always run. - ImageGCHighThresholdPercent *int32 `json:"imageGCHighThresholdPercent,omitempty" flag:"image-gc-high-threshold"` - // ImageGCLowThresholdPercent is the percent of disk usage before which - // image garbage collection is never run. Lowest disk usage to garbage - // collect to. - ImageGCLowThresholdPercent *int32 `json:"imageGCLowThresholdPercent,omitempty" flag:"image-gc-low-threshold"` - // ImagePullProgressDeadline is the timeout for image pulls - // If no pulling progress is made before this deadline, the image pulling will be cancelled. (default 1m0s) - ImagePullProgressDeadline *metav1.Duration `json:"imagePullProgressDeadline,omitempty" flag:"image-pull-progress-deadline"` - // Comma-delimited list of hard eviction expressions. For example, 'memory.available<300Mi'. - EvictionHard *string `json:"evictionHard,omitempty" flag:"eviction-hard"` - // Comma-delimited list of soft eviction expressions. For example, 'memory.available<300Mi'. - EvictionSoft string `json:"evictionSoft,omitempty" flag:"eviction-soft"` - // Comma-delimited list of grace periods for each soft eviction signal. For example, 'memory.available=30s'. - EvictionSoftGracePeriod string `json:"evictionSoftGracePeriod,omitempty" flag:"eviction-soft-grace-period"` - // Duration for which the kubelet has to wait before transitioning out of an eviction pressure condition. - EvictionPressureTransitionPeriod *metav1.Duration `json:"evictionPressureTransitionPeriod,omitempty" flag:"eviction-pressure-transition-period" flag-empty:"0s"` - // Maximum allowed grace period (in seconds) to use when terminating pods in response to a soft eviction threshold being met. - EvictionMaxPodGracePeriod int32 `json:"evictionMaxPodGracePeriod,omitempty" flag:"eviction-max-pod-grace-period" flag-empty:"0"` - // Comma-delimited list of minimum reclaims (e.g. imagefs.available=2Gi) that describes the minimum amount of resource the kubelet will reclaim when performing a pod eviction if that resource is under pressure. - EvictionMinimumReclaim string `json:"evictionMinimumReclaim,omitempty" flag:"eviction-minimum-reclaim"` - // The full path of the directory in which to search for additional third party volume plugins (this path must be writeable, dependent on your choice of OS) - VolumePluginDirectory string `json:"volumePluginDirectory,omitempty" flag:"volume-plugin-dir"` - // Taints to add when registering a node in the cluster - Taints []string `json:"taints,omitempty" flag:"register-with-taints"` - // FeatureGates is set of key=value pairs that describe feature gates for alpha/experimental features. - FeatureGates map[string]string `json:"featureGates,omitempty" flag:"feature-gates"` - // Resource reservation for kubernetes system daemons like the kubelet, container runtime, node problem detector, etc. - KubeReserved map[string]string `json:"kubeReserved,omitempty" flag:"kube-reserved"` - // Control group for kube daemons. - KubeReservedCgroup string `json:"kubeReservedCgroup,omitempty" flag:"kube-reserved-cgroup"` - // Capture resource reservation for OS system daemons like sshd, udev, etc. - SystemReserved map[string]string `json:"systemReserved,omitempty" flag:"system-reserved"` - // Parent control group for OS system daemons. - SystemReservedCgroup string `json:"systemReservedCgroup,omitempty" flag:"system-reserved-cgroup"` - // Enforce Allocatable across pods whenever the overall usage across all pods exceeds Allocatable. - EnforceNodeAllocatable string `json:"enforceNodeAllocatable,omitempty" flag:"enforce-node-allocatable"` - // RuntimeRequestTimeout is timeout for runtime requests on - pull, logs, exec and attach - RuntimeRequestTimeout *metav1.Duration `json:"runtimeRequestTimeout,omitempty" flag:"runtime-request-timeout"` - // VolumeStatsAggPeriod is the interval for kubelet to calculate and cache the volume disk usage for all pods and volumes - VolumeStatsAggPeriod *metav1.Duration `json:"volumeStatsAggPeriod,omitempty" flag:"volume-stats-agg-period"` - // Tells the Kubelet to fail to start if swap is enabled on the node. - FailSwapOn *bool `json:"failSwapOn,omitempty" flag:"fail-swap-on"` - // ExperimentalAllowedUnsafeSysctls are passed to the kubelet config to whitelist allowable sysctls - // Was promoted to beta and renamed. https://github.com/kubernetes/kubernetes/pull/63717 - ExperimentalAllowedUnsafeSysctls []string `json:"experimentalAllowedUnsafeSysctls,omitempty" flag:"experimental-allowed-unsafe-sysctls"` - // AllowedUnsafeSysctls are passed to the kubelet config to whitelist allowable sysctls - AllowedUnsafeSysctls []string `json:"allowedUnsafeSysctls,omitempty" flag:"allowed-unsafe-sysctls"` - // StreamingConnectionIdleTimeout is the maximum time a streaming connection can be idle before the connection is automatically closed - StreamingConnectionIdleTimeout *metav1.Duration `json:"streamingConnectionIdleTimeout,omitempty" flag:"streaming-connection-idle-timeout"` - // DockerDisableSharedPID uses a shared PID namespace for containers in a pod. - DockerDisableSharedPID *bool `json:"dockerDisableSharedPID,omitempty" flag:"docker-disable-shared-pid"` - // RootDir is the directory path for managing kubelet files (volume mounts,etc) - RootDir string `json:"rootDir,omitempty" flag:"root-dir"` - // AuthenticationTokenWebhook uses the TokenReview API to determine authentication for bearer tokens. - AuthenticationTokenWebhook *bool `json:"authenticationTokenWebhook,omitempty" flag:"authentication-token-webhook"` - // AuthenticationTokenWebhook sets the duration to cache responses from the webhook token authenticator. Default is 2m. (default 2m0s) - AuthenticationTokenWebhookCacheTTL *metav1.Duration `json:"authenticationTokenWebhookCacheTtl,omitempty" flag:"authentication-token-webhook-cache-ttl"` - // CPUCFSQuota enables CPU CFS quota enforcement for containers that specify CPU limits - CPUCFSQuota *bool `json:"cpuCFSQuota,omitempty" flag:"cpu-cfs-quota"` - // CPUCFSQuotaPeriod sets CPU CFS quota period value, cpu.cfs_period_us, defaults to Linux Kernel default - CPUCFSQuotaPeriod *metav1.Duration `json:"cpuCFSQuotaPeriod,omitempty" flag:"cpu-cfs-quota-period"` - // CpuManagerPolicy allows for changing the default policy of None to static - CpuManagerPolicy string `json:"cpuManagerPolicy,omitempty" flag:"cpu-manager-policy"` - // RegistryPullQPS if > 0, limit registry pull QPS to this value. If 0, unlimited. (default 5) - RegistryPullQPS *int32 `json:"registryPullQPS,omitempty" flag:"registry-qps"` - //RegistryBurst Maximum size of a bursty pulls, temporarily allows pulls to burst to this number, while still not exceeding registry-qps. Only used if --registry-qps > 0 (default 10) - RegistryBurst *int32 `json:"registryBurst,omitempty" flag:"registry-burst"` - - // rotateCertificates enables client certificate rotation. - RotateCertificates *bool `json:"rotateCertificates,omitempty" flag:"rotate-certificates"` -} - -// KubeProxyConfig defines the configuration for a proxy -type KubeProxyConfig struct { - Image string `json:"image,omitempty"` - // TODO: Better type ? - // CPURequest, cpu request compute resource for kube proxy e.g. "20m" - CPURequest string `json:"cpuRequest,omitempty"` - // CPULimit, cpu limit compute resource for kube proxy e.g. "30m" - CPULimit string `json:"cpuLimit,omitempty"` - // MemoryRequest, memory request compute resource for kube proxy e.g. "30Mi" - MemoryRequest string `json:"memoryRequest,omitempty"` - // MemoryLimit, memory limit compute resource for kube proxy e.g. "30Mi" - MemoryLimit string `json:"memoryLimit,omitempty"` - // LogLevel is the logging level of the proxy - LogLevel int32 `json:"logLevel,omitempty" flag:"v"` - // ClusterCIDR is the CIDR range of the pods in the cluster - ClusterCIDR string `json:"clusterCIDR,omitempty" flag:"cluster-cidr"` - // HostnameOverride, if non-empty, will be used as the identity instead of the actual hostname. - HostnameOverride string `json:"hostnameOverride,omitempty" flag:"hostname-override"` - // BindAddress is IP address for the proxy server to serve on - BindAddress string `json:"bindAddress,omitempty" flag:"bind-address"` - // Master is the address of the Kubernetes API server (overrides any value in kubeconfig) - Master string `json:"master,omitempty" flag:"master"` - // MetricsBindAddress is the IP address for the metrics server to serve on - MetricsBindAddress *string `json:"metricsBindAddress,omitempty" flag:"metrics-bind-address"` - // Enabled allows enabling or disabling kube-proxy - Enabled *bool `json:"enabled,omitempty"` - // Which proxy mode to use: (userspace, iptables(default), ipvs) - ProxyMode string `json:"proxyMode,omitempty" flag:"proxy-mode"` - // IPVSExcludeCIDRS is comma-separated list of CIDR's which the ipvs proxier should not touch when cleaning up IPVS rules - IPVSExcludeCIDRS []string `json:"ipvsExcludeCidrs,omitempty" flag:"ipvs-exclude-cidrs"` - // IPVSMinSyncPeriod is the minimum interval of how often the ipvs rules can be refreshed as endpoints and services change (e.g. '5s', '1m', '2h22m') - IPVSMinSyncPeriod *metav1.Duration `json:"ipvsMinSyncPeriod,omitempty" flag:"ipvs-min-sync-period"` - // IPVSScheduler is the ipvs scheduler type when proxy mode is ipvs - IPVSScheduler *string `json:"ipvsScheduler,omitempty" flag:"ipvs-scheduler"` - // IPVSSyncPeriod duration is the maximum interval of how often ipvs rules are refreshed - IPVSSyncPeriod *metav1.Duration `json:"ipvsSyncPeriod,omitempty" flag:"ipvs-sync-period"` - // FeatureGates is a series of key pairs used to switch on features for the proxy - FeatureGates map[string]string `json:"featureGates,omitempty" flag:"feature-gates"` - // Maximum number of NAT connections to track per CPU core (default: 131072) - ConntrackMaxPerCore *int32 `json:"conntrackMaxPerCore,omitempty" flag:"conntrack-max-per-core"` - // Minimum number of conntrack entries to allocate, regardless of conntrack-max-per-core - ConntrackMin *int32 `json:"conntrackMin,omitempty" flag:"conntrack-min"` -} - -// KubeAPIServerConfig defines the configuration for the kube api -type KubeAPIServerConfig struct { - // Image is the docker container used - Image string `json:"image,omitempty"` - // DisableBasicAuth removes the --basic-auth-file flag - DisableBasicAuth bool `json:"disableBasicAuth,omitempty"` - // LogLevel is the logging level of the api - LogLevel int32 `json:"logLevel,omitempty" flag:"v" flag-empty:"0"` - // CloudProvider is the name of the cloudProvider we are using, aws, gce etcd - CloudProvider string `json:"cloudProvider,omitempty" flag:"cloud-provider"` - // SecurePort is the port the kube runs on - SecurePort int32 `json:"securePort,omitempty" flag:"secure-port"` - // InsecurePort is the port the insecure api runs - InsecurePort int32 `json:"insecurePort,omitempty" flag:"insecure-port"` - // Address is the binding address for the kube api: Deprecated - use insecure-bind-address and bind-address - Address string `json:"address,omitempty" flag:"address"` - // BindAddress is the binding address for the secure kubernetes API - BindAddress string `json:"bindAddress,omitempty" flag:"bind-address"` - // InsecureBindAddress is the binding address for the InsecurePort for the insecure kubernetes API - InsecureBindAddress string `json:"insecureBindAddress,omitempty" flag:"insecure-bind-address"` - // EnableBootstrapAuthToken enables 'bootstrap.kubernetes.io/token' in the 'kube-system' namespace to be used for TLS bootstrapping authentication - EnableBootstrapAuthToken *bool `json:"enableBootstrapTokenAuth,omitempty" flag:"enable-bootstrap-token-auth"` - // EnableAggregatorRouting enables aggregator routing requests to endpoints IP rather than cluster IP - EnableAggregatorRouting *bool `json:"enableAggregatorRouting,omitempty" flag:"enable-aggregator-routing"` - // AdmissionControl is a list of admission controllers to use: Deprecated - use enable-admission-plugins instead - AdmissionControl []string `json:"admissionControl,omitempty" flag:"admission-control"` - // AppendAdmissionPlugins appends list of enabled admission plugins - AppendAdmissionPlugins []string `json:"appendAdmissionPlugins,omitempty"` - // EnableAdmissionPlugins is a list of enabled admission plugins - EnableAdmissionPlugins []string `json:"enableAdmissionPlugins,omitempty" flag:"enable-admission-plugins"` - // DisableAdmissionPlugins is a list of disabled admission plugins - DisableAdmissionPlugins []string `json:"disableAdmissionPlugins,omitempty" flag:"disable-admission-plugins"` - // AdmissionControlConfigFile is the location of the admission-control-config-file - AdmissionControlConfigFile string `json:"admissionControlConfigFile,omitempty" flag:"admission-control-config-file"` - // ServiceClusterIPRange is the service address range - ServiceClusterIPRange string `json:"serviceClusterIPRange,omitempty" flag:"service-cluster-ip-range"` - // Passed as --service-node-port-range to kube-apiserver. Expects 'startPort-endPort' format e.g. 30000-33000 - ServiceNodePortRange string `json:"serviceNodePortRange,omitempty" flag:"service-node-port-range"` - // EtcdServers is a list of the etcd service to connect - EtcdServers []string `json:"etcdServers,omitempty" flag:"etcd-servers"` - // EtcdServersOverrides is per-resource etcd servers overrides, comma separated. The individual override format: group/resource#servers, where servers are http://ip:port, semicolon separated - EtcdServersOverrides []string `json:"etcdServersOverrides,omitempty" flag:"etcd-servers-overrides"` - // EtcdCAFile is the path to a ca certificate - EtcdCAFile string `json:"etcdCaFile,omitempty" flag:"etcd-cafile"` - // EtcdCertFile is the path to a certificate - EtcdCertFile string `json:"etcdCertFile,omitempty" flag:"etcd-certfile"` - // EtcdKeyFile is the path to a private key - EtcdKeyFile string `json:"etcdKeyFile,omitempty" flag:"etcd-keyfile"` - // TODO: Remove unused BasicAuthFile - BasicAuthFile string `json:"basicAuthFile,omitempty" flag:"basic-auth-file"` - // TODO: Remove unused ClientCAFile - ClientCAFile string `json:"clientCAFile,omitempty" flag:"client-ca-file"` - // TODO: Remove unused TLSCertFile - TLSCertFile string `json:"tlsCertFile,omitempty" flag:"tls-cert-file"` - // TODO: Remove unused TLSPrivateKeyFile - TLSPrivateKeyFile string `json:"tlsPrivateKeyFile,omitempty" flag:"tls-private-key-file"` - // TLSCipherSuites indicates the allowed TLS cipher suite - TLSCipherSuites []string `json:"tlsCipherSuites,omitempty" flag:"tls-cipher-suites"` - // TLSMinVersion indicates the minimum TLS version allowed - TLSMinVersion string `json:"tlsMinVersion,omitempty" flag:"tls-min-version"` - // TODO: Remove unused TokenAuthFile - TokenAuthFile string `json:"tokenAuthFile,omitempty" flag:"token-auth-file"` - // AllowPrivileged indicates if we can run privileged containers - AllowPrivileged *bool `json:"allowPrivileged,omitempty" flag:"allow-privileged"` - // APIServerCount is the number of api servers - APIServerCount *int32 `json:"apiServerCount,omitempty" flag:"apiserver-count"` - // RuntimeConfig is a series of keys/values are parsed into the `--runtime-config` parameters - RuntimeConfig map[string]string `json:"runtimeConfig,omitempty" flag:"runtime-config"` - // KubeletClientCertificate is the path of a certificate for secure communication between api and kubelet - KubeletClientCertificate string `json:"kubeletClientCertificate,omitempty" flag:"kubelet-client-certificate"` - // KubeletCertificateAuthority is the path of a certificate authority for secure communication between api and kubelet. - KubeletCertificateAuthority string `json:"kubeletCertificateAuthority,omitempty" flag:"kubelet-certificate-authority"` - // KubeletClientKey is the path of a private to secure communication between api and kubelet - KubeletClientKey string `json:"kubeletClientKey,omitempty" flag:"kubelet-client-key"` - // AnonymousAuth indicates if anonymous authentication is permitted - AnonymousAuth *bool `json:"anonymousAuth,omitempty" flag:"anonymous-auth"` - // KubeletPreferredAddressTypes is a list of the preferred NodeAddressTypes to use for kubelet connections - KubeletPreferredAddressTypes []string `json:"kubeletPreferredAddressTypes,omitempty" flag:"kubelet-preferred-address-types"` - // StorageBackend is the backend storage - StorageBackend *string `json:"storageBackend,omitempty" flag:"storage-backend"` - // OIDCUsernameClaim is the OpenID claim to use as the user name. - // Note that claims other than the default ('sub') is not guaranteed to be - // unique and immutable. - OIDCUsernameClaim *string `json:"oidcUsernameClaim,omitempty" flag:"oidc-username-claim"` - // OIDCUsernamePrefix is the prefix prepended to username claims to prevent - // clashes with existing names (such as 'system:' users). - OIDCUsernamePrefix *string `json:"oidcUsernamePrefix,omitempty" flag:"oidc-username-prefix"` - // OIDCGroupsClaim if provided, the name of a custom OpenID Connect claim for - // specifying user groups. - // The claim value is expected to be a string or array of strings. - OIDCGroupsClaim *string `json:"oidcGroupsClaim,omitempty" flag:"oidc-groups-claim"` - // OIDCGroupsPrefix is the prefix prepended to group claims to prevent - // clashes with existing names (such as 'system:' groups) - OIDCGroupsPrefix *string `json:"oidcGroupsPrefix,omitempty" flag:"oidc-groups-prefix"` - // OIDCIssuerURL is the URL of the OpenID issuer, only HTTPS scheme will - // be accepted. - // If set, it will be used to verify the OIDC JSON Web Token (JWT). - OIDCIssuerURL *string `json:"oidcIssuerURL,omitempty" flag:"oidc-issuer-url"` - // OIDCClientID is the client ID for the OpenID Connect client, must be set - // if oidc-issuer-url is set. - OIDCClientID *string `json:"oidcClientID,omitempty" flag:"oidc-client-id"` - // A key=value pair that describes a required claim in the ID Token. - // If set, the claim is verified to be present in the ID Token with a matching value. - // Repeat this flag to specify multiple claims. - OIDCRequiredClaim []string `json:"oidcRequiredClaim,omitempty" flag:"oidc-required-claim,repeat"` - // OIDCCAFile if set, the OpenID server's certificate will be verified by one - // of the authorities in the oidc-ca-file - OIDCCAFile *string `json:"oidcCAFile,omitempty" flag:"oidc-ca-file"` - // The apiserver's client certificate used for outbound requests. - ProxyClientCertFile *string `json:"proxyClientCertFile,omitempty" flag:"proxy-client-cert-file"` - // The apiserver's client key used for outbound requests. - ProxyClientKeyFile *string `json:"proxyClientKeyFile,omitempty" flag:"proxy-client-key-file"` - // AuditLogFormat flag specifies the format type for audit log files. - AuditLogFormat *string `json:"auditLogFormat,omitempty" flag:"audit-log-format"` - // If set, all requests coming to the apiserver will be logged to this file. - AuditLogPath *string `json:"auditLogPath,omitempty" flag:"audit-log-path"` - // The maximum number of days to retain old audit log files based on the timestamp encoded in their filename. - AuditLogMaxAge *int32 `json:"auditLogMaxAge,omitempty" flag:"audit-log-maxage"` - // The maximum number of old audit log files to retain. - AuditLogMaxBackups *int32 `json:"auditLogMaxBackups,omitempty" flag:"audit-log-maxbackup"` - // The maximum size in megabytes of the audit log file before it gets rotated. Defaults to 100MB. - AuditLogMaxSize *int32 `json:"auditLogMaxSize,omitempty" flag:"audit-log-maxsize"` - // AuditPolicyFile is the full path to a advanced audit configuration file e.g. /srv/kubernetes/audit.conf - AuditPolicyFile string `json:"auditPolicyFile,omitempty" flag:"audit-policy-file"` - // AuditWebhookBatchBufferSize is The size of the buffer to store events before batching and writing. Only used in batch mode. (default 10000) - AuditWebhookBatchBufferSize *int32 `json:"auditWebhookBatchBufferSize,omitempty" flag:"audit-webhook-batch-buffer-size"` - // AuditWebhookBatchMaxSize is The maximum size of a batch. Only used in batch mode. (default 400) - AuditWebhookBatchMaxSize *int32 `json:"auditWebhookBatchMaxSize,omitempty" flag:"audit-webhook-batch-max-size"` - // AuditWebhookBatchMaxWait is The amount of time to wait before force writing the batch that hadn't reached the max size. Only used in batch mode. (default 30s) - AuditWebhookBatchMaxWait *metav1.Duration `json:"auditWebhookBatchMaxWait,omitempty" flag:"audit-webhook-batch-max-wait"` - // AuditWebhookBatchThrottleBurst is Maximum number of requests sent at the same moment if ThrottleQPS was not utilized before. Only used in batch mode. (default 15) - AuditWebhookBatchThrottleBurst *int32 `json:"auditWebhookBatchThrottleBurst,omitempty" flag:"audit-webhook-batch-throttle-burst"` - // AuditWebhookBatchThrottleEnable is Whether batching throttling is enabled. Only used in batch mode. (default true) - AuditWebhookBatchThrottleEnable *bool `json:"auditWebhookBatchThrottleEnable,omitempty" flag:"audit-webhook-batch-throttle-enable"` - // AuditWebhookBatchThrottleQps is Maximum average number of batches per second. Only used in batch mode. (default 10) - AuditWebhookBatchThrottleQps *resource.Quantity `json:"auditWebhookBatchThrottleQps,omitempty" flag:"audit-webhook-batch-throttle-qps"` - // AuditWebhookConfigFile is Path to a kubeconfig formatted file that defines the audit webhook configuration. Requires the 'AdvancedAuditing' feature gate. - AuditWebhookConfigFile string `json:"auditWebhookConfigFile,omitempty" flag:"audit-webhook-config-file"` - // AuditWebhookInitialBackoff is The amount of time to wait before retrying the first failed request. (default 10s) - AuditWebhookInitialBackoff *metav1.Duration `json:"auditWebhookInitialBackoff,omitempty" flag:"audit-webhook-initial-backoff"` - // AuditWebhookMode is Strategy for sending audit events. Blocking indicates sending events should block server responses. Batch causes the backend to buffer and write events asynchronously. Known modes are batch,blocking. (default "batch") - AuditWebhookMode string `json:"auditWebhookMode,omitempty" flag:"audit-webhook-mode"` - // File with webhook configuration for token authentication in kubeconfig format. The API server will query the remote service to determine authentication for bearer tokens. - AuthenticationTokenWebhookConfigFile *string `json:"authenticationTokenWebhookConfigFile,omitempty" flag:"authentication-token-webhook-config-file"` - // The duration to cache responses from the webhook token authenticator. Default is 2m. (default 2m0s) - AuthenticationTokenWebhookCacheTTL *metav1.Duration `json:"authenticationTokenWebhookCacheTtl,omitempty" flag:"authentication-token-webhook-cache-ttl"` - // AuthorizationMode is the authorization mode the kubeapi is running in - AuthorizationMode *string `json:"authorizationMode,omitempty" flag:"authorization-mode"` - // File with webhook configuration for authorization in kubeconfig format. The API server will query the remote service to determine whether to authorize the request. - AuthorizationWebhookConfigFile *string `json:"authorizationWebhookConfigFile,omitempty" flag:"authorization-webhook-config-file"` - // The duration to cache authorized responses from the webhook token authorizer. Default is 5m. (default 5m0s) - AuthorizationWebhookCacheAuthorizedTTL *metav1.Duration `json:"authorizationWebhookCacheAuthorizedTtl,omitempty" flag:"authorization-webhook-cache-authorized-ttl"` - // The duration to cache authorized responses from the webhook token authorizer. Default is 30s. (default 30s) - AuthorizationWebhookCacheUnauthorizedTTL *metav1.Duration `json:"authorizationWebhookCacheUnauthorizedTtl,omitempty" flag:"authorization-webhook-cache-unauthorized-ttl"` - // AuthorizationRBACSuperUser is the name of the superuser for default rbac - AuthorizationRBACSuperUser *string `json:"authorizationRbacSuperUser,omitempty" flag:"authorization-rbac-super-user"` - // EncryptionProviderConfig enables encryption at rest for secrets. - EncryptionProviderConfig *string `json:"encryptionProviderConfig,omitempty" flag:"encryption-provider-config"` - // ExperimentalEncryptionProviderConfig enables encryption at rest for secrets. - ExperimentalEncryptionProviderConfig *string `json:"experimentalEncryptionProviderConfig,omitempty" flag:"experimental-encryption-provider-config"` - - // List of request headers to inspect for usernames. X-Remote-User is common. - RequestheaderUsernameHeaders []string `json:"requestheaderUsernameHeaders,omitempty" flag:"requestheader-username-headers"` - // List of request headers to inspect for groups. X-Remote-Group is suggested. - RequestheaderGroupHeaders []string `json:"requestheaderGroupHeaders,omitempty" flag:"requestheader-group-headers"` - // List of request header prefixes to inspect. X-Remote-Extra- is suggested. - RequestheaderExtraHeaderPrefixes []string `json:"requestheaderExtraHeaderPrefixes,omitempty" flag:"requestheader-extra-headers-prefix"` - //Root certificate bundle to use to verify client certificates on incoming requests before trusting usernames in headers specified by --requestheader-username-headers - RequestheaderClientCAFile string `json:"requestheaderClientCAFile,omitempty" flag:"requestheader-client-ca-file"` - // List of client certificate common names to allow to provide usernames in headers specified by --requestheader-username-headers. If empty, any client certificate validated by the authorities in --requestheader-client-ca-file is allowed. - RequestheaderAllowedNames []string `json:"requestheaderAllowedNames,omitempty" flag:"requestheader-allowed-names"` - // FeatureGates is set of key=value pairs that describe feature gates for alpha/experimental features. - FeatureGates map[string]string `json:"featureGates,omitempty" flag:"feature-gates"` - // MaxRequestsInflight The maximum number of non-mutating requests in flight at a given time. - MaxRequestsInflight int32 `json:"maxRequestsInflight,omitempty" flag:"max-requests-inflight" flag-empty:"0"` - // MaxMutatingRequestsInflight The maximum number of mutating requests in flight at a given time. Defaults to 200 - MaxMutatingRequestsInflight int32 `json:"maxMutatingRequestsInflight,omitempty" flag:"max-mutating-requests-inflight" flag-empty:"0"` - - // HTTP2MaxStreamsPerConnection sets the limit that the server gives to clients for the maximum number of streams in an HTTP/2 connection. Zero means to use golang's default. - HTTP2MaxStreamsPerConnection *int32 `json:"http2MaxStreamsPerConnection,omitempty" flag:"http2-max-streams-per-connection"` - - // EtcdQuorumRead configures the etcd-quorum-read flag, which forces consistent reads from etcd - EtcdQuorumRead *bool `json:"etcdQuorumRead,omitempty" flag:"etcd-quorum-read"` - - // MinRequestTimeout configures the minimum number of seconds a handler must keep a request open before timing it out. - // Currently only honored by the watch request handler - MinRequestTimeout *int32 `json:"minRequestTimeout,omitempty" flag:"min-request-timeout"` - - // Memory limit for apiserver in MB (used to configure sizes of caches, etc.) - TargetRamMb int32 `json:"targetRamMb,omitempty" flag:"target-ram-mb" flag-empty:"0"` - - // File containing PEM-encoded x509 RSA or ECDSA private or public keys, used to verify ServiceAccount tokens. - // The specified file can contain multiple keys, and the flag can be specified multiple times with different files. - // If unspecified, --tls-private-key-file is used. - ServiceAccountKeyFile []string `json:"serviceAccountKeyFile,omitempty" flag:"service-account-key-file,repeat"` - - // Path to the file that contains the current private key of the service account token issuer. - // The issuer will sign issued ID tokens with this private key. (Requires the 'TokenRequest' feature gate.) - ServiceAccountSigningKeyFile *string `json:"serviceAccountSigningKeyFile,omitempty" flag:"service-account-signing-key-file"` - - // Identifier of the service account token issuer. The issuer will assert this identifier - // in "iss" claim of issued tokens. This value is a string or URI. - ServiceAccountIssuer *string `json:"serviceAccountIssuer,omitempty" flag:"service-account-issuer"` - - // Identifiers of the API. The service account token authenticator will validate that - // tokens used against the API are bound to at least one of these audiences. If the - // --service-account-issuer flag is configured and this flag is not, this field - // defaults to a single element list containing the issuer URL. - APIAudiences []string `json:"apiAudiences,omitempty" flag:"api-audiences"` - - // CPURequest, cpu request compute resource for api server. Defaults to "150m" - CPURequest string `json:"cpuRequest,omitempty"` - - // Amount of time to retain Kubernetes events - EventTTL *metav1.Duration `json:"eventTTL,omitempty" flag:"event-ttl"` - - // AuditDynamicConfiguration enables dynamic audit configuration via AuditSinks - AuditDynamicConfiguration *bool `json:"auditDynamicConfiguration,omitempty" flag:"audit-dynamic-configuration"` -} - -// KubeControllerManagerConfig is the configuration for the controller -type KubeControllerManagerConfig struct { - // Master is the url for the kube api master - Master string `json:"master,omitempty" flag:"master"` - // LogLevel is the defined logLevel - LogLevel int32 `json:"logLevel,omitempty" flag:"v" flag-empty:"0"` - // ServiceAccountPrivateKeyFile the location for a certificate for service account signing - ServiceAccountPrivateKeyFile string `json:"serviceAccountPrivateKeyFile,omitempty" flag:"service-account-private-key-file"` - // Image is the docker image to use - Image string `json:"image,omitempty"` - // CloudProvider is the provider for cloud services. - CloudProvider string `json:"cloudProvider,omitempty" flag:"cloud-provider"` - // ClusterName is the instance prefix for the cluster. - ClusterName string `json:"clusterName,omitempty" flag:"cluster-name"` - // ClusterCIDR is CIDR Range for Pods in cluster. - ClusterCIDR string `json:"clusterCIDR,omitempty" flag:"cluster-cidr"` - // AllocateNodeCIDRs enables CIDRs for Pods to be allocated and, if ConfigureCloudRoutes is true, to be set on the cloud provider. - AllocateNodeCIDRs *bool `json:"allocateNodeCIDRs,omitempty" flag:"allocate-node-cidrs"` - // NodeCIDRMaskSize set the size for the mask of the nodes. - NodeCIDRMaskSize *int32 `json:"nodeCIDRMaskSize,omitempty" flag:"node-cidr-mask-size"` - // ConfigureCloudRoutes enables CIDRs allocated with to be configured on the cloud provider. - ConfigureCloudRoutes *bool `json:"configureCloudRoutes,omitempty" flag:"configure-cloud-routes"` - // Controllers is a list of controllers to enable on the controller-manager - Controllers []string `json:"controllers,omitempty" flag:"controllers"` - // CIDRAllocatorType specifies the type of CIDR allocator to use. - CIDRAllocatorType *string `json:"cidrAllocatorType,omitempty" flag:"cidr-allocator-type"` - // rootCAFile is the root certificate authority will be included in service account's token secret. This must be a valid PEM-encoded CA bundle. - RootCAFile string `json:"rootCAFile,omitempty" flag:"root-ca-file"` - // LeaderElection defines the configuration of leader election client. - LeaderElection *LeaderElectionConfiguration `json:"leaderElection,omitempty"` - // ReconcilerSyncLoopPeriod is the amount of time the reconciler sync states loop - // wait between successive executions. Is set to 1 min by kops by default - AttachDetachReconcileSyncPeriod *metav1.Duration `json:"attachDetachReconcileSyncPeriod,omitempty" flag:"attach-detach-reconcile-sync-period"` - // TerminatedPodGCThreshold is the number of terminated pods that can exist - // before the terminated pod garbage collector starts deleting terminated pods. - // If <= 0, the terminated pod garbage collector is disabled. - TerminatedPodGCThreshold *int32 `json:"terminatedPodGCThreshold,omitempty" flag:"terminated-pod-gc-threshold"` - // NodeMonitorPeriod is the period for syncing NodeStatus in NodeController. (default 5s) - NodeMonitorPeriod *metav1.Duration `json:"nodeMonitorPeriod,omitempty" flag:"node-monitor-period"` - // NodeMonitorGracePeriod is the amount of time which we allow running Node to be unresponsive before marking it unhealthy. (default 40s) - // Must be N-1 times more than kubelet's nodeStatusUpdateFrequency, where N means number of retries allowed for kubelet to post node status. - NodeMonitorGracePeriod *metav1.Duration `json:"nodeMonitorGracePeriod,omitempty" flag:"node-monitor-grace-period"` - // PodEvictionTimeout is the grace period for deleting pods on failed nodes. (default 5m0s) - PodEvictionTimeout *metav1.Duration `json:"podEvictionTimeout,omitempty" flag:"pod-eviction-timeout"` - // UseServiceAccountCredentials controls whether we use individual service account credentials for each controller. - UseServiceAccountCredentials *bool `json:"useServiceAccountCredentials,omitempty" flag:"use-service-account-credentials"` - // HorizontalPodAutoscalerSyncPeriod is the amount of time between syncs - // During each period, the controller manager queries the resource utilization - // against the metrics specified in each HorizontalPodAutoscaler definition. - HorizontalPodAutoscalerSyncPeriod *metav1.Duration `json:"horizontalPodAutoscalerSyncPeriod,omitempty" flag:"horizontal-pod-autoscaler-sync-period"` - // HorizontalPodAutoscalerDownscaleDelay is a duration that specifies - // how long the autoscaler has to wait before another downscale - // operation can be performed after the current one has completed. - HorizontalPodAutoscalerDownscaleDelay *metav1.Duration `json:"horizontalPodAutoscalerDownscaleDelay,omitempty" flag:"horizontal-pod-autoscaler-downscale-delay"` - // HorizontalPodAutoscalerDownscaleStabilization is the period for which - // autoscaler will look backwards and not scale down below any - // recommendation it made during that period. - HorizontalPodAutoscalerDownscaleStabilization *metav1.Duration `json:"horizontalPodAutoscalerDownscaleStabilization,omitempty" flag:"horizontal-pod-autoscaler-downscale-stabilization"` - // HorizontalPodAutoscalerUpscaleDelay is a duration that specifies how - // long the autoscaler has to wait before another upscale operation can - // be performed after the current one has completed. - HorizontalPodAutoscalerUpscaleDelay *metav1.Duration `json:"horizontalPodAutoscalerUpscaleDelay,omitempty" flag:"horizontal-pod-autoscaler-upscale-delay"` - // HorizontalPodAutoscalerTolerance is the minimum change (from 1.0) in the - // desired-to-actual metrics ratio for the horizontal pod autoscaler to - // consider scaling. - HorizontalPodAutoscalerTolerance *resource.Quantity `json:"horizontalPodAutoscalerTolerance,omitempty" flag:"horizontal-pod-autoscaler-tolerance"` - // HorizontalPodAutoscalerUseRestClients determines if the new-style clients - // should be used if support for custom metrics is enabled. - HorizontalPodAutoscalerUseRestClients *bool `json:"horizontalPodAutoscalerUseRestClients,omitempty" flag:"horizontal-pod-autoscaler-use-rest-clients"` - // ExperimentalClusterSigningDuration is the duration that determines - // the length of duration that the signed certificates will be given. (default 8760h0m0s) - ExperimentalClusterSigningDuration *metav1.Duration `json:"experimentalClusterSigningDuration,omitempty" flag:"experimental-cluster-signing-duration"` - // FeatureGates is set of key=value pairs that describe feature gates for alpha/experimental features. - FeatureGates map[string]string `json:"featureGates,omitempty" flag:"feature-gates"` - // TLSCipherSuites indicates the allowed TLS cipher suite - TLSCipherSuites []string `json:"tlsCipherSuites,omitempty" flag:"tls-cipher-suites"` - // TLSMinVersion indicates the minimum TLS version allowed - TLSMinVersion string `json:"tlsMinVersion,omitempty" flag:"tls-min-version"` - // MinResyncPeriod indicates the resync period in reflectors. - // The resync period will be random between MinResyncPeriod and 2*MinResyncPeriod. (default 12h0m0s) - MinResyncPeriod string `json:"minResyncPeriod,omitempty" flag:"min-resync-period"` - // KubeAPIQPS QPS to use while talking with kubernetes apiserver. (default 20) - KubeAPIQPS *resource.Quantity `json:"kubeAPIQPS,omitempty" flag:"kube-api-qps"` - // KubeAPIBurst Burst to use while talking with kubernetes apiserver. (default 30) - KubeAPIBurst *int32 `json:"kubeAPIBurst,omitempty" flag:"kube-api-burst"` - // The number of deployment objects that are allowed to sync concurrently. - ConcurrentDeploymentSyncs *int32 `json:"concurrentDeploymentSyncs,omitempty" flag:"concurrent-deployment-syncs"` - // The number of endpoint objects that are allowed to sync concurrently. - ConcurrentEndpointSyncs *int32 `json:"concurrentEndpointSyncs,omitempty" flag:"concurrent-endpoint-syncs"` - // The number of namespace objects that are allowed to sync concurrently. - ConcurrentNamespaceSyncs *int32 `json:"concurrentNamespaceSyncs,omitempty" flag:"concurrent-namespace-syncs"` - // The number of replicaset objects that are allowed to sync concurrently. - ConcurrentReplicasetSyncs *int32 `json:"concurrentReplicasetSyncs,omitempty" flag:"concurrent-replicaset-syncs"` - // The number of service objects that are allowed to sync concurrently. - ConcurrentServiceSyncs *int32 `json:"concurrentServiceSyncs,omitempty" flag:"concurrent-service-syncs"` - // The number of resourcequota objects that are allowed to sync concurrently. - ConcurrentResourceQuotaSyncs *int32 `json:"concurrentResourceQuotaSyncs,omitempty" flag:"concurrent-resource-quota-syncs"` - // The number of serviceaccount objects that are allowed to sync concurrently to create tokens. - ConcurrentServiceaccountTokenSyncs *int32 `json:"concurrentServiceaccountTokenSyncs,omitempty" flag:"concurrent-serviceaccount-token-syncs"` - // The number of replicationcontroller objects that are allowed to sync concurrently. - ConcurrentRcSyncs *int32 `json:"concurrentRcSyncs,omitempty" flag:"concurrent-rc-syncs"` -} - -// CloudControllerManagerConfig is the configuration of the cloud controller -type CloudControllerManagerConfig struct { - // Master is the url for the kube api master. - Master string `json:"master,omitempty" flag:"master"` - // LogLevel is the verbosity of the logs. - LogLevel int32 `json:"logLevel,omitempty" flag:"v" flag-empty:"0"` - // Image is the OCI image of the cloud controller manager. - Image string `json:"image,omitempty"` - // CloudProvider is the provider for cloud services. - CloudProvider string `json:"cloudProvider,omitempty" flag:"cloud-provider"` - // ClusterName is the instance prefix for the cluster. - ClusterName string `json:"clusterName,omitempty" flag:"cluster-name"` - // ClusterCIDR is CIDR Range for Pods in cluster. - ClusterCIDR string `json:"clusterCIDR,omitempty" flag:"cluster-cidr"` - // AllocateNodeCIDRs enables CIDRs for Pods to be allocated and, if - // ConfigureCloudRoutes is true, to be set on the cloud provider. - AllocateNodeCIDRs *bool `json:"allocateNodeCIDRs,omitempty" flag:"allocate-node-cidrs"` - // ConfigureCloudRoutes enables CIDRs allocated with to be configured on the cloud provider. - ConfigureCloudRoutes *bool `json:"configureCloudRoutes,omitempty" flag:"configure-cloud-routes"` - // CIDRAllocatorType specifies the type of CIDR allocator to use. - CIDRAllocatorType *string `json:"cidrAllocatorType,omitempty" flag:"cidr-allocator-type"` - // LeaderElection defines the configuration of leader election client. - LeaderElection *LeaderElectionConfiguration `json:"leaderElection,omitempty"` - // UseServiceAccountCredentials controls whether we use individual service account credentials for each controller. - UseServiceAccountCredentials *bool `json:"useServiceAccountCredentials,omitempty" flag:"use-service-account-credentials"` -} - -// KubeSchedulerConfig is the configuration for the kube-scheduler -type KubeSchedulerConfig struct { - // Master is a url to the kube master - Master string `json:"master,omitempty" flag:"master"` - // LogLevel is the logging level - LogLevel int32 `json:"logLevel,omitempty" flag:"v"` - // Image is the docker image to use - Image string `json:"image,omitempty"` - // LeaderElection defines the configuration of leader election client. - LeaderElection *LeaderElectionConfiguration `json:"leaderElection,omitempty"` - // UsePolicyConfigMap enable setting the scheduler policy from a configmap - UsePolicyConfigMap *bool `json:"usePolicyConfigMap,omitempty"` - // FeatureGates is set of key=value pairs that describe feature gates for alpha/experimental features. - FeatureGates map[string]string `json:"featureGates,omitempty" flag:"feature-gates"` - // MaxPersistentVolumes changes the maximum number of persistent volumes the scheduler will scheduler onto the same - // node. Only takes into affect if value is positive. This corresponds to the KUBE_MAX_PD_VOLS environment variable, - // which has been supported as far back as Kubernetes 1.7. The default depends on the version and the cloud provider - // as outlined: https://kubernetes.io/docs/concepts/storage/storage-limits/ - MaxPersistentVolumes *int32 `json:"maxPersistentVolumes,omitempty"` - // Qps sets the maximum qps to send to apiserver after the burst quota is exhausted - Qps *resource.Quantity `json:"qps,omitempty" configfile:"ClientConnection.QPS"` - // Burst sets the maximum qps to send to apiserver after the burst quota is exhausted - Burst int32 `json:"burst,omitempty" configfile:"ClientConnection.Burst"` -} - -// LeaderElectionConfiguration defines the configuration of leader election -// clients for components that can run with leader election enabled. -type LeaderElectionConfiguration struct { - // leaderElect enables a leader election client to gain leadership - // before executing the main loop. Enable this when running replicated - // components for high availability. - LeaderElect *bool `json:"leaderElect,omitempty" flag:"leader-elect"` - // leaderElectLeaseDuration is the length in time non-leader candidates - // will wait after observing a leadership renewal until attempting to acquire - // leadership of a led but unrenewed leader slot. This is effectively the - // maximum duration that a leader can be stopped before it is replaced by another candidate - LeaderElectLeaseDuration *metav1.Duration `json:"leaderElectLeaseDuration,omitempty" flag:"leader-elect-lease-duration"` - // LeaderElectRenewDeadlineDuration is the interval between attempts by the acting master to - // renew a leadership slot before it stops leading. This must be less than or equal to the lease duration. - LeaderElectRenewDeadlineDuration *metav1.Duration `json:"leaderElectRenewDeadlineDuration,omitempty" flag:"leader-elect-renew-deadline"` - // LeaderElectResourceLock is the type of resource object that is used for locking during - // leader election. Supported options are endpoints (default) and `configmaps`. - LeaderElectResourceLock *string `json:"leaderElectResourceLock,omitempty" flag:"leader-elect-resource-lock"` - // LeaderElectResourceName is the name of resource object that is used for locking during leader election. - LeaderElectResourceName *string `json:"leaderElectResourceName,omitempty" flag:"leader-elect-resource-name"` - // LeaderElectResourceNamespace is the namespace of resource object that is used for locking during leader election. - LeaderElectResourceNamespace *string `json:"leaderElectResourceNamespace,omitempty" flag:"leader-elect-resource-namespace"` - // LeaderElectRetryPeriod is The duration the clients should wait between attempting acquisition - // and renewal of a leadership. This is only applicable if leader election is enabled. - LeaderElectRetryPeriod *metav1.Duration `json:"leaderElectRetryPeriod,omitempty" flag:"leader-elect-retry-period"` -} - -// OpenstackLoadbalancerConfig defines the config for a neutron loadbalancer -type OpenstackLoadbalancerConfig struct { - Method *string `json:"method,omitempty"` - Provider *string `json:"provider,omitempty"` - UseOctavia *bool `json:"useOctavia,omitempty"` - FloatingNetwork *string `json:"floatingNetwork,omitempty"` - FloatingNetworkID *string `json:"floatingNetworkID,omitempty"` - FloatingSubnet *string `json:"floatingSubnet,omitempty"` - SubnetID *string `json:"subnetID,omitempty"` - ManageSecGroups *bool `json:"manageSecurityGroups,omitempty"` -} - -type OpenstackBlockStorageConfig struct { - Version *string `json:"bs-version,omitempty"` - IgnoreAZ *bool `json:"ignore-volume-az,omitempty"` - OverrideAZ *string `json:"override-volume-az,omitempty"` -} - -// OpenstackMonitor defines the config for a health monitor -type OpenstackMonitor struct { - Delay *string `json:"delay,omitempty"` - Timeout *string `json:"timeout,omitempty"` - MaxRetries *int `json:"maxRetries,omitempty"` -} - -// OpenstackRouter defines the config for a router -type OpenstackRouter struct { - ExternalNetwork *string `json:"externalNetwork,omitempty"` - DNSServers *string `json:"dnsServers,omitempty"` - ExternalSubnet *string `json:"externalSubnet,omitempty"` -} - -// OpenstackConfiguration defines cloud config elements for the openstack cloud provider -type OpenstackConfiguration struct { - Loadbalancer *OpenstackLoadbalancerConfig `json:"loadbalancer,omitempty"` - Monitor *OpenstackMonitor `json:"monitor,omitempty"` - Router *OpenstackRouter `json:"router,omitempty"` - BlockStorage *OpenstackBlockStorageConfig `json:"blockStorage,omitempty"` - InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` -} - -// CloudConfiguration defines the cloud provider configuration -type CloudConfiguration struct { - // GCE cloud-config options - Multizone *bool `json:"multizone,omitempty"` - NodeTags *string `json:"nodeTags,omitempty"` - NodeInstancePrefix *string `json:"nodeInstancePrefix,omitempty"` - // AWS cloud-config options - DisableSecurityGroupIngress *bool `json:"disableSecurityGroupIngress,omitempty"` - ElbSecurityGroup *string `json:"elbSecurityGroup,omitempty"` - // vSphere cloud-config specs - VSphereUsername *string `json:"vSphereUsername,omitempty"` - VSpherePassword *string `json:"vSpherePassword,omitempty"` - VSphereServer *string `json:"vSphereServer,omitempty"` - VSphereDatacenter *string `json:"vSphereDatacenter,omitempty"` - VSphereResourcePool *string `json:"vSphereResourcePool,omitempty"` - VSphereDatastore *string `json:"vSphereDatastore,omitempty"` - VSphereCoreDNSServer *string `json:"vSphereCoreDNSServer,omitempty"` - // Spotinst cloud-config specs - SpotinstProduct *string `json:"spotinstProduct,omitempty"` - SpotinstOrientation *string `json:"spotinstOrientation,omitempty"` - // Openstack cloud-config options - Openstack *OpenstackConfiguration `json:"openstack,omitempty"` -} - -// HasAdmissionController checks if a specific admission controller is enabled -func (c *KubeAPIServerConfig) HasAdmissionController(name string) bool { - for _, x := range c.AdmissionControl { - if x == name { - return true - } - } - - for _, x := range c.DisableAdmissionPlugins { - if x == name { - return false - } - } - for _, x := range c.EnableAdmissionPlugins { - if x == name { - return true - } - } - - return false -} diff --git a/pkg/apis/kops/v1alpha1/containerdconfig.go b/pkg/apis/kops/v1alpha1/containerdconfig.go deleted file mode 100644 index 592ca55a3f..0000000000 --- a/pkg/apis/kops/v1alpha1/containerdconfig.go +++ /dev/null @@ -1,35 +0,0 @@ -/* -Copyright 2019 The Kubernetes Authors. - -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. -*/ - -package v1alpha1 - -// ContainerdConfig is the configuration for containerd -type ContainerdConfig struct { - // Address of containerd's GRPC server (default "/run/containerd/containerd.sock") - Address *string `json:"address,omitempty" flag:"address"` - // Complete containerd config file provided by the user - ConfigOverride *string `json:"configOverride,omitempty"` - // Logging level [trace, debug, info, warn, error, fatal, panic] (default "info") - LogLevel *string `json:"logLevel,omitempty" flag:"log-level"` - // Directory for persistent data (default "/var/lib/containerd") - Root *string `json:"root,omitempty" flag:"root"` - // Prevents kops from installing and modifying containerd in any way (default "false") - SkipInstall bool `json:"skipInstall,omitempty"` - // Directory for execution state files (default "/run/containerd") - State *string `json:"state,omitempty" flag:"state"` - // Consumed by nodeup and used to pick the containerd version - Version *string `json:"version,omitempty"` -} diff --git a/pkg/apis/kops/v1alpha1/conversion.go b/pkg/apis/kops/v1alpha1/conversion.go deleted file mode 100644 index 69f7d549e0..0000000000 --- a/pkg/apis/kops/v1alpha1/conversion.go +++ /dev/null @@ -1,303 +0,0 @@ -/* -Copyright 2019 The Kubernetes Authors. - -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. -*/ - -package v1alpha1 - -import ( - "fmt" - "reflect" - "sort" - "strings" - - "k8s.io/apimachinery/pkg/conversion" - "k8s.io/kops/pkg/apis/kops" -) - -func Convert_v1alpha1_BastionSpec_To_kops_BastionSpec(in *BastionSpec, out *kops.BastionSpec, s conversion.Scope) error { - out.BastionPublicName = in.PublicName - out.IdleTimeoutSeconds = in.IdleTimeout - - if !in.Enable { - out.BastionPublicName = "" - out.IdleTimeoutSeconds = nil - } - - return nil -} - -func Convert_kops_BastionSpec_To_v1alpha1_BastionSpec(in *kops.BastionSpec, out *BastionSpec, s conversion.Scope) error { - out.PublicName = in.BastionPublicName - out.IdleTimeout = in.IdleTimeoutSeconds - - out.Enable = true - out.MachineType = "" - - return nil -} - -func Convert_v1alpha1_ClusterSpec_To_kops_ClusterSpec(in *ClusterSpec, out *kops.ClusterSpec, s conversion.Scope) error { - topologyPrivate := false - if in.Topology != nil && in.Topology.Masters == TopologyPrivate { - topologyPrivate = true - } - - if in.Zones != nil { - for _, z := range in.Zones { - if topologyPrivate { - // A private zone is mapped to a private- and a utility- subnet - if z.PrivateCIDR != "" { - out.Subnets = append(out.Subnets, kops.ClusterSubnetSpec{ - Name: z.Name, - CIDR: z.PrivateCIDR, - ProviderID: z.ProviderID, - Zone: z.Name, - Type: kops.SubnetTypePrivate, - Egress: z.Egress, - }) - } - - if z.CIDR != "" { - out.Subnets = append(out.Subnets, kops.ClusterSubnetSpec{ - Name: "utility-" + z.Name, - CIDR: z.CIDR, - Zone: z.Name, - Type: kops.SubnetTypeUtility, - Egress: z.Egress, - }) - } - } else { - out.Subnets = append(out.Subnets, kops.ClusterSubnetSpec{ - Name: z.Name, - CIDR: z.CIDR, - ProviderID: z.ProviderID, - Zone: z.Name, - Type: kops.SubnetTypePublic, - Egress: z.Egress, - }) - } - } - } else { - out.Subnets = nil - } - - adminAccess := in.AdminAccess - if len(adminAccess) == 0 { - // The default in v1alpha1 was 0.0.0.0/0 - adminAccess = []string{"0.0.0.0/0"} - } - out.SSHAccess = adminAccess - out.KubernetesAPIAccess = adminAccess - - return autoConvert_v1alpha1_ClusterSpec_To_kops_ClusterSpec(in, out, s) -} - -// ByName implements sort.Interface for []*ClusterZoneSpec on the Name field. -type ByName []*ClusterZoneSpec - -func (a ByName) Len() int { - return len(a) -} -func (a ByName) Swap(i, j int) { - a[i], a[j] = a[j], a[i] -} -func (a ByName) Less(i, j int) bool { - return a[i].Name < a[j].Name -} - -func Convert_kops_ClusterSpec_To_v1alpha1_ClusterSpec(in *kops.ClusterSpec, out *ClusterSpec, s conversion.Scope) error { - topologyPrivate := false - if in.Topology != nil && in.Topology.Masters == TopologyPrivate { - topologyPrivate = true - } - - if in.Subnets != nil { - zoneMap := make(map[string]*ClusterZoneSpec) - - for _, s := range in.Subnets { - zoneName := s.Name - if s.Type == kops.SubnetTypeUtility { - if !strings.HasPrefix(zoneName, "utility-") { - return fmt.Errorf("cannot convert subnet to v1alpha1 when subnet with Type=utility does not have name starting with utility-: %q", zoneName) - } - zoneName = strings.TrimPrefix(zoneName, "utility-") - } - if s.Zone != zoneName { - return fmt.Errorf("cannot convert to v1alpha1 when subnet Zone != Name: %q != %q", s.Zone, s.Name) - } - - zone := zoneMap[zoneName] - if zone == nil { - zone = &ClusterZoneSpec{ - Name: s.Zone, - } - zoneMap[zoneName] = zone - } - - if topologyPrivate { - subnetType := s.Type - if subnetType == "" { - subnetType = kops.SubnetTypePrivate - } - switch subnetType { - case kops.SubnetTypePrivate: - if zone.PrivateCIDR != "" || zone.ProviderID != "" { - return fmt.Errorf("cannot convert to v1alpha1: duplicate zone: %v", zone) - } - zone.PrivateCIDR = s.CIDR - zone.Egress = s.Egress - zone.ProviderID = s.ProviderID - - case kops.SubnetTypeUtility: - if zone.CIDR != "" { - return fmt.Errorf("cannot convert to v1alpha1: duplicate zone: %v", zone) - } - zone.CIDR = s.CIDR - - // We simple can't express this in v1alpha1 - if s.ProviderID != "" { - return fmt.Errorf("cannot convert to v1alpha1: utility subnet had ProviderID %v", s.Name) - } - - case kops.SubnetTypePublic: - return fmt.Errorf("cannot convert to v1alpha1 when subnet type is public") - - default: - return fmt.Errorf("unknown SubnetType: %v", subnetType) - } - } else { - if zone.CIDR != "" || zone.ProviderID != "" { - return fmt.Errorf("cannot convert to v1alpha1: duplicate zone: %v", zone) - } - zone.CIDR = s.CIDR - zone.Egress = s.Egress - zone.ProviderID = s.ProviderID - } - } - - for _, z := range zoneMap { - out.Zones = append(out.Zones, z) - } - - sort.Sort(ByName(out.Zones)) - } else { - out.Zones = nil - } - - if !reflect.DeepEqual(in.SSHAccess, in.KubernetesAPIAccess) { - return fmt.Errorf("cannot convert to v1alpha1: SSHAccess != KubernetesAPIAccess") - } - out.AdminAccess = in.SSHAccess - - return autoConvert_kops_ClusterSpec_To_v1alpha1_ClusterSpec(in, out, s) -} - -func Convert_v1alpha1_EtcdMemberSpec_To_kops_EtcdMemberSpec(in *EtcdMemberSpec, out *kops.EtcdMemberSpec, s conversion.Scope) error { - if in.Zone != nil { - instanceGroup := "master-" + *in.Zone - out.InstanceGroup = &instanceGroup - } else { - out.InstanceGroup = nil - } - - return autoConvert_v1alpha1_EtcdMemberSpec_To_kops_EtcdMemberSpec(in, out, s) -} - -func Convert_kops_EtcdMemberSpec_To_v1alpha1_EtcdMemberSpec(in *kops.EtcdMemberSpec, out *EtcdMemberSpec, s conversion.Scope) error { - err := autoConvert_kops_EtcdMemberSpec_To_v1alpha1_EtcdMemberSpec(in, out, s) - if err != nil { - return err - } - - if in.InstanceGroup != nil { - zone := *in.InstanceGroup - if !strings.HasPrefix(zone, "master-") { - return fmt.Errorf("cannot convert etc instance group name %q to v1alpha1: need master- prefix", zone) - } - zone = strings.TrimPrefix(zone, "master-") - out.Zone = &zone - } else { - out.Zone = nil - } - - return nil -} - -func Convert_v1alpha1_InstanceGroupSpec_To_kops_InstanceGroupSpec(in *InstanceGroupSpec, out *kops.InstanceGroupSpec, s conversion.Scope) error { - err := autoConvert_v1alpha1_InstanceGroupSpec_To_kops_InstanceGroupSpec(in, out, s) - if err != nil { - return err - } - - out.Subnets = in.Zones - out.Zones = nil // Those zones are not the same as v1alpha1 zones - - return nil -} - -func Convert_kops_InstanceGroupSpec_To_v1alpha1_InstanceGroupSpec(in *kops.InstanceGroupSpec, out *InstanceGroupSpec, s conversion.Scope) error { - err := autoConvert_kops_InstanceGroupSpec_To_v1alpha1_InstanceGroupSpec(in, out, s) - if err != nil { - return err - } - - out.Zones = in.Subnets - - return nil -} - -func Convert_v1alpha1_TopologySpec_To_kops_TopologySpec(in *TopologySpec, out *kops.TopologySpec, s conversion.Scope) error { - out.Masters = in.Masters - out.Nodes = in.Nodes - if in.Bastion != nil && in.Bastion.Enable { - out.Bastion = new(kops.BastionSpec) - if err := Convert_v1alpha1_BastionSpec_To_kops_BastionSpec(in.Bastion, out.Bastion, s); err != nil { - return err - } - } else { - out.Bastion = nil - } - if in.DNS != nil { - out.DNS = new(kops.DNSSpec) - if err := Convert_v1alpha1_DNSSpec_To_kops_DNSSpec(in.DNS, out.DNS, s); err != nil { - return err - } - } else { - out.DNS = nil - } - return nil -} - -func Convert_kops_TopologySpec_To_v1alpha1_TopologySpec(in *kops.TopologySpec, out *TopologySpec, s conversion.Scope) error { - out.Masters = in.Masters - out.Nodes = in.Nodes - if in.Bastion != nil { - out.Bastion = new(BastionSpec) - if err := Convert_kops_BastionSpec_To_v1alpha1_BastionSpec(in.Bastion, out.Bastion, s); err != nil { - return err - } - } else { - out.Bastion = nil - } - if in.DNS != nil { - out.DNS = new(DNSSpec) - if err := Convert_kops_DNSSpec_To_v1alpha1_DNSSpec(in.DNS, out.DNS, s); err != nil { - return err - } - } else { - out.DNS = nil - } - return nil -} diff --git a/pkg/apis/kops/v1alpha1/defaults.go b/pkg/apis/kops/v1alpha1/defaults.go deleted file mode 100644 index 28e9d53441..0000000000 --- a/pkg/apis/kops/v1alpha1/defaults.go +++ /dev/null @@ -1,93 +0,0 @@ -/* -Copyright 2019 The Kubernetes Authors. - -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. -*/ - -package v1alpha1 - -import ( - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/klog" -) - -func addDefaultingFuncs(scheme *runtime.Scheme) error { - return RegisterDefaults(scheme) -} - -func SetDefaults_ClusterSpec(obj *ClusterSpec) { - if obj.Topology == nil { - obj.Topology = &TopologySpec{} - } - - if obj.Topology.Masters == "" { - obj.Topology.Masters = TopologyPublic - } - - if obj.Topology.Nodes == "" { - obj.Topology.Nodes = TopologyPublic - } - - if obj.Topology.DNS == nil { - obj.Topology.DNS = &DNSSpec{} - } - - if obj.Topology.DNS.Type == "" { - obj.Topology.DNS.Type = DNSTypePublic - } - - if obj.API == nil { - obj.API = &AccessSpec{} - } - - if obj.API.IsEmpty() { - switch obj.Topology.Masters { - case TopologyPublic: - obj.API.DNS = &DNSAccessSpec{} - - case TopologyPrivate: - obj.API.LoadBalancer = &LoadBalancerAccessSpec{} - - default: - klog.Infof("unknown master topology type: %q", obj.Topology.Masters) - } - } - - if obj.API.LoadBalancer != nil && obj.API.LoadBalancer.Type == "" { - obj.API.LoadBalancer.Type = LoadBalancerTypePublic - } - - if obj.Authorization == nil { - obj.Authorization = &AuthorizationSpec{} - } - if obj.Authorization.IsEmpty() { - // Before the Authorization field was introduced, the behaviour was alwaysAllow - obj.Authorization.AlwaysAllow = &AlwaysAllowAuthorizationSpec{} - } - - if obj.IAM == nil { - obj.IAM = &IAMSpec{ - Legacy: true, - } - } - - if obj.Networking != nil { - if obj.Networking.Flannel != nil { - if obj.Networking.Flannel.Backend == "" { - // Populate with legacy default value; new clusters will be created with vxlan by create cluster - obj.Networking.Flannel.Backend = "udp" - } - } - } - -} diff --git a/pkg/apis/kops/v1alpha1/doc.go b/pkg/apis/kops/v1alpha1/doc.go deleted file mode 100644 index 892ecdbcd7..0000000000 --- a/pkg/apis/kops/v1alpha1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2019 The Kubernetes Authors. - -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. -*/ - -// +k8s:openapi-gen=true -// +k8s:conversion-gen=k8s.io/kops/pkg/apis/kops -// +k8s:deepcopy-gen=package,register -// +k8s:defaulter-gen=TypeMeta - -// +groupName=kops.k8s.io -package v1alpha1 diff --git a/pkg/apis/kops/v1alpha1/dockerconfig.go b/pkg/apis/kops/v1alpha1/dockerconfig.go deleted file mode 100644 index 0c0b8fdd64..0000000000 --- a/pkg/apis/kops/v1alpha1/dockerconfig.go +++ /dev/null @@ -1,73 +0,0 @@ -/* -Copyright 2019 The Kubernetes Authors. - -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. -*/ - -package v1alpha1 - -// DockerConfig is the configuration for docker -type DockerConfig struct { - // AuthorizationPlugins is a list of authorization plugins - AuthorizationPlugins []string `json:"authorizationPlugins,omitempty" flag:"authorization-plugin,repeat"` - // Bridge is the network interface containers should bind onto - Bridge *string `json:"bridge,omitempty" flag:"bridge"` - // BridgeIP is a specific IP address and netmask for the docker0 bridge, using standard CIDR notation - BridgeIP *string `json:"bridgeIP,omitempty" flag:"bip"` - // DataRoot is the root directory of persistent docker state (default "/var/lib/docker") - DataRoot *string `json:"dataRoot,omitempty" flag:"data-root"` - // DefaultUlimit is the ulimits for containers - DefaultUlimit []string `json:"defaultUlimit,omitempty" flag:"default-ulimit,repeat"` - // ExecOpt is a series of options passed to the runtime - ExecOpt []string `json:"execOpt,omitempty" flag:"exec-opt,repeat"` - // ExecRoot is the root directory for execution state files (default "/var/run/docker") - ExecRoot *string `json:"execRoot,omitempty" flag:"exec-root"` - // Experimental features permits enabling new features such as dockerd metrics - Experimental *bool `json:"experimental,omitempty" flag:"experimental"` - // HealthCheck enables the periodic health-check service - HealthCheck bool `json:"healthCheck,omitempty"` - // Hosts enables you to configure the endpoints the docker daemon listens on i.e. tcp://0.0.0.0.2375 or unix:///var/run/docker.sock etc - Hosts []string `json:"hosts,omitempty" flag:"host,repeat"` - // IPMasq enables ip masquerading for containers - IPMasq *bool `json:"ipMasq,omitempty" flag:"ip-masq"` - // IPtables enables addition of iptables rules - IPTables *bool `json:"ipTables,omitempty" flag:"iptables"` - // InsecureRegistry enable insecure registry communication @question according to dockers this a list?? - InsecureRegistry *string `json:"insecureRegistry,omitempty" flag:"insecure-registry"` - // InsecureRegistries enables multiple insecure docker registry communications - InsecureRegistries []string `json:"insecureRegistries,omitempty" flag:"insecure-registry"` - // LiveRestore enables live restore of docker when containers are still running - LiveRestore *bool `json:"liveRestore,omitempty" flag:"live-restore"` - // LogDriver is the default driver for container logs (default "json-file") - LogDriver *string `json:"logDriver,omitempty" flag:"log-driver"` - // LogLevel is the logging level ("debug", "info", "warn", "error", "fatal") (default "info") - LogLevel *string `json:"logLevel,omitempty" flag:"log-level"` - // Logopt is a series of options given to the log driver options for containers - LogOpt []string `json:"logOpt,omitempty" flag:"log-opt,repeat"` - // Metrics address is the endpoint to serve with Prometheus format metrics - MetricsAddress *string `json:"metricsAddress,omitempty" flag:"metrics-addr"` - // MTU is the containers network MTU - MTU *int32 `json:"mtu,omitempty" flag:"mtu"` - // RegistryMirrors is a referred list of docker registry mirror - RegistryMirrors []string `json:"registryMirrors,omitempty" flag:"registry-mirror,repeat"` - // SkipInstall when set to true will prevent kops from installing and modifying Docker in any way - SkipInstall bool `json:"skipInstall,omitempty"` - // Storage is the docker storage driver to use - Storage *string `json:"storage,omitempty" flag:"storage-driver"` - // StorageOpts is a series of options passed to the storage driver - StorageOpts []string `json:"storageOpts,omitempty" flag:"storage-opt,repeat"` - // UserNamespaceRemap sets the user namespace remapping option for the docker daemon - UserNamespaceRemap string `json:"userNamespaceRemap,omitempty" flag:"userns-remap"` - // Version is consumed by the nodeup and used to pick the docker version - Version *string `json:"version,omitempty"` -} diff --git a/pkg/apis/kops/v1alpha1/instancegroup.go b/pkg/apis/kops/v1alpha1/instancegroup.go deleted file mode 100644 index 0e4acdbd65..0000000000 --- a/pkg/apis/kops/v1alpha1/instancegroup.go +++ /dev/null @@ -1,247 +0,0 @@ -/* -Copyright 2019 The Kubernetes Authors. - -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. -*/ - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// InstanceGroup represents a group of instances (either nodes or masters) with the same configuration -type InstanceGroup struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec InstanceGroupSpec `json:"spec,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// InstanceGroupList is a list of instance groups -type InstanceGroupList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - - Items []InstanceGroup `json:"items"` -} - -// InstanceGroupRole string describes the roles of the nodes in this InstanceGroup (master or nodes) -type InstanceGroupRole string - -const ( - // InstanceGroupRoleMaster is a master role - InstanceGroupRoleMaster InstanceGroupRole = "Master" - // InstanceGroupRoleNode is a node role - InstanceGroupRoleNode InstanceGroupRole = "Node" - // InstanceGroupRoleBastion is a bastion role - InstanceGroupRoleBastion InstanceGroupRole = "Bastion" -) - -// AllInstanceGroupRoles is a slice of all valid InstanceGroupRole values -var AllInstanceGroupRoles = []InstanceGroupRole{ - InstanceGroupRoleNode, - InstanceGroupRoleMaster, - InstanceGroupRoleBastion, -} - -const ( - // BtfsFilesystem indicates a btfs filesystem - BtfsFilesystem = "btfs" - // Ext4Filesystem indicates a ext3 filesystem - Ext4Filesystem = "ext4" - // XFSFilesystem indicates a xfs filesystem - XFSFilesystem = "xfs" -) - -var ( - // SupportedFilesystems is a list of supported filesystems to format as - SupportedFilesystems = []string{BtfsFilesystem, Ext4Filesystem, XFSFilesystem} -) - -// InstanceGroupSpec is the specification for a instanceGroup -type InstanceGroupSpec struct { - // Type determines the role of instances in this group: masters or nodes - Role InstanceGroupRole `json:"role,omitempty"` - // Image is the instance (ami etc) we should use - Image string `json:"image,omitempty"` - // MinSize is the minimum size of the pool - MinSize *int32 `json:"minSize,omitempty"` - // MaxSize is the maximum size of the pool - MaxSize *int32 `json:"maxSize,omitempty"` - // MachineType is the instance class - MachineType string `json:"machineType,omitempty"` - // RootVolumeSize is the size of the EBS root volume to use, in GB - RootVolumeSize *int32 `json:"rootVolumeSize,omitempty"` - // RootVolumeType is the type of the EBS root volume to use (e.g. gp2) - RootVolumeType *string `json:"rootVolumeType,omitempty"` - // If volume type is io1, then we need to specify the number of Iops. - RootVolumeIops *int32 `json:"rootVolumeIops,omitempty"` - // RootVolumeOptimization enables EBS optimization for an instance - RootVolumeOptimization *bool `json:"rootVolumeOptimization,omitempty"` - // RootVolumeDeleteOnTermination configures root volume retention policy upon instance termination. - // The root volume is deleted by default. Cluster deletion does not remove retained root volumes. - // NOTE: This setting applies only to the Launch Configuration and does not affect Launch Templates. - RootVolumeDeleteOnTermination *bool `json:"rootVolumeDeleteOnTermination,omitempty"` - // Volumes is a collection of additional volumes to create for instances within this InstanceGroup - Volumes []*VolumeSpec `json:"volumes,omitempty"` - // VolumeMounts a collection of volume mounts - VolumeMounts []*VolumeMountSpec `json:"volumeMounts,omitempty"` - // Hooks is a list of hooks for this instanceGroup, note: these can override the cluster wide ones if required - Hooks []HookSpec `json:"hooks,omitempty"` - // MaxPrice indicates this is a spot-pricing group, with the specified value as our max-price bid - MaxPrice *string `json:"maxPrice,omitempty"` - // AssociatePublicIP is true if we want instances to have a public IP - AssociatePublicIP *bool `json:"associatePublicIp,omitempty"` - // AdditionalSecurityGroups attaches additional security groups (e.g. i-123456) - AdditionalSecurityGroups []string `json:"additionalSecurityGroups,omitempty"` - // CloudLabels indicates the labels for instances in this group, at the AWS level - CloudLabels map[string]string `json:"cloudLabels,omitempty"` - // NodeLabels indicates the kubernetes labels for nodes in this group - NodeLabels map[string]string `json:"nodeLabels,omitempty"` - // A collection of files assets for deployed cluster wide - FileAssets []FileAssetSpec `json:"fileAssets,omitempty"` - // Describes the tenancy of the instance group. Can be either default or dedicated. - // Currently only applies to AWS. - Tenancy string `json:"tenancy,omitempty"` - // Kubelet overrides kubelet config from the ClusterSpec - Kubelet *KubeletConfigSpec `json:"kubelet,omitempty"` - // Taints indicates the kubernetes taints for nodes in this group - Taints []string `json:"taints,omitempty"` - // MixedInstancesPolicy defined a optional backing of an AWS ASG by a EC2 Fleet (AWS Only) - MixedInstancesPolicy *MixedInstancesPolicySpec `json:"mixedInstancesPolicy,omitempty"` - // AdditionalUserData is any additional user-data to be passed to the host - AdditionalUserData []UserData `json:"additionalUserData,omitempty"` - // Zones is the names of the Zones where machines in this instance group should be placed - // This is needed for regional subnets (e.g. GCE), to restrict placement to particular zones - Zones []string `json:"zones,omitempty"` - // SuspendProcesses disables the listed Scaling Policies - SuspendProcesses []string `json:"suspendProcesses,omitempty"` - // ExternalLoadBalancers define loadbalancers that should be attached to the instancegroup - ExternalLoadBalancers []LoadBalancer `json:"externalLoadBalancers,omitempty"` - // DetailedInstanceMonitoring defines if detailed-monitoring is enabled (AWS only) - DetailedInstanceMonitoring *bool `json:"detailedInstanceMonitoring,omitempty"` - // IAMProfileSpec defines the identity of the cloud group IAM profile (AWS only). - IAM *IAMProfileSpec `json:"iam,omitempty"` - // SecurityGroupOverride overrides the default security group created by Kops for this IG (AWS only). - SecurityGroupOverride *string `json:"securityGroupOverride,omitempty"` - // InstanceProtection makes new instances in an autoscaling group protected from scale in - InstanceProtection *bool `json:"instanceProtection,omitempty"` - // SysctlParameters will configure kernel parameters using sysctl(8). When - // specified, each parameter must follow the form variable=value, the way - // it would appear in sysctl.conf. - SysctlParameters []string `json:"sysctlParameters,omitempty"` - // RollingUpdate defines the rolling-update behavior - RollingUpdate *RollingUpdate `json:"rollingUpdate,omitempty"` -} - -const ( - // SpotAllocationStrategyLowestPrices indicates a lowest-price strategy - SpotAllocationStrategyLowestPrices = "lowest-price" - // SpotAllocationStrategyDiversified indicates a diversified strategy - SpotAllocationStrategyDiversified = "diversified" - // SpotAllocationStrategyCapacityOptimized indicates a capacity optimized strategy - SpotAllocationStrategyCapacityOptimized = "capacity-optimized" -) - -// SpotAllocationStrategies is a collection of supported strategies -var SpotAllocationStrategies = []string{SpotAllocationStrategyLowestPrices, SpotAllocationStrategyDiversified, SpotAllocationStrategyCapacityOptimized} - -// MixedInstancesPolicySpec defines the specification for an autoscaling backed by a ec2 fleet -type MixedInstancesPolicySpec struct { - // Instances is a list of instance types which we are willing to run in the EC2 fleet - Instances []string `json:"instances,omitempty"` - // OnDemandAllocationStrategy indicates how to allocate instance types to fulfill On-Demand capacity - OnDemandAllocationStrategy *string `json:"onDemandAllocationStrategy,omitempty"` - // OnDemandBase is the minimum amount of the Auto Scaling group's capacity that must be - // fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales. - OnDemandBase *int64 `json:"onDemandBase,omitempty"` - // OnDemandAboveBase controls the percentages of On-Demand Instances and Spot Instances for your - // additional capacity beyond OnDemandBase. The range is 0–100. The default value is 100. If you - // leave this parameter set to 100, the percentages are 100% for On-Demand Instances and 0% for - // Spot Instances. - OnDemandAboveBase *int64 `json:"onDemandAboveBase,omitempty"` - // SpotAllocationStrategy diversifies your Spot capacity across multiple instance types to - // find the best pricing. Higher Spot availability may result from a larger number of - // instance types to choose from. - SpotAllocationStrategy *string `json:"spotAllocationStrategy,omitempty"` - // SpotInstancePools is the number of Spot pools to use to allocate your Spot capacity (defaults to 2) - // pools are determined from the different instance types in the Overrides array of LaunchTemplate - SpotInstancePools *int64 `json:"spotInstancePools,omitempty"` -} - -// IAMProfileSpec is the AWS IAM Profile to attach to instances in this instance -// group. Specify the ARN for the IAM instance profile (AWS only). -type IAMProfileSpec struct { - // Profile of the cloud group IAM profile. In aws this is the arn - // for the iam instance profile - Profile *string `json:"profile,omitempty"` -} - -// UserData defines a user-data section -type UserData struct { - // Name is the name of the user-data - Name string `json:"name,omitempty"` - // Type is the type of user-data - Type string `json:"type,omitempty"` - // Content is the user-data content - Content string `json:"content,omitempty"` -} - -// VolumeSpec defined the spec for an additional volume attached to the instance group -type VolumeSpec struct { - // DeleteOnTermination configures volume retention policy upon instance termination. - // The volume is deleted by default. Cluster deletion does not remove retained volumes. - // NOTE: This setting applies only to the Launch Configuration and does not affect Launch Templates. - DeleteOnTermination *bool `json:"deleteOnTermination,omitempty"` - // Device is an optional device name of the block device - Device string `json:"device,omitempty"` - // Encrypted indicates you want to encrypt the volume - Encrypted *bool `json:"encrypted,omitempty"` - // Iops is the provision iops for this iops (think io1 in aws) - Iops *int64 `json:"iops,omitempty"` - // Size is the size of the volume in GB - Size int64 `json:"size,omitempty"` - // Type is the type of volume to create and is cloud specific - Type string `json:"type,omitempty"` -} - -// VolumeMountSpec defines the specification for mounting a device -type VolumeMountSpec struct { - // Device is the device name to provision and mount - Device string `json:"device,omitempty"` - // Filesystem is the filesystem to mount - Filesystem string `json:"filesystem,omitempty"` - // FormatOptions is a collection of options passed when formatting the device - FormatOptions []string `json:"formatOptions,omitempty"` - // MountOptions is a collection of mount options - MountOptions []string `json:"mountOptions,omitempty"` - // Path is the location to mount the device - Path string `json:"path,omitempty"` -} - -// Ext4FileSystemSpec defines a specification for a ext4 filesystem on a instancegroup volume -type Ext4FileSystemSpec struct{} - -// LoadBalancer defines a load balancer -type LoadBalancer struct { - // LoadBalancerName to associate with this instance group (AWS ELB) - LoadBalancerName *string `json:"loadBalancerName,omitempty"` - // TargetGroupARN to associate with this instance group (AWS ALB/NLB) - TargetGroupARN *string `json:"targetGroupArn,omitempty"` -} diff --git a/pkg/apis/kops/v1alpha1/networking.go b/pkg/apis/kops/v1alpha1/networking.go deleted file mode 100644 index f83a7d7f46..0000000000 --- a/pkg/apis/kops/v1alpha1/networking.go +++ /dev/null @@ -1,439 +0,0 @@ -/* -Copyright 2019 The Kubernetes Authors. - -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. -*/ - -package v1alpha1 - -import "k8s.io/apimachinery/pkg/api/resource" - -// NetworkingSpec allows selection and configuration of a networking plugin -type NetworkingSpec struct { - Classic *ClassicNetworkingSpec `json:"classic,omitempty"` - Kubenet *KubenetNetworkingSpec `json:"kubenet,omitempty"` - External *ExternalNetworkingSpec `json:"external,omitempty"` - CNI *CNINetworkingSpec `json:"cni,omitempty"` - Kopeio *KopeioNetworkingSpec `json:"kopeio,omitempty"` - Weave *WeaveNetworkingSpec `json:"weave,omitempty"` - Flannel *FlannelNetworkingSpec `json:"flannel,omitempty"` - Calico *CalicoNetworkingSpec `json:"calico,omitempty"` - Canal *CanalNetworkingSpec `json:"canal,omitempty"` - Kuberouter *KuberouterNetworkingSpec `json:"kuberouter,omitempty"` - Romana *RomanaNetworkingSpec `json:"romana,omitempty"` - AmazonVPC *AmazonVPCNetworkingSpec `json:"amazonvpc,omitempty"` - Cilium *CiliumNetworkingSpec `json:"cilium,omitempty"` - LyftVPC *LyftVPCNetworkingSpec `json:"lyftvpc,omitempty"` - GCE *GCENetworkingSpec `json:"gce,omitempty"` -} - -// ClassicNetworkingSpec is the specification of classic networking mode, integrated into kubernetes -type ClassicNetworkingSpec struct { -} - -// KubenetNetworkingSpec is the specification for kubenet networking, largely integrated but intended to replace classic -type KubenetNetworkingSpec struct { -} - -// ExternalNetworkingSpec is the specification for networking that is implemented by a Daemonset -// It also uses kubenet -type ExternalNetworkingSpec struct { -} - -// CNINetworkingSpec is the specification for networking that is implemented by a Daemonset -// Networking is not managed by kops - we can create options here that directly configure e.g. weave -// but this is useful for arbitrary network modes or for modes that don't need additional configuration. -type CNINetworkingSpec struct { - UsesSecondaryIP bool `json:"usesSecondaryIP,omitempty"` -} - -// KopeioNetworkingSpec declares that we want Kopeio networking -type KopeioNetworkingSpec struct { -} - -// WeaveNetworkingSpec declares that we want Weave networking -type WeaveNetworkingSpec struct { - MTU *int32 `json:"mtu,omitempty"` - ConnLimit *int32 `json:"connLimit,omitempty"` - NoMasqLocal *int32 `json:"noMasqLocal,omitempty"` - - // MemoryRequest memory request of weave container. Default 200Mi - MemoryRequest *resource.Quantity `json:"memoryRequest,omitempty"` - // CPURequest CPU request of weave container. Default 50m - CPURequest *resource.Quantity `json:"cpuRequest,omitempty"` - // MemoryLimit memory limit of weave container. Default 200Mi - MemoryLimit *resource.Quantity `json:"memoryLimit,omitempty"` - // CPULimit CPU limit of weave container. - CPULimit *resource.Quantity `json:"cpuLimit,omitempty"` - // NetExtraArgs are extra arguments that are passed to weave-kube. - NetExtraArgs string `json:"netExtraArgs,omitempty"` - - // NPCMemoryRequest memory request of weave npc container. Default 200Mi - NPCMemoryRequest *resource.Quantity `json:"npcMemoryRequest,omitempty"` - // NPCCPURequest CPU request of weave npc container. Default 50m - NPCCPURequest *resource.Quantity `json:"npcCPURequest,omitempty"` - // NPCMemoryLimit memory limit of weave npc container. Default 200Mi - NPCMemoryLimit *resource.Quantity `json:"npcMemoryLimit,omitempty"` - // NPCCPULimit CPU limit of weave npc container - NPCCPULimit *resource.Quantity `json:"npcCPULimit,omitempty"` - // NPCExtraArgs are extra arguments that are passed to weave-npc. - NPCExtraArgs string `json:"npcExtraArgs,omitempty"` -} - -// FlannelNetworkingSpec declares that we want Flannel networking -type FlannelNetworkingSpec struct { - // Backend is the backend overlay type we want to use (vxlan or udp) - Backend string `json:"backend,omitempty"` - // IptablesResyncSeconds sets resync period for iptables rules, in seconds - IptablesResyncSeconds *int32 `json:"iptablesResyncSeconds,omitempty"` -} - -// CalicoNetworkingSpec declares that we want Calico networking -type CalicoNetworkingSpec struct { - CrossSubnet bool `json:"crossSubnet,omitempty"` // Enables Calico's cross-subnet mode when set to true - // LogSeverityScreen lets us set the desired log level. (Default: info) - LogSeverityScreen string `json:"logSeverityScreen,omitempty"` - // MTU to be set in the cni-network-config for calico. - MTU *int32 `json:"mtu,omitempty"` - // PrometheusMetricsEnabled can be set to enable the experimental Prometheus - // metrics server (default: false) - PrometheusMetricsEnabled bool `json:"prometheusMetricsEnabled,omitempty"` - // PrometheusMetricsPort is the TCP port that the experimental Prometheus - // metrics server should bind to (default: 9091) - PrometheusMetricsPort int32 `json:"prometheusMetricsPort,omitempty"` - // PrometheusGoMetricsEnabled enables Prometheus Go runtime metrics collection - PrometheusGoMetricsEnabled bool `json:"prometheusGoMetricsEnabled,omitempty"` - // PrometheusProcessMetricsEnabled enables Prometheus process metrics collection - PrometheusProcessMetricsEnabled bool `json:"prometheusProcessMetricsEnabled,omitempty"` - // MajorVersion is the version of Calico to use - MajorVersion string `json:"majorVersion,omitempty"` - // IptablesBackend controls which variant of iptables binary Felix uses - // Default: Auto (other options: Legacy, NFT) - IptablesBackend string `json:"iptablesBackend,omitempty"` - // IPIPMode is mode for CALICO_IPV4POOL_IPIP - IPIPMode string `json:"ipipMode,omitempty"` - // TyphaPrometheusMetricsEnabled enables Prometheus metrics collection from Typha - // (default: false) - TyphaPrometheusMetricsEnabled bool `json:"typhaPrometheusMetricsEnabled,omitempty"` - // TyphaPrometheusMetricsPort is the TCP port the typha Prometheus metrics server - // should bind to (default: 9093) - TyphaPrometheusMetricsPort int32 `json:"typhaPrometheusMetricsPort,omitempty"` - // TyphaReplicas is the number of replicas of Typha to deploy - TyphaReplicas int32 `json:"typhaReplicas,omitempty"` -} - -// CanalNetworkingSpec declares that we want Canal networking -type CanalNetworkingSpec struct { - // ChainInsertMode controls whether Felix inserts rules to the top of iptables chains, or - // appends to the bottom. Leaving the default option is safest to prevent accidentally - // breaking connectivity. Default: 'insert' (other options: 'append') - ChainInsertMode string `json:"chainInsertMode,omitempty"` - // DefaultEndpointToHostAction allows users to configure the default behaviour - // for traffic between pod to host after calico rules have been processed. - // Default: ACCEPT (other options: DROP, RETURN) - DefaultEndpointToHostAction string `json:"defaultEndpointToHostAction,omitempty"` - // DisableFlannelForwardRules configures Flannel to NOT add the - // default ACCEPT traffic rules to the iptables FORWARD chain - DisableFlannelForwardRules bool `json:"disableFlannelForwardRules,omitempty"` - // IptablesBackend controls which variant of iptables binary Felix uses - // Default: Auto (other options: Legacy, NFT) - IptablesBackend string `json:"iptablesBackend,omitempty"` - // LogSeveritySys the severity to set for logs which are sent to syslog - // Default: INFO (other options: DEBUG, WARNING, ERROR, CRITICAL, NONE) - LogSeveritySys string `json:"logSeveritySys,omitempty"` - // MTU to be set in the cni-network-config (default: 1500) - MTU *int32 `json:"mtu,omitempty"` - // PrometheusGoMetricsEnabled enables Prometheus Go runtime metrics collection - PrometheusGoMetricsEnabled bool `json:"prometheusGoMetricsEnabled,omitempty"` - // PrometheusMetricsEnabled can be set to enable the experimental Prometheus - // metrics server (default: false) - PrometheusMetricsEnabled bool `json:"prometheusMetricsEnabled,omitempty"` - // PrometheusMetricsPort is the TCP port that the experimental Prometheus - // metrics server should bind to (default: 9091) - PrometheusMetricsPort int32 `json:"prometheusMetricsPort,omitempty"` - // PrometheusProcessMetricsEnabled enables Prometheus process metrics collection - PrometheusProcessMetricsEnabled bool `json:"prometheusProcessMetricsEnabled,omitempty"` - // TyphaPrometheusMetricsEnabled enables Prometheus metrics collection from Typha - // (default: false) - TyphaPrometheusMetricsEnabled bool `json:"typhaPrometheusMetricsEnabled,omitempty"` - // TyphaPrometheusMetricsPort is the TCP port the typha Prometheus metrics server - // should bind to (default: 9093) - TyphaPrometheusMetricsPort int32 `json:"typhaPrometheusMetricsPort,omitempty"` - // TyphaReplicas is the number of replicas of Typha to deploy - TyphaReplicas int32 `json:"typhaReplicas,omitempty"` -} - -// KuberouterNetworkingSpec declares that we want Kube-router networking -type KuberouterNetworkingSpec struct { -} - -// RomanaNetworkingSpec declares that we want Romana networking -type RomanaNetworkingSpec struct { - // DaemonServiceIP is the Kubernetes Service IP for the romana-daemon pod - DaemonServiceIP string `json:"daemonServiceIP,omitempty"` - // EtcdServiceIP is the Kubernetes Service IP for the etcd backend used by Romana - EtcdServiceIP string `json:"etcdServiceIP,omitempty"` -} - -// AmazonVPCNetworkingSpec declares that we want Amazon VPC CNI networking -type AmazonVPCNetworkingSpec struct { - // The container image name to use - ImageName string `json:"imageName,omitempty"` - // Env is a list of environment variables to set in the container. - Env []EnvVar `json:"env,omitempty"` -} - -// CiliumNetworkingSpec declares that we want Cilium networking -type CiliumNetworkingSpec struct { - // Version is the version of the Cilium agent and the Cilium Operator. - Version string `json:"version,omitempty"` - - // AccessLog is not implemented and may be removed in the future. - // Setting this has no effect. - AccessLog string `json:"accessLog,omitempty"` - // AgentLabels is not implemented and may be removed in the future. - // Setting this has no effect. - AgentLabels []string `json:"agentLabels,omitempty"` - // AgentPrometheusPort is the port to listen to for Prometheus metrics. - // Defaults to 9090. - AgentPrometheusPort int `json:"agentPrometheusPort,omitempty"` - // AllowLocalhost is not implemented and may be removed in the future. - // Setting this has no effect. - AllowLocalhost string `json:"allowLocalhost,omitempty"` - // AutoIpv6NodeRoutes is not implemented and may be removed in the future. - // Setting this has no effect. - AutoIpv6NodeRoutes bool `json:"autoIpv6NodeRoutes,omitempty"` - // BPFRoot is not implemented and may be removed in the future. - // Setting this has no effect. - BPFRoot string `json:"bpfRoot,omitempty"` - // ContainerRuntime is not implemented and may be removed in the future. - // Setting this has no effect. - ContainerRuntime []string `json:"containerRuntime,omitempty"` - // ContainerRuntimeEndpoint is not implemented and may be removed in the future. - // Setting this has no effect. - ContainerRuntimeEndpoint map[string]string `json:"containerRuntimeEndpoint,omitempty"` - // Debug runs Cilium in debug mode. - Debug bool `json:"debug,omitempty"` - // DebugVerbose is not implemented and may be removed in the future. - // Setting this has no effect. - DebugVerbose []string `json:"debugVerbose,omitempty"` - // Device is not implemented and may be removed in the future. - // Setting this has no effect. - Device string `json:"device,omitempty"` - // DisableConntrack is not implemented and may be removed in the future. - // Setting this has no effect. - DisableConntrack bool `json:"disableConntrack,omitempty"` - // DisableIpv4 is deprecated: Use EnableIpv4 instead. - // Setting this flag has no effect. - DisableIpv4 bool `json:"disableIpv4,omitempty"` - // DisableK8sServices is not implemented and may be removed in the future. - // Setting this has no effect. - DisableK8sServices bool `json:"disableK8sServices,omitempty"` - // EnablePolicy specifies the policy enforcement mode. - // "default": Follows Kubernetes policy enforcement. - // "always": Cilium restricts all traffic if no policy is in place. - // "never": Cilium allows all traffic regardless of policies in place. - // If unspecified, "default" policy mode will be used. - EnablePolicy string `json:"enablePolicy,omitempty"` - // EnableTracing is not implemented and may be removed in the future. - // Setting this has no effect. - EnableTracing bool `json:"enableTracing,omitempty"` - // EnablePrometheusMetrics enables the Cilium "/metrics" endpoint for both the agent and the operator. - EnablePrometheusMetrics bool `json:"enablePrometheusMetrics,omitempty"` - // EnvoyLog is not implemented and may be removed in the future. - // Setting this has no effect. - EnvoyLog string `json:"envoyLog,omitempty"` - // Ipv4ClusterCIDRMaskSize is not implemented and may be removed in the future. - // Setting this has no effect. - Ipv4ClusterCIDRMaskSize int `json:"ipv4ClusterCidrMaskSize,omitempty"` - // Ipv4Node is not implemented and may be removed in the future. - // Setting this has no effect. - Ipv4Node string `json:"ipv4Node,omitempty"` - // Ipv4Range is not implemented and may be removed in the future. - // Setting this has no effect. - Ipv4Range string `json:"ipv4Range,omitempty"` - // Ipv4ServiceRange is not implemented and may be removed in the future. - // Setting this has no effect. - Ipv4ServiceRange string `json:"ipv4ServiceRange,omitempty"` - // Ipv6ClusterAllocCidr is not implemented and may be removed in the future. - // Setting this has no effect. - Ipv6ClusterAllocCidr string `json:"ipv6ClusterAllocCidr,omitempty"` - // Ipv6Node is not implemented and may be removed in the future. - // Setting this has no effect. - Ipv6Node string `json:"ipv6Node,omitempty"` - // Ipv6Range is not implemented and may be removed in the future. - // Setting this has no effect. - Ipv6Range string `json:"ipv6Range,omitempty"` - // Ipv6ServiceRange is not implemented and may be removed in the future. - // Setting this has no effect. - Ipv6ServiceRange string `json:"ipv6ServiceRange,omitempty"` - // K8sAPIServer is not implemented and may be removed in the future. - // Setting this has no effect. - K8sAPIServer string `json:"k8sApiServer,omitempty"` - // K8sKubeconfigPath is not implemented and may be removed in the future. - // Setting this has no effect. - K8sKubeconfigPath string `json:"k8sKubeconfigPath,omitempty"` - // KeepBPFTemplates is not implemented and may be removed in the future. - // Setting this has no effect. - KeepBPFTemplates bool `json:"keepBpfTemplates,omitempty"` - // KeepConfig is not implemented and may be removed in the future. - // Setting this has no effect. - KeepConfig bool `json:"keepConfig,omitempty"` - // LabelPrefixFile is not implemented and may be removed in the future. - // Setting this has currently no effect - LabelPrefixFile string `json:"labelPrefixFile,omitempty"` - // Labels is not implemented and may be removed in the future. - // Setting this has no effect. - Labels []string `json:"labels,omitempty"` - // LB is not implemented and may be removed in the future. - // Setting this has no effect. - LB string `json:"lb,omitempty"` - // LibDir is not implemented and may be removed in the future. - // Setting this has no effect. - LibDir string `json:"libDir,omitempty"` - // LogDrivers is not implemented and may be removed in the future. - // Setting this has no effect. - LogDrivers []string `json:"logDriver,omitempty"` - // LogOpt is not implemented and may be removed in the future. - // Setting this has no effect. - LogOpt map[string]string `json:"logOpt,omitempty"` - // Logstash is not implemented and may be removed in the future. - // Setting this has no effect. - Logstash bool `json:"logstash,omitempty"` - // LogstashAgent is not implemented and may be removed in the future. - // Setting this has no effect. - LogstashAgent string `json:"logstashAgent,omitempty"` - // LogstashProbeTimer is not implemented and may be removed in the future. - // Setting this has no effect. - LogstashProbeTimer uint32 `json:"logstashProbeTimer,omitempty"` - // DisableMasquerade disables masquerading traffic to external destinations behind the node IP. - DisableMasquerade bool `json:"disableMasquerade,omitempty"` - // Nat6Range is not implemented and may be removed in the future. - // Setting this has no effect. - Nat46Range string `json:"nat46Range,omitempty"` - // Pprof is not implemented and may be removed in the future. - // Setting this has no effect. - Pprof bool `json:"pprof,omitempty"` - // PrefilterDevice is not implemented and may be removed in the future. - // Setting this has no effect. - PrefilterDevice string `json:"prefilterDevice,omitempty"` - // PrometheusServeAddr is deprecated. Use EnablePrometheusMetrics and AgentPrometheusPort instead. - // Setting this has no effect. - PrometheusServeAddr string `json:"prometheusServeAddr,omitempty"` - // Restore is not implemented and may be removed in the future. - // Setting this has no effect. - Restore bool `json:"restore,omitempty"` - // SingleClusterRoute is not implemented and may be removed in the future. - // Setting this has no effect. - SingleClusterRoute bool `json:"singleClusterRoute,omitempty"` - // SocketPath is not implemented and may be removed in the future. - // Setting this has no effect. - SocketPath string `json:"socketPath,omitempty"` - // StateDir is not implemented and may be removed in the future. - // Setting this has no effect. - StateDir string `json:"stateDir,omitempty"` - // TracePayloadLen is not implemented and may be removed in the future. - // Setting this has no effect. - TracePayloadLen int `json:"tracePayloadlen,omitempty"` - // Tunnel specifies the Cilium tunelling mode. Possible values are "vxlan", "geneve", or "disabled". - // Default: vxlan - Tunnel string `json:"tunnel,omitempty"` - // EnableIpv6 enables cluster IPv6 traffic. If both EnableIpv6 and EnableIpv4 are set to false - // then IPv4 will be enabled. - // Default: false - EnableIpv6 bool `json:"enableipv6"` - // EnableIpv4 enables cluster IPv4 traffic. If both EnableIpv6 and EnableIpv4 are set to false - // then IPv4 will be enabled. - // Default: false - EnableIpv4 bool `json:"enableipv4"` - // MonitorAggregation sets the level of packet monitoring. Possible values are "low", "medium", or "maximum". - // Default: medium - MonitorAggregation string `json:"monitorAggregation"` - // BPFCTGlobalTCPMax is the maximum number of entries in the TCP CT table. - // Default: 524288 - BPFCTGlobalTCPMax int `json:"bpfCTGlobalTCPMax"` - // BPFCTGlobalAnyMax is the maximum number of entries in the non-TCP CT table. - // Default: 262144 - BPFCTGlobalAnyMax int `json:"bpfCTGlobalAnyMax"` - // PreallocateBPFMaps reduces the per-packet latency at the expense of up-front memory allocation. - // Default: true - PreallocateBPFMaps bool `json:"preallocateBPFMaps"` - // SidecarIstioProxyImage is the regular expression matching compatible Istio sidecar istio-proxy - // container image names. - // Default: cilium/istio_proxy - SidecarIstioProxyImage string `json:"sidecarIstioProxyImage"` - // ClusterName is the name of the cluster. It is only relevant when building a mesh of clusters. - ClusterName string `json:"clusterName"` - // ToFqdnsDNSRejectResponseCode sets the DNS response code for rejecting DNS requests. - // Possible values are "nameError" or "refused". - // Default: refused - ToFqdnsDNSRejectResponseCode string `json:"toFqdnsDnsRejectResponseCode,omitempty"` - // ToFqdnsEnablePoller replaces the DNS proxy-based implementation of FQDN policies - // with the less powerful legacy implementation. - // Default: false - ToFqdnsEnablePoller bool `json:"toFqdnsEnablePoller"` - // ContainerRuntimeLabels enables fetching of container-runtime labels from the specified container runtime and associating them with endpoints. - // Supported values are: "none", "containerd", "crio", "docker", "auto" - // As of Cilium 1.7.0, Cilium no longer fetches information from the - // container runtime and this field is ignored. - // Default: none - ContainerRuntimeLabels string `json:"containerRuntimeLabels,omitempty"` - // Ipam specifies the IP address allocation mode to use. - // Possible values are "crd" and "eni". - // "eni" will use AWS native networking for pods. Eni requires masquerade to be set to false. - // "crd" will use CRDs for controlling IP address management. - // Empty value will use host-scope address management. - Ipam string `json:"ipam,omitempty"` - // IPTablesRulesNoinstall disables installing the base IPTables rules used for masquerading and kube-proxy. - // Default: false - IPTablesRulesNoinstall bool `json:"IPTablesRulesNoinstall"` - // AutoDirectNodeRoutes adds automatic L2 routing between nodes. - // Default: false - AutoDirectNodeRoutes bool `json:"autoDirectNodeRoutes"` - // EnableNodePort replaces kube-proxy with Cilium's BPF implementation. - // Requires spec.kubeProxy.enabled be set to false. - // Default: false - EnableNodePort bool `json:"enableNodePort"` - // EtcdManagd installs an additional etcd cluster that is used for Cilium state change. - // The cluster is operated by cilium-etcd-operator. - // Default: false - EtcdManaged bool `json:"etcdManaged,omitempty"` - // EnableRemoteNodeIdentity enables the remote-node-identity added in Cilium 1.7.0. - // Default: false - EnableRemoteNodeIdentity bool `json:"enableRemoteNodeIdentity"` - - // RemoveCbrBridge is not implemented and may be removed in the future. - // Setting this has no effect. - RemoveCbrBridge bool `json:"removeCbrBridge"` - // RestartPods is not implemented and may be removed in the future. - // Setting this has no effect. - RestartPods bool `json:"restartPods"` - // ReconfigureKubelet is not implemented and may be removed in the future. - // Setting this has no effect. - ReconfigureKubelet bool `json:"reconfigureKubelet"` - // NodeInitBootstrapFile is not implemented and may be removed in the future. - // Setting this has no effect. - NodeInitBootstrapFile string `json:"nodeInitBootstrapFile"` - // CniBinPath is not implemented and may be removed in the future. - // Setting this has no effect. - CniBinPath string `json:"cniBinPath"` -} - -// LyftIpVlanNetworkingSpec declares that we want to use the cni-ipvlan-vpc-k8s CNI networking -type LyftVPCNetworkingSpec struct { - SubnetTags map[string]string `json:"subnetTags,omitempty"` -} - -// GCENetworkingSpec is the specification of GCE's native networking mode, using IP aliases -type GCENetworkingSpec struct { -} diff --git a/pkg/apis/kops/v1alpha1/register.go b/pkg/apis/kops/v1alpha1/register.go deleted file mode 100644 index bae9851321..0000000000 --- a/pkg/apis/kops/v1alpha1/register.go +++ /dev/null @@ -1,102 +0,0 @@ -/* -Copyright 2019 The Kubernetes Authors. - -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. -*/ - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" -) - -var ( - SchemeBuilder runtime.SchemeBuilder - localSchemeBuilder = &SchemeBuilder - AddToScheme = localSchemeBuilder.AddToScheme -) - -func init() { - // We only register manually written functions here. The registration of the - // generated functions takes place in the generated files. The separation - // makes the code compile even when the generated files are missing. - localSchemeBuilder.Register(addKnownTypes, addDefaultingFuncs, addConversionFuncs) -} - -// GroupName is the group name use in this package -const GroupName = "kops.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} - -//// Kind takes an unqualified kind and returns a Group qualified GroupKind -//func Kind(kind string) schema.GroupKind { -// return SchemeGroupVersion.WithKind(kind).GroupKind() -//} -// -//// Resource takes an unqualified resource and returns a Group qualified GroupResource -//func Resource(resource string) schema.GroupResource { -// return SchemeGroupVersion.WithResource(resource).GroupResource() -//} - -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Cluster{}, - &ClusterList{}, - &InstanceGroup{}, - &InstanceGroupList{}, - &SSHCredential{}, - &SSHCredentialList{}, - ) - - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - - return nil -} - -func (obj *Cluster) GetObjectKind() schema.ObjectKind { - return &obj.TypeMeta -} -func (obj *InstanceGroup) GetObjectKind() schema.ObjectKind { - return &obj.TypeMeta -} -func (obj *SSHCredential) GetObjectKind() schema.ObjectKind { - return &obj.TypeMeta -} - -func addConversionFuncs(scheme *runtime.Scheme) error { - // Add non-generated conversion functions - err := scheme.AddConversionFuncs( - Convert_v1alpha1_BastionSpec_To_kops_BastionSpec, - Convert_kops_BastionSpec_To_v1alpha1_BastionSpec, - - Convert_v1alpha1_ClusterSpec_To_kops_ClusterSpec, - Convert_kops_ClusterSpec_To_v1alpha1_ClusterSpec, - - Convert_v1alpha1_EtcdMemberSpec_To_kops_EtcdMemberSpec, - Convert_kops_EtcdMemberSpec_To_v1alpha1_EtcdMemberSpec, - - Convert_v1alpha1_InstanceGroupSpec_To_kops_InstanceGroupSpec, - Convert_kops_InstanceGroupSpec_To_v1alpha1_InstanceGroupSpec, - - Convert_v1alpha1_TopologySpec_To_kops_TopologySpec, - Convert_kops_TopologySpec_To_v1alpha1_TopologySpec, - ) - if err != nil { - return err - } - - return nil -} diff --git a/pkg/apis/kops/v1alpha1/sshcredential.go b/pkg/apis/kops/v1alpha1/sshcredential.go deleted file mode 100644 index 225f6be711..0000000000 --- a/pkg/apis/kops/v1alpha1/sshcredential.go +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright 2019 The Kubernetes Authors. - -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. -*/ - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// SSHCredential represent a set of kops secrets -type SSHCredential struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec SSHCredentialSpec `json:"spec,omitempty"` -} - -type SSHCredentialSpec struct { - PublicKey string `json:"publicKey,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type SSHCredentialList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - - Items []SSHCredential `json:"items"` -} diff --git a/pkg/apis/kops/v1alpha1/topology.go b/pkg/apis/kops/v1alpha1/topology.go deleted file mode 100644 index 3c52fab8b7..0000000000 --- a/pkg/apis/kops/v1alpha1/topology.go +++ /dev/null @@ -1,52 +0,0 @@ -/* -Copyright 2019 The Kubernetes Authors. - -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. -*/ - -package v1alpha1 - -const ( - TopologyPublic = "public" - TopologyPrivate = "private" -) - -// +k8s:conversion-gen=false -type TopologySpec struct { - // The environment to launch the Kubernetes masters in public|private - Masters string `json:"masters,omitempty"` - - // The environment to launch the Kubernetes nodes in public|private - Nodes string `json:"nodes,omitempty"` - - // Bastion provide an external facing point of entry into a network - // containing private network instances. This host can provide a single - // point of fortification or audit and can be started and stopped to enable - // or disable inbound SSH communication from the Internet, some call bastion - // as the "jump server". - Bastion *BastionSpec `json:"bastion,omitempty"` - - // DNS configures options relating to DNS, in particular whether we use a public or a private hosted zone - DNS *DNSSpec `json:"dns,omitempty"` -} - -type DNSSpec struct { - Type DNSType `json:"type,omitempty"` -} - -type DNSType string - -const ( - DNSTypePublic DNSType = "Public" - DNSTypePrivate DNSType = "Private" -) diff --git a/pkg/apis/kops/v1alpha1/zz_generated.conversion.go b/pkg/apis/kops/v1alpha1/zz_generated.conversion.go deleted file mode 100644 index 1ce25da89e..0000000000 --- a/pkg/apis/kops/v1alpha1/zz_generated.conversion.go +++ /dev/null @@ -1,5063 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by conversion-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - conversion "k8s.io/apimachinery/pkg/conversion" - runtime "k8s.io/apimachinery/pkg/runtime" - kops "k8s.io/kops/pkg/apis/kops" -) - -func init() { - localSchemeBuilder.Register(RegisterConversions) -} - -// RegisterConversions adds conversion functions to the given scheme. -// Public to allow building arbitrary schemes. -func RegisterConversions(s *runtime.Scheme) error { - if err := s.AddGeneratedConversionFunc((*AccessSpec)(nil), (*kops.AccessSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_AccessSpec_To_kops_AccessSpec(a.(*AccessSpec), b.(*kops.AccessSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.AccessSpec)(nil), (*AccessSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_AccessSpec_To_v1alpha1_AccessSpec(a.(*kops.AccessSpec), b.(*AccessSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AddonSpec)(nil), (*kops.AddonSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_AddonSpec_To_kops_AddonSpec(a.(*AddonSpec), b.(*kops.AddonSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.AddonSpec)(nil), (*AddonSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_AddonSpec_To_v1alpha1_AddonSpec(a.(*kops.AddonSpec), b.(*AddonSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AlwaysAllowAuthorizationSpec)(nil), (*kops.AlwaysAllowAuthorizationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_AlwaysAllowAuthorizationSpec_To_kops_AlwaysAllowAuthorizationSpec(a.(*AlwaysAllowAuthorizationSpec), b.(*kops.AlwaysAllowAuthorizationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.AlwaysAllowAuthorizationSpec)(nil), (*AlwaysAllowAuthorizationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_AlwaysAllowAuthorizationSpec_To_v1alpha1_AlwaysAllowAuthorizationSpec(a.(*kops.AlwaysAllowAuthorizationSpec), b.(*AlwaysAllowAuthorizationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AmazonVPCNetworkingSpec)(nil), (*kops.AmazonVPCNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_AmazonVPCNetworkingSpec_To_kops_AmazonVPCNetworkingSpec(a.(*AmazonVPCNetworkingSpec), b.(*kops.AmazonVPCNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.AmazonVPCNetworkingSpec)(nil), (*AmazonVPCNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_AmazonVPCNetworkingSpec_To_v1alpha1_AmazonVPCNetworkingSpec(a.(*kops.AmazonVPCNetworkingSpec), b.(*AmazonVPCNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*Assets)(nil), (*kops.Assets)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_Assets_To_kops_Assets(a.(*Assets), b.(*kops.Assets), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.Assets)(nil), (*Assets)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_Assets_To_v1alpha1_Assets(a.(*kops.Assets), b.(*Assets), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AuthenticationSpec)(nil), (*kops.AuthenticationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_AuthenticationSpec_To_kops_AuthenticationSpec(a.(*AuthenticationSpec), b.(*kops.AuthenticationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.AuthenticationSpec)(nil), (*AuthenticationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_AuthenticationSpec_To_v1alpha1_AuthenticationSpec(a.(*kops.AuthenticationSpec), b.(*AuthenticationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AuthorizationSpec)(nil), (*kops.AuthorizationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_AuthorizationSpec_To_kops_AuthorizationSpec(a.(*AuthorizationSpec), b.(*kops.AuthorizationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.AuthorizationSpec)(nil), (*AuthorizationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_AuthorizationSpec_To_v1alpha1_AuthorizationSpec(a.(*kops.AuthorizationSpec), b.(*AuthorizationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*AwsAuthenticationSpec)(nil), (*kops.AwsAuthenticationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_AwsAuthenticationSpec_To_kops_AwsAuthenticationSpec(a.(*AwsAuthenticationSpec), b.(*kops.AwsAuthenticationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.AwsAuthenticationSpec)(nil), (*AwsAuthenticationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_AwsAuthenticationSpec_To_v1alpha1_AwsAuthenticationSpec(a.(*kops.AwsAuthenticationSpec), b.(*AwsAuthenticationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*CNINetworkingSpec)(nil), (*kops.CNINetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_CNINetworkingSpec_To_kops_CNINetworkingSpec(a.(*CNINetworkingSpec), b.(*kops.CNINetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.CNINetworkingSpec)(nil), (*CNINetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_CNINetworkingSpec_To_v1alpha1_CNINetworkingSpec(a.(*kops.CNINetworkingSpec), b.(*CNINetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*CalicoNetworkingSpec)(nil), (*kops.CalicoNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_CalicoNetworkingSpec_To_kops_CalicoNetworkingSpec(a.(*CalicoNetworkingSpec), b.(*kops.CalicoNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.CalicoNetworkingSpec)(nil), (*CalicoNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_CalicoNetworkingSpec_To_v1alpha1_CalicoNetworkingSpec(a.(*kops.CalicoNetworkingSpec), b.(*CalicoNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*CanalNetworkingSpec)(nil), (*kops.CanalNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_CanalNetworkingSpec_To_kops_CanalNetworkingSpec(a.(*CanalNetworkingSpec), b.(*kops.CanalNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.CanalNetworkingSpec)(nil), (*CanalNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_CanalNetworkingSpec_To_v1alpha1_CanalNetworkingSpec(a.(*kops.CanalNetworkingSpec), b.(*CanalNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*CiliumNetworkingSpec)(nil), (*kops.CiliumNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(a.(*CiliumNetworkingSpec), b.(*kops.CiliumNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.CiliumNetworkingSpec)(nil), (*CiliumNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_CiliumNetworkingSpec_To_v1alpha1_CiliumNetworkingSpec(a.(*kops.CiliumNetworkingSpec), b.(*CiliumNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ClassicNetworkingSpec)(nil), (*kops.ClassicNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_ClassicNetworkingSpec_To_kops_ClassicNetworkingSpec(a.(*ClassicNetworkingSpec), b.(*kops.ClassicNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.ClassicNetworkingSpec)(nil), (*ClassicNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_ClassicNetworkingSpec_To_v1alpha1_ClassicNetworkingSpec(a.(*kops.ClassicNetworkingSpec), b.(*ClassicNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*CloudConfiguration)(nil), (*kops.CloudConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_CloudConfiguration_To_kops_CloudConfiguration(a.(*CloudConfiguration), b.(*kops.CloudConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.CloudConfiguration)(nil), (*CloudConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_CloudConfiguration_To_v1alpha1_CloudConfiguration(a.(*kops.CloudConfiguration), b.(*CloudConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*CloudControllerManagerConfig)(nil), (*kops.CloudControllerManagerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_CloudControllerManagerConfig_To_kops_CloudControllerManagerConfig(a.(*CloudControllerManagerConfig), b.(*kops.CloudControllerManagerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.CloudControllerManagerConfig)(nil), (*CloudControllerManagerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_CloudControllerManagerConfig_To_v1alpha1_CloudControllerManagerConfig(a.(*kops.CloudControllerManagerConfig), b.(*CloudControllerManagerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*Cluster)(nil), (*kops.Cluster)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_Cluster_To_kops_Cluster(a.(*Cluster), b.(*kops.Cluster), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.Cluster)(nil), (*Cluster)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_Cluster_To_v1alpha1_Cluster(a.(*kops.Cluster), b.(*Cluster), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ClusterList)(nil), (*kops.ClusterList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_ClusterList_To_kops_ClusterList(a.(*ClusterList), b.(*kops.ClusterList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.ClusterList)(nil), (*ClusterList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_ClusterList_To_v1alpha1_ClusterList(a.(*kops.ClusterList), b.(*ClusterList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ClusterSpec)(nil), (*kops.ClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_ClusterSpec_To_kops_ClusterSpec(a.(*ClusterSpec), b.(*kops.ClusterSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.ClusterSpec)(nil), (*ClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_ClusterSpec_To_v1alpha1_ClusterSpec(a.(*kops.ClusterSpec), b.(*ClusterSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ContainerdConfig)(nil), (*kops.ContainerdConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_ContainerdConfig_To_kops_ContainerdConfig(a.(*ContainerdConfig), b.(*kops.ContainerdConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.ContainerdConfig)(nil), (*ContainerdConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_ContainerdConfig_To_v1alpha1_ContainerdConfig(a.(*kops.ContainerdConfig), b.(*ContainerdConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DNSAccessSpec)(nil), (*kops.DNSAccessSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_DNSAccessSpec_To_kops_DNSAccessSpec(a.(*DNSAccessSpec), b.(*kops.DNSAccessSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.DNSAccessSpec)(nil), (*DNSAccessSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_DNSAccessSpec_To_v1alpha1_DNSAccessSpec(a.(*kops.DNSAccessSpec), b.(*DNSAccessSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DNSControllerGossipConfig)(nil), (*kops.DNSControllerGossipConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_DNSControllerGossipConfig_To_kops_DNSControllerGossipConfig(a.(*DNSControllerGossipConfig), b.(*kops.DNSControllerGossipConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.DNSControllerGossipConfig)(nil), (*DNSControllerGossipConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_DNSControllerGossipConfig_To_v1alpha1_DNSControllerGossipConfig(a.(*kops.DNSControllerGossipConfig), b.(*DNSControllerGossipConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DNSSpec)(nil), (*kops.DNSSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_DNSSpec_To_kops_DNSSpec(a.(*DNSSpec), b.(*kops.DNSSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.DNSSpec)(nil), (*DNSSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_DNSSpec_To_v1alpha1_DNSSpec(a.(*kops.DNSSpec), b.(*DNSSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DockerConfig)(nil), (*kops.DockerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_DockerConfig_To_kops_DockerConfig(a.(*DockerConfig), b.(*kops.DockerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.DockerConfig)(nil), (*DockerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_DockerConfig_To_v1alpha1_DockerConfig(a.(*kops.DockerConfig), b.(*DockerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*EgressProxySpec)(nil), (*kops.EgressProxySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_EgressProxySpec_To_kops_EgressProxySpec(a.(*EgressProxySpec), b.(*kops.EgressProxySpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.EgressProxySpec)(nil), (*EgressProxySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_EgressProxySpec_To_v1alpha1_EgressProxySpec(a.(*kops.EgressProxySpec), b.(*EgressProxySpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*EnvVar)(nil), (*kops.EnvVar)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_EnvVar_To_kops_EnvVar(a.(*EnvVar), b.(*kops.EnvVar), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.EnvVar)(nil), (*EnvVar)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_EnvVar_To_v1alpha1_EnvVar(a.(*kops.EnvVar), b.(*EnvVar), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*EtcdBackupSpec)(nil), (*kops.EtcdBackupSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_EtcdBackupSpec_To_kops_EtcdBackupSpec(a.(*EtcdBackupSpec), b.(*kops.EtcdBackupSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.EtcdBackupSpec)(nil), (*EtcdBackupSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_EtcdBackupSpec_To_v1alpha1_EtcdBackupSpec(a.(*kops.EtcdBackupSpec), b.(*EtcdBackupSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*EtcdClusterSpec)(nil), (*kops.EtcdClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_EtcdClusterSpec_To_kops_EtcdClusterSpec(a.(*EtcdClusterSpec), b.(*kops.EtcdClusterSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.EtcdClusterSpec)(nil), (*EtcdClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_EtcdClusterSpec_To_v1alpha1_EtcdClusterSpec(a.(*kops.EtcdClusterSpec), b.(*EtcdClusterSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*EtcdManagerSpec)(nil), (*kops.EtcdManagerSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_EtcdManagerSpec_To_kops_EtcdManagerSpec(a.(*EtcdManagerSpec), b.(*kops.EtcdManagerSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.EtcdManagerSpec)(nil), (*EtcdManagerSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_EtcdManagerSpec_To_v1alpha1_EtcdManagerSpec(a.(*kops.EtcdManagerSpec), b.(*EtcdManagerSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*EtcdMemberSpec)(nil), (*kops.EtcdMemberSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_EtcdMemberSpec_To_kops_EtcdMemberSpec(a.(*EtcdMemberSpec), b.(*kops.EtcdMemberSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.EtcdMemberSpec)(nil), (*EtcdMemberSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_EtcdMemberSpec_To_v1alpha1_EtcdMemberSpec(a.(*kops.EtcdMemberSpec), b.(*EtcdMemberSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ExecContainerAction)(nil), (*kops.ExecContainerAction)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_ExecContainerAction_To_kops_ExecContainerAction(a.(*ExecContainerAction), b.(*kops.ExecContainerAction), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.ExecContainerAction)(nil), (*ExecContainerAction)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_ExecContainerAction_To_v1alpha1_ExecContainerAction(a.(*kops.ExecContainerAction), b.(*ExecContainerAction), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ExternalDNSConfig)(nil), (*kops.ExternalDNSConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_ExternalDNSConfig_To_kops_ExternalDNSConfig(a.(*ExternalDNSConfig), b.(*kops.ExternalDNSConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.ExternalDNSConfig)(nil), (*ExternalDNSConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_ExternalDNSConfig_To_v1alpha1_ExternalDNSConfig(a.(*kops.ExternalDNSConfig), b.(*ExternalDNSConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ExternalNetworkingSpec)(nil), (*kops.ExternalNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_ExternalNetworkingSpec_To_kops_ExternalNetworkingSpec(a.(*ExternalNetworkingSpec), b.(*kops.ExternalNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.ExternalNetworkingSpec)(nil), (*ExternalNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_ExternalNetworkingSpec_To_v1alpha1_ExternalNetworkingSpec(a.(*kops.ExternalNetworkingSpec), b.(*ExternalNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*FileAssetSpec)(nil), (*kops.FileAssetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_FileAssetSpec_To_kops_FileAssetSpec(a.(*FileAssetSpec), b.(*kops.FileAssetSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.FileAssetSpec)(nil), (*FileAssetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_FileAssetSpec_To_v1alpha1_FileAssetSpec(a.(*kops.FileAssetSpec), b.(*FileAssetSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*FlannelNetworkingSpec)(nil), (*kops.FlannelNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_FlannelNetworkingSpec_To_kops_FlannelNetworkingSpec(a.(*FlannelNetworkingSpec), b.(*kops.FlannelNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.FlannelNetworkingSpec)(nil), (*FlannelNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_FlannelNetworkingSpec_To_v1alpha1_FlannelNetworkingSpec(a.(*kops.FlannelNetworkingSpec), b.(*FlannelNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*GCENetworkingSpec)(nil), (*kops.GCENetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_GCENetworkingSpec_To_kops_GCENetworkingSpec(a.(*GCENetworkingSpec), b.(*kops.GCENetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.GCENetworkingSpec)(nil), (*GCENetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_GCENetworkingSpec_To_v1alpha1_GCENetworkingSpec(a.(*kops.GCENetworkingSpec), b.(*GCENetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*GossipConfig)(nil), (*kops.GossipConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_GossipConfig_To_kops_GossipConfig(a.(*GossipConfig), b.(*kops.GossipConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.GossipConfig)(nil), (*GossipConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_GossipConfig_To_v1alpha1_GossipConfig(a.(*kops.GossipConfig), b.(*GossipConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*HTTPProxy)(nil), (*kops.HTTPProxy)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_HTTPProxy_To_kops_HTTPProxy(a.(*HTTPProxy), b.(*kops.HTTPProxy), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.HTTPProxy)(nil), (*HTTPProxy)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_HTTPProxy_To_v1alpha1_HTTPProxy(a.(*kops.HTTPProxy), b.(*HTTPProxy), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*HookSpec)(nil), (*kops.HookSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_HookSpec_To_kops_HookSpec(a.(*HookSpec), b.(*kops.HookSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.HookSpec)(nil), (*HookSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_HookSpec_To_v1alpha1_HookSpec(a.(*kops.HookSpec), b.(*HookSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*IAMProfileSpec)(nil), (*kops.IAMProfileSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_IAMProfileSpec_To_kops_IAMProfileSpec(a.(*IAMProfileSpec), b.(*kops.IAMProfileSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.IAMProfileSpec)(nil), (*IAMProfileSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_IAMProfileSpec_To_v1alpha1_IAMProfileSpec(a.(*kops.IAMProfileSpec), b.(*IAMProfileSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*IAMSpec)(nil), (*kops.IAMSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_IAMSpec_To_kops_IAMSpec(a.(*IAMSpec), b.(*kops.IAMSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.IAMSpec)(nil), (*IAMSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_IAMSpec_To_v1alpha1_IAMSpec(a.(*kops.IAMSpec), b.(*IAMSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*InstanceGroup)(nil), (*kops.InstanceGroup)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_InstanceGroup_To_kops_InstanceGroup(a.(*InstanceGroup), b.(*kops.InstanceGroup), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.InstanceGroup)(nil), (*InstanceGroup)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_InstanceGroup_To_v1alpha1_InstanceGroup(a.(*kops.InstanceGroup), b.(*InstanceGroup), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*InstanceGroupList)(nil), (*kops.InstanceGroupList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_InstanceGroupList_To_kops_InstanceGroupList(a.(*InstanceGroupList), b.(*kops.InstanceGroupList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.InstanceGroupList)(nil), (*InstanceGroupList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_InstanceGroupList_To_v1alpha1_InstanceGroupList(a.(*kops.InstanceGroupList), b.(*InstanceGroupList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*InstanceGroupSpec)(nil), (*kops.InstanceGroupSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_InstanceGroupSpec_To_kops_InstanceGroupSpec(a.(*InstanceGroupSpec), b.(*kops.InstanceGroupSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.InstanceGroupSpec)(nil), (*InstanceGroupSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_InstanceGroupSpec_To_v1alpha1_InstanceGroupSpec(a.(*kops.InstanceGroupSpec), b.(*InstanceGroupSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*KopeioAuthenticationSpec)(nil), (*kops.KopeioAuthenticationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_KopeioAuthenticationSpec_To_kops_KopeioAuthenticationSpec(a.(*KopeioAuthenticationSpec), b.(*kops.KopeioAuthenticationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.KopeioAuthenticationSpec)(nil), (*KopeioAuthenticationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_KopeioAuthenticationSpec_To_v1alpha1_KopeioAuthenticationSpec(a.(*kops.KopeioAuthenticationSpec), b.(*KopeioAuthenticationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*KopeioNetworkingSpec)(nil), (*kops.KopeioNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_KopeioNetworkingSpec_To_kops_KopeioNetworkingSpec(a.(*KopeioNetworkingSpec), b.(*kops.KopeioNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.KopeioNetworkingSpec)(nil), (*KopeioNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_KopeioNetworkingSpec_To_v1alpha1_KopeioNetworkingSpec(a.(*kops.KopeioNetworkingSpec), b.(*KopeioNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*KubeAPIServerConfig)(nil), (*kops.KubeAPIServerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_KubeAPIServerConfig_To_kops_KubeAPIServerConfig(a.(*KubeAPIServerConfig), b.(*kops.KubeAPIServerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.KubeAPIServerConfig)(nil), (*KubeAPIServerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_KubeAPIServerConfig_To_v1alpha1_KubeAPIServerConfig(a.(*kops.KubeAPIServerConfig), b.(*KubeAPIServerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*KubeControllerManagerConfig)(nil), (*kops.KubeControllerManagerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_KubeControllerManagerConfig_To_kops_KubeControllerManagerConfig(a.(*KubeControllerManagerConfig), b.(*kops.KubeControllerManagerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.KubeControllerManagerConfig)(nil), (*KubeControllerManagerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_KubeControllerManagerConfig_To_v1alpha1_KubeControllerManagerConfig(a.(*kops.KubeControllerManagerConfig), b.(*KubeControllerManagerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*KubeDNSConfig)(nil), (*kops.KubeDNSConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_KubeDNSConfig_To_kops_KubeDNSConfig(a.(*KubeDNSConfig), b.(*kops.KubeDNSConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.KubeDNSConfig)(nil), (*KubeDNSConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_KubeDNSConfig_To_v1alpha1_KubeDNSConfig(a.(*kops.KubeDNSConfig), b.(*KubeDNSConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*KubeProxyConfig)(nil), (*kops.KubeProxyConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_KubeProxyConfig_To_kops_KubeProxyConfig(a.(*KubeProxyConfig), b.(*kops.KubeProxyConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.KubeProxyConfig)(nil), (*KubeProxyConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_KubeProxyConfig_To_v1alpha1_KubeProxyConfig(a.(*kops.KubeProxyConfig), b.(*KubeProxyConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*KubeSchedulerConfig)(nil), (*kops.KubeSchedulerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_KubeSchedulerConfig_To_kops_KubeSchedulerConfig(a.(*KubeSchedulerConfig), b.(*kops.KubeSchedulerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.KubeSchedulerConfig)(nil), (*KubeSchedulerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_KubeSchedulerConfig_To_v1alpha1_KubeSchedulerConfig(a.(*kops.KubeSchedulerConfig), b.(*KubeSchedulerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*KubeletConfigSpec)(nil), (*kops.KubeletConfigSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_KubeletConfigSpec_To_kops_KubeletConfigSpec(a.(*KubeletConfigSpec), b.(*kops.KubeletConfigSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.KubeletConfigSpec)(nil), (*KubeletConfigSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_KubeletConfigSpec_To_v1alpha1_KubeletConfigSpec(a.(*kops.KubeletConfigSpec), b.(*KubeletConfigSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*KubenetNetworkingSpec)(nil), (*kops.KubenetNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_KubenetNetworkingSpec_To_kops_KubenetNetworkingSpec(a.(*KubenetNetworkingSpec), b.(*kops.KubenetNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.KubenetNetworkingSpec)(nil), (*KubenetNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_KubenetNetworkingSpec_To_v1alpha1_KubenetNetworkingSpec(a.(*kops.KubenetNetworkingSpec), b.(*KubenetNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*KuberouterNetworkingSpec)(nil), (*kops.KuberouterNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_KuberouterNetworkingSpec_To_kops_KuberouterNetworkingSpec(a.(*KuberouterNetworkingSpec), b.(*kops.KuberouterNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.KuberouterNetworkingSpec)(nil), (*KuberouterNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_KuberouterNetworkingSpec_To_v1alpha1_KuberouterNetworkingSpec(a.(*kops.KuberouterNetworkingSpec), b.(*KuberouterNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*LeaderElectionConfiguration)(nil), (*kops.LeaderElectionConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_LeaderElectionConfiguration_To_kops_LeaderElectionConfiguration(a.(*LeaderElectionConfiguration), b.(*kops.LeaderElectionConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.LeaderElectionConfiguration)(nil), (*LeaderElectionConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(a.(*kops.LeaderElectionConfiguration), b.(*LeaderElectionConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*LoadBalancer)(nil), (*kops.LoadBalancer)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_LoadBalancer_To_kops_LoadBalancer(a.(*LoadBalancer), b.(*kops.LoadBalancer), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.LoadBalancer)(nil), (*LoadBalancer)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_LoadBalancer_To_v1alpha1_LoadBalancer(a.(*kops.LoadBalancer), b.(*LoadBalancer), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*LoadBalancerAccessSpec)(nil), (*kops.LoadBalancerAccessSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_LoadBalancerAccessSpec_To_kops_LoadBalancerAccessSpec(a.(*LoadBalancerAccessSpec), b.(*kops.LoadBalancerAccessSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.LoadBalancerAccessSpec)(nil), (*LoadBalancerAccessSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_LoadBalancerAccessSpec_To_v1alpha1_LoadBalancerAccessSpec(a.(*kops.LoadBalancerAccessSpec), b.(*LoadBalancerAccessSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*LyftVPCNetworkingSpec)(nil), (*kops.LyftVPCNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_LyftVPCNetworkingSpec_To_kops_LyftVPCNetworkingSpec(a.(*LyftVPCNetworkingSpec), b.(*kops.LyftVPCNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.LyftVPCNetworkingSpec)(nil), (*LyftVPCNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_LyftVPCNetworkingSpec_To_v1alpha1_LyftVPCNetworkingSpec(a.(*kops.LyftVPCNetworkingSpec), b.(*LyftVPCNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*MixedInstancesPolicySpec)(nil), (*kops.MixedInstancesPolicySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_MixedInstancesPolicySpec_To_kops_MixedInstancesPolicySpec(a.(*MixedInstancesPolicySpec), b.(*kops.MixedInstancesPolicySpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.MixedInstancesPolicySpec)(nil), (*MixedInstancesPolicySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_MixedInstancesPolicySpec_To_v1alpha1_MixedInstancesPolicySpec(a.(*kops.MixedInstancesPolicySpec), b.(*MixedInstancesPolicySpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*NetworkingSpec)(nil), (*kops.NetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_NetworkingSpec_To_kops_NetworkingSpec(a.(*NetworkingSpec), b.(*kops.NetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.NetworkingSpec)(nil), (*NetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_NetworkingSpec_To_v1alpha1_NetworkingSpec(a.(*kops.NetworkingSpec), b.(*NetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*NodeAuthorizationSpec)(nil), (*kops.NodeAuthorizationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_NodeAuthorizationSpec_To_kops_NodeAuthorizationSpec(a.(*NodeAuthorizationSpec), b.(*kops.NodeAuthorizationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.NodeAuthorizationSpec)(nil), (*NodeAuthorizationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_NodeAuthorizationSpec_To_v1alpha1_NodeAuthorizationSpec(a.(*kops.NodeAuthorizationSpec), b.(*NodeAuthorizationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*NodeAuthorizerSpec)(nil), (*kops.NodeAuthorizerSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_NodeAuthorizerSpec_To_kops_NodeAuthorizerSpec(a.(*NodeAuthorizerSpec), b.(*kops.NodeAuthorizerSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.NodeAuthorizerSpec)(nil), (*NodeAuthorizerSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_NodeAuthorizerSpec_To_v1alpha1_NodeAuthorizerSpec(a.(*kops.NodeAuthorizerSpec), b.(*NodeAuthorizerSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*OpenstackBlockStorageConfig)(nil), (*kops.OpenstackBlockStorageConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_OpenstackBlockStorageConfig_To_kops_OpenstackBlockStorageConfig(a.(*OpenstackBlockStorageConfig), b.(*kops.OpenstackBlockStorageConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.OpenstackBlockStorageConfig)(nil), (*OpenstackBlockStorageConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_OpenstackBlockStorageConfig_To_v1alpha1_OpenstackBlockStorageConfig(a.(*kops.OpenstackBlockStorageConfig), b.(*OpenstackBlockStorageConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*OpenstackConfiguration)(nil), (*kops.OpenstackConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_OpenstackConfiguration_To_kops_OpenstackConfiguration(a.(*OpenstackConfiguration), b.(*kops.OpenstackConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.OpenstackConfiguration)(nil), (*OpenstackConfiguration)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_OpenstackConfiguration_To_v1alpha1_OpenstackConfiguration(a.(*kops.OpenstackConfiguration), b.(*OpenstackConfiguration), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*OpenstackLoadbalancerConfig)(nil), (*kops.OpenstackLoadbalancerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_OpenstackLoadbalancerConfig_To_kops_OpenstackLoadbalancerConfig(a.(*OpenstackLoadbalancerConfig), b.(*kops.OpenstackLoadbalancerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.OpenstackLoadbalancerConfig)(nil), (*OpenstackLoadbalancerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_OpenstackLoadbalancerConfig_To_v1alpha1_OpenstackLoadbalancerConfig(a.(*kops.OpenstackLoadbalancerConfig), b.(*OpenstackLoadbalancerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*OpenstackMonitor)(nil), (*kops.OpenstackMonitor)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_OpenstackMonitor_To_kops_OpenstackMonitor(a.(*OpenstackMonitor), b.(*kops.OpenstackMonitor), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.OpenstackMonitor)(nil), (*OpenstackMonitor)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_OpenstackMonitor_To_v1alpha1_OpenstackMonitor(a.(*kops.OpenstackMonitor), b.(*OpenstackMonitor), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*OpenstackRouter)(nil), (*kops.OpenstackRouter)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_OpenstackRouter_To_kops_OpenstackRouter(a.(*OpenstackRouter), b.(*kops.OpenstackRouter), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.OpenstackRouter)(nil), (*OpenstackRouter)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_OpenstackRouter_To_v1alpha1_OpenstackRouter(a.(*kops.OpenstackRouter), b.(*OpenstackRouter), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RBACAuthorizationSpec)(nil), (*kops.RBACAuthorizationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_RBACAuthorizationSpec_To_kops_RBACAuthorizationSpec(a.(*RBACAuthorizationSpec), b.(*kops.RBACAuthorizationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.RBACAuthorizationSpec)(nil), (*RBACAuthorizationSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_RBACAuthorizationSpec_To_v1alpha1_RBACAuthorizationSpec(a.(*kops.RBACAuthorizationSpec), b.(*RBACAuthorizationSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RollingUpdate)(nil), (*kops.RollingUpdate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_RollingUpdate_To_kops_RollingUpdate(a.(*RollingUpdate), b.(*kops.RollingUpdate), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.RollingUpdate)(nil), (*RollingUpdate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_RollingUpdate_To_v1alpha1_RollingUpdate(a.(*kops.RollingUpdate), b.(*RollingUpdate), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RomanaNetworkingSpec)(nil), (*kops.RomanaNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_RomanaNetworkingSpec_To_kops_RomanaNetworkingSpec(a.(*RomanaNetworkingSpec), b.(*kops.RomanaNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.RomanaNetworkingSpec)(nil), (*RomanaNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_RomanaNetworkingSpec_To_v1alpha1_RomanaNetworkingSpec(a.(*kops.RomanaNetworkingSpec), b.(*RomanaNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*SSHCredential)(nil), (*kops.SSHCredential)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_SSHCredential_To_kops_SSHCredential(a.(*SSHCredential), b.(*kops.SSHCredential), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.SSHCredential)(nil), (*SSHCredential)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_SSHCredential_To_v1alpha1_SSHCredential(a.(*kops.SSHCredential), b.(*SSHCredential), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*SSHCredentialList)(nil), (*kops.SSHCredentialList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_SSHCredentialList_To_kops_SSHCredentialList(a.(*SSHCredentialList), b.(*kops.SSHCredentialList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.SSHCredentialList)(nil), (*SSHCredentialList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_SSHCredentialList_To_v1alpha1_SSHCredentialList(a.(*kops.SSHCredentialList), b.(*SSHCredentialList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*SSHCredentialSpec)(nil), (*kops.SSHCredentialSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_SSHCredentialSpec_To_kops_SSHCredentialSpec(a.(*SSHCredentialSpec), b.(*kops.SSHCredentialSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.SSHCredentialSpec)(nil), (*SSHCredentialSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_SSHCredentialSpec_To_v1alpha1_SSHCredentialSpec(a.(*kops.SSHCredentialSpec), b.(*SSHCredentialSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*TargetSpec)(nil), (*kops.TargetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_TargetSpec_To_kops_TargetSpec(a.(*TargetSpec), b.(*kops.TargetSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.TargetSpec)(nil), (*TargetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_TargetSpec_To_v1alpha1_TargetSpec(a.(*kops.TargetSpec), b.(*TargetSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*TerraformSpec)(nil), (*kops.TerraformSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_TerraformSpec_To_kops_TerraformSpec(a.(*TerraformSpec), b.(*kops.TerraformSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.TerraformSpec)(nil), (*TerraformSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_TerraformSpec_To_v1alpha1_TerraformSpec(a.(*kops.TerraformSpec), b.(*TerraformSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*UserData)(nil), (*kops.UserData)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_UserData_To_kops_UserData(a.(*UserData), b.(*kops.UserData), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.UserData)(nil), (*UserData)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_UserData_To_v1alpha1_UserData(a.(*kops.UserData), b.(*UserData), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*VolumeMountSpec)(nil), (*kops.VolumeMountSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_VolumeMountSpec_To_kops_VolumeMountSpec(a.(*VolumeMountSpec), b.(*kops.VolumeMountSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.VolumeMountSpec)(nil), (*VolumeMountSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_VolumeMountSpec_To_v1alpha1_VolumeMountSpec(a.(*kops.VolumeMountSpec), b.(*VolumeMountSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*VolumeSpec)(nil), (*kops.VolumeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_VolumeSpec_To_kops_VolumeSpec(a.(*VolumeSpec), b.(*kops.VolumeSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.VolumeSpec)(nil), (*VolumeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_VolumeSpec_To_v1alpha1_VolumeSpec(a.(*kops.VolumeSpec), b.(*VolumeSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*WeaveNetworkingSpec)(nil), (*kops.WeaveNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_WeaveNetworkingSpec_To_kops_WeaveNetworkingSpec(a.(*WeaveNetworkingSpec), b.(*kops.WeaveNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*kops.WeaveNetworkingSpec)(nil), (*WeaveNetworkingSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_WeaveNetworkingSpec_To_v1alpha1_WeaveNetworkingSpec(a.(*kops.WeaveNetworkingSpec), b.(*WeaveNetworkingSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*kops.BastionSpec)(nil), (*BastionSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_BastionSpec_To_v1alpha1_BastionSpec(a.(*kops.BastionSpec), b.(*BastionSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*kops.ClusterSpec)(nil), (*ClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_ClusterSpec_To_v1alpha1_ClusterSpec(a.(*kops.ClusterSpec), b.(*ClusterSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*kops.EtcdMemberSpec)(nil), (*EtcdMemberSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_EtcdMemberSpec_To_v1alpha1_EtcdMemberSpec(a.(*kops.EtcdMemberSpec), b.(*EtcdMemberSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*kops.InstanceGroupSpec)(nil), (*InstanceGroupSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_InstanceGroupSpec_To_v1alpha1_InstanceGroupSpec(a.(*kops.InstanceGroupSpec), b.(*InstanceGroupSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*kops.TopologySpec)(nil), (*TopologySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_kops_TopologySpec_To_v1alpha1_TopologySpec(a.(*kops.TopologySpec), b.(*TopologySpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*BastionSpec)(nil), (*kops.BastionSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_BastionSpec_To_kops_BastionSpec(a.(*BastionSpec), b.(*kops.BastionSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*ClusterSpec)(nil), (*kops.ClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_ClusterSpec_To_kops_ClusterSpec(a.(*ClusterSpec), b.(*kops.ClusterSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*EtcdMemberSpec)(nil), (*kops.EtcdMemberSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_EtcdMemberSpec_To_kops_EtcdMemberSpec(a.(*EtcdMemberSpec), b.(*kops.EtcdMemberSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*InstanceGroupSpec)(nil), (*kops.InstanceGroupSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_InstanceGroupSpec_To_kops_InstanceGroupSpec(a.(*InstanceGroupSpec), b.(*kops.InstanceGroupSpec), scope) - }); err != nil { - return err - } - if err := s.AddConversionFunc((*TopologySpec)(nil), (*kops.TopologySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1alpha1_TopologySpec_To_kops_TopologySpec(a.(*TopologySpec), b.(*kops.TopologySpec), scope) - }); err != nil { - return err - } - return nil -} - -func autoConvert_v1alpha1_AccessSpec_To_kops_AccessSpec(in *AccessSpec, out *kops.AccessSpec, s conversion.Scope) error { - if in.DNS != nil { - in, out := &in.DNS, &out.DNS - *out = new(kops.DNSAccessSpec) - if err := Convert_v1alpha1_DNSAccessSpec_To_kops_DNSAccessSpec(*in, *out, s); err != nil { - return err - } - } else { - out.DNS = nil - } - if in.LoadBalancer != nil { - in, out := &in.LoadBalancer, &out.LoadBalancer - *out = new(kops.LoadBalancerAccessSpec) - if err := Convert_v1alpha1_LoadBalancerAccessSpec_To_kops_LoadBalancerAccessSpec(*in, *out, s); err != nil { - return err - } - } else { - out.LoadBalancer = nil - } - return nil -} - -// Convert_v1alpha1_AccessSpec_To_kops_AccessSpec is an autogenerated conversion function. -func Convert_v1alpha1_AccessSpec_To_kops_AccessSpec(in *AccessSpec, out *kops.AccessSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_AccessSpec_To_kops_AccessSpec(in, out, s) -} - -func autoConvert_kops_AccessSpec_To_v1alpha1_AccessSpec(in *kops.AccessSpec, out *AccessSpec, s conversion.Scope) error { - if in.DNS != nil { - in, out := &in.DNS, &out.DNS - *out = new(DNSAccessSpec) - if err := Convert_kops_DNSAccessSpec_To_v1alpha1_DNSAccessSpec(*in, *out, s); err != nil { - return err - } - } else { - out.DNS = nil - } - if in.LoadBalancer != nil { - in, out := &in.LoadBalancer, &out.LoadBalancer - *out = new(LoadBalancerAccessSpec) - if err := Convert_kops_LoadBalancerAccessSpec_To_v1alpha1_LoadBalancerAccessSpec(*in, *out, s); err != nil { - return err - } - } else { - out.LoadBalancer = nil - } - return nil -} - -// Convert_kops_AccessSpec_To_v1alpha1_AccessSpec is an autogenerated conversion function. -func Convert_kops_AccessSpec_To_v1alpha1_AccessSpec(in *kops.AccessSpec, out *AccessSpec, s conversion.Scope) error { - return autoConvert_kops_AccessSpec_To_v1alpha1_AccessSpec(in, out, s) -} - -func autoConvert_v1alpha1_AddonSpec_To_kops_AddonSpec(in *AddonSpec, out *kops.AddonSpec, s conversion.Scope) error { - out.Manifest = in.Manifest - return nil -} - -// Convert_v1alpha1_AddonSpec_To_kops_AddonSpec is an autogenerated conversion function. -func Convert_v1alpha1_AddonSpec_To_kops_AddonSpec(in *AddonSpec, out *kops.AddonSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_AddonSpec_To_kops_AddonSpec(in, out, s) -} - -func autoConvert_kops_AddonSpec_To_v1alpha1_AddonSpec(in *kops.AddonSpec, out *AddonSpec, s conversion.Scope) error { - out.Manifest = in.Manifest - return nil -} - -// Convert_kops_AddonSpec_To_v1alpha1_AddonSpec is an autogenerated conversion function. -func Convert_kops_AddonSpec_To_v1alpha1_AddonSpec(in *kops.AddonSpec, out *AddonSpec, s conversion.Scope) error { - return autoConvert_kops_AddonSpec_To_v1alpha1_AddonSpec(in, out, s) -} - -func autoConvert_v1alpha1_AlwaysAllowAuthorizationSpec_To_kops_AlwaysAllowAuthorizationSpec(in *AlwaysAllowAuthorizationSpec, out *kops.AlwaysAllowAuthorizationSpec, s conversion.Scope) error { - return nil -} - -// Convert_v1alpha1_AlwaysAllowAuthorizationSpec_To_kops_AlwaysAllowAuthorizationSpec is an autogenerated conversion function. -func Convert_v1alpha1_AlwaysAllowAuthorizationSpec_To_kops_AlwaysAllowAuthorizationSpec(in *AlwaysAllowAuthorizationSpec, out *kops.AlwaysAllowAuthorizationSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_AlwaysAllowAuthorizationSpec_To_kops_AlwaysAllowAuthorizationSpec(in, out, s) -} - -func autoConvert_kops_AlwaysAllowAuthorizationSpec_To_v1alpha1_AlwaysAllowAuthorizationSpec(in *kops.AlwaysAllowAuthorizationSpec, out *AlwaysAllowAuthorizationSpec, s conversion.Scope) error { - return nil -} - -// Convert_kops_AlwaysAllowAuthorizationSpec_To_v1alpha1_AlwaysAllowAuthorizationSpec is an autogenerated conversion function. -func Convert_kops_AlwaysAllowAuthorizationSpec_To_v1alpha1_AlwaysAllowAuthorizationSpec(in *kops.AlwaysAllowAuthorizationSpec, out *AlwaysAllowAuthorizationSpec, s conversion.Scope) error { - return autoConvert_kops_AlwaysAllowAuthorizationSpec_To_v1alpha1_AlwaysAllowAuthorizationSpec(in, out, s) -} - -func autoConvert_v1alpha1_AmazonVPCNetworkingSpec_To_kops_AmazonVPCNetworkingSpec(in *AmazonVPCNetworkingSpec, out *kops.AmazonVPCNetworkingSpec, s conversion.Scope) error { - out.ImageName = in.ImageName - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make([]kops.EnvVar, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_EnvVar_To_kops_EnvVar(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Env = nil - } - return nil -} - -// Convert_v1alpha1_AmazonVPCNetworkingSpec_To_kops_AmazonVPCNetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_AmazonVPCNetworkingSpec_To_kops_AmazonVPCNetworkingSpec(in *AmazonVPCNetworkingSpec, out *kops.AmazonVPCNetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_AmazonVPCNetworkingSpec_To_kops_AmazonVPCNetworkingSpec(in, out, s) -} - -func autoConvert_kops_AmazonVPCNetworkingSpec_To_v1alpha1_AmazonVPCNetworkingSpec(in *kops.AmazonVPCNetworkingSpec, out *AmazonVPCNetworkingSpec, s conversion.Scope) error { - out.ImageName = in.ImageName - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make([]EnvVar, len(*in)) - for i := range *in { - if err := Convert_kops_EnvVar_To_v1alpha1_EnvVar(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Env = nil - } - return nil -} - -// Convert_kops_AmazonVPCNetworkingSpec_To_v1alpha1_AmazonVPCNetworkingSpec is an autogenerated conversion function. -func Convert_kops_AmazonVPCNetworkingSpec_To_v1alpha1_AmazonVPCNetworkingSpec(in *kops.AmazonVPCNetworkingSpec, out *AmazonVPCNetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_AmazonVPCNetworkingSpec_To_v1alpha1_AmazonVPCNetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_Assets_To_kops_Assets(in *Assets, out *kops.Assets, s conversion.Scope) error { - out.ContainerRegistry = in.ContainerRegistry - out.FileRepository = in.FileRepository - out.ContainerProxy = in.ContainerProxy - return nil -} - -// Convert_v1alpha1_Assets_To_kops_Assets is an autogenerated conversion function. -func Convert_v1alpha1_Assets_To_kops_Assets(in *Assets, out *kops.Assets, s conversion.Scope) error { - return autoConvert_v1alpha1_Assets_To_kops_Assets(in, out, s) -} - -func autoConvert_kops_Assets_To_v1alpha1_Assets(in *kops.Assets, out *Assets, s conversion.Scope) error { - out.ContainerRegistry = in.ContainerRegistry - out.FileRepository = in.FileRepository - out.ContainerProxy = in.ContainerProxy - return nil -} - -// Convert_kops_Assets_To_v1alpha1_Assets is an autogenerated conversion function. -func Convert_kops_Assets_To_v1alpha1_Assets(in *kops.Assets, out *Assets, s conversion.Scope) error { - return autoConvert_kops_Assets_To_v1alpha1_Assets(in, out, s) -} - -func autoConvert_v1alpha1_AuthenticationSpec_To_kops_AuthenticationSpec(in *AuthenticationSpec, out *kops.AuthenticationSpec, s conversion.Scope) error { - if in.Kopeio != nil { - in, out := &in.Kopeio, &out.Kopeio - *out = new(kops.KopeioAuthenticationSpec) - if err := Convert_v1alpha1_KopeioAuthenticationSpec_To_kops_KopeioAuthenticationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Kopeio = nil - } - if in.Aws != nil { - in, out := &in.Aws, &out.Aws - *out = new(kops.AwsAuthenticationSpec) - if err := Convert_v1alpha1_AwsAuthenticationSpec_To_kops_AwsAuthenticationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Aws = nil - } - return nil -} - -// Convert_v1alpha1_AuthenticationSpec_To_kops_AuthenticationSpec is an autogenerated conversion function. -func Convert_v1alpha1_AuthenticationSpec_To_kops_AuthenticationSpec(in *AuthenticationSpec, out *kops.AuthenticationSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_AuthenticationSpec_To_kops_AuthenticationSpec(in, out, s) -} - -func autoConvert_kops_AuthenticationSpec_To_v1alpha1_AuthenticationSpec(in *kops.AuthenticationSpec, out *AuthenticationSpec, s conversion.Scope) error { - if in.Kopeio != nil { - in, out := &in.Kopeio, &out.Kopeio - *out = new(KopeioAuthenticationSpec) - if err := Convert_kops_KopeioAuthenticationSpec_To_v1alpha1_KopeioAuthenticationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Kopeio = nil - } - if in.Aws != nil { - in, out := &in.Aws, &out.Aws - *out = new(AwsAuthenticationSpec) - if err := Convert_kops_AwsAuthenticationSpec_To_v1alpha1_AwsAuthenticationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Aws = nil - } - return nil -} - -// Convert_kops_AuthenticationSpec_To_v1alpha1_AuthenticationSpec is an autogenerated conversion function. -func Convert_kops_AuthenticationSpec_To_v1alpha1_AuthenticationSpec(in *kops.AuthenticationSpec, out *AuthenticationSpec, s conversion.Scope) error { - return autoConvert_kops_AuthenticationSpec_To_v1alpha1_AuthenticationSpec(in, out, s) -} - -func autoConvert_v1alpha1_AuthorizationSpec_To_kops_AuthorizationSpec(in *AuthorizationSpec, out *kops.AuthorizationSpec, s conversion.Scope) error { - if in.AlwaysAllow != nil { - in, out := &in.AlwaysAllow, &out.AlwaysAllow - *out = new(kops.AlwaysAllowAuthorizationSpec) - if err := Convert_v1alpha1_AlwaysAllowAuthorizationSpec_To_kops_AlwaysAllowAuthorizationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.AlwaysAllow = nil - } - if in.RBAC != nil { - in, out := &in.RBAC, &out.RBAC - *out = new(kops.RBACAuthorizationSpec) - if err := Convert_v1alpha1_RBACAuthorizationSpec_To_kops_RBACAuthorizationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.RBAC = nil - } - return nil -} - -// Convert_v1alpha1_AuthorizationSpec_To_kops_AuthorizationSpec is an autogenerated conversion function. -func Convert_v1alpha1_AuthorizationSpec_To_kops_AuthorizationSpec(in *AuthorizationSpec, out *kops.AuthorizationSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_AuthorizationSpec_To_kops_AuthorizationSpec(in, out, s) -} - -func autoConvert_kops_AuthorizationSpec_To_v1alpha1_AuthorizationSpec(in *kops.AuthorizationSpec, out *AuthorizationSpec, s conversion.Scope) error { - if in.AlwaysAllow != nil { - in, out := &in.AlwaysAllow, &out.AlwaysAllow - *out = new(AlwaysAllowAuthorizationSpec) - if err := Convert_kops_AlwaysAllowAuthorizationSpec_To_v1alpha1_AlwaysAllowAuthorizationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.AlwaysAllow = nil - } - if in.RBAC != nil { - in, out := &in.RBAC, &out.RBAC - *out = new(RBACAuthorizationSpec) - if err := Convert_kops_RBACAuthorizationSpec_To_v1alpha1_RBACAuthorizationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.RBAC = nil - } - return nil -} - -// Convert_kops_AuthorizationSpec_To_v1alpha1_AuthorizationSpec is an autogenerated conversion function. -func Convert_kops_AuthorizationSpec_To_v1alpha1_AuthorizationSpec(in *kops.AuthorizationSpec, out *AuthorizationSpec, s conversion.Scope) error { - return autoConvert_kops_AuthorizationSpec_To_v1alpha1_AuthorizationSpec(in, out, s) -} - -func autoConvert_v1alpha1_AwsAuthenticationSpec_To_kops_AwsAuthenticationSpec(in *AwsAuthenticationSpec, out *kops.AwsAuthenticationSpec, s conversion.Scope) error { - out.Image = in.Image - out.MemoryRequest = in.MemoryRequest - out.CPURequest = in.CPURequest - out.MemoryLimit = in.MemoryLimit - out.CPULimit = in.CPULimit - return nil -} - -// Convert_v1alpha1_AwsAuthenticationSpec_To_kops_AwsAuthenticationSpec is an autogenerated conversion function. -func Convert_v1alpha1_AwsAuthenticationSpec_To_kops_AwsAuthenticationSpec(in *AwsAuthenticationSpec, out *kops.AwsAuthenticationSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_AwsAuthenticationSpec_To_kops_AwsAuthenticationSpec(in, out, s) -} - -func autoConvert_kops_AwsAuthenticationSpec_To_v1alpha1_AwsAuthenticationSpec(in *kops.AwsAuthenticationSpec, out *AwsAuthenticationSpec, s conversion.Scope) error { - out.Image = in.Image - out.MemoryRequest = in.MemoryRequest - out.CPURequest = in.CPURequest - out.MemoryLimit = in.MemoryLimit - out.CPULimit = in.CPULimit - return nil -} - -// Convert_kops_AwsAuthenticationSpec_To_v1alpha1_AwsAuthenticationSpec is an autogenerated conversion function. -func Convert_kops_AwsAuthenticationSpec_To_v1alpha1_AwsAuthenticationSpec(in *kops.AwsAuthenticationSpec, out *AwsAuthenticationSpec, s conversion.Scope) error { - return autoConvert_kops_AwsAuthenticationSpec_To_v1alpha1_AwsAuthenticationSpec(in, out, s) -} - -func autoConvert_v1alpha1_CNINetworkingSpec_To_kops_CNINetworkingSpec(in *CNINetworkingSpec, out *kops.CNINetworkingSpec, s conversion.Scope) error { - out.UsesSecondaryIP = in.UsesSecondaryIP - return nil -} - -// Convert_v1alpha1_CNINetworkingSpec_To_kops_CNINetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_CNINetworkingSpec_To_kops_CNINetworkingSpec(in *CNINetworkingSpec, out *kops.CNINetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_CNINetworkingSpec_To_kops_CNINetworkingSpec(in, out, s) -} - -func autoConvert_kops_CNINetworkingSpec_To_v1alpha1_CNINetworkingSpec(in *kops.CNINetworkingSpec, out *CNINetworkingSpec, s conversion.Scope) error { - out.UsesSecondaryIP = in.UsesSecondaryIP - return nil -} - -// Convert_kops_CNINetworkingSpec_To_v1alpha1_CNINetworkingSpec is an autogenerated conversion function. -func Convert_kops_CNINetworkingSpec_To_v1alpha1_CNINetworkingSpec(in *kops.CNINetworkingSpec, out *CNINetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_CNINetworkingSpec_To_v1alpha1_CNINetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_CalicoNetworkingSpec_To_kops_CalicoNetworkingSpec(in *CalicoNetworkingSpec, out *kops.CalicoNetworkingSpec, s conversion.Scope) error { - out.CrossSubnet = in.CrossSubnet - out.LogSeverityScreen = in.LogSeverityScreen - out.MTU = in.MTU - out.PrometheusMetricsEnabled = in.PrometheusMetricsEnabled - out.PrometheusMetricsPort = in.PrometheusMetricsPort - out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled - out.PrometheusProcessMetricsEnabled = in.PrometheusProcessMetricsEnabled - out.MajorVersion = in.MajorVersion - out.IptablesBackend = in.IptablesBackend - out.IPIPMode = in.IPIPMode - out.TyphaPrometheusMetricsEnabled = in.TyphaPrometheusMetricsEnabled - out.TyphaPrometheusMetricsPort = in.TyphaPrometheusMetricsPort - out.TyphaReplicas = in.TyphaReplicas - return nil -} - -// Convert_v1alpha1_CalicoNetworkingSpec_To_kops_CalicoNetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_CalicoNetworkingSpec_To_kops_CalicoNetworkingSpec(in *CalicoNetworkingSpec, out *kops.CalicoNetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_CalicoNetworkingSpec_To_kops_CalicoNetworkingSpec(in, out, s) -} - -func autoConvert_kops_CalicoNetworkingSpec_To_v1alpha1_CalicoNetworkingSpec(in *kops.CalicoNetworkingSpec, out *CalicoNetworkingSpec, s conversion.Scope) error { - out.CrossSubnet = in.CrossSubnet - out.LogSeverityScreen = in.LogSeverityScreen - out.MTU = in.MTU - out.PrometheusMetricsEnabled = in.PrometheusMetricsEnabled - out.PrometheusMetricsPort = in.PrometheusMetricsPort - out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled - out.PrometheusProcessMetricsEnabled = in.PrometheusProcessMetricsEnabled - out.MajorVersion = in.MajorVersion - out.IptablesBackend = in.IptablesBackend - out.IPIPMode = in.IPIPMode - out.TyphaPrometheusMetricsEnabled = in.TyphaPrometheusMetricsEnabled - out.TyphaPrometheusMetricsPort = in.TyphaPrometheusMetricsPort - out.TyphaReplicas = in.TyphaReplicas - return nil -} - -// Convert_kops_CalicoNetworkingSpec_To_v1alpha1_CalicoNetworkingSpec is an autogenerated conversion function. -func Convert_kops_CalicoNetworkingSpec_To_v1alpha1_CalicoNetworkingSpec(in *kops.CalicoNetworkingSpec, out *CalicoNetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_CalicoNetworkingSpec_To_v1alpha1_CalicoNetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_CanalNetworkingSpec_To_kops_CanalNetworkingSpec(in *CanalNetworkingSpec, out *kops.CanalNetworkingSpec, s conversion.Scope) error { - out.ChainInsertMode = in.ChainInsertMode - out.DefaultEndpointToHostAction = in.DefaultEndpointToHostAction - out.DisableFlannelForwardRules = in.DisableFlannelForwardRules - out.IptablesBackend = in.IptablesBackend - out.LogSeveritySys = in.LogSeveritySys - out.MTU = in.MTU - out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled - out.PrometheusMetricsEnabled = in.PrometheusMetricsEnabled - out.PrometheusMetricsPort = in.PrometheusMetricsPort - out.PrometheusProcessMetricsEnabled = in.PrometheusProcessMetricsEnabled - out.TyphaPrometheusMetricsEnabled = in.TyphaPrometheusMetricsEnabled - out.TyphaPrometheusMetricsPort = in.TyphaPrometheusMetricsPort - out.TyphaReplicas = in.TyphaReplicas - return nil -} - -// Convert_v1alpha1_CanalNetworkingSpec_To_kops_CanalNetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_CanalNetworkingSpec_To_kops_CanalNetworkingSpec(in *CanalNetworkingSpec, out *kops.CanalNetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_CanalNetworkingSpec_To_kops_CanalNetworkingSpec(in, out, s) -} - -func autoConvert_kops_CanalNetworkingSpec_To_v1alpha1_CanalNetworkingSpec(in *kops.CanalNetworkingSpec, out *CanalNetworkingSpec, s conversion.Scope) error { - out.ChainInsertMode = in.ChainInsertMode - out.DefaultEndpointToHostAction = in.DefaultEndpointToHostAction - out.DisableFlannelForwardRules = in.DisableFlannelForwardRules - out.IptablesBackend = in.IptablesBackend - out.LogSeveritySys = in.LogSeveritySys - out.MTU = in.MTU - out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled - out.PrometheusMetricsEnabled = in.PrometheusMetricsEnabled - out.PrometheusMetricsPort = in.PrometheusMetricsPort - out.PrometheusProcessMetricsEnabled = in.PrometheusProcessMetricsEnabled - out.TyphaPrometheusMetricsEnabled = in.TyphaPrometheusMetricsEnabled - out.TyphaPrometheusMetricsPort = in.TyphaPrometheusMetricsPort - out.TyphaReplicas = in.TyphaReplicas - return nil -} - -// Convert_kops_CanalNetworkingSpec_To_v1alpha1_CanalNetworkingSpec is an autogenerated conversion function. -func Convert_kops_CanalNetworkingSpec_To_v1alpha1_CanalNetworkingSpec(in *kops.CanalNetworkingSpec, out *CanalNetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_CanalNetworkingSpec_To_v1alpha1_CanalNetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(in *CiliumNetworkingSpec, out *kops.CiliumNetworkingSpec, s conversion.Scope) error { - out.Version = in.Version - out.AccessLog = in.AccessLog - out.AgentLabels = in.AgentLabels - out.AgentPrometheusPort = in.AgentPrometheusPort - out.AllowLocalhost = in.AllowLocalhost - out.AutoIpv6NodeRoutes = in.AutoIpv6NodeRoutes - out.BPFRoot = in.BPFRoot - out.ContainerRuntime = in.ContainerRuntime - out.ContainerRuntimeEndpoint = in.ContainerRuntimeEndpoint - out.Debug = in.Debug - out.DebugVerbose = in.DebugVerbose - out.Device = in.Device - out.DisableConntrack = in.DisableConntrack - out.DisableIpv4 = in.DisableIpv4 - out.DisableK8sServices = in.DisableK8sServices - out.EnablePolicy = in.EnablePolicy - out.EnableTracing = in.EnableTracing - out.EnablePrometheusMetrics = in.EnablePrometheusMetrics - out.EnvoyLog = in.EnvoyLog - out.Ipv4ClusterCIDRMaskSize = in.Ipv4ClusterCIDRMaskSize - out.Ipv4Node = in.Ipv4Node - out.Ipv4Range = in.Ipv4Range - out.Ipv4ServiceRange = in.Ipv4ServiceRange - out.Ipv6ClusterAllocCidr = in.Ipv6ClusterAllocCidr - out.Ipv6Node = in.Ipv6Node - out.Ipv6Range = in.Ipv6Range - out.Ipv6ServiceRange = in.Ipv6ServiceRange - out.K8sAPIServer = in.K8sAPIServer - out.K8sKubeconfigPath = in.K8sKubeconfigPath - out.KeepBPFTemplates = in.KeepBPFTemplates - out.KeepConfig = in.KeepConfig - out.LabelPrefixFile = in.LabelPrefixFile - out.Labels = in.Labels - out.LB = in.LB - out.LibDir = in.LibDir - out.LogDrivers = in.LogDrivers - out.LogOpt = in.LogOpt - out.Logstash = in.Logstash - out.LogstashAgent = in.LogstashAgent - out.LogstashProbeTimer = in.LogstashProbeTimer - out.DisableMasquerade = in.DisableMasquerade - out.Nat46Range = in.Nat46Range - out.Pprof = in.Pprof - out.PrefilterDevice = in.PrefilterDevice - out.PrometheusServeAddr = in.PrometheusServeAddr - out.Restore = in.Restore - out.SingleClusterRoute = in.SingleClusterRoute - out.SocketPath = in.SocketPath - out.StateDir = in.StateDir - out.TracePayloadLen = in.TracePayloadLen - out.Tunnel = in.Tunnel - out.EnableIpv6 = in.EnableIpv6 - out.EnableIpv4 = in.EnableIpv4 - out.MonitorAggregation = in.MonitorAggregation - out.BPFCTGlobalTCPMax = in.BPFCTGlobalTCPMax - out.BPFCTGlobalAnyMax = in.BPFCTGlobalAnyMax - out.PreallocateBPFMaps = in.PreallocateBPFMaps - out.SidecarIstioProxyImage = in.SidecarIstioProxyImage - out.ClusterName = in.ClusterName - out.ToFqdnsDNSRejectResponseCode = in.ToFqdnsDNSRejectResponseCode - out.ToFqdnsEnablePoller = in.ToFqdnsEnablePoller - out.ContainerRuntimeLabels = in.ContainerRuntimeLabels - out.Ipam = in.Ipam - out.IPTablesRulesNoinstall = in.IPTablesRulesNoinstall - out.AutoDirectNodeRoutes = in.AutoDirectNodeRoutes - out.EnableNodePort = in.EnableNodePort - out.EtcdManaged = in.EtcdManaged - out.EnableRemoteNodeIdentity = in.EnableRemoteNodeIdentity - out.RemoveCbrBridge = in.RemoveCbrBridge - out.RestartPods = in.RestartPods - out.ReconfigureKubelet = in.ReconfigureKubelet - out.NodeInitBootstrapFile = in.NodeInitBootstrapFile - out.CniBinPath = in.CniBinPath - return nil -} - -// Convert_v1alpha1_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(in *CiliumNetworkingSpec, out *kops.CiliumNetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(in, out, s) -} - -func autoConvert_kops_CiliumNetworkingSpec_To_v1alpha1_CiliumNetworkingSpec(in *kops.CiliumNetworkingSpec, out *CiliumNetworkingSpec, s conversion.Scope) error { - out.Version = in.Version - out.AccessLog = in.AccessLog - out.AgentLabels = in.AgentLabels - out.AgentPrometheusPort = in.AgentPrometheusPort - out.AllowLocalhost = in.AllowLocalhost - out.AutoIpv6NodeRoutes = in.AutoIpv6NodeRoutes - out.BPFRoot = in.BPFRoot - out.ContainerRuntime = in.ContainerRuntime - out.ContainerRuntimeEndpoint = in.ContainerRuntimeEndpoint - out.Debug = in.Debug - out.DebugVerbose = in.DebugVerbose - out.Device = in.Device - out.DisableConntrack = in.DisableConntrack - out.DisableIpv4 = in.DisableIpv4 - out.DisableK8sServices = in.DisableK8sServices - out.EnablePolicy = in.EnablePolicy - out.EnableTracing = in.EnableTracing - out.EnablePrometheusMetrics = in.EnablePrometheusMetrics - out.EnvoyLog = in.EnvoyLog - out.Ipv4ClusterCIDRMaskSize = in.Ipv4ClusterCIDRMaskSize - out.Ipv4Node = in.Ipv4Node - out.Ipv4Range = in.Ipv4Range - out.Ipv4ServiceRange = in.Ipv4ServiceRange - out.Ipv6ClusterAllocCidr = in.Ipv6ClusterAllocCidr - out.Ipv6Node = in.Ipv6Node - out.Ipv6Range = in.Ipv6Range - out.Ipv6ServiceRange = in.Ipv6ServiceRange - out.K8sAPIServer = in.K8sAPIServer - out.K8sKubeconfigPath = in.K8sKubeconfigPath - out.KeepBPFTemplates = in.KeepBPFTemplates - out.KeepConfig = in.KeepConfig - out.LabelPrefixFile = in.LabelPrefixFile - out.Labels = in.Labels - out.LB = in.LB - out.LibDir = in.LibDir - out.LogDrivers = in.LogDrivers - out.LogOpt = in.LogOpt - out.Logstash = in.Logstash - out.LogstashAgent = in.LogstashAgent - out.LogstashProbeTimer = in.LogstashProbeTimer - out.DisableMasquerade = in.DisableMasquerade - out.Nat46Range = in.Nat46Range - out.Pprof = in.Pprof - out.PrefilterDevice = in.PrefilterDevice - out.PrometheusServeAddr = in.PrometheusServeAddr - out.Restore = in.Restore - out.SingleClusterRoute = in.SingleClusterRoute - out.SocketPath = in.SocketPath - out.StateDir = in.StateDir - out.TracePayloadLen = in.TracePayloadLen - out.Tunnel = in.Tunnel - out.EnableIpv6 = in.EnableIpv6 - out.EnableIpv4 = in.EnableIpv4 - out.MonitorAggregation = in.MonitorAggregation - out.BPFCTGlobalTCPMax = in.BPFCTGlobalTCPMax - out.BPFCTGlobalAnyMax = in.BPFCTGlobalAnyMax - out.PreallocateBPFMaps = in.PreallocateBPFMaps - out.SidecarIstioProxyImage = in.SidecarIstioProxyImage - out.ClusterName = in.ClusterName - out.ToFqdnsDNSRejectResponseCode = in.ToFqdnsDNSRejectResponseCode - out.ToFqdnsEnablePoller = in.ToFqdnsEnablePoller - out.ContainerRuntimeLabels = in.ContainerRuntimeLabels - out.Ipam = in.Ipam - out.IPTablesRulesNoinstall = in.IPTablesRulesNoinstall - out.AutoDirectNodeRoutes = in.AutoDirectNodeRoutes - out.EnableNodePort = in.EnableNodePort - out.EtcdManaged = in.EtcdManaged - out.EnableRemoteNodeIdentity = in.EnableRemoteNodeIdentity - out.RemoveCbrBridge = in.RemoveCbrBridge - out.RestartPods = in.RestartPods - out.ReconfigureKubelet = in.ReconfigureKubelet - out.NodeInitBootstrapFile = in.NodeInitBootstrapFile - out.CniBinPath = in.CniBinPath - return nil -} - -// Convert_kops_CiliumNetworkingSpec_To_v1alpha1_CiliumNetworkingSpec is an autogenerated conversion function. -func Convert_kops_CiliumNetworkingSpec_To_v1alpha1_CiliumNetworkingSpec(in *kops.CiliumNetworkingSpec, out *CiliumNetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_CiliumNetworkingSpec_To_v1alpha1_CiliumNetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_ClassicNetworkingSpec_To_kops_ClassicNetworkingSpec(in *ClassicNetworkingSpec, out *kops.ClassicNetworkingSpec, s conversion.Scope) error { - return nil -} - -// Convert_v1alpha1_ClassicNetworkingSpec_To_kops_ClassicNetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_ClassicNetworkingSpec_To_kops_ClassicNetworkingSpec(in *ClassicNetworkingSpec, out *kops.ClassicNetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_ClassicNetworkingSpec_To_kops_ClassicNetworkingSpec(in, out, s) -} - -func autoConvert_kops_ClassicNetworkingSpec_To_v1alpha1_ClassicNetworkingSpec(in *kops.ClassicNetworkingSpec, out *ClassicNetworkingSpec, s conversion.Scope) error { - return nil -} - -// Convert_kops_ClassicNetworkingSpec_To_v1alpha1_ClassicNetworkingSpec is an autogenerated conversion function. -func Convert_kops_ClassicNetworkingSpec_To_v1alpha1_ClassicNetworkingSpec(in *kops.ClassicNetworkingSpec, out *ClassicNetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_ClassicNetworkingSpec_To_v1alpha1_ClassicNetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_CloudConfiguration_To_kops_CloudConfiguration(in *CloudConfiguration, out *kops.CloudConfiguration, s conversion.Scope) error { - out.Multizone = in.Multizone - out.NodeTags = in.NodeTags - out.NodeInstancePrefix = in.NodeInstancePrefix - out.DisableSecurityGroupIngress = in.DisableSecurityGroupIngress - out.ElbSecurityGroup = in.ElbSecurityGroup - out.VSphereUsername = in.VSphereUsername - out.VSpherePassword = in.VSpherePassword - out.VSphereServer = in.VSphereServer - out.VSphereDatacenter = in.VSphereDatacenter - out.VSphereResourcePool = in.VSphereResourcePool - out.VSphereDatastore = in.VSphereDatastore - out.VSphereCoreDNSServer = in.VSphereCoreDNSServer - out.SpotinstProduct = in.SpotinstProduct - out.SpotinstOrientation = in.SpotinstOrientation - if in.Openstack != nil { - in, out := &in.Openstack, &out.Openstack - *out = new(kops.OpenstackConfiguration) - if err := Convert_v1alpha1_OpenstackConfiguration_To_kops_OpenstackConfiguration(*in, *out, s); err != nil { - return err - } - } else { - out.Openstack = nil - } - return nil -} - -// Convert_v1alpha1_CloudConfiguration_To_kops_CloudConfiguration is an autogenerated conversion function. -func Convert_v1alpha1_CloudConfiguration_To_kops_CloudConfiguration(in *CloudConfiguration, out *kops.CloudConfiguration, s conversion.Scope) error { - return autoConvert_v1alpha1_CloudConfiguration_To_kops_CloudConfiguration(in, out, s) -} - -func autoConvert_kops_CloudConfiguration_To_v1alpha1_CloudConfiguration(in *kops.CloudConfiguration, out *CloudConfiguration, s conversion.Scope) error { - out.Multizone = in.Multizone - out.NodeTags = in.NodeTags - out.NodeInstancePrefix = in.NodeInstancePrefix - out.DisableSecurityGroupIngress = in.DisableSecurityGroupIngress - out.ElbSecurityGroup = in.ElbSecurityGroup - out.VSphereUsername = in.VSphereUsername - out.VSpherePassword = in.VSpherePassword - out.VSphereServer = in.VSphereServer - out.VSphereDatacenter = in.VSphereDatacenter - out.VSphereResourcePool = in.VSphereResourcePool - out.VSphereDatastore = in.VSphereDatastore - out.VSphereCoreDNSServer = in.VSphereCoreDNSServer - out.SpotinstProduct = in.SpotinstProduct - out.SpotinstOrientation = in.SpotinstOrientation - if in.Openstack != nil { - in, out := &in.Openstack, &out.Openstack - *out = new(OpenstackConfiguration) - if err := Convert_kops_OpenstackConfiguration_To_v1alpha1_OpenstackConfiguration(*in, *out, s); err != nil { - return err - } - } else { - out.Openstack = nil - } - return nil -} - -// Convert_kops_CloudConfiguration_To_v1alpha1_CloudConfiguration is an autogenerated conversion function. -func Convert_kops_CloudConfiguration_To_v1alpha1_CloudConfiguration(in *kops.CloudConfiguration, out *CloudConfiguration, s conversion.Scope) error { - return autoConvert_kops_CloudConfiguration_To_v1alpha1_CloudConfiguration(in, out, s) -} - -func autoConvert_v1alpha1_CloudControllerManagerConfig_To_kops_CloudControllerManagerConfig(in *CloudControllerManagerConfig, out *kops.CloudControllerManagerConfig, s conversion.Scope) error { - out.Master = in.Master - out.LogLevel = in.LogLevel - out.Image = in.Image - out.CloudProvider = in.CloudProvider - out.ClusterName = in.ClusterName - out.ClusterCIDR = in.ClusterCIDR - out.AllocateNodeCIDRs = in.AllocateNodeCIDRs - out.ConfigureCloudRoutes = in.ConfigureCloudRoutes - out.CIDRAllocatorType = in.CIDRAllocatorType - if in.LeaderElection != nil { - in, out := &in.LeaderElection, &out.LeaderElection - *out = new(kops.LeaderElectionConfiguration) - if err := Convert_v1alpha1_LeaderElectionConfiguration_To_kops_LeaderElectionConfiguration(*in, *out, s); err != nil { - return err - } - } else { - out.LeaderElection = nil - } - out.UseServiceAccountCredentials = in.UseServiceAccountCredentials - return nil -} - -// Convert_v1alpha1_CloudControllerManagerConfig_To_kops_CloudControllerManagerConfig is an autogenerated conversion function. -func Convert_v1alpha1_CloudControllerManagerConfig_To_kops_CloudControllerManagerConfig(in *CloudControllerManagerConfig, out *kops.CloudControllerManagerConfig, s conversion.Scope) error { - return autoConvert_v1alpha1_CloudControllerManagerConfig_To_kops_CloudControllerManagerConfig(in, out, s) -} - -func autoConvert_kops_CloudControllerManagerConfig_To_v1alpha1_CloudControllerManagerConfig(in *kops.CloudControllerManagerConfig, out *CloudControllerManagerConfig, s conversion.Scope) error { - out.Master = in.Master - out.LogLevel = in.LogLevel - out.Image = in.Image - out.CloudProvider = in.CloudProvider - out.ClusterName = in.ClusterName - out.ClusterCIDR = in.ClusterCIDR - out.AllocateNodeCIDRs = in.AllocateNodeCIDRs - out.ConfigureCloudRoutes = in.ConfigureCloudRoutes - out.CIDRAllocatorType = in.CIDRAllocatorType - if in.LeaderElection != nil { - in, out := &in.LeaderElection, &out.LeaderElection - *out = new(LeaderElectionConfiguration) - if err := Convert_kops_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(*in, *out, s); err != nil { - return err - } - } else { - out.LeaderElection = nil - } - out.UseServiceAccountCredentials = in.UseServiceAccountCredentials - return nil -} - -// Convert_kops_CloudControllerManagerConfig_To_v1alpha1_CloudControllerManagerConfig is an autogenerated conversion function. -func Convert_kops_CloudControllerManagerConfig_To_v1alpha1_CloudControllerManagerConfig(in *kops.CloudControllerManagerConfig, out *CloudControllerManagerConfig, s conversion.Scope) error { - return autoConvert_kops_CloudControllerManagerConfig_To_v1alpha1_CloudControllerManagerConfig(in, out, s) -} - -func autoConvert_v1alpha1_Cluster_To_kops_Cluster(in *Cluster, out *kops.Cluster, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1alpha1_ClusterSpec_To_kops_ClusterSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - return nil -} - -// Convert_v1alpha1_Cluster_To_kops_Cluster is an autogenerated conversion function. -func Convert_v1alpha1_Cluster_To_kops_Cluster(in *Cluster, out *kops.Cluster, s conversion.Scope) error { - return autoConvert_v1alpha1_Cluster_To_kops_Cluster(in, out, s) -} - -func autoConvert_kops_Cluster_To_v1alpha1_Cluster(in *kops.Cluster, out *Cluster, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_kops_ClusterSpec_To_v1alpha1_ClusterSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - return nil -} - -// Convert_kops_Cluster_To_v1alpha1_Cluster is an autogenerated conversion function. -func Convert_kops_Cluster_To_v1alpha1_Cluster(in *kops.Cluster, out *Cluster, s conversion.Scope) error { - return autoConvert_kops_Cluster_To_v1alpha1_Cluster(in, out, s) -} - -func autoConvert_v1alpha1_ClusterList_To_kops_ClusterList(in *ClusterList, out *kops.ClusterList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]kops.Cluster, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_Cluster_To_kops_Cluster(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_v1alpha1_ClusterList_To_kops_ClusterList is an autogenerated conversion function. -func Convert_v1alpha1_ClusterList_To_kops_ClusterList(in *ClusterList, out *kops.ClusterList, s conversion.Scope) error { - return autoConvert_v1alpha1_ClusterList_To_kops_ClusterList(in, out, s) -} - -func autoConvert_kops_ClusterList_To_v1alpha1_ClusterList(in *kops.ClusterList, out *ClusterList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Cluster, len(*in)) - for i := range *in { - if err := Convert_kops_Cluster_To_v1alpha1_Cluster(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_kops_ClusterList_To_v1alpha1_ClusterList is an autogenerated conversion function. -func Convert_kops_ClusterList_To_v1alpha1_ClusterList(in *kops.ClusterList, out *ClusterList, s conversion.Scope) error { - return autoConvert_kops_ClusterList_To_v1alpha1_ClusterList(in, out, s) -} - -func autoConvert_v1alpha1_ClusterSpec_To_kops_ClusterSpec(in *ClusterSpec, out *kops.ClusterSpec, s conversion.Scope) error { - out.Channel = in.Channel - if in.Addons != nil { - in, out := &in.Addons, &out.Addons - *out = make([]kops.AddonSpec, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_AddonSpec_To_kops_AddonSpec(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Addons = nil - } - out.ConfigBase = in.ConfigBase - out.CloudProvider = in.CloudProvider - if in.GossipConfig != nil { - in, out := &in.GossipConfig, &out.GossipConfig - *out = new(kops.GossipConfig) - if err := Convert_v1alpha1_GossipConfig_To_kops_GossipConfig(*in, *out, s); err != nil { - return err - } - } else { - out.GossipConfig = nil - } - out.ContainerRuntime = in.ContainerRuntime - out.KubernetesVersion = in.KubernetesVersion - // WARNING: in.Zones requires manual conversion: does not exist in peer-type - out.Project = in.Project - out.MasterPublicName = in.MasterPublicName - out.MasterInternalName = in.MasterInternalName - out.NetworkCIDR = in.NetworkCIDR - out.AdditionalNetworkCIDRs = in.AdditionalNetworkCIDRs - out.NetworkID = in.NetworkID - if in.Topology != nil { - in, out := &in.Topology, &out.Topology - *out = new(kops.TopologySpec) - if err := Convert_v1alpha1_TopologySpec_To_kops_TopologySpec(*in, *out, s); err != nil { - return err - } - } else { - out.Topology = nil - } - out.SecretStore = in.SecretStore - out.KeyStore = in.KeyStore - out.ConfigStore = in.ConfigStore - out.DNSZone = in.DNSZone - if in.DNSControllerGossipConfig != nil { - in, out := &in.DNSControllerGossipConfig, &out.DNSControllerGossipConfig - *out = new(kops.DNSControllerGossipConfig) - if err := Convert_v1alpha1_DNSControllerGossipConfig_To_kops_DNSControllerGossipConfig(*in, *out, s); err != nil { - return err - } - } else { - out.DNSControllerGossipConfig = nil - } - out.AdditionalSANs = in.AdditionalSANs - out.ClusterDNSDomain = in.ClusterDNSDomain - // WARNING: in.Multizone requires manual conversion: does not exist in peer-type - out.ServiceClusterIPRange = in.ServiceClusterIPRange - out.PodCIDR = in.PodCIDR - out.NonMasqueradeCIDR = in.NonMasqueradeCIDR - // WARNING: in.AdminAccess requires manual conversion: does not exist in peer-type - out.IsolateMasters = in.IsolateMasters - out.UpdatePolicy = in.UpdatePolicy - out.ExternalPolicies = in.ExternalPolicies - out.AdditionalPolicies = in.AdditionalPolicies - if in.FileAssets != nil { - in, out := &in.FileAssets, &out.FileAssets - *out = make([]kops.FileAssetSpec, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_FileAssetSpec_To_kops_FileAssetSpec(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.FileAssets = nil - } - if in.EgressProxy != nil { - in, out := &in.EgressProxy, &out.EgressProxy - *out = new(kops.EgressProxySpec) - if err := Convert_v1alpha1_EgressProxySpec_To_kops_EgressProxySpec(*in, *out, s); err != nil { - return err - } - } else { - out.EgressProxy = nil - } - out.SSHKeyName = in.SSHKeyName - if in.EtcdClusters != nil { - in, out := &in.EtcdClusters, &out.EtcdClusters - *out = make([]*kops.EtcdClusterSpec, len(*in)) - for i := range *in { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil { - return err - } - } - } else { - out.EtcdClusters = nil - } - if in.Containerd != nil { - in, out := &in.Containerd, &out.Containerd - *out = new(kops.ContainerdConfig) - if err := Convert_v1alpha1_ContainerdConfig_To_kops_ContainerdConfig(*in, *out, s); err != nil { - return err - } - } else { - out.Containerd = nil - } - if in.Docker != nil { - in, out := &in.Docker, &out.Docker - *out = new(kops.DockerConfig) - if err := Convert_v1alpha1_DockerConfig_To_kops_DockerConfig(*in, *out, s); err != nil { - return err - } - } else { - out.Docker = nil - } - if in.KubeDNS != nil { - in, out := &in.KubeDNS, &out.KubeDNS - *out = new(kops.KubeDNSConfig) - if err := Convert_v1alpha1_KubeDNSConfig_To_kops_KubeDNSConfig(*in, *out, s); err != nil { - return err - } - } else { - out.KubeDNS = nil - } - if in.KubeAPIServer != nil { - in, out := &in.KubeAPIServer, &out.KubeAPIServer - *out = new(kops.KubeAPIServerConfig) - if err := Convert_v1alpha1_KubeAPIServerConfig_To_kops_KubeAPIServerConfig(*in, *out, s); err != nil { - return err - } - } else { - out.KubeAPIServer = nil - } - if in.KubeControllerManager != nil { - in, out := &in.KubeControllerManager, &out.KubeControllerManager - *out = new(kops.KubeControllerManagerConfig) - if err := Convert_v1alpha1_KubeControllerManagerConfig_To_kops_KubeControllerManagerConfig(*in, *out, s); err != nil { - return err - } - } else { - out.KubeControllerManager = nil - } - if in.ExternalCloudControllerManager != nil { - in, out := &in.ExternalCloudControllerManager, &out.ExternalCloudControllerManager - *out = new(kops.CloudControllerManagerConfig) - if err := Convert_v1alpha1_CloudControllerManagerConfig_To_kops_CloudControllerManagerConfig(*in, *out, s); err != nil { - return err - } - } else { - out.ExternalCloudControllerManager = nil - } - if in.KubeScheduler != nil { - in, out := &in.KubeScheduler, &out.KubeScheduler - *out = new(kops.KubeSchedulerConfig) - if err := Convert_v1alpha1_KubeSchedulerConfig_To_kops_KubeSchedulerConfig(*in, *out, s); err != nil { - return err - } - } else { - out.KubeScheduler = nil - } - if in.KubeProxy != nil { - in, out := &in.KubeProxy, &out.KubeProxy - *out = new(kops.KubeProxyConfig) - if err := Convert_v1alpha1_KubeProxyConfig_To_kops_KubeProxyConfig(*in, *out, s); err != nil { - return err - } - } else { - out.KubeProxy = nil - } - if in.Kubelet != nil { - in, out := &in.Kubelet, &out.Kubelet - *out = new(kops.KubeletConfigSpec) - if err := Convert_v1alpha1_KubeletConfigSpec_To_kops_KubeletConfigSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Kubelet = nil - } - if in.MasterKubelet != nil { - in, out := &in.MasterKubelet, &out.MasterKubelet - *out = new(kops.KubeletConfigSpec) - if err := Convert_v1alpha1_KubeletConfigSpec_To_kops_KubeletConfigSpec(*in, *out, s); err != nil { - return err - } - } else { - out.MasterKubelet = nil - } - if in.CloudConfig != nil { - in, out := &in.CloudConfig, &out.CloudConfig - *out = new(kops.CloudConfiguration) - if err := Convert_v1alpha1_CloudConfiguration_To_kops_CloudConfiguration(*in, *out, s); err != nil { - return err - } - } else { - out.CloudConfig = nil - } - if in.ExternalDNS != nil { - in, out := &in.ExternalDNS, &out.ExternalDNS - *out = new(kops.ExternalDNSConfig) - if err := Convert_v1alpha1_ExternalDNSConfig_To_kops_ExternalDNSConfig(*in, *out, s); err != nil { - return err - } - } else { - out.ExternalDNS = nil - } - if in.Networking != nil { - in, out := &in.Networking, &out.Networking - *out = new(kops.NetworkingSpec) - if err := Convert_v1alpha1_NetworkingSpec_To_kops_NetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Networking = nil - } - if in.API != nil { - in, out := &in.API, &out.API - *out = new(kops.AccessSpec) - if err := Convert_v1alpha1_AccessSpec_To_kops_AccessSpec(*in, *out, s); err != nil { - return err - } - } else { - out.API = nil - } - if in.Authentication != nil { - in, out := &in.Authentication, &out.Authentication - *out = new(kops.AuthenticationSpec) - if err := Convert_v1alpha1_AuthenticationSpec_To_kops_AuthenticationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Authentication = nil - } - if in.Authorization != nil { - in, out := &in.Authorization, &out.Authorization - *out = new(kops.AuthorizationSpec) - if err := Convert_v1alpha1_AuthorizationSpec_To_kops_AuthorizationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Authorization = nil - } - if in.NodeAuthorization != nil { - in, out := &in.NodeAuthorization, &out.NodeAuthorization - *out = new(kops.NodeAuthorizationSpec) - if err := Convert_v1alpha1_NodeAuthorizationSpec_To_kops_NodeAuthorizationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.NodeAuthorization = nil - } - out.CloudLabels = in.CloudLabels - if in.Hooks != nil { - in, out := &in.Hooks, &out.Hooks - *out = make([]kops.HookSpec, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_HookSpec_To_kops_HookSpec(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Hooks = nil - } - if in.Assets != nil { - in, out := &in.Assets, &out.Assets - *out = new(kops.Assets) - if err := Convert_v1alpha1_Assets_To_kops_Assets(*in, *out, s); err != nil { - return err - } - } else { - out.Assets = nil - } - if in.IAM != nil { - in, out := &in.IAM, &out.IAM - *out = new(kops.IAMSpec) - if err := Convert_v1alpha1_IAMSpec_To_kops_IAMSpec(*in, *out, s); err != nil { - return err - } - } else { - out.IAM = nil - } - out.EncryptionConfig = in.EncryptionConfig - out.DisableSubnetTags = in.DisableSubnetTags - if in.Target != nil { - in, out := &in.Target, &out.Target - *out = new(kops.TargetSpec) - if err := Convert_v1alpha1_TargetSpec_To_kops_TargetSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Target = nil - } - out.UseHostCertificates = in.UseHostCertificates - out.SysctlParameters = in.SysctlParameters - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(kops.RollingUpdate) - if err := Convert_v1alpha1_RollingUpdate_To_kops_RollingUpdate(*in, *out, s); err != nil { - return err - } - } else { - out.RollingUpdate = nil - } - return nil -} - -func autoConvert_kops_ClusterSpec_To_v1alpha1_ClusterSpec(in *kops.ClusterSpec, out *ClusterSpec, s conversion.Scope) error { - out.Channel = in.Channel - if in.Addons != nil { - in, out := &in.Addons, &out.Addons - *out = make([]AddonSpec, len(*in)) - for i := range *in { - if err := Convert_kops_AddonSpec_To_v1alpha1_AddonSpec(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Addons = nil - } - out.ConfigBase = in.ConfigBase - out.CloudProvider = in.CloudProvider - if in.GossipConfig != nil { - in, out := &in.GossipConfig, &out.GossipConfig - *out = new(GossipConfig) - if err := Convert_kops_GossipConfig_To_v1alpha1_GossipConfig(*in, *out, s); err != nil { - return err - } - } else { - out.GossipConfig = nil - } - out.ContainerRuntime = in.ContainerRuntime - out.KubernetesVersion = in.KubernetesVersion - // WARNING: in.Subnets requires manual conversion: does not exist in peer-type - out.Project = in.Project - out.MasterPublicName = in.MasterPublicName - out.MasterInternalName = in.MasterInternalName - out.NetworkCIDR = in.NetworkCIDR - out.AdditionalNetworkCIDRs = in.AdditionalNetworkCIDRs - out.NetworkID = in.NetworkID - if in.Topology != nil { - in, out := &in.Topology, &out.Topology - *out = new(TopologySpec) - if err := Convert_kops_TopologySpec_To_v1alpha1_TopologySpec(*in, *out, s); err != nil { - return err - } - } else { - out.Topology = nil - } - out.SecretStore = in.SecretStore - out.KeyStore = in.KeyStore - out.ConfigStore = in.ConfigStore - out.DNSZone = in.DNSZone - if in.DNSControllerGossipConfig != nil { - in, out := &in.DNSControllerGossipConfig, &out.DNSControllerGossipConfig - *out = new(DNSControllerGossipConfig) - if err := Convert_kops_DNSControllerGossipConfig_To_v1alpha1_DNSControllerGossipConfig(*in, *out, s); err != nil { - return err - } - } else { - out.DNSControllerGossipConfig = nil - } - out.AdditionalSANs = in.AdditionalSANs - out.ClusterDNSDomain = in.ClusterDNSDomain - out.ServiceClusterIPRange = in.ServiceClusterIPRange - out.PodCIDR = in.PodCIDR - out.NonMasqueradeCIDR = in.NonMasqueradeCIDR - // WARNING: in.SSHAccess requires manual conversion: does not exist in peer-type - // WARNING: in.NodePortAccess requires manual conversion: does not exist in peer-type - if in.EgressProxy != nil { - in, out := &in.EgressProxy, &out.EgressProxy - *out = new(EgressProxySpec) - if err := Convert_kops_EgressProxySpec_To_v1alpha1_EgressProxySpec(*in, *out, s); err != nil { - return err - } - } else { - out.EgressProxy = nil - } - out.SSHKeyName = in.SSHKeyName - // WARNING: in.KubernetesAPIAccess requires manual conversion: does not exist in peer-type - out.IsolateMasters = in.IsolateMasters - out.UpdatePolicy = in.UpdatePolicy - out.ExternalPolicies = in.ExternalPolicies - out.AdditionalPolicies = in.AdditionalPolicies - if in.FileAssets != nil { - in, out := &in.FileAssets, &out.FileAssets - *out = make([]FileAssetSpec, len(*in)) - for i := range *in { - if err := Convert_kops_FileAssetSpec_To_v1alpha1_FileAssetSpec(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.FileAssets = nil - } - if in.EtcdClusters != nil { - in, out := &in.EtcdClusters, &out.EtcdClusters - *out = make([]*EtcdClusterSpec, len(*in)) - for i := range *in { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil { - return err - } - } - } else { - out.EtcdClusters = nil - } - if in.Containerd != nil { - in, out := &in.Containerd, &out.Containerd - *out = new(ContainerdConfig) - if err := Convert_kops_ContainerdConfig_To_v1alpha1_ContainerdConfig(*in, *out, s); err != nil { - return err - } - } else { - out.Containerd = nil - } - if in.Docker != nil { - in, out := &in.Docker, &out.Docker - *out = new(DockerConfig) - if err := Convert_kops_DockerConfig_To_v1alpha1_DockerConfig(*in, *out, s); err != nil { - return err - } - } else { - out.Docker = nil - } - if in.KubeDNS != nil { - in, out := &in.KubeDNS, &out.KubeDNS - *out = new(KubeDNSConfig) - if err := Convert_kops_KubeDNSConfig_To_v1alpha1_KubeDNSConfig(*in, *out, s); err != nil { - return err - } - } else { - out.KubeDNS = nil - } - if in.KubeAPIServer != nil { - in, out := &in.KubeAPIServer, &out.KubeAPIServer - *out = new(KubeAPIServerConfig) - if err := Convert_kops_KubeAPIServerConfig_To_v1alpha1_KubeAPIServerConfig(*in, *out, s); err != nil { - return err - } - } else { - out.KubeAPIServer = nil - } - if in.KubeControllerManager != nil { - in, out := &in.KubeControllerManager, &out.KubeControllerManager - *out = new(KubeControllerManagerConfig) - if err := Convert_kops_KubeControllerManagerConfig_To_v1alpha1_KubeControllerManagerConfig(*in, *out, s); err != nil { - return err - } - } else { - out.KubeControllerManager = nil - } - if in.ExternalCloudControllerManager != nil { - in, out := &in.ExternalCloudControllerManager, &out.ExternalCloudControllerManager - *out = new(CloudControllerManagerConfig) - if err := Convert_kops_CloudControllerManagerConfig_To_v1alpha1_CloudControllerManagerConfig(*in, *out, s); err != nil { - return err - } - } else { - out.ExternalCloudControllerManager = nil - } - if in.KubeScheduler != nil { - in, out := &in.KubeScheduler, &out.KubeScheduler - *out = new(KubeSchedulerConfig) - if err := Convert_kops_KubeSchedulerConfig_To_v1alpha1_KubeSchedulerConfig(*in, *out, s); err != nil { - return err - } - } else { - out.KubeScheduler = nil - } - if in.KubeProxy != nil { - in, out := &in.KubeProxy, &out.KubeProxy - *out = new(KubeProxyConfig) - if err := Convert_kops_KubeProxyConfig_To_v1alpha1_KubeProxyConfig(*in, *out, s); err != nil { - return err - } - } else { - out.KubeProxy = nil - } - if in.Kubelet != nil { - in, out := &in.Kubelet, &out.Kubelet - *out = new(KubeletConfigSpec) - if err := Convert_kops_KubeletConfigSpec_To_v1alpha1_KubeletConfigSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Kubelet = nil - } - if in.MasterKubelet != nil { - in, out := &in.MasterKubelet, &out.MasterKubelet - *out = new(KubeletConfigSpec) - if err := Convert_kops_KubeletConfigSpec_To_v1alpha1_KubeletConfigSpec(*in, *out, s); err != nil { - return err - } - } else { - out.MasterKubelet = nil - } - if in.CloudConfig != nil { - in, out := &in.CloudConfig, &out.CloudConfig - *out = new(CloudConfiguration) - if err := Convert_kops_CloudConfiguration_To_v1alpha1_CloudConfiguration(*in, *out, s); err != nil { - return err - } - } else { - out.CloudConfig = nil - } - if in.ExternalDNS != nil { - in, out := &in.ExternalDNS, &out.ExternalDNS - *out = new(ExternalDNSConfig) - if err := Convert_kops_ExternalDNSConfig_To_v1alpha1_ExternalDNSConfig(*in, *out, s); err != nil { - return err - } - } else { - out.ExternalDNS = nil - } - if in.Networking != nil { - in, out := &in.Networking, &out.Networking - *out = new(NetworkingSpec) - if err := Convert_kops_NetworkingSpec_To_v1alpha1_NetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Networking = nil - } - if in.API != nil { - in, out := &in.API, &out.API - *out = new(AccessSpec) - if err := Convert_kops_AccessSpec_To_v1alpha1_AccessSpec(*in, *out, s); err != nil { - return err - } - } else { - out.API = nil - } - if in.Authentication != nil { - in, out := &in.Authentication, &out.Authentication - *out = new(AuthenticationSpec) - if err := Convert_kops_AuthenticationSpec_To_v1alpha1_AuthenticationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Authentication = nil - } - if in.Authorization != nil { - in, out := &in.Authorization, &out.Authorization - *out = new(AuthorizationSpec) - if err := Convert_kops_AuthorizationSpec_To_v1alpha1_AuthorizationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Authorization = nil - } - if in.NodeAuthorization != nil { - in, out := &in.NodeAuthorization, &out.NodeAuthorization - *out = new(NodeAuthorizationSpec) - if err := Convert_kops_NodeAuthorizationSpec_To_v1alpha1_NodeAuthorizationSpec(*in, *out, s); err != nil { - return err - } - } else { - out.NodeAuthorization = nil - } - out.CloudLabels = in.CloudLabels - if in.Hooks != nil { - in, out := &in.Hooks, &out.Hooks - *out = make([]HookSpec, len(*in)) - for i := range *in { - if err := Convert_kops_HookSpec_To_v1alpha1_HookSpec(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Hooks = nil - } - if in.Assets != nil { - in, out := &in.Assets, &out.Assets - *out = new(Assets) - if err := Convert_kops_Assets_To_v1alpha1_Assets(*in, *out, s); err != nil { - return err - } - } else { - out.Assets = nil - } - if in.IAM != nil { - in, out := &in.IAM, &out.IAM - *out = new(IAMSpec) - if err := Convert_kops_IAMSpec_To_v1alpha1_IAMSpec(*in, *out, s); err != nil { - return err - } - } else { - out.IAM = nil - } - out.EncryptionConfig = in.EncryptionConfig - out.DisableSubnetTags = in.DisableSubnetTags - if in.Target != nil { - in, out := &in.Target, &out.Target - *out = new(TargetSpec) - if err := Convert_kops_TargetSpec_To_v1alpha1_TargetSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Target = nil - } - out.UseHostCertificates = in.UseHostCertificates - out.SysctlParameters = in.SysctlParameters - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdate) - if err := Convert_kops_RollingUpdate_To_v1alpha1_RollingUpdate(*in, *out, s); err != nil { - return err - } - } else { - out.RollingUpdate = nil - } - return nil -} - -func autoConvert_v1alpha1_ContainerdConfig_To_kops_ContainerdConfig(in *ContainerdConfig, out *kops.ContainerdConfig, s conversion.Scope) error { - out.Address = in.Address - out.ConfigOverride = in.ConfigOverride - out.LogLevel = in.LogLevel - out.Root = in.Root - out.SkipInstall = in.SkipInstall - out.State = in.State - out.Version = in.Version - return nil -} - -// Convert_v1alpha1_ContainerdConfig_To_kops_ContainerdConfig is an autogenerated conversion function. -func Convert_v1alpha1_ContainerdConfig_To_kops_ContainerdConfig(in *ContainerdConfig, out *kops.ContainerdConfig, s conversion.Scope) error { - return autoConvert_v1alpha1_ContainerdConfig_To_kops_ContainerdConfig(in, out, s) -} - -func autoConvert_kops_ContainerdConfig_To_v1alpha1_ContainerdConfig(in *kops.ContainerdConfig, out *ContainerdConfig, s conversion.Scope) error { - out.Address = in.Address - out.ConfigOverride = in.ConfigOverride - out.LogLevel = in.LogLevel - out.Root = in.Root - out.SkipInstall = in.SkipInstall - out.State = in.State - out.Version = in.Version - return nil -} - -// Convert_kops_ContainerdConfig_To_v1alpha1_ContainerdConfig is an autogenerated conversion function. -func Convert_kops_ContainerdConfig_To_v1alpha1_ContainerdConfig(in *kops.ContainerdConfig, out *ContainerdConfig, s conversion.Scope) error { - return autoConvert_kops_ContainerdConfig_To_v1alpha1_ContainerdConfig(in, out, s) -} - -func autoConvert_v1alpha1_DNSAccessSpec_To_kops_DNSAccessSpec(in *DNSAccessSpec, out *kops.DNSAccessSpec, s conversion.Scope) error { - return nil -} - -// Convert_v1alpha1_DNSAccessSpec_To_kops_DNSAccessSpec is an autogenerated conversion function. -func Convert_v1alpha1_DNSAccessSpec_To_kops_DNSAccessSpec(in *DNSAccessSpec, out *kops.DNSAccessSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_DNSAccessSpec_To_kops_DNSAccessSpec(in, out, s) -} - -func autoConvert_kops_DNSAccessSpec_To_v1alpha1_DNSAccessSpec(in *kops.DNSAccessSpec, out *DNSAccessSpec, s conversion.Scope) error { - return nil -} - -// Convert_kops_DNSAccessSpec_To_v1alpha1_DNSAccessSpec is an autogenerated conversion function. -func Convert_kops_DNSAccessSpec_To_v1alpha1_DNSAccessSpec(in *kops.DNSAccessSpec, out *DNSAccessSpec, s conversion.Scope) error { - return autoConvert_kops_DNSAccessSpec_To_v1alpha1_DNSAccessSpec(in, out, s) -} - -func autoConvert_v1alpha1_DNSControllerGossipConfig_To_kops_DNSControllerGossipConfig(in *DNSControllerGossipConfig, out *kops.DNSControllerGossipConfig, s conversion.Scope) error { - out.Protocol = in.Protocol - out.Listen = in.Listen - out.Secret = in.Secret - if in.Secondary != nil { - in, out := &in.Secondary, &out.Secondary - *out = new(kops.DNSControllerGossipConfig) - if err := Convert_v1alpha1_DNSControllerGossipConfig_To_kops_DNSControllerGossipConfig(*in, *out, s); err != nil { - return err - } - } else { - out.Secondary = nil - } - out.Seed = in.Seed - return nil -} - -// Convert_v1alpha1_DNSControllerGossipConfig_To_kops_DNSControllerGossipConfig is an autogenerated conversion function. -func Convert_v1alpha1_DNSControllerGossipConfig_To_kops_DNSControllerGossipConfig(in *DNSControllerGossipConfig, out *kops.DNSControllerGossipConfig, s conversion.Scope) error { - return autoConvert_v1alpha1_DNSControllerGossipConfig_To_kops_DNSControllerGossipConfig(in, out, s) -} - -func autoConvert_kops_DNSControllerGossipConfig_To_v1alpha1_DNSControllerGossipConfig(in *kops.DNSControllerGossipConfig, out *DNSControllerGossipConfig, s conversion.Scope) error { - out.Protocol = in.Protocol - out.Listen = in.Listen - out.Secret = in.Secret - if in.Secondary != nil { - in, out := &in.Secondary, &out.Secondary - *out = new(DNSControllerGossipConfig) - if err := Convert_kops_DNSControllerGossipConfig_To_v1alpha1_DNSControllerGossipConfig(*in, *out, s); err != nil { - return err - } - } else { - out.Secondary = nil - } - out.Seed = in.Seed - return nil -} - -// Convert_kops_DNSControllerGossipConfig_To_v1alpha1_DNSControllerGossipConfig is an autogenerated conversion function. -func Convert_kops_DNSControllerGossipConfig_To_v1alpha1_DNSControllerGossipConfig(in *kops.DNSControllerGossipConfig, out *DNSControllerGossipConfig, s conversion.Scope) error { - return autoConvert_kops_DNSControllerGossipConfig_To_v1alpha1_DNSControllerGossipConfig(in, out, s) -} - -func autoConvert_v1alpha1_DNSSpec_To_kops_DNSSpec(in *DNSSpec, out *kops.DNSSpec, s conversion.Scope) error { - out.Type = kops.DNSType(in.Type) - return nil -} - -// Convert_v1alpha1_DNSSpec_To_kops_DNSSpec is an autogenerated conversion function. -func Convert_v1alpha1_DNSSpec_To_kops_DNSSpec(in *DNSSpec, out *kops.DNSSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_DNSSpec_To_kops_DNSSpec(in, out, s) -} - -func autoConvert_kops_DNSSpec_To_v1alpha1_DNSSpec(in *kops.DNSSpec, out *DNSSpec, s conversion.Scope) error { - out.Type = DNSType(in.Type) - return nil -} - -// Convert_kops_DNSSpec_To_v1alpha1_DNSSpec is an autogenerated conversion function. -func Convert_kops_DNSSpec_To_v1alpha1_DNSSpec(in *kops.DNSSpec, out *DNSSpec, s conversion.Scope) error { - return autoConvert_kops_DNSSpec_To_v1alpha1_DNSSpec(in, out, s) -} - -func autoConvert_v1alpha1_DockerConfig_To_kops_DockerConfig(in *DockerConfig, out *kops.DockerConfig, s conversion.Scope) error { - out.AuthorizationPlugins = in.AuthorizationPlugins - out.Bridge = in.Bridge - out.BridgeIP = in.BridgeIP - out.DataRoot = in.DataRoot - out.DefaultUlimit = in.DefaultUlimit - out.ExecOpt = in.ExecOpt - out.ExecRoot = in.ExecRoot - out.Experimental = in.Experimental - out.HealthCheck = in.HealthCheck - out.Hosts = in.Hosts - out.IPMasq = in.IPMasq - out.IPTables = in.IPTables - out.InsecureRegistry = in.InsecureRegistry - out.InsecureRegistries = in.InsecureRegistries - out.LiveRestore = in.LiveRestore - out.LogDriver = in.LogDriver - out.LogLevel = in.LogLevel - out.LogOpt = in.LogOpt - out.MetricsAddress = in.MetricsAddress - out.MTU = in.MTU - out.RegistryMirrors = in.RegistryMirrors - out.SkipInstall = in.SkipInstall - out.Storage = in.Storage - out.StorageOpts = in.StorageOpts - out.UserNamespaceRemap = in.UserNamespaceRemap - out.Version = in.Version - return nil -} - -// Convert_v1alpha1_DockerConfig_To_kops_DockerConfig is an autogenerated conversion function. -func Convert_v1alpha1_DockerConfig_To_kops_DockerConfig(in *DockerConfig, out *kops.DockerConfig, s conversion.Scope) error { - return autoConvert_v1alpha1_DockerConfig_To_kops_DockerConfig(in, out, s) -} - -func autoConvert_kops_DockerConfig_To_v1alpha1_DockerConfig(in *kops.DockerConfig, out *DockerConfig, s conversion.Scope) error { - out.AuthorizationPlugins = in.AuthorizationPlugins - out.Bridge = in.Bridge - out.BridgeIP = in.BridgeIP - out.DataRoot = in.DataRoot - out.DefaultUlimit = in.DefaultUlimit - out.ExecOpt = in.ExecOpt - out.ExecRoot = in.ExecRoot - out.Experimental = in.Experimental - out.HealthCheck = in.HealthCheck - out.Hosts = in.Hosts - out.IPMasq = in.IPMasq - out.IPTables = in.IPTables - out.InsecureRegistry = in.InsecureRegistry - out.InsecureRegistries = in.InsecureRegistries - out.LiveRestore = in.LiveRestore - out.LogDriver = in.LogDriver - out.LogLevel = in.LogLevel - out.LogOpt = in.LogOpt - out.MetricsAddress = in.MetricsAddress - out.MTU = in.MTU - out.RegistryMirrors = in.RegistryMirrors - out.SkipInstall = in.SkipInstall - out.Storage = in.Storage - out.StorageOpts = in.StorageOpts - out.UserNamespaceRemap = in.UserNamespaceRemap - out.Version = in.Version - return nil -} - -// Convert_kops_DockerConfig_To_v1alpha1_DockerConfig is an autogenerated conversion function. -func Convert_kops_DockerConfig_To_v1alpha1_DockerConfig(in *kops.DockerConfig, out *DockerConfig, s conversion.Scope) error { - return autoConvert_kops_DockerConfig_To_v1alpha1_DockerConfig(in, out, s) -} - -func autoConvert_v1alpha1_EgressProxySpec_To_kops_EgressProxySpec(in *EgressProxySpec, out *kops.EgressProxySpec, s conversion.Scope) error { - if err := Convert_v1alpha1_HTTPProxy_To_kops_HTTPProxy(&in.HTTPProxy, &out.HTTPProxy, s); err != nil { - return err - } - out.ProxyExcludes = in.ProxyExcludes - return nil -} - -// Convert_v1alpha1_EgressProxySpec_To_kops_EgressProxySpec is an autogenerated conversion function. -func Convert_v1alpha1_EgressProxySpec_To_kops_EgressProxySpec(in *EgressProxySpec, out *kops.EgressProxySpec, s conversion.Scope) error { - return autoConvert_v1alpha1_EgressProxySpec_To_kops_EgressProxySpec(in, out, s) -} - -func autoConvert_kops_EgressProxySpec_To_v1alpha1_EgressProxySpec(in *kops.EgressProxySpec, out *EgressProxySpec, s conversion.Scope) error { - if err := Convert_kops_HTTPProxy_To_v1alpha1_HTTPProxy(&in.HTTPProxy, &out.HTTPProxy, s); err != nil { - return err - } - out.ProxyExcludes = in.ProxyExcludes - return nil -} - -// Convert_kops_EgressProxySpec_To_v1alpha1_EgressProxySpec is an autogenerated conversion function. -func Convert_kops_EgressProxySpec_To_v1alpha1_EgressProxySpec(in *kops.EgressProxySpec, out *EgressProxySpec, s conversion.Scope) error { - return autoConvert_kops_EgressProxySpec_To_v1alpha1_EgressProxySpec(in, out, s) -} - -func autoConvert_v1alpha1_EnvVar_To_kops_EnvVar(in *EnvVar, out *kops.EnvVar, s conversion.Scope) error { - out.Name = in.Name - out.Value = in.Value - return nil -} - -// Convert_v1alpha1_EnvVar_To_kops_EnvVar is an autogenerated conversion function. -func Convert_v1alpha1_EnvVar_To_kops_EnvVar(in *EnvVar, out *kops.EnvVar, s conversion.Scope) error { - return autoConvert_v1alpha1_EnvVar_To_kops_EnvVar(in, out, s) -} - -func autoConvert_kops_EnvVar_To_v1alpha1_EnvVar(in *kops.EnvVar, out *EnvVar, s conversion.Scope) error { - out.Name = in.Name - out.Value = in.Value - return nil -} - -// Convert_kops_EnvVar_To_v1alpha1_EnvVar is an autogenerated conversion function. -func Convert_kops_EnvVar_To_v1alpha1_EnvVar(in *kops.EnvVar, out *EnvVar, s conversion.Scope) error { - return autoConvert_kops_EnvVar_To_v1alpha1_EnvVar(in, out, s) -} - -func autoConvert_v1alpha1_EtcdBackupSpec_To_kops_EtcdBackupSpec(in *EtcdBackupSpec, out *kops.EtcdBackupSpec, s conversion.Scope) error { - out.BackupStore = in.BackupStore - out.Image = in.Image - return nil -} - -// Convert_v1alpha1_EtcdBackupSpec_To_kops_EtcdBackupSpec is an autogenerated conversion function. -func Convert_v1alpha1_EtcdBackupSpec_To_kops_EtcdBackupSpec(in *EtcdBackupSpec, out *kops.EtcdBackupSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_EtcdBackupSpec_To_kops_EtcdBackupSpec(in, out, s) -} - -func autoConvert_kops_EtcdBackupSpec_To_v1alpha1_EtcdBackupSpec(in *kops.EtcdBackupSpec, out *EtcdBackupSpec, s conversion.Scope) error { - out.BackupStore = in.BackupStore - out.Image = in.Image - return nil -} - -// Convert_kops_EtcdBackupSpec_To_v1alpha1_EtcdBackupSpec is an autogenerated conversion function. -func Convert_kops_EtcdBackupSpec_To_v1alpha1_EtcdBackupSpec(in *kops.EtcdBackupSpec, out *EtcdBackupSpec, s conversion.Scope) error { - return autoConvert_kops_EtcdBackupSpec_To_v1alpha1_EtcdBackupSpec(in, out, s) -} - -func autoConvert_v1alpha1_EtcdClusterSpec_To_kops_EtcdClusterSpec(in *EtcdClusterSpec, out *kops.EtcdClusterSpec, s conversion.Scope) error { - out.Name = in.Name - out.Provider = kops.EtcdProviderType(in.Provider) - if in.Members != nil { - in, out := &in.Members, &out.Members - *out = make([]*kops.EtcdMemberSpec, len(*in)) - for i := range *in { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil { - return err - } - } - } else { - out.Members = nil - } - out.EnableTLSAuth = in.EnableTLSAuth - out.EnableEtcdTLS = in.EnableEtcdTLS - out.Version = in.Version - out.LeaderElectionTimeout = in.LeaderElectionTimeout - out.HeartbeatInterval = in.HeartbeatInterval - out.Image = in.Image - if in.Backups != nil { - in, out := &in.Backups, &out.Backups - *out = new(kops.EtcdBackupSpec) - if err := Convert_v1alpha1_EtcdBackupSpec_To_kops_EtcdBackupSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Backups = nil - } - if in.Manager != nil { - in, out := &in.Manager, &out.Manager - *out = new(kops.EtcdManagerSpec) - if err := Convert_v1alpha1_EtcdManagerSpec_To_kops_EtcdManagerSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Manager = nil - } - out.MemoryRequest = in.MemoryRequest - out.CPURequest = in.CPURequest - return nil -} - -// Convert_v1alpha1_EtcdClusterSpec_To_kops_EtcdClusterSpec is an autogenerated conversion function. -func Convert_v1alpha1_EtcdClusterSpec_To_kops_EtcdClusterSpec(in *EtcdClusterSpec, out *kops.EtcdClusterSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_EtcdClusterSpec_To_kops_EtcdClusterSpec(in, out, s) -} - -func autoConvert_kops_EtcdClusterSpec_To_v1alpha1_EtcdClusterSpec(in *kops.EtcdClusterSpec, out *EtcdClusterSpec, s conversion.Scope) error { - out.Name = in.Name - out.Provider = EtcdProviderType(in.Provider) - if in.Members != nil { - in, out := &in.Members, &out.Members - *out = make([]*EtcdMemberSpec, len(*in)) - for i := range *in { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil { - return err - } - } - } else { - out.Members = nil - } - out.EnableEtcdTLS = in.EnableEtcdTLS - out.EnableTLSAuth = in.EnableTLSAuth - out.Version = in.Version - out.LeaderElectionTimeout = in.LeaderElectionTimeout - out.HeartbeatInterval = in.HeartbeatInterval - out.Image = in.Image - if in.Backups != nil { - in, out := &in.Backups, &out.Backups - *out = new(EtcdBackupSpec) - if err := Convert_kops_EtcdBackupSpec_To_v1alpha1_EtcdBackupSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Backups = nil - } - if in.Manager != nil { - in, out := &in.Manager, &out.Manager - *out = new(EtcdManagerSpec) - if err := Convert_kops_EtcdManagerSpec_To_v1alpha1_EtcdManagerSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Manager = nil - } - out.MemoryRequest = in.MemoryRequest - out.CPURequest = in.CPURequest - return nil -} - -// Convert_kops_EtcdClusterSpec_To_v1alpha1_EtcdClusterSpec is an autogenerated conversion function. -func Convert_kops_EtcdClusterSpec_To_v1alpha1_EtcdClusterSpec(in *kops.EtcdClusterSpec, out *EtcdClusterSpec, s conversion.Scope) error { - return autoConvert_kops_EtcdClusterSpec_To_v1alpha1_EtcdClusterSpec(in, out, s) -} - -func autoConvert_v1alpha1_EtcdManagerSpec_To_kops_EtcdManagerSpec(in *EtcdManagerSpec, out *kops.EtcdManagerSpec, s conversion.Scope) error { - out.Image = in.Image - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make([]kops.EnvVar, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_EnvVar_To_kops_EnvVar(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Env = nil - } - return nil -} - -// Convert_v1alpha1_EtcdManagerSpec_To_kops_EtcdManagerSpec is an autogenerated conversion function. -func Convert_v1alpha1_EtcdManagerSpec_To_kops_EtcdManagerSpec(in *EtcdManagerSpec, out *kops.EtcdManagerSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_EtcdManagerSpec_To_kops_EtcdManagerSpec(in, out, s) -} - -func autoConvert_kops_EtcdManagerSpec_To_v1alpha1_EtcdManagerSpec(in *kops.EtcdManagerSpec, out *EtcdManagerSpec, s conversion.Scope) error { - out.Image = in.Image - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make([]EnvVar, len(*in)) - for i := range *in { - if err := Convert_kops_EnvVar_To_v1alpha1_EnvVar(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Env = nil - } - return nil -} - -// Convert_kops_EtcdManagerSpec_To_v1alpha1_EtcdManagerSpec is an autogenerated conversion function. -func Convert_kops_EtcdManagerSpec_To_v1alpha1_EtcdManagerSpec(in *kops.EtcdManagerSpec, out *EtcdManagerSpec, s conversion.Scope) error { - return autoConvert_kops_EtcdManagerSpec_To_v1alpha1_EtcdManagerSpec(in, out, s) -} - -func autoConvert_v1alpha1_EtcdMemberSpec_To_kops_EtcdMemberSpec(in *EtcdMemberSpec, out *kops.EtcdMemberSpec, s conversion.Scope) error { - out.Name = in.Name - // WARNING: in.Zone requires manual conversion: does not exist in peer-type - out.VolumeType = in.VolumeType - out.VolumeIops = in.VolumeIops - out.VolumeSize = in.VolumeSize - out.KmsKeyId = in.KmsKeyId - out.EncryptedVolume = in.EncryptedVolume - return nil -} - -func autoConvert_kops_EtcdMemberSpec_To_v1alpha1_EtcdMemberSpec(in *kops.EtcdMemberSpec, out *EtcdMemberSpec, s conversion.Scope) error { - out.Name = in.Name - // WARNING: in.InstanceGroup requires manual conversion: does not exist in peer-type - out.VolumeType = in.VolumeType - out.VolumeIops = in.VolumeIops - out.VolumeSize = in.VolumeSize - out.KmsKeyId = in.KmsKeyId - out.EncryptedVolume = in.EncryptedVolume - return nil -} - -func autoConvert_v1alpha1_ExecContainerAction_To_kops_ExecContainerAction(in *ExecContainerAction, out *kops.ExecContainerAction, s conversion.Scope) error { - out.Image = in.Image - out.Command = in.Command - out.Environment = in.Environment - return nil -} - -// Convert_v1alpha1_ExecContainerAction_To_kops_ExecContainerAction is an autogenerated conversion function. -func Convert_v1alpha1_ExecContainerAction_To_kops_ExecContainerAction(in *ExecContainerAction, out *kops.ExecContainerAction, s conversion.Scope) error { - return autoConvert_v1alpha1_ExecContainerAction_To_kops_ExecContainerAction(in, out, s) -} - -func autoConvert_kops_ExecContainerAction_To_v1alpha1_ExecContainerAction(in *kops.ExecContainerAction, out *ExecContainerAction, s conversion.Scope) error { - out.Image = in.Image - out.Command = in.Command - out.Environment = in.Environment - return nil -} - -// Convert_kops_ExecContainerAction_To_v1alpha1_ExecContainerAction is an autogenerated conversion function. -func Convert_kops_ExecContainerAction_To_v1alpha1_ExecContainerAction(in *kops.ExecContainerAction, out *ExecContainerAction, s conversion.Scope) error { - return autoConvert_kops_ExecContainerAction_To_v1alpha1_ExecContainerAction(in, out, s) -} - -func autoConvert_v1alpha1_ExternalDNSConfig_To_kops_ExternalDNSConfig(in *ExternalDNSConfig, out *kops.ExternalDNSConfig, s conversion.Scope) error { - out.Disable = in.Disable - out.WatchIngress = in.WatchIngress - out.WatchNamespace = in.WatchNamespace - return nil -} - -// Convert_v1alpha1_ExternalDNSConfig_To_kops_ExternalDNSConfig is an autogenerated conversion function. -func Convert_v1alpha1_ExternalDNSConfig_To_kops_ExternalDNSConfig(in *ExternalDNSConfig, out *kops.ExternalDNSConfig, s conversion.Scope) error { - return autoConvert_v1alpha1_ExternalDNSConfig_To_kops_ExternalDNSConfig(in, out, s) -} - -func autoConvert_kops_ExternalDNSConfig_To_v1alpha1_ExternalDNSConfig(in *kops.ExternalDNSConfig, out *ExternalDNSConfig, s conversion.Scope) error { - out.Disable = in.Disable - out.WatchIngress = in.WatchIngress - out.WatchNamespace = in.WatchNamespace - return nil -} - -// Convert_kops_ExternalDNSConfig_To_v1alpha1_ExternalDNSConfig is an autogenerated conversion function. -func Convert_kops_ExternalDNSConfig_To_v1alpha1_ExternalDNSConfig(in *kops.ExternalDNSConfig, out *ExternalDNSConfig, s conversion.Scope) error { - return autoConvert_kops_ExternalDNSConfig_To_v1alpha1_ExternalDNSConfig(in, out, s) -} - -func autoConvert_v1alpha1_ExternalNetworkingSpec_To_kops_ExternalNetworkingSpec(in *ExternalNetworkingSpec, out *kops.ExternalNetworkingSpec, s conversion.Scope) error { - return nil -} - -// Convert_v1alpha1_ExternalNetworkingSpec_To_kops_ExternalNetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_ExternalNetworkingSpec_To_kops_ExternalNetworkingSpec(in *ExternalNetworkingSpec, out *kops.ExternalNetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_ExternalNetworkingSpec_To_kops_ExternalNetworkingSpec(in, out, s) -} - -func autoConvert_kops_ExternalNetworkingSpec_To_v1alpha1_ExternalNetworkingSpec(in *kops.ExternalNetworkingSpec, out *ExternalNetworkingSpec, s conversion.Scope) error { - return nil -} - -// Convert_kops_ExternalNetworkingSpec_To_v1alpha1_ExternalNetworkingSpec is an autogenerated conversion function. -func Convert_kops_ExternalNetworkingSpec_To_v1alpha1_ExternalNetworkingSpec(in *kops.ExternalNetworkingSpec, out *ExternalNetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_ExternalNetworkingSpec_To_v1alpha1_ExternalNetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_FileAssetSpec_To_kops_FileAssetSpec(in *FileAssetSpec, out *kops.FileAssetSpec, s conversion.Scope) error { - out.Name = in.Name - out.Path = in.Path - if in.Roles != nil { - in, out := &in.Roles, &out.Roles - *out = make([]kops.InstanceGroupRole, len(*in)) - for i := range *in { - (*out)[i] = kops.InstanceGroupRole((*in)[i]) - } - } else { - out.Roles = nil - } - out.Content = in.Content - out.IsBase64 = in.IsBase64 - return nil -} - -// Convert_v1alpha1_FileAssetSpec_To_kops_FileAssetSpec is an autogenerated conversion function. -func Convert_v1alpha1_FileAssetSpec_To_kops_FileAssetSpec(in *FileAssetSpec, out *kops.FileAssetSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_FileAssetSpec_To_kops_FileAssetSpec(in, out, s) -} - -func autoConvert_kops_FileAssetSpec_To_v1alpha1_FileAssetSpec(in *kops.FileAssetSpec, out *FileAssetSpec, s conversion.Scope) error { - out.Name = in.Name - out.Path = in.Path - if in.Roles != nil { - in, out := &in.Roles, &out.Roles - *out = make([]InstanceGroupRole, len(*in)) - for i := range *in { - (*out)[i] = InstanceGroupRole((*in)[i]) - } - } else { - out.Roles = nil - } - out.Content = in.Content - out.IsBase64 = in.IsBase64 - return nil -} - -// Convert_kops_FileAssetSpec_To_v1alpha1_FileAssetSpec is an autogenerated conversion function. -func Convert_kops_FileAssetSpec_To_v1alpha1_FileAssetSpec(in *kops.FileAssetSpec, out *FileAssetSpec, s conversion.Scope) error { - return autoConvert_kops_FileAssetSpec_To_v1alpha1_FileAssetSpec(in, out, s) -} - -func autoConvert_v1alpha1_FlannelNetworkingSpec_To_kops_FlannelNetworkingSpec(in *FlannelNetworkingSpec, out *kops.FlannelNetworkingSpec, s conversion.Scope) error { - out.Backend = in.Backend - out.IptablesResyncSeconds = in.IptablesResyncSeconds - return nil -} - -// Convert_v1alpha1_FlannelNetworkingSpec_To_kops_FlannelNetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_FlannelNetworkingSpec_To_kops_FlannelNetworkingSpec(in *FlannelNetworkingSpec, out *kops.FlannelNetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_FlannelNetworkingSpec_To_kops_FlannelNetworkingSpec(in, out, s) -} - -func autoConvert_kops_FlannelNetworkingSpec_To_v1alpha1_FlannelNetworkingSpec(in *kops.FlannelNetworkingSpec, out *FlannelNetworkingSpec, s conversion.Scope) error { - out.Backend = in.Backend - out.IptablesResyncSeconds = in.IptablesResyncSeconds - return nil -} - -// Convert_kops_FlannelNetworkingSpec_To_v1alpha1_FlannelNetworkingSpec is an autogenerated conversion function. -func Convert_kops_FlannelNetworkingSpec_To_v1alpha1_FlannelNetworkingSpec(in *kops.FlannelNetworkingSpec, out *FlannelNetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_FlannelNetworkingSpec_To_v1alpha1_FlannelNetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_GCENetworkingSpec_To_kops_GCENetworkingSpec(in *GCENetworkingSpec, out *kops.GCENetworkingSpec, s conversion.Scope) error { - return nil -} - -// Convert_v1alpha1_GCENetworkingSpec_To_kops_GCENetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_GCENetworkingSpec_To_kops_GCENetworkingSpec(in *GCENetworkingSpec, out *kops.GCENetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_GCENetworkingSpec_To_kops_GCENetworkingSpec(in, out, s) -} - -func autoConvert_kops_GCENetworkingSpec_To_v1alpha1_GCENetworkingSpec(in *kops.GCENetworkingSpec, out *GCENetworkingSpec, s conversion.Scope) error { - return nil -} - -// Convert_kops_GCENetworkingSpec_To_v1alpha1_GCENetworkingSpec is an autogenerated conversion function. -func Convert_kops_GCENetworkingSpec_To_v1alpha1_GCENetworkingSpec(in *kops.GCENetworkingSpec, out *GCENetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_GCENetworkingSpec_To_v1alpha1_GCENetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_GossipConfig_To_kops_GossipConfig(in *GossipConfig, out *kops.GossipConfig, s conversion.Scope) error { - out.Protocol = in.Protocol - out.Listen = in.Listen - out.Secret = in.Secret - if in.Secondary != nil { - in, out := &in.Secondary, &out.Secondary - *out = new(kops.GossipConfig) - if err := Convert_v1alpha1_GossipConfig_To_kops_GossipConfig(*in, *out, s); err != nil { - return err - } - } else { - out.Secondary = nil - } - return nil -} - -// Convert_v1alpha1_GossipConfig_To_kops_GossipConfig is an autogenerated conversion function. -func Convert_v1alpha1_GossipConfig_To_kops_GossipConfig(in *GossipConfig, out *kops.GossipConfig, s conversion.Scope) error { - return autoConvert_v1alpha1_GossipConfig_To_kops_GossipConfig(in, out, s) -} - -func autoConvert_kops_GossipConfig_To_v1alpha1_GossipConfig(in *kops.GossipConfig, out *GossipConfig, s conversion.Scope) error { - out.Protocol = in.Protocol - out.Listen = in.Listen - out.Secret = in.Secret - if in.Secondary != nil { - in, out := &in.Secondary, &out.Secondary - *out = new(GossipConfig) - if err := Convert_kops_GossipConfig_To_v1alpha1_GossipConfig(*in, *out, s); err != nil { - return err - } - } else { - out.Secondary = nil - } - return nil -} - -// Convert_kops_GossipConfig_To_v1alpha1_GossipConfig is an autogenerated conversion function. -func Convert_kops_GossipConfig_To_v1alpha1_GossipConfig(in *kops.GossipConfig, out *GossipConfig, s conversion.Scope) error { - return autoConvert_kops_GossipConfig_To_v1alpha1_GossipConfig(in, out, s) -} - -func autoConvert_v1alpha1_HTTPProxy_To_kops_HTTPProxy(in *HTTPProxy, out *kops.HTTPProxy, s conversion.Scope) error { - out.Host = in.Host - out.Port = in.Port - return nil -} - -// Convert_v1alpha1_HTTPProxy_To_kops_HTTPProxy is an autogenerated conversion function. -func Convert_v1alpha1_HTTPProxy_To_kops_HTTPProxy(in *HTTPProxy, out *kops.HTTPProxy, s conversion.Scope) error { - return autoConvert_v1alpha1_HTTPProxy_To_kops_HTTPProxy(in, out, s) -} - -func autoConvert_kops_HTTPProxy_To_v1alpha1_HTTPProxy(in *kops.HTTPProxy, out *HTTPProxy, s conversion.Scope) error { - out.Host = in.Host - out.Port = in.Port - return nil -} - -// Convert_kops_HTTPProxy_To_v1alpha1_HTTPProxy is an autogenerated conversion function. -func Convert_kops_HTTPProxy_To_v1alpha1_HTTPProxy(in *kops.HTTPProxy, out *HTTPProxy, s conversion.Scope) error { - return autoConvert_kops_HTTPProxy_To_v1alpha1_HTTPProxy(in, out, s) -} - -func autoConvert_v1alpha1_HookSpec_To_kops_HookSpec(in *HookSpec, out *kops.HookSpec, s conversion.Scope) error { - out.Name = in.Name - out.Disabled = in.Disabled - if in.Roles != nil { - in, out := &in.Roles, &out.Roles - *out = make([]kops.InstanceGroupRole, len(*in)) - for i := range *in { - (*out)[i] = kops.InstanceGroupRole((*in)[i]) - } - } else { - out.Roles = nil - } - out.Requires = in.Requires - out.Before = in.Before - if in.ExecContainer != nil { - in, out := &in.ExecContainer, &out.ExecContainer - *out = new(kops.ExecContainerAction) - if err := Convert_v1alpha1_ExecContainerAction_To_kops_ExecContainerAction(*in, *out, s); err != nil { - return err - } - } else { - out.ExecContainer = nil - } - out.Manifest = in.Manifest - out.UseRawManifest = in.UseRawManifest - return nil -} - -// Convert_v1alpha1_HookSpec_To_kops_HookSpec is an autogenerated conversion function. -func Convert_v1alpha1_HookSpec_To_kops_HookSpec(in *HookSpec, out *kops.HookSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_HookSpec_To_kops_HookSpec(in, out, s) -} - -func autoConvert_kops_HookSpec_To_v1alpha1_HookSpec(in *kops.HookSpec, out *HookSpec, s conversion.Scope) error { - out.Name = in.Name - out.Disabled = in.Disabled - if in.Roles != nil { - in, out := &in.Roles, &out.Roles - *out = make([]InstanceGroupRole, len(*in)) - for i := range *in { - (*out)[i] = InstanceGroupRole((*in)[i]) - } - } else { - out.Roles = nil - } - out.Requires = in.Requires - out.Before = in.Before - if in.ExecContainer != nil { - in, out := &in.ExecContainer, &out.ExecContainer - *out = new(ExecContainerAction) - if err := Convert_kops_ExecContainerAction_To_v1alpha1_ExecContainerAction(*in, *out, s); err != nil { - return err - } - } else { - out.ExecContainer = nil - } - out.Manifest = in.Manifest - out.UseRawManifest = in.UseRawManifest - return nil -} - -// Convert_kops_HookSpec_To_v1alpha1_HookSpec is an autogenerated conversion function. -func Convert_kops_HookSpec_To_v1alpha1_HookSpec(in *kops.HookSpec, out *HookSpec, s conversion.Scope) error { - return autoConvert_kops_HookSpec_To_v1alpha1_HookSpec(in, out, s) -} - -func autoConvert_v1alpha1_IAMProfileSpec_To_kops_IAMProfileSpec(in *IAMProfileSpec, out *kops.IAMProfileSpec, s conversion.Scope) error { - out.Profile = in.Profile - return nil -} - -// Convert_v1alpha1_IAMProfileSpec_To_kops_IAMProfileSpec is an autogenerated conversion function. -func Convert_v1alpha1_IAMProfileSpec_To_kops_IAMProfileSpec(in *IAMProfileSpec, out *kops.IAMProfileSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_IAMProfileSpec_To_kops_IAMProfileSpec(in, out, s) -} - -func autoConvert_kops_IAMProfileSpec_To_v1alpha1_IAMProfileSpec(in *kops.IAMProfileSpec, out *IAMProfileSpec, s conversion.Scope) error { - out.Profile = in.Profile - return nil -} - -// Convert_kops_IAMProfileSpec_To_v1alpha1_IAMProfileSpec is an autogenerated conversion function. -func Convert_kops_IAMProfileSpec_To_v1alpha1_IAMProfileSpec(in *kops.IAMProfileSpec, out *IAMProfileSpec, s conversion.Scope) error { - return autoConvert_kops_IAMProfileSpec_To_v1alpha1_IAMProfileSpec(in, out, s) -} - -func autoConvert_v1alpha1_IAMSpec_To_kops_IAMSpec(in *IAMSpec, out *kops.IAMSpec, s conversion.Scope) error { - out.Legacy = in.Legacy - out.AllowContainerRegistry = in.AllowContainerRegistry - return nil -} - -// Convert_v1alpha1_IAMSpec_To_kops_IAMSpec is an autogenerated conversion function. -func Convert_v1alpha1_IAMSpec_To_kops_IAMSpec(in *IAMSpec, out *kops.IAMSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_IAMSpec_To_kops_IAMSpec(in, out, s) -} - -func autoConvert_kops_IAMSpec_To_v1alpha1_IAMSpec(in *kops.IAMSpec, out *IAMSpec, s conversion.Scope) error { - out.Legacy = in.Legacy - out.AllowContainerRegistry = in.AllowContainerRegistry - return nil -} - -// Convert_kops_IAMSpec_To_v1alpha1_IAMSpec is an autogenerated conversion function. -func Convert_kops_IAMSpec_To_v1alpha1_IAMSpec(in *kops.IAMSpec, out *IAMSpec, s conversion.Scope) error { - return autoConvert_kops_IAMSpec_To_v1alpha1_IAMSpec(in, out, s) -} - -func autoConvert_v1alpha1_InstanceGroup_To_kops_InstanceGroup(in *InstanceGroup, out *kops.InstanceGroup, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1alpha1_InstanceGroupSpec_To_kops_InstanceGroupSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - return nil -} - -// Convert_v1alpha1_InstanceGroup_To_kops_InstanceGroup is an autogenerated conversion function. -func Convert_v1alpha1_InstanceGroup_To_kops_InstanceGroup(in *InstanceGroup, out *kops.InstanceGroup, s conversion.Scope) error { - return autoConvert_v1alpha1_InstanceGroup_To_kops_InstanceGroup(in, out, s) -} - -func autoConvert_kops_InstanceGroup_To_v1alpha1_InstanceGroup(in *kops.InstanceGroup, out *InstanceGroup, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_kops_InstanceGroupSpec_To_v1alpha1_InstanceGroupSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - return nil -} - -// Convert_kops_InstanceGroup_To_v1alpha1_InstanceGroup is an autogenerated conversion function. -func Convert_kops_InstanceGroup_To_v1alpha1_InstanceGroup(in *kops.InstanceGroup, out *InstanceGroup, s conversion.Scope) error { - return autoConvert_kops_InstanceGroup_To_v1alpha1_InstanceGroup(in, out, s) -} - -func autoConvert_v1alpha1_InstanceGroupList_To_kops_InstanceGroupList(in *InstanceGroupList, out *kops.InstanceGroupList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]kops.InstanceGroup, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_InstanceGroup_To_kops_InstanceGroup(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_v1alpha1_InstanceGroupList_To_kops_InstanceGroupList is an autogenerated conversion function. -func Convert_v1alpha1_InstanceGroupList_To_kops_InstanceGroupList(in *InstanceGroupList, out *kops.InstanceGroupList, s conversion.Scope) error { - return autoConvert_v1alpha1_InstanceGroupList_To_kops_InstanceGroupList(in, out, s) -} - -func autoConvert_kops_InstanceGroupList_To_v1alpha1_InstanceGroupList(in *kops.InstanceGroupList, out *InstanceGroupList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]InstanceGroup, len(*in)) - for i := range *in { - if err := Convert_kops_InstanceGroup_To_v1alpha1_InstanceGroup(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_kops_InstanceGroupList_To_v1alpha1_InstanceGroupList is an autogenerated conversion function. -func Convert_kops_InstanceGroupList_To_v1alpha1_InstanceGroupList(in *kops.InstanceGroupList, out *InstanceGroupList, s conversion.Scope) error { - return autoConvert_kops_InstanceGroupList_To_v1alpha1_InstanceGroupList(in, out, s) -} - -func autoConvert_v1alpha1_InstanceGroupSpec_To_kops_InstanceGroupSpec(in *InstanceGroupSpec, out *kops.InstanceGroupSpec, s conversion.Scope) error { - out.Role = kops.InstanceGroupRole(in.Role) - out.Image = in.Image - out.MinSize = in.MinSize - out.MaxSize = in.MaxSize - out.MachineType = in.MachineType - out.RootVolumeSize = in.RootVolumeSize - out.RootVolumeType = in.RootVolumeType - out.RootVolumeIops = in.RootVolumeIops - out.RootVolumeOptimization = in.RootVolumeOptimization - out.RootVolumeDeleteOnTermination = in.RootVolumeDeleteOnTermination - if in.Volumes != nil { - in, out := &in.Volumes, &out.Volumes - *out = make([]*kops.VolumeSpec, len(*in)) - for i := range *in { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil { - return err - } - } - } else { - out.Volumes = nil - } - if in.VolumeMounts != nil { - in, out := &in.VolumeMounts, &out.VolumeMounts - *out = make([]*kops.VolumeMountSpec, len(*in)) - for i := range *in { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil { - return err - } - } - } else { - out.VolumeMounts = nil - } - if in.Hooks != nil { - in, out := &in.Hooks, &out.Hooks - *out = make([]kops.HookSpec, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_HookSpec_To_kops_HookSpec(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Hooks = nil - } - out.MaxPrice = in.MaxPrice - out.AssociatePublicIP = in.AssociatePublicIP - out.AdditionalSecurityGroups = in.AdditionalSecurityGroups - out.CloudLabels = in.CloudLabels - out.NodeLabels = in.NodeLabels - if in.FileAssets != nil { - in, out := &in.FileAssets, &out.FileAssets - *out = make([]kops.FileAssetSpec, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_FileAssetSpec_To_kops_FileAssetSpec(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.FileAssets = nil - } - out.Tenancy = in.Tenancy - if in.Kubelet != nil { - in, out := &in.Kubelet, &out.Kubelet - *out = new(kops.KubeletConfigSpec) - if err := Convert_v1alpha1_KubeletConfigSpec_To_kops_KubeletConfigSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Kubelet = nil - } - out.Taints = in.Taints - if in.MixedInstancesPolicy != nil { - in, out := &in.MixedInstancesPolicy, &out.MixedInstancesPolicy - *out = new(kops.MixedInstancesPolicySpec) - if err := Convert_v1alpha1_MixedInstancesPolicySpec_To_kops_MixedInstancesPolicySpec(*in, *out, s); err != nil { - return err - } - } else { - out.MixedInstancesPolicy = nil - } - if in.AdditionalUserData != nil { - in, out := &in.AdditionalUserData, &out.AdditionalUserData - *out = make([]kops.UserData, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_UserData_To_kops_UserData(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.AdditionalUserData = nil - } - out.Zones = in.Zones - out.SuspendProcesses = in.SuspendProcesses - if in.ExternalLoadBalancers != nil { - in, out := &in.ExternalLoadBalancers, &out.ExternalLoadBalancers - *out = make([]kops.LoadBalancer, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_LoadBalancer_To_kops_LoadBalancer(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.ExternalLoadBalancers = nil - } - out.DetailedInstanceMonitoring = in.DetailedInstanceMonitoring - if in.IAM != nil { - in, out := &in.IAM, &out.IAM - *out = new(kops.IAMProfileSpec) - if err := Convert_v1alpha1_IAMProfileSpec_To_kops_IAMProfileSpec(*in, *out, s); err != nil { - return err - } - } else { - out.IAM = nil - } - out.SecurityGroupOverride = in.SecurityGroupOverride - out.InstanceProtection = in.InstanceProtection - out.SysctlParameters = in.SysctlParameters - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(kops.RollingUpdate) - if err := Convert_v1alpha1_RollingUpdate_To_kops_RollingUpdate(*in, *out, s); err != nil { - return err - } - } else { - out.RollingUpdate = nil - } - return nil -} - -func autoConvert_kops_InstanceGroupSpec_To_v1alpha1_InstanceGroupSpec(in *kops.InstanceGroupSpec, out *InstanceGroupSpec, s conversion.Scope) error { - out.Role = InstanceGroupRole(in.Role) - out.Image = in.Image - out.MinSize = in.MinSize - out.MaxSize = in.MaxSize - out.MachineType = in.MachineType - out.RootVolumeSize = in.RootVolumeSize - out.RootVolumeType = in.RootVolumeType - out.RootVolumeIops = in.RootVolumeIops - out.RootVolumeOptimization = in.RootVolumeOptimization - out.RootVolumeDeleteOnTermination = in.RootVolumeDeleteOnTermination - if in.Volumes != nil { - in, out := &in.Volumes, &out.Volumes - *out = make([]*VolumeSpec, len(*in)) - for i := range *in { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil { - return err - } - } - } else { - out.Volumes = nil - } - if in.VolumeMounts != nil { - in, out := &in.VolumeMounts, &out.VolumeMounts - *out = make([]*VolumeMountSpec, len(*in)) - for i := range *in { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil { - return err - } - } - } else { - out.VolumeMounts = nil - } - // WARNING: in.Subnets requires manual conversion: does not exist in peer-type - out.Zones = in.Zones - if in.Hooks != nil { - in, out := &in.Hooks, &out.Hooks - *out = make([]HookSpec, len(*in)) - for i := range *in { - if err := Convert_kops_HookSpec_To_v1alpha1_HookSpec(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Hooks = nil - } - out.MaxPrice = in.MaxPrice - out.AssociatePublicIP = in.AssociatePublicIP - out.AdditionalSecurityGroups = in.AdditionalSecurityGroups - out.CloudLabels = in.CloudLabels - out.NodeLabels = in.NodeLabels - if in.FileAssets != nil { - in, out := &in.FileAssets, &out.FileAssets - *out = make([]FileAssetSpec, len(*in)) - for i := range *in { - if err := Convert_kops_FileAssetSpec_To_v1alpha1_FileAssetSpec(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.FileAssets = nil - } - out.Tenancy = in.Tenancy - if in.Kubelet != nil { - in, out := &in.Kubelet, &out.Kubelet - *out = new(KubeletConfigSpec) - if err := Convert_kops_KubeletConfigSpec_To_v1alpha1_KubeletConfigSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Kubelet = nil - } - out.Taints = in.Taints - if in.MixedInstancesPolicy != nil { - in, out := &in.MixedInstancesPolicy, &out.MixedInstancesPolicy - *out = new(MixedInstancesPolicySpec) - if err := Convert_kops_MixedInstancesPolicySpec_To_v1alpha1_MixedInstancesPolicySpec(*in, *out, s); err != nil { - return err - } - } else { - out.MixedInstancesPolicy = nil - } - if in.AdditionalUserData != nil { - in, out := &in.AdditionalUserData, &out.AdditionalUserData - *out = make([]UserData, len(*in)) - for i := range *in { - if err := Convert_kops_UserData_To_v1alpha1_UserData(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.AdditionalUserData = nil - } - out.SuspendProcesses = in.SuspendProcesses - if in.ExternalLoadBalancers != nil { - in, out := &in.ExternalLoadBalancers, &out.ExternalLoadBalancers - *out = make([]LoadBalancer, len(*in)) - for i := range *in { - if err := Convert_kops_LoadBalancer_To_v1alpha1_LoadBalancer(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.ExternalLoadBalancers = nil - } - out.DetailedInstanceMonitoring = in.DetailedInstanceMonitoring - if in.IAM != nil { - in, out := &in.IAM, &out.IAM - *out = new(IAMProfileSpec) - if err := Convert_kops_IAMProfileSpec_To_v1alpha1_IAMProfileSpec(*in, *out, s); err != nil { - return err - } - } else { - out.IAM = nil - } - out.SecurityGroupOverride = in.SecurityGroupOverride - out.InstanceProtection = in.InstanceProtection - out.SysctlParameters = in.SysctlParameters - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdate) - if err := Convert_kops_RollingUpdate_To_v1alpha1_RollingUpdate(*in, *out, s); err != nil { - return err - } - } else { - out.RollingUpdate = nil - } - return nil -} - -func autoConvert_v1alpha1_KopeioAuthenticationSpec_To_kops_KopeioAuthenticationSpec(in *KopeioAuthenticationSpec, out *kops.KopeioAuthenticationSpec, s conversion.Scope) error { - return nil -} - -// Convert_v1alpha1_KopeioAuthenticationSpec_To_kops_KopeioAuthenticationSpec is an autogenerated conversion function. -func Convert_v1alpha1_KopeioAuthenticationSpec_To_kops_KopeioAuthenticationSpec(in *KopeioAuthenticationSpec, out *kops.KopeioAuthenticationSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_KopeioAuthenticationSpec_To_kops_KopeioAuthenticationSpec(in, out, s) -} - -func autoConvert_kops_KopeioAuthenticationSpec_To_v1alpha1_KopeioAuthenticationSpec(in *kops.KopeioAuthenticationSpec, out *KopeioAuthenticationSpec, s conversion.Scope) error { - return nil -} - -// Convert_kops_KopeioAuthenticationSpec_To_v1alpha1_KopeioAuthenticationSpec is an autogenerated conversion function. -func Convert_kops_KopeioAuthenticationSpec_To_v1alpha1_KopeioAuthenticationSpec(in *kops.KopeioAuthenticationSpec, out *KopeioAuthenticationSpec, s conversion.Scope) error { - return autoConvert_kops_KopeioAuthenticationSpec_To_v1alpha1_KopeioAuthenticationSpec(in, out, s) -} - -func autoConvert_v1alpha1_KopeioNetworkingSpec_To_kops_KopeioNetworkingSpec(in *KopeioNetworkingSpec, out *kops.KopeioNetworkingSpec, s conversion.Scope) error { - return nil -} - -// Convert_v1alpha1_KopeioNetworkingSpec_To_kops_KopeioNetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_KopeioNetworkingSpec_To_kops_KopeioNetworkingSpec(in *KopeioNetworkingSpec, out *kops.KopeioNetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_KopeioNetworkingSpec_To_kops_KopeioNetworkingSpec(in, out, s) -} - -func autoConvert_kops_KopeioNetworkingSpec_To_v1alpha1_KopeioNetworkingSpec(in *kops.KopeioNetworkingSpec, out *KopeioNetworkingSpec, s conversion.Scope) error { - return nil -} - -// Convert_kops_KopeioNetworkingSpec_To_v1alpha1_KopeioNetworkingSpec is an autogenerated conversion function. -func Convert_kops_KopeioNetworkingSpec_To_v1alpha1_KopeioNetworkingSpec(in *kops.KopeioNetworkingSpec, out *KopeioNetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_KopeioNetworkingSpec_To_v1alpha1_KopeioNetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_KubeAPIServerConfig_To_kops_KubeAPIServerConfig(in *KubeAPIServerConfig, out *kops.KubeAPIServerConfig, s conversion.Scope) error { - out.Image = in.Image - out.DisableBasicAuth = in.DisableBasicAuth - out.LogLevel = in.LogLevel - out.CloudProvider = in.CloudProvider - out.SecurePort = in.SecurePort - out.InsecurePort = in.InsecurePort - out.Address = in.Address - out.BindAddress = in.BindAddress - out.InsecureBindAddress = in.InsecureBindAddress - out.EnableBootstrapAuthToken = in.EnableBootstrapAuthToken - out.EnableAggregatorRouting = in.EnableAggregatorRouting - out.AdmissionControl = in.AdmissionControl - out.AppendAdmissionPlugins = in.AppendAdmissionPlugins - out.EnableAdmissionPlugins = in.EnableAdmissionPlugins - out.DisableAdmissionPlugins = in.DisableAdmissionPlugins - out.AdmissionControlConfigFile = in.AdmissionControlConfigFile - out.ServiceClusterIPRange = in.ServiceClusterIPRange - out.ServiceNodePortRange = in.ServiceNodePortRange - out.EtcdServers = in.EtcdServers - out.EtcdServersOverrides = in.EtcdServersOverrides - out.EtcdCAFile = in.EtcdCAFile - out.EtcdCertFile = in.EtcdCertFile - out.EtcdKeyFile = in.EtcdKeyFile - out.BasicAuthFile = in.BasicAuthFile - out.ClientCAFile = in.ClientCAFile - out.TLSCertFile = in.TLSCertFile - out.TLSPrivateKeyFile = in.TLSPrivateKeyFile - out.TLSCipherSuites = in.TLSCipherSuites - out.TLSMinVersion = in.TLSMinVersion - out.TokenAuthFile = in.TokenAuthFile - out.AllowPrivileged = in.AllowPrivileged - out.APIServerCount = in.APIServerCount - out.RuntimeConfig = in.RuntimeConfig - out.KubeletClientCertificate = in.KubeletClientCertificate - out.KubeletCertificateAuthority = in.KubeletCertificateAuthority - out.KubeletClientKey = in.KubeletClientKey - out.AnonymousAuth = in.AnonymousAuth - out.KubeletPreferredAddressTypes = in.KubeletPreferredAddressTypes - out.StorageBackend = in.StorageBackend - out.OIDCUsernameClaim = in.OIDCUsernameClaim - out.OIDCUsernamePrefix = in.OIDCUsernamePrefix - out.OIDCGroupsClaim = in.OIDCGroupsClaim - out.OIDCGroupsPrefix = in.OIDCGroupsPrefix - out.OIDCIssuerURL = in.OIDCIssuerURL - out.OIDCClientID = in.OIDCClientID - out.OIDCRequiredClaim = in.OIDCRequiredClaim - out.OIDCCAFile = in.OIDCCAFile - out.ProxyClientCertFile = in.ProxyClientCertFile - out.ProxyClientKeyFile = in.ProxyClientKeyFile - out.AuditLogFormat = in.AuditLogFormat - out.AuditLogPath = in.AuditLogPath - out.AuditLogMaxAge = in.AuditLogMaxAge - out.AuditLogMaxBackups = in.AuditLogMaxBackups - out.AuditLogMaxSize = in.AuditLogMaxSize - out.AuditPolicyFile = in.AuditPolicyFile - out.AuditWebhookBatchBufferSize = in.AuditWebhookBatchBufferSize - out.AuditWebhookBatchMaxSize = in.AuditWebhookBatchMaxSize - out.AuditWebhookBatchMaxWait = in.AuditWebhookBatchMaxWait - out.AuditWebhookBatchThrottleBurst = in.AuditWebhookBatchThrottleBurst - out.AuditWebhookBatchThrottleEnable = in.AuditWebhookBatchThrottleEnable - out.AuditWebhookBatchThrottleQps = in.AuditWebhookBatchThrottleQps - out.AuditWebhookConfigFile = in.AuditWebhookConfigFile - out.AuditWebhookInitialBackoff = in.AuditWebhookInitialBackoff - out.AuditWebhookMode = in.AuditWebhookMode - out.AuthenticationTokenWebhookConfigFile = in.AuthenticationTokenWebhookConfigFile - out.AuthenticationTokenWebhookCacheTTL = in.AuthenticationTokenWebhookCacheTTL - out.AuthorizationMode = in.AuthorizationMode - out.AuthorizationWebhookConfigFile = in.AuthorizationWebhookConfigFile - out.AuthorizationWebhookCacheAuthorizedTTL = in.AuthorizationWebhookCacheAuthorizedTTL - out.AuthorizationWebhookCacheUnauthorizedTTL = in.AuthorizationWebhookCacheUnauthorizedTTL - out.AuthorizationRBACSuperUser = in.AuthorizationRBACSuperUser - out.EncryptionProviderConfig = in.EncryptionProviderConfig - out.ExperimentalEncryptionProviderConfig = in.ExperimentalEncryptionProviderConfig - out.RequestheaderUsernameHeaders = in.RequestheaderUsernameHeaders - out.RequestheaderGroupHeaders = in.RequestheaderGroupHeaders - out.RequestheaderExtraHeaderPrefixes = in.RequestheaderExtraHeaderPrefixes - out.RequestheaderClientCAFile = in.RequestheaderClientCAFile - out.RequestheaderAllowedNames = in.RequestheaderAllowedNames - out.FeatureGates = in.FeatureGates - out.MaxRequestsInflight = in.MaxRequestsInflight - out.MaxMutatingRequestsInflight = in.MaxMutatingRequestsInflight - out.HTTP2MaxStreamsPerConnection = in.HTTP2MaxStreamsPerConnection - out.EtcdQuorumRead = in.EtcdQuorumRead - out.MinRequestTimeout = in.MinRequestTimeout - out.TargetRamMb = in.TargetRamMb - out.ServiceAccountKeyFile = in.ServiceAccountKeyFile - out.ServiceAccountSigningKeyFile = in.ServiceAccountSigningKeyFile - out.ServiceAccountIssuer = in.ServiceAccountIssuer - out.APIAudiences = in.APIAudiences - out.CPURequest = in.CPURequest - out.EventTTL = in.EventTTL - out.AuditDynamicConfiguration = in.AuditDynamicConfiguration - return nil -} - -// Convert_v1alpha1_KubeAPIServerConfig_To_kops_KubeAPIServerConfig is an autogenerated conversion function. -func Convert_v1alpha1_KubeAPIServerConfig_To_kops_KubeAPIServerConfig(in *KubeAPIServerConfig, out *kops.KubeAPIServerConfig, s conversion.Scope) error { - return autoConvert_v1alpha1_KubeAPIServerConfig_To_kops_KubeAPIServerConfig(in, out, s) -} - -func autoConvert_kops_KubeAPIServerConfig_To_v1alpha1_KubeAPIServerConfig(in *kops.KubeAPIServerConfig, out *KubeAPIServerConfig, s conversion.Scope) error { - out.Image = in.Image - out.DisableBasicAuth = in.DisableBasicAuth - out.LogLevel = in.LogLevel - out.CloudProvider = in.CloudProvider - out.SecurePort = in.SecurePort - out.InsecurePort = in.InsecurePort - out.Address = in.Address - out.BindAddress = in.BindAddress - out.InsecureBindAddress = in.InsecureBindAddress - out.EnableBootstrapAuthToken = in.EnableBootstrapAuthToken - out.EnableAggregatorRouting = in.EnableAggregatorRouting - out.AdmissionControl = in.AdmissionControl - out.AppendAdmissionPlugins = in.AppendAdmissionPlugins - out.EnableAdmissionPlugins = in.EnableAdmissionPlugins - out.DisableAdmissionPlugins = in.DisableAdmissionPlugins - out.AdmissionControlConfigFile = in.AdmissionControlConfigFile - out.ServiceClusterIPRange = in.ServiceClusterIPRange - out.ServiceNodePortRange = in.ServiceNodePortRange - out.EtcdServers = in.EtcdServers - out.EtcdServersOverrides = in.EtcdServersOverrides - out.EtcdCAFile = in.EtcdCAFile - out.EtcdCertFile = in.EtcdCertFile - out.EtcdKeyFile = in.EtcdKeyFile - out.BasicAuthFile = in.BasicAuthFile - out.ClientCAFile = in.ClientCAFile - out.TLSCertFile = in.TLSCertFile - out.TLSPrivateKeyFile = in.TLSPrivateKeyFile - out.TLSCipherSuites = in.TLSCipherSuites - out.TLSMinVersion = in.TLSMinVersion - out.TokenAuthFile = in.TokenAuthFile - out.AllowPrivileged = in.AllowPrivileged - out.APIServerCount = in.APIServerCount - out.RuntimeConfig = in.RuntimeConfig - out.KubeletClientCertificate = in.KubeletClientCertificate - out.KubeletCertificateAuthority = in.KubeletCertificateAuthority - out.KubeletClientKey = in.KubeletClientKey - out.AnonymousAuth = in.AnonymousAuth - out.KubeletPreferredAddressTypes = in.KubeletPreferredAddressTypes - out.StorageBackend = in.StorageBackend - out.OIDCUsernameClaim = in.OIDCUsernameClaim - out.OIDCUsernamePrefix = in.OIDCUsernamePrefix - out.OIDCGroupsClaim = in.OIDCGroupsClaim - out.OIDCGroupsPrefix = in.OIDCGroupsPrefix - out.OIDCIssuerURL = in.OIDCIssuerURL - out.OIDCClientID = in.OIDCClientID - out.OIDCRequiredClaim = in.OIDCRequiredClaim - out.OIDCCAFile = in.OIDCCAFile - out.ProxyClientCertFile = in.ProxyClientCertFile - out.ProxyClientKeyFile = in.ProxyClientKeyFile - out.AuditLogFormat = in.AuditLogFormat - out.AuditLogPath = in.AuditLogPath - out.AuditLogMaxAge = in.AuditLogMaxAge - out.AuditLogMaxBackups = in.AuditLogMaxBackups - out.AuditLogMaxSize = in.AuditLogMaxSize - out.AuditPolicyFile = in.AuditPolicyFile - out.AuditWebhookBatchBufferSize = in.AuditWebhookBatchBufferSize - out.AuditWebhookBatchMaxSize = in.AuditWebhookBatchMaxSize - out.AuditWebhookBatchMaxWait = in.AuditWebhookBatchMaxWait - out.AuditWebhookBatchThrottleBurst = in.AuditWebhookBatchThrottleBurst - out.AuditWebhookBatchThrottleEnable = in.AuditWebhookBatchThrottleEnable - out.AuditWebhookBatchThrottleQps = in.AuditWebhookBatchThrottleQps - out.AuditWebhookConfigFile = in.AuditWebhookConfigFile - out.AuditWebhookInitialBackoff = in.AuditWebhookInitialBackoff - out.AuditWebhookMode = in.AuditWebhookMode - out.AuthenticationTokenWebhookConfigFile = in.AuthenticationTokenWebhookConfigFile - out.AuthenticationTokenWebhookCacheTTL = in.AuthenticationTokenWebhookCacheTTL - out.AuthorizationMode = in.AuthorizationMode - out.AuthorizationWebhookConfigFile = in.AuthorizationWebhookConfigFile - out.AuthorizationWebhookCacheAuthorizedTTL = in.AuthorizationWebhookCacheAuthorizedTTL - out.AuthorizationWebhookCacheUnauthorizedTTL = in.AuthorizationWebhookCacheUnauthorizedTTL - out.AuthorizationRBACSuperUser = in.AuthorizationRBACSuperUser - out.EncryptionProviderConfig = in.EncryptionProviderConfig - out.ExperimentalEncryptionProviderConfig = in.ExperimentalEncryptionProviderConfig - out.RequestheaderUsernameHeaders = in.RequestheaderUsernameHeaders - out.RequestheaderGroupHeaders = in.RequestheaderGroupHeaders - out.RequestheaderExtraHeaderPrefixes = in.RequestheaderExtraHeaderPrefixes - out.RequestheaderClientCAFile = in.RequestheaderClientCAFile - out.RequestheaderAllowedNames = in.RequestheaderAllowedNames - out.FeatureGates = in.FeatureGates - out.MaxRequestsInflight = in.MaxRequestsInflight - out.MaxMutatingRequestsInflight = in.MaxMutatingRequestsInflight - out.HTTP2MaxStreamsPerConnection = in.HTTP2MaxStreamsPerConnection - out.EtcdQuorumRead = in.EtcdQuorumRead - out.MinRequestTimeout = in.MinRequestTimeout - out.TargetRamMb = in.TargetRamMb - out.ServiceAccountKeyFile = in.ServiceAccountKeyFile - out.ServiceAccountSigningKeyFile = in.ServiceAccountSigningKeyFile - out.ServiceAccountIssuer = in.ServiceAccountIssuer - out.APIAudiences = in.APIAudiences - out.CPURequest = in.CPURequest - out.EventTTL = in.EventTTL - out.AuditDynamicConfiguration = in.AuditDynamicConfiguration - return nil -} - -// Convert_kops_KubeAPIServerConfig_To_v1alpha1_KubeAPIServerConfig is an autogenerated conversion function. -func Convert_kops_KubeAPIServerConfig_To_v1alpha1_KubeAPIServerConfig(in *kops.KubeAPIServerConfig, out *KubeAPIServerConfig, s conversion.Scope) error { - return autoConvert_kops_KubeAPIServerConfig_To_v1alpha1_KubeAPIServerConfig(in, out, s) -} - -func autoConvert_v1alpha1_KubeControllerManagerConfig_To_kops_KubeControllerManagerConfig(in *KubeControllerManagerConfig, out *kops.KubeControllerManagerConfig, s conversion.Scope) error { - out.Master = in.Master - out.LogLevel = in.LogLevel - out.ServiceAccountPrivateKeyFile = in.ServiceAccountPrivateKeyFile - out.Image = in.Image - out.CloudProvider = in.CloudProvider - out.ClusterName = in.ClusterName - out.ClusterCIDR = in.ClusterCIDR - out.AllocateNodeCIDRs = in.AllocateNodeCIDRs - out.NodeCIDRMaskSize = in.NodeCIDRMaskSize - out.ConfigureCloudRoutes = in.ConfigureCloudRoutes - out.Controllers = in.Controllers - out.CIDRAllocatorType = in.CIDRAllocatorType - out.RootCAFile = in.RootCAFile - if in.LeaderElection != nil { - in, out := &in.LeaderElection, &out.LeaderElection - *out = new(kops.LeaderElectionConfiguration) - if err := Convert_v1alpha1_LeaderElectionConfiguration_To_kops_LeaderElectionConfiguration(*in, *out, s); err != nil { - return err - } - } else { - out.LeaderElection = nil - } - out.AttachDetachReconcileSyncPeriod = in.AttachDetachReconcileSyncPeriod - out.TerminatedPodGCThreshold = in.TerminatedPodGCThreshold - out.NodeMonitorPeriod = in.NodeMonitorPeriod - out.NodeMonitorGracePeriod = in.NodeMonitorGracePeriod - out.PodEvictionTimeout = in.PodEvictionTimeout - out.UseServiceAccountCredentials = in.UseServiceAccountCredentials - out.HorizontalPodAutoscalerSyncPeriod = in.HorizontalPodAutoscalerSyncPeriod - out.HorizontalPodAutoscalerDownscaleDelay = in.HorizontalPodAutoscalerDownscaleDelay - out.HorizontalPodAutoscalerDownscaleStabilization = in.HorizontalPodAutoscalerDownscaleStabilization - out.HorizontalPodAutoscalerUpscaleDelay = in.HorizontalPodAutoscalerUpscaleDelay - out.HorizontalPodAutoscalerTolerance = in.HorizontalPodAutoscalerTolerance - out.HorizontalPodAutoscalerUseRestClients = in.HorizontalPodAutoscalerUseRestClients - out.ExperimentalClusterSigningDuration = in.ExperimentalClusterSigningDuration - out.FeatureGates = in.FeatureGates - out.TLSCipherSuites = in.TLSCipherSuites - out.TLSMinVersion = in.TLSMinVersion - out.MinResyncPeriod = in.MinResyncPeriod - out.KubeAPIQPS = in.KubeAPIQPS - out.KubeAPIBurst = in.KubeAPIBurst - out.ConcurrentDeploymentSyncs = in.ConcurrentDeploymentSyncs - out.ConcurrentEndpointSyncs = in.ConcurrentEndpointSyncs - out.ConcurrentNamespaceSyncs = in.ConcurrentNamespaceSyncs - out.ConcurrentReplicasetSyncs = in.ConcurrentReplicasetSyncs - out.ConcurrentServiceSyncs = in.ConcurrentServiceSyncs - out.ConcurrentResourceQuotaSyncs = in.ConcurrentResourceQuotaSyncs - out.ConcurrentServiceaccountTokenSyncs = in.ConcurrentServiceaccountTokenSyncs - out.ConcurrentRcSyncs = in.ConcurrentRcSyncs - return nil -} - -// Convert_v1alpha1_KubeControllerManagerConfig_To_kops_KubeControllerManagerConfig is an autogenerated conversion function. -func Convert_v1alpha1_KubeControllerManagerConfig_To_kops_KubeControllerManagerConfig(in *KubeControllerManagerConfig, out *kops.KubeControllerManagerConfig, s conversion.Scope) error { - return autoConvert_v1alpha1_KubeControllerManagerConfig_To_kops_KubeControllerManagerConfig(in, out, s) -} - -func autoConvert_kops_KubeControllerManagerConfig_To_v1alpha1_KubeControllerManagerConfig(in *kops.KubeControllerManagerConfig, out *KubeControllerManagerConfig, s conversion.Scope) error { - out.Master = in.Master - out.LogLevel = in.LogLevel - out.ServiceAccountPrivateKeyFile = in.ServiceAccountPrivateKeyFile - out.Image = in.Image - out.CloudProvider = in.CloudProvider - out.ClusterName = in.ClusterName - out.ClusterCIDR = in.ClusterCIDR - out.AllocateNodeCIDRs = in.AllocateNodeCIDRs - out.NodeCIDRMaskSize = in.NodeCIDRMaskSize - out.ConfigureCloudRoutes = in.ConfigureCloudRoutes - out.Controllers = in.Controllers - out.CIDRAllocatorType = in.CIDRAllocatorType - out.RootCAFile = in.RootCAFile - if in.LeaderElection != nil { - in, out := &in.LeaderElection, &out.LeaderElection - *out = new(LeaderElectionConfiguration) - if err := Convert_kops_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(*in, *out, s); err != nil { - return err - } - } else { - out.LeaderElection = nil - } - out.AttachDetachReconcileSyncPeriod = in.AttachDetachReconcileSyncPeriod - out.TerminatedPodGCThreshold = in.TerminatedPodGCThreshold - out.NodeMonitorPeriod = in.NodeMonitorPeriod - out.NodeMonitorGracePeriod = in.NodeMonitorGracePeriod - out.PodEvictionTimeout = in.PodEvictionTimeout - out.UseServiceAccountCredentials = in.UseServiceAccountCredentials - out.HorizontalPodAutoscalerSyncPeriod = in.HorizontalPodAutoscalerSyncPeriod - out.HorizontalPodAutoscalerDownscaleDelay = in.HorizontalPodAutoscalerDownscaleDelay - out.HorizontalPodAutoscalerDownscaleStabilization = in.HorizontalPodAutoscalerDownscaleStabilization - out.HorizontalPodAutoscalerUpscaleDelay = in.HorizontalPodAutoscalerUpscaleDelay - out.HorizontalPodAutoscalerTolerance = in.HorizontalPodAutoscalerTolerance - out.HorizontalPodAutoscalerUseRestClients = in.HorizontalPodAutoscalerUseRestClients - out.ExperimentalClusterSigningDuration = in.ExperimentalClusterSigningDuration - out.FeatureGates = in.FeatureGates - out.TLSCipherSuites = in.TLSCipherSuites - out.TLSMinVersion = in.TLSMinVersion - out.MinResyncPeriod = in.MinResyncPeriod - out.KubeAPIQPS = in.KubeAPIQPS - out.KubeAPIBurst = in.KubeAPIBurst - out.ConcurrentDeploymentSyncs = in.ConcurrentDeploymentSyncs - out.ConcurrentEndpointSyncs = in.ConcurrentEndpointSyncs - out.ConcurrentNamespaceSyncs = in.ConcurrentNamespaceSyncs - out.ConcurrentReplicasetSyncs = in.ConcurrentReplicasetSyncs - out.ConcurrentServiceSyncs = in.ConcurrentServiceSyncs - out.ConcurrentResourceQuotaSyncs = in.ConcurrentResourceQuotaSyncs - out.ConcurrentServiceaccountTokenSyncs = in.ConcurrentServiceaccountTokenSyncs - out.ConcurrentRcSyncs = in.ConcurrentRcSyncs - return nil -} - -// Convert_kops_KubeControllerManagerConfig_To_v1alpha1_KubeControllerManagerConfig is an autogenerated conversion function. -func Convert_kops_KubeControllerManagerConfig_To_v1alpha1_KubeControllerManagerConfig(in *kops.KubeControllerManagerConfig, out *KubeControllerManagerConfig, s conversion.Scope) error { - return autoConvert_kops_KubeControllerManagerConfig_To_v1alpha1_KubeControllerManagerConfig(in, out, s) -} - -func autoConvert_v1alpha1_KubeDNSConfig_To_kops_KubeDNSConfig(in *KubeDNSConfig, out *kops.KubeDNSConfig, s conversion.Scope) error { - out.CacheMaxSize = in.CacheMaxSize - out.CacheMaxConcurrent = in.CacheMaxConcurrent - out.CoreDNSImage = in.CoreDNSImage - out.Domain = in.Domain - out.ExternalCoreFile = in.ExternalCoreFile - out.Image = in.Image - out.Replicas = in.Replicas - out.Provider = in.Provider - out.ServerIP = in.ServerIP - out.StubDomains = in.StubDomains - out.UpstreamNameservers = in.UpstreamNameservers - out.MemoryRequest = in.MemoryRequest - out.CPURequest = in.CPURequest - out.MemoryLimit = in.MemoryLimit - return nil -} - -// Convert_v1alpha1_KubeDNSConfig_To_kops_KubeDNSConfig is an autogenerated conversion function. -func Convert_v1alpha1_KubeDNSConfig_To_kops_KubeDNSConfig(in *KubeDNSConfig, out *kops.KubeDNSConfig, s conversion.Scope) error { - return autoConvert_v1alpha1_KubeDNSConfig_To_kops_KubeDNSConfig(in, out, s) -} - -func autoConvert_kops_KubeDNSConfig_To_v1alpha1_KubeDNSConfig(in *kops.KubeDNSConfig, out *KubeDNSConfig, s conversion.Scope) error { - out.CacheMaxSize = in.CacheMaxSize - out.CacheMaxConcurrent = in.CacheMaxConcurrent - out.CoreDNSImage = in.CoreDNSImage - out.Domain = in.Domain - out.ExternalCoreFile = in.ExternalCoreFile - out.Image = in.Image - out.Replicas = in.Replicas - out.Provider = in.Provider - out.ServerIP = in.ServerIP - out.StubDomains = in.StubDomains - out.UpstreamNameservers = in.UpstreamNameservers - out.MemoryRequest = in.MemoryRequest - out.CPURequest = in.CPURequest - out.MemoryLimit = in.MemoryLimit - return nil -} - -// Convert_kops_KubeDNSConfig_To_v1alpha1_KubeDNSConfig is an autogenerated conversion function. -func Convert_kops_KubeDNSConfig_To_v1alpha1_KubeDNSConfig(in *kops.KubeDNSConfig, out *KubeDNSConfig, s conversion.Scope) error { - return autoConvert_kops_KubeDNSConfig_To_v1alpha1_KubeDNSConfig(in, out, s) -} - -func autoConvert_v1alpha1_KubeProxyConfig_To_kops_KubeProxyConfig(in *KubeProxyConfig, out *kops.KubeProxyConfig, s conversion.Scope) error { - out.Image = in.Image - out.CPURequest = in.CPURequest - out.CPULimit = in.CPULimit - out.MemoryRequest = in.MemoryRequest - out.MemoryLimit = in.MemoryLimit - out.LogLevel = in.LogLevel - out.ClusterCIDR = in.ClusterCIDR - out.HostnameOverride = in.HostnameOverride - out.BindAddress = in.BindAddress - out.Master = in.Master - out.MetricsBindAddress = in.MetricsBindAddress - out.Enabled = in.Enabled - out.ProxyMode = in.ProxyMode - out.IPVSExcludeCIDRS = in.IPVSExcludeCIDRS - out.IPVSMinSyncPeriod = in.IPVSMinSyncPeriod - out.IPVSScheduler = in.IPVSScheduler - out.IPVSSyncPeriod = in.IPVSSyncPeriod - out.FeatureGates = in.FeatureGates - out.ConntrackMaxPerCore = in.ConntrackMaxPerCore - out.ConntrackMin = in.ConntrackMin - return nil -} - -// Convert_v1alpha1_KubeProxyConfig_To_kops_KubeProxyConfig is an autogenerated conversion function. -func Convert_v1alpha1_KubeProxyConfig_To_kops_KubeProxyConfig(in *KubeProxyConfig, out *kops.KubeProxyConfig, s conversion.Scope) error { - return autoConvert_v1alpha1_KubeProxyConfig_To_kops_KubeProxyConfig(in, out, s) -} - -func autoConvert_kops_KubeProxyConfig_To_v1alpha1_KubeProxyConfig(in *kops.KubeProxyConfig, out *KubeProxyConfig, s conversion.Scope) error { - out.Image = in.Image - out.CPURequest = in.CPURequest - out.CPULimit = in.CPULimit - out.MemoryRequest = in.MemoryRequest - out.MemoryLimit = in.MemoryLimit - out.LogLevel = in.LogLevel - out.ClusterCIDR = in.ClusterCIDR - out.HostnameOverride = in.HostnameOverride - out.BindAddress = in.BindAddress - out.Master = in.Master - out.MetricsBindAddress = in.MetricsBindAddress - out.Enabled = in.Enabled - out.ProxyMode = in.ProxyMode - out.IPVSExcludeCIDRS = in.IPVSExcludeCIDRS - out.IPVSMinSyncPeriod = in.IPVSMinSyncPeriod - out.IPVSScheduler = in.IPVSScheduler - out.IPVSSyncPeriod = in.IPVSSyncPeriod - out.FeatureGates = in.FeatureGates - out.ConntrackMaxPerCore = in.ConntrackMaxPerCore - out.ConntrackMin = in.ConntrackMin - return nil -} - -// Convert_kops_KubeProxyConfig_To_v1alpha1_KubeProxyConfig is an autogenerated conversion function. -func Convert_kops_KubeProxyConfig_To_v1alpha1_KubeProxyConfig(in *kops.KubeProxyConfig, out *KubeProxyConfig, s conversion.Scope) error { - return autoConvert_kops_KubeProxyConfig_To_v1alpha1_KubeProxyConfig(in, out, s) -} - -func autoConvert_v1alpha1_KubeSchedulerConfig_To_kops_KubeSchedulerConfig(in *KubeSchedulerConfig, out *kops.KubeSchedulerConfig, s conversion.Scope) error { - out.Master = in.Master - out.LogLevel = in.LogLevel - out.Image = in.Image - if in.LeaderElection != nil { - in, out := &in.LeaderElection, &out.LeaderElection - *out = new(kops.LeaderElectionConfiguration) - if err := Convert_v1alpha1_LeaderElectionConfiguration_To_kops_LeaderElectionConfiguration(*in, *out, s); err != nil { - return err - } - } else { - out.LeaderElection = nil - } - out.UsePolicyConfigMap = in.UsePolicyConfigMap - out.FeatureGates = in.FeatureGates - out.MaxPersistentVolumes = in.MaxPersistentVolumes - out.Qps = in.Qps - out.Burst = in.Burst - return nil -} - -// Convert_v1alpha1_KubeSchedulerConfig_To_kops_KubeSchedulerConfig is an autogenerated conversion function. -func Convert_v1alpha1_KubeSchedulerConfig_To_kops_KubeSchedulerConfig(in *KubeSchedulerConfig, out *kops.KubeSchedulerConfig, s conversion.Scope) error { - return autoConvert_v1alpha1_KubeSchedulerConfig_To_kops_KubeSchedulerConfig(in, out, s) -} - -func autoConvert_kops_KubeSchedulerConfig_To_v1alpha1_KubeSchedulerConfig(in *kops.KubeSchedulerConfig, out *KubeSchedulerConfig, s conversion.Scope) error { - out.Master = in.Master - out.LogLevel = in.LogLevel - out.Image = in.Image - if in.LeaderElection != nil { - in, out := &in.LeaderElection, &out.LeaderElection - *out = new(LeaderElectionConfiguration) - if err := Convert_kops_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(*in, *out, s); err != nil { - return err - } - } else { - out.LeaderElection = nil - } - out.UsePolicyConfigMap = in.UsePolicyConfigMap - out.FeatureGates = in.FeatureGates - out.MaxPersistentVolumes = in.MaxPersistentVolumes - out.Qps = in.Qps - out.Burst = in.Burst - return nil -} - -// Convert_kops_KubeSchedulerConfig_To_v1alpha1_KubeSchedulerConfig is an autogenerated conversion function. -func Convert_kops_KubeSchedulerConfig_To_v1alpha1_KubeSchedulerConfig(in *kops.KubeSchedulerConfig, out *KubeSchedulerConfig, s conversion.Scope) error { - return autoConvert_kops_KubeSchedulerConfig_To_v1alpha1_KubeSchedulerConfig(in, out, s) -} - -func autoConvert_v1alpha1_KubeletConfigSpec_To_kops_KubeletConfigSpec(in *KubeletConfigSpec, out *kops.KubeletConfigSpec, s conversion.Scope) error { - out.APIServers = in.APIServers - out.AnonymousAuth = in.AnonymousAuth - out.AuthorizationMode = in.AuthorizationMode - out.BootstrapKubeconfig = in.BootstrapKubeconfig - out.ClientCAFile = in.ClientCAFile - out.TLSCertFile = in.TLSCertFile - out.TLSPrivateKeyFile = in.TLSPrivateKeyFile - out.TLSCipherSuites = in.TLSCipherSuites - out.TLSMinVersion = in.TLSMinVersion - out.KubeconfigPath = in.KubeconfigPath - out.RequireKubeconfig = in.RequireKubeconfig - out.LogLevel = in.LogLevel - out.PodManifestPath = in.PodManifestPath - out.HostnameOverride = in.HostnameOverride - out.PodInfraContainerImage = in.PodInfraContainerImage - out.SeccompProfileRoot = in.SeccompProfileRoot - out.AllowPrivileged = in.AllowPrivileged - out.EnableDebuggingHandlers = in.EnableDebuggingHandlers - out.RegisterNode = in.RegisterNode - out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency - out.ClusterDomain = in.ClusterDomain - out.ClusterDNS = in.ClusterDNS - out.NetworkPluginName = in.NetworkPluginName - out.CloudProvider = in.CloudProvider - out.KubeletCgroups = in.KubeletCgroups - out.RuntimeCgroups = in.RuntimeCgroups - out.ReadOnlyPort = in.ReadOnlyPort - out.SystemCgroups = in.SystemCgroups - out.CgroupRoot = in.CgroupRoot - out.ConfigureCBR0 = in.ConfigureCBR0 - out.HairpinMode = in.HairpinMode - out.BabysitDaemons = in.BabysitDaemons - out.MaxPods = in.MaxPods - out.NvidiaGPUs = in.NvidiaGPUs - out.PodCIDR = in.PodCIDR - out.ResolverConfig = in.ResolverConfig - out.ReconcileCIDR = in.ReconcileCIDR - out.RegisterSchedulable = in.RegisterSchedulable - out.SerializeImagePulls = in.SerializeImagePulls - out.NodeLabels = in.NodeLabels - out.NonMasqueradeCIDR = in.NonMasqueradeCIDR - out.EnableCustomMetrics = in.EnableCustomMetrics - out.NetworkPluginMTU = in.NetworkPluginMTU - out.ImageGCHighThresholdPercent = in.ImageGCHighThresholdPercent - out.ImageGCLowThresholdPercent = in.ImageGCLowThresholdPercent - out.ImagePullProgressDeadline = in.ImagePullProgressDeadline - out.EvictionHard = in.EvictionHard - out.EvictionSoft = in.EvictionSoft - out.EvictionSoftGracePeriod = in.EvictionSoftGracePeriod - out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod - out.EvictionMaxPodGracePeriod = in.EvictionMaxPodGracePeriod - out.EvictionMinimumReclaim = in.EvictionMinimumReclaim - out.VolumePluginDirectory = in.VolumePluginDirectory - out.Taints = in.Taints - out.FeatureGates = in.FeatureGates - out.KubeReserved = in.KubeReserved - out.KubeReservedCgroup = in.KubeReservedCgroup - out.SystemReserved = in.SystemReserved - out.SystemReservedCgroup = in.SystemReservedCgroup - out.EnforceNodeAllocatable = in.EnforceNodeAllocatable - out.RuntimeRequestTimeout = in.RuntimeRequestTimeout - out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod - out.FailSwapOn = in.FailSwapOn - out.ExperimentalAllowedUnsafeSysctls = in.ExperimentalAllowedUnsafeSysctls - out.AllowedUnsafeSysctls = in.AllowedUnsafeSysctls - out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout - out.DockerDisableSharedPID = in.DockerDisableSharedPID - out.RootDir = in.RootDir - out.AuthenticationTokenWebhook = in.AuthenticationTokenWebhook - out.AuthenticationTokenWebhookCacheTTL = in.AuthenticationTokenWebhookCacheTTL - out.CPUCFSQuota = in.CPUCFSQuota - out.CPUCFSQuotaPeriod = in.CPUCFSQuotaPeriod - out.CpuManagerPolicy = in.CpuManagerPolicy - out.RegistryPullQPS = in.RegistryPullQPS - out.RegistryBurst = in.RegistryBurst - out.RotateCertificates = in.RotateCertificates - return nil -} - -// Convert_v1alpha1_KubeletConfigSpec_To_kops_KubeletConfigSpec is an autogenerated conversion function. -func Convert_v1alpha1_KubeletConfigSpec_To_kops_KubeletConfigSpec(in *KubeletConfigSpec, out *kops.KubeletConfigSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_KubeletConfigSpec_To_kops_KubeletConfigSpec(in, out, s) -} - -func autoConvert_kops_KubeletConfigSpec_To_v1alpha1_KubeletConfigSpec(in *kops.KubeletConfigSpec, out *KubeletConfigSpec, s conversion.Scope) error { - out.APIServers = in.APIServers - out.AnonymousAuth = in.AnonymousAuth - out.AuthorizationMode = in.AuthorizationMode - out.BootstrapKubeconfig = in.BootstrapKubeconfig - out.ClientCAFile = in.ClientCAFile - out.TLSCertFile = in.TLSCertFile - out.TLSPrivateKeyFile = in.TLSPrivateKeyFile - out.TLSCipherSuites = in.TLSCipherSuites - out.TLSMinVersion = in.TLSMinVersion - out.KubeconfigPath = in.KubeconfigPath - out.RequireKubeconfig = in.RequireKubeconfig - out.LogLevel = in.LogLevel - out.PodManifestPath = in.PodManifestPath - out.HostnameOverride = in.HostnameOverride - out.PodInfraContainerImage = in.PodInfraContainerImage - out.SeccompProfileRoot = in.SeccompProfileRoot - out.AllowPrivileged = in.AllowPrivileged - out.EnableDebuggingHandlers = in.EnableDebuggingHandlers - out.RegisterNode = in.RegisterNode - out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency - out.ClusterDomain = in.ClusterDomain - out.ClusterDNS = in.ClusterDNS - out.NetworkPluginName = in.NetworkPluginName - out.CloudProvider = in.CloudProvider - out.KubeletCgroups = in.KubeletCgroups - out.RuntimeCgroups = in.RuntimeCgroups - out.ReadOnlyPort = in.ReadOnlyPort - out.SystemCgroups = in.SystemCgroups - out.CgroupRoot = in.CgroupRoot - out.ConfigureCBR0 = in.ConfigureCBR0 - out.HairpinMode = in.HairpinMode - out.BabysitDaemons = in.BabysitDaemons - out.MaxPods = in.MaxPods - out.NvidiaGPUs = in.NvidiaGPUs - out.PodCIDR = in.PodCIDR - out.ResolverConfig = in.ResolverConfig - out.ReconcileCIDR = in.ReconcileCIDR - out.RegisterSchedulable = in.RegisterSchedulable - out.SerializeImagePulls = in.SerializeImagePulls - out.NodeLabels = in.NodeLabels - out.NonMasqueradeCIDR = in.NonMasqueradeCIDR - out.EnableCustomMetrics = in.EnableCustomMetrics - out.NetworkPluginMTU = in.NetworkPluginMTU - out.ImageGCHighThresholdPercent = in.ImageGCHighThresholdPercent - out.ImageGCLowThresholdPercent = in.ImageGCLowThresholdPercent - out.ImagePullProgressDeadline = in.ImagePullProgressDeadline - out.EvictionHard = in.EvictionHard - out.EvictionSoft = in.EvictionSoft - out.EvictionSoftGracePeriod = in.EvictionSoftGracePeriod - out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod - out.EvictionMaxPodGracePeriod = in.EvictionMaxPodGracePeriod - out.EvictionMinimumReclaim = in.EvictionMinimumReclaim - out.VolumePluginDirectory = in.VolumePluginDirectory - out.Taints = in.Taints - out.FeatureGates = in.FeatureGates - out.KubeReserved = in.KubeReserved - out.KubeReservedCgroup = in.KubeReservedCgroup - out.SystemReserved = in.SystemReserved - out.SystemReservedCgroup = in.SystemReservedCgroup - out.EnforceNodeAllocatable = in.EnforceNodeAllocatable - out.RuntimeRequestTimeout = in.RuntimeRequestTimeout - out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod - out.FailSwapOn = in.FailSwapOn - out.ExperimentalAllowedUnsafeSysctls = in.ExperimentalAllowedUnsafeSysctls - out.AllowedUnsafeSysctls = in.AllowedUnsafeSysctls - out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout - out.DockerDisableSharedPID = in.DockerDisableSharedPID - out.RootDir = in.RootDir - out.AuthenticationTokenWebhook = in.AuthenticationTokenWebhook - out.AuthenticationTokenWebhookCacheTTL = in.AuthenticationTokenWebhookCacheTTL - out.CPUCFSQuota = in.CPUCFSQuota - out.CPUCFSQuotaPeriod = in.CPUCFSQuotaPeriod - out.CpuManagerPolicy = in.CpuManagerPolicy - out.RegistryPullQPS = in.RegistryPullQPS - out.RegistryBurst = in.RegistryBurst - out.RotateCertificates = in.RotateCertificates - return nil -} - -// Convert_kops_KubeletConfigSpec_To_v1alpha1_KubeletConfigSpec is an autogenerated conversion function. -func Convert_kops_KubeletConfigSpec_To_v1alpha1_KubeletConfigSpec(in *kops.KubeletConfigSpec, out *KubeletConfigSpec, s conversion.Scope) error { - return autoConvert_kops_KubeletConfigSpec_To_v1alpha1_KubeletConfigSpec(in, out, s) -} - -func autoConvert_v1alpha1_KubenetNetworkingSpec_To_kops_KubenetNetworkingSpec(in *KubenetNetworkingSpec, out *kops.KubenetNetworkingSpec, s conversion.Scope) error { - return nil -} - -// Convert_v1alpha1_KubenetNetworkingSpec_To_kops_KubenetNetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_KubenetNetworkingSpec_To_kops_KubenetNetworkingSpec(in *KubenetNetworkingSpec, out *kops.KubenetNetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_KubenetNetworkingSpec_To_kops_KubenetNetworkingSpec(in, out, s) -} - -func autoConvert_kops_KubenetNetworkingSpec_To_v1alpha1_KubenetNetworkingSpec(in *kops.KubenetNetworkingSpec, out *KubenetNetworkingSpec, s conversion.Scope) error { - return nil -} - -// Convert_kops_KubenetNetworkingSpec_To_v1alpha1_KubenetNetworkingSpec is an autogenerated conversion function. -func Convert_kops_KubenetNetworkingSpec_To_v1alpha1_KubenetNetworkingSpec(in *kops.KubenetNetworkingSpec, out *KubenetNetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_KubenetNetworkingSpec_To_v1alpha1_KubenetNetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_KuberouterNetworkingSpec_To_kops_KuberouterNetworkingSpec(in *KuberouterNetworkingSpec, out *kops.KuberouterNetworkingSpec, s conversion.Scope) error { - return nil -} - -// Convert_v1alpha1_KuberouterNetworkingSpec_To_kops_KuberouterNetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_KuberouterNetworkingSpec_To_kops_KuberouterNetworkingSpec(in *KuberouterNetworkingSpec, out *kops.KuberouterNetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_KuberouterNetworkingSpec_To_kops_KuberouterNetworkingSpec(in, out, s) -} - -func autoConvert_kops_KuberouterNetworkingSpec_To_v1alpha1_KuberouterNetworkingSpec(in *kops.KuberouterNetworkingSpec, out *KuberouterNetworkingSpec, s conversion.Scope) error { - return nil -} - -// Convert_kops_KuberouterNetworkingSpec_To_v1alpha1_KuberouterNetworkingSpec is an autogenerated conversion function. -func Convert_kops_KuberouterNetworkingSpec_To_v1alpha1_KuberouterNetworkingSpec(in *kops.KuberouterNetworkingSpec, out *KuberouterNetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_KuberouterNetworkingSpec_To_v1alpha1_KuberouterNetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_LeaderElectionConfiguration_To_kops_LeaderElectionConfiguration(in *LeaderElectionConfiguration, out *kops.LeaderElectionConfiguration, s conversion.Scope) error { - out.LeaderElect = in.LeaderElect - out.LeaderElectLeaseDuration = in.LeaderElectLeaseDuration - out.LeaderElectRenewDeadlineDuration = in.LeaderElectRenewDeadlineDuration - out.LeaderElectResourceLock = in.LeaderElectResourceLock - out.LeaderElectResourceName = in.LeaderElectResourceName - out.LeaderElectResourceNamespace = in.LeaderElectResourceNamespace - out.LeaderElectRetryPeriod = in.LeaderElectRetryPeriod - return nil -} - -// Convert_v1alpha1_LeaderElectionConfiguration_To_kops_LeaderElectionConfiguration is an autogenerated conversion function. -func Convert_v1alpha1_LeaderElectionConfiguration_To_kops_LeaderElectionConfiguration(in *LeaderElectionConfiguration, out *kops.LeaderElectionConfiguration, s conversion.Scope) error { - return autoConvert_v1alpha1_LeaderElectionConfiguration_To_kops_LeaderElectionConfiguration(in, out, s) -} - -func autoConvert_kops_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in *kops.LeaderElectionConfiguration, out *LeaderElectionConfiguration, s conversion.Scope) error { - out.LeaderElect = in.LeaderElect - out.LeaderElectLeaseDuration = in.LeaderElectLeaseDuration - out.LeaderElectRenewDeadlineDuration = in.LeaderElectRenewDeadlineDuration - out.LeaderElectResourceLock = in.LeaderElectResourceLock - out.LeaderElectResourceName = in.LeaderElectResourceName - out.LeaderElectResourceNamespace = in.LeaderElectResourceNamespace - out.LeaderElectRetryPeriod = in.LeaderElectRetryPeriod - return nil -} - -// Convert_kops_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration is an autogenerated conversion function. -func Convert_kops_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in *kops.LeaderElectionConfiguration, out *LeaderElectionConfiguration, s conversion.Scope) error { - return autoConvert_kops_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration(in, out, s) -} - -func autoConvert_v1alpha1_LoadBalancer_To_kops_LoadBalancer(in *LoadBalancer, out *kops.LoadBalancer, s conversion.Scope) error { - out.LoadBalancerName = in.LoadBalancerName - out.TargetGroupARN = in.TargetGroupARN - return nil -} - -// Convert_v1alpha1_LoadBalancer_To_kops_LoadBalancer is an autogenerated conversion function. -func Convert_v1alpha1_LoadBalancer_To_kops_LoadBalancer(in *LoadBalancer, out *kops.LoadBalancer, s conversion.Scope) error { - return autoConvert_v1alpha1_LoadBalancer_To_kops_LoadBalancer(in, out, s) -} - -func autoConvert_kops_LoadBalancer_To_v1alpha1_LoadBalancer(in *kops.LoadBalancer, out *LoadBalancer, s conversion.Scope) error { - out.LoadBalancerName = in.LoadBalancerName - out.TargetGroupARN = in.TargetGroupARN - return nil -} - -// Convert_kops_LoadBalancer_To_v1alpha1_LoadBalancer is an autogenerated conversion function. -func Convert_kops_LoadBalancer_To_v1alpha1_LoadBalancer(in *kops.LoadBalancer, out *LoadBalancer, s conversion.Scope) error { - return autoConvert_kops_LoadBalancer_To_v1alpha1_LoadBalancer(in, out, s) -} - -func autoConvert_v1alpha1_LoadBalancerAccessSpec_To_kops_LoadBalancerAccessSpec(in *LoadBalancerAccessSpec, out *kops.LoadBalancerAccessSpec, s conversion.Scope) error { - out.Type = kops.LoadBalancerType(in.Type) - out.IdleTimeoutSeconds = in.IdleTimeoutSeconds - out.SecurityGroupOverride = in.SecurityGroupOverride - out.AdditionalSecurityGroups = in.AdditionalSecurityGroups - out.UseForInternalApi = in.UseForInternalApi - out.SSLCertificate = in.SSLCertificate - out.CrossZoneLoadBalancing = in.CrossZoneLoadBalancing - return nil -} - -// Convert_v1alpha1_LoadBalancerAccessSpec_To_kops_LoadBalancerAccessSpec is an autogenerated conversion function. -func Convert_v1alpha1_LoadBalancerAccessSpec_To_kops_LoadBalancerAccessSpec(in *LoadBalancerAccessSpec, out *kops.LoadBalancerAccessSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_LoadBalancerAccessSpec_To_kops_LoadBalancerAccessSpec(in, out, s) -} - -func autoConvert_kops_LoadBalancerAccessSpec_To_v1alpha1_LoadBalancerAccessSpec(in *kops.LoadBalancerAccessSpec, out *LoadBalancerAccessSpec, s conversion.Scope) error { - out.Type = LoadBalancerType(in.Type) - out.IdleTimeoutSeconds = in.IdleTimeoutSeconds - out.SecurityGroupOverride = in.SecurityGroupOverride - out.AdditionalSecurityGroups = in.AdditionalSecurityGroups - out.UseForInternalApi = in.UseForInternalApi - out.SSLCertificate = in.SSLCertificate - out.CrossZoneLoadBalancing = in.CrossZoneLoadBalancing - return nil -} - -// Convert_kops_LoadBalancerAccessSpec_To_v1alpha1_LoadBalancerAccessSpec is an autogenerated conversion function. -func Convert_kops_LoadBalancerAccessSpec_To_v1alpha1_LoadBalancerAccessSpec(in *kops.LoadBalancerAccessSpec, out *LoadBalancerAccessSpec, s conversion.Scope) error { - return autoConvert_kops_LoadBalancerAccessSpec_To_v1alpha1_LoadBalancerAccessSpec(in, out, s) -} - -func autoConvert_v1alpha1_LyftVPCNetworkingSpec_To_kops_LyftVPCNetworkingSpec(in *LyftVPCNetworkingSpec, out *kops.LyftVPCNetworkingSpec, s conversion.Scope) error { - out.SubnetTags = in.SubnetTags - return nil -} - -// Convert_v1alpha1_LyftVPCNetworkingSpec_To_kops_LyftVPCNetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_LyftVPCNetworkingSpec_To_kops_LyftVPCNetworkingSpec(in *LyftVPCNetworkingSpec, out *kops.LyftVPCNetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_LyftVPCNetworkingSpec_To_kops_LyftVPCNetworkingSpec(in, out, s) -} - -func autoConvert_kops_LyftVPCNetworkingSpec_To_v1alpha1_LyftVPCNetworkingSpec(in *kops.LyftVPCNetworkingSpec, out *LyftVPCNetworkingSpec, s conversion.Scope) error { - out.SubnetTags = in.SubnetTags - return nil -} - -// Convert_kops_LyftVPCNetworkingSpec_To_v1alpha1_LyftVPCNetworkingSpec is an autogenerated conversion function. -func Convert_kops_LyftVPCNetworkingSpec_To_v1alpha1_LyftVPCNetworkingSpec(in *kops.LyftVPCNetworkingSpec, out *LyftVPCNetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_LyftVPCNetworkingSpec_To_v1alpha1_LyftVPCNetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_MixedInstancesPolicySpec_To_kops_MixedInstancesPolicySpec(in *MixedInstancesPolicySpec, out *kops.MixedInstancesPolicySpec, s conversion.Scope) error { - out.Instances = in.Instances - out.OnDemandAllocationStrategy = in.OnDemandAllocationStrategy - out.OnDemandBase = in.OnDemandBase - out.OnDemandAboveBase = in.OnDemandAboveBase - out.SpotAllocationStrategy = in.SpotAllocationStrategy - out.SpotInstancePools = in.SpotInstancePools - return nil -} - -// Convert_v1alpha1_MixedInstancesPolicySpec_To_kops_MixedInstancesPolicySpec is an autogenerated conversion function. -func Convert_v1alpha1_MixedInstancesPolicySpec_To_kops_MixedInstancesPolicySpec(in *MixedInstancesPolicySpec, out *kops.MixedInstancesPolicySpec, s conversion.Scope) error { - return autoConvert_v1alpha1_MixedInstancesPolicySpec_To_kops_MixedInstancesPolicySpec(in, out, s) -} - -func autoConvert_kops_MixedInstancesPolicySpec_To_v1alpha1_MixedInstancesPolicySpec(in *kops.MixedInstancesPolicySpec, out *MixedInstancesPolicySpec, s conversion.Scope) error { - out.Instances = in.Instances - out.OnDemandAllocationStrategy = in.OnDemandAllocationStrategy - out.OnDemandBase = in.OnDemandBase - out.OnDemandAboveBase = in.OnDemandAboveBase - out.SpotAllocationStrategy = in.SpotAllocationStrategy - out.SpotInstancePools = in.SpotInstancePools - return nil -} - -// Convert_kops_MixedInstancesPolicySpec_To_v1alpha1_MixedInstancesPolicySpec is an autogenerated conversion function. -func Convert_kops_MixedInstancesPolicySpec_To_v1alpha1_MixedInstancesPolicySpec(in *kops.MixedInstancesPolicySpec, out *MixedInstancesPolicySpec, s conversion.Scope) error { - return autoConvert_kops_MixedInstancesPolicySpec_To_v1alpha1_MixedInstancesPolicySpec(in, out, s) -} - -func autoConvert_v1alpha1_NetworkingSpec_To_kops_NetworkingSpec(in *NetworkingSpec, out *kops.NetworkingSpec, s conversion.Scope) error { - if in.Classic != nil { - in, out := &in.Classic, &out.Classic - *out = new(kops.ClassicNetworkingSpec) - if err := Convert_v1alpha1_ClassicNetworkingSpec_To_kops_ClassicNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Classic = nil - } - if in.Kubenet != nil { - in, out := &in.Kubenet, &out.Kubenet - *out = new(kops.KubenetNetworkingSpec) - if err := Convert_v1alpha1_KubenetNetworkingSpec_To_kops_KubenetNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Kubenet = nil - } - if in.External != nil { - in, out := &in.External, &out.External - *out = new(kops.ExternalNetworkingSpec) - if err := Convert_v1alpha1_ExternalNetworkingSpec_To_kops_ExternalNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.External = nil - } - if in.CNI != nil { - in, out := &in.CNI, &out.CNI - *out = new(kops.CNINetworkingSpec) - if err := Convert_v1alpha1_CNINetworkingSpec_To_kops_CNINetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.CNI = nil - } - if in.Kopeio != nil { - in, out := &in.Kopeio, &out.Kopeio - *out = new(kops.KopeioNetworkingSpec) - if err := Convert_v1alpha1_KopeioNetworkingSpec_To_kops_KopeioNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Kopeio = nil - } - if in.Weave != nil { - in, out := &in.Weave, &out.Weave - *out = new(kops.WeaveNetworkingSpec) - if err := Convert_v1alpha1_WeaveNetworkingSpec_To_kops_WeaveNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Weave = nil - } - if in.Flannel != nil { - in, out := &in.Flannel, &out.Flannel - *out = new(kops.FlannelNetworkingSpec) - if err := Convert_v1alpha1_FlannelNetworkingSpec_To_kops_FlannelNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Flannel = nil - } - if in.Calico != nil { - in, out := &in.Calico, &out.Calico - *out = new(kops.CalicoNetworkingSpec) - if err := Convert_v1alpha1_CalicoNetworkingSpec_To_kops_CalicoNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Calico = nil - } - if in.Canal != nil { - in, out := &in.Canal, &out.Canal - *out = new(kops.CanalNetworkingSpec) - if err := Convert_v1alpha1_CanalNetworkingSpec_To_kops_CanalNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Canal = nil - } - if in.Kuberouter != nil { - in, out := &in.Kuberouter, &out.Kuberouter - *out = new(kops.KuberouterNetworkingSpec) - if err := Convert_v1alpha1_KuberouterNetworkingSpec_To_kops_KuberouterNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Kuberouter = nil - } - if in.Romana != nil { - in, out := &in.Romana, &out.Romana - *out = new(kops.RomanaNetworkingSpec) - if err := Convert_v1alpha1_RomanaNetworkingSpec_To_kops_RomanaNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Romana = nil - } - if in.AmazonVPC != nil { - in, out := &in.AmazonVPC, &out.AmazonVPC - *out = new(kops.AmazonVPCNetworkingSpec) - if err := Convert_v1alpha1_AmazonVPCNetworkingSpec_To_kops_AmazonVPCNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.AmazonVPC = nil - } - if in.Cilium != nil { - in, out := &in.Cilium, &out.Cilium - *out = new(kops.CiliumNetworkingSpec) - if err := Convert_v1alpha1_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Cilium = nil - } - if in.LyftVPC != nil { - in, out := &in.LyftVPC, &out.LyftVPC - *out = new(kops.LyftVPCNetworkingSpec) - if err := Convert_v1alpha1_LyftVPCNetworkingSpec_To_kops_LyftVPCNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.LyftVPC = nil - } - if in.GCE != nil { - in, out := &in.GCE, &out.GCE - *out = new(kops.GCENetworkingSpec) - if err := Convert_v1alpha1_GCENetworkingSpec_To_kops_GCENetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.GCE = nil - } - return nil -} - -// Convert_v1alpha1_NetworkingSpec_To_kops_NetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_NetworkingSpec_To_kops_NetworkingSpec(in *NetworkingSpec, out *kops.NetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_NetworkingSpec_To_kops_NetworkingSpec(in, out, s) -} - -func autoConvert_kops_NetworkingSpec_To_v1alpha1_NetworkingSpec(in *kops.NetworkingSpec, out *NetworkingSpec, s conversion.Scope) error { - if in.Classic != nil { - in, out := &in.Classic, &out.Classic - *out = new(ClassicNetworkingSpec) - if err := Convert_kops_ClassicNetworkingSpec_To_v1alpha1_ClassicNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Classic = nil - } - if in.Kubenet != nil { - in, out := &in.Kubenet, &out.Kubenet - *out = new(KubenetNetworkingSpec) - if err := Convert_kops_KubenetNetworkingSpec_To_v1alpha1_KubenetNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Kubenet = nil - } - if in.External != nil { - in, out := &in.External, &out.External - *out = new(ExternalNetworkingSpec) - if err := Convert_kops_ExternalNetworkingSpec_To_v1alpha1_ExternalNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.External = nil - } - if in.CNI != nil { - in, out := &in.CNI, &out.CNI - *out = new(CNINetworkingSpec) - if err := Convert_kops_CNINetworkingSpec_To_v1alpha1_CNINetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.CNI = nil - } - if in.Kopeio != nil { - in, out := &in.Kopeio, &out.Kopeio - *out = new(KopeioNetworkingSpec) - if err := Convert_kops_KopeioNetworkingSpec_To_v1alpha1_KopeioNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Kopeio = nil - } - if in.Weave != nil { - in, out := &in.Weave, &out.Weave - *out = new(WeaveNetworkingSpec) - if err := Convert_kops_WeaveNetworkingSpec_To_v1alpha1_WeaveNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Weave = nil - } - if in.Flannel != nil { - in, out := &in.Flannel, &out.Flannel - *out = new(FlannelNetworkingSpec) - if err := Convert_kops_FlannelNetworkingSpec_To_v1alpha1_FlannelNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Flannel = nil - } - if in.Calico != nil { - in, out := &in.Calico, &out.Calico - *out = new(CalicoNetworkingSpec) - if err := Convert_kops_CalicoNetworkingSpec_To_v1alpha1_CalicoNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Calico = nil - } - if in.Canal != nil { - in, out := &in.Canal, &out.Canal - *out = new(CanalNetworkingSpec) - if err := Convert_kops_CanalNetworkingSpec_To_v1alpha1_CanalNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Canal = nil - } - if in.Kuberouter != nil { - in, out := &in.Kuberouter, &out.Kuberouter - *out = new(KuberouterNetworkingSpec) - if err := Convert_kops_KuberouterNetworkingSpec_To_v1alpha1_KuberouterNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Kuberouter = nil - } - if in.Romana != nil { - in, out := &in.Romana, &out.Romana - *out = new(RomanaNetworkingSpec) - if err := Convert_kops_RomanaNetworkingSpec_To_v1alpha1_RomanaNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Romana = nil - } - if in.AmazonVPC != nil { - in, out := &in.AmazonVPC, &out.AmazonVPC - *out = new(AmazonVPCNetworkingSpec) - if err := Convert_kops_AmazonVPCNetworkingSpec_To_v1alpha1_AmazonVPCNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.AmazonVPC = nil - } - if in.Cilium != nil { - in, out := &in.Cilium, &out.Cilium - *out = new(CiliumNetworkingSpec) - if err := Convert_kops_CiliumNetworkingSpec_To_v1alpha1_CiliumNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Cilium = nil - } - if in.LyftVPC != nil { - in, out := &in.LyftVPC, &out.LyftVPC - *out = new(LyftVPCNetworkingSpec) - if err := Convert_kops_LyftVPCNetworkingSpec_To_v1alpha1_LyftVPCNetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.LyftVPC = nil - } - if in.GCE != nil { - in, out := &in.GCE, &out.GCE - *out = new(GCENetworkingSpec) - if err := Convert_kops_GCENetworkingSpec_To_v1alpha1_GCENetworkingSpec(*in, *out, s); err != nil { - return err - } - } else { - out.GCE = nil - } - return nil -} - -// Convert_kops_NetworkingSpec_To_v1alpha1_NetworkingSpec is an autogenerated conversion function. -func Convert_kops_NetworkingSpec_To_v1alpha1_NetworkingSpec(in *kops.NetworkingSpec, out *NetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_NetworkingSpec_To_v1alpha1_NetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_NodeAuthorizationSpec_To_kops_NodeAuthorizationSpec(in *NodeAuthorizationSpec, out *kops.NodeAuthorizationSpec, s conversion.Scope) error { - if in.NodeAuthorizer != nil { - in, out := &in.NodeAuthorizer, &out.NodeAuthorizer - *out = new(kops.NodeAuthorizerSpec) - if err := Convert_v1alpha1_NodeAuthorizerSpec_To_kops_NodeAuthorizerSpec(*in, *out, s); err != nil { - return err - } - } else { - out.NodeAuthorizer = nil - } - return nil -} - -// Convert_v1alpha1_NodeAuthorizationSpec_To_kops_NodeAuthorizationSpec is an autogenerated conversion function. -func Convert_v1alpha1_NodeAuthorizationSpec_To_kops_NodeAuthorizationSpec(in *NodeAuthorizationSpec, out *kops.NodeAuthorizationSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_NodeAuthorizationSpec_To_kops_NodeAuthorizationSpec(in, out, s) -} - -func autoConvert_kops_NodeAuthorizationSpec_To_v1alpha1_NodeAuthorizationSpec(in *kops.NodeAuthorizationSpec, out *NodeAuthorizationSpec, s conversion.Scope) error { - if in.NodeAuthorizer != nil { - in, out := &in.NodeAuthorizer, &out.NodeAuthorizer - *out = new(NodeAuthorizerSpec) - if err := Convert_kops_NodeAuthorizerSpec_To_v1alpha1_NodeAuthorizerSpec(*in, *out, s); err != nil { - return err - } - } else { - out.NodeAuthorizer = nil - } - return nil -} - -// Convert_kops_NodeAuthorizationSpec_To_v1alpha1_NodeAuthorizationSpec is an autogenerated conversion function. -func Convert_kops_NodeAuthorizationSpec_To_v1alpha1_NodeAuthorizationSpec(in *kops.NodeAuthorizationSpec, out *NodeAuthorizationSpec, s conversion.Scope) error { - return autoConvert_kops_NodeAuthorizationSpec_To_v1alpha1_NodeAuthorizationSpec(in, out, s) -} - -func autoConvert_v1alpha1_NodeAuthorizerSpec_To_kops_NodeAuthorizerSpec(in *NodeAuthorizerSpec, out *kops.NodeAuthorizerSpec, s conversion.Scope) error { - out.Authorizer = in.Authorizer - out.Features = in.Features - out.Image = in.Image - out.NodeURL = in.NodeURL - out.Port = in.Port - out.Interval = in.Interval - out.Timeout = in.Timeout - out.TokenTTL = in.TokenTTL - return nil -} - -// Convert_v1alpha1_NodeAuthorizerSpec_To_kops_NodeAuthorizerSpec is an autogenerated conversion function. -func Convert_v1alpha1_NodeAuthorizerSpec_To_kops_NodeAuthorizerSpec(in *NodeAuthorizerSpec, out *kops.NodeAuthorizerSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_NodeAuthorizerSpec_To_kops_NodeAuthorizerSpec(in, out, s) -} - -func autoConvert_kops_NodeAuthorizerSpec_To_v1alpha1_NodeAuthorizerSpec(in *kops.NodeAuthorizerSpec, out *NodeAuthorizerSpec, s conversion.Scope) error { - out.Authorizer = in.Authorizer - out.Features = in.Features - out.Image = in.Image - out.NodeURL = in.NodeURL - out.Port = in.Port - out.Interval = in.Interval - out.Timeout = in.Timeout - out.TokenTTL = in.TokenTTL - return nil -} - -// Convert_kops_NodeAuthorizerSpec_To_v1alpha1_NodeAuthorizerSpec is an autogenerated conversion function. -func Convert_kops_NodeAuthorizerSpec_To_v1alpha1_NodeAuthorizerSpec(in *kops.NodeAuthorizerSpec, out *NodeAuthorizerSpec, s conversion.Scope) error { - return autoConvert_kops_NodeAuthorizerSpec_To_v1alpha1_NodeAuthorizerSpec(in, out, s) -} - -func autoConvert_v1alpha1_OpenstackBlockStorageConfig_To_kops_OpenstackBlockStorageConfig(in *OpenstackBlockStorageConfig, out *kops.OpenstackBlockStorageConfig, s conversion.Scope) error { - out.Version = in.Version - out.IgnoreAZ = in.IgnoreAZ - out.OverrideAZ = in.OverrideAZ - return nil -} - -// Convert_v1alpha1_OpenstackBlockStorageConfig_To_kops_OpenstackBlockStorageConfig is an autogenerated conversion function. -func Convert_v1alpha1_OpenstackBlockStorageConfig_To_kops_OpenstackBlockStorageConfig(in *OpenstackBlockStorageConfig, out *kops.OpenstackBlockStorageConfig, s conversion.Scope) error { - return autoConvert_v1alpha1_OpenstackBlockStorageConfig_To_kops_OpenstackBlockStorageConfig(in, out, s) -} - -func autoConvert_kops_OpenstackBlockStorageConfig_To_v1alpha1_OpenstackBlockStorageConfig(in *kops.OpenstackBlockStorageConfig, out *OpenstackBlockStorageConfig, s conversion.Scope) error { - out.Version = in.Version - out.IgnoreAZ = in.IgnoreAZ - out.OverrideAZ = in.OverrideAZ - return nil -} - -// Convert_kops_OpenstackBlockStorageConfig_To_v1alpha1_OpenstackBlockStorageConfig is an autogenerated conversion function. -func Convert_kops_OpenstackBlockStorageConfig_To_v1alpha1_OpenstackBlockStorageConfig(in *kops.OpenstackBlockStorageConfig, out *OpenstackBlockStorageConfig, s conversion.Scope) error { - return autoConvert_kops_OpenstackBlockStorageConfig_To_v1alpha1_OpenstackBlockStorageConfig(in, out, s) -} - -func autoConvert_v1alpha1_OpenstackConfiguration_To_kops_OpenstackConfiguration(in *OpenstackConfiguration, out *kops.OpenstackConfiguration, s conversion.Scope) error { - if in.Loadbalancer != nil { - in, out := &in.Loadbalancer, &out.Loadbalancer - *out = new(kops.OpenstackLoadbalancerConfig) - if err := Convert_v1alpha1_OpenstackLoadbalancerConfig_To_kops_OpenstackLoadbalancerConfig(*in, *out, s); err != nil { - return err - } - } else { - out.Loadbalancer = nil - } - if in.Monitor != nil { - in, out := &in.Monitor, &out.Monitor - *out = new(kops.OpenstackMonitor) - if err := Convert_v1alpha1_OpenstackMonitor_To_kops_OpenstackMonitor(*in, *out, s); err != nil { - return err - } - } else { - out.Monitor = nil - } - if in.Router != nil { - in, out := &in.Router, &out.Router - *out = new(kops.OpenstackRouter) - if err := Convert_v1alpha1_OpenstackRouter_To_kops_OpenstackRouter(*in, *out, s); err != nil { - return err - } - } else { - out.Router = nil - } - if in.BlockStorage != nil { - in, out := &in.BlockStorage, &out.BlockStorage - *out = new(kops.OpenstackBlockStorageConfig) - if err := Convert_v1alpha1_OpenstackBlockStorageConfig_To_kops_OpenstackBlockStorageConfig(*in, *out, s); err != nil { - return err - } - } else { - out.BlockStorage = nil - } - out.InsecureSkipVerify = in.InsecureSkipVerify - return nil -} - -// Convert_v1alpha1_OpenstackConfiguration_To_kops_OpenstackConfiguration is an autogenerated conversion function. -func Convert_v1alpha1_OpenstackConfiguration_To_kops_OpenstackConfiguration(in *OpenstackConfiguration, out *kops.OpenstackConfiguration, s conversion.Scope) error { - return autoConvert_v1alpha1_OpenstackConfiguration_To_kops_OpenstackConfiguration(in, out, s) -} - -func autoConvert_kops_OpenstackConfiguration_To_v1alpha1_OpenstackConfiguration(in *kops.OpenstackConfiguration, out *OpenstackConfiguration, s conversion.Scope) error { - if in.Loadbalancer != nil { - in, out := &in.Loadbalancer, &out.Loadbalancer - *out = new(OpenstackLoadbalancerConfig) - if err := Convert_kops_OpenstackLoadbalancerConfig_To_v1alpha1_OpenstackLoadbalancerConfig(*in, *out, s); err != nil { - return err - } - } else { - out.Loadbalancer = nil - } - if in.Monitor != nil { - in, out := &in.Monitor, &out.Monitor - *out = new(OpenstackMonitor) - if err := Convert_kops_OpenstackMonitor_To_v1alpha1_OpenstackMonitor(*in, *out, s); err != nil { - return err - } - } else { - out.Monitor = nil - } - if in.Router != nil { - in, out := &in.Router, &out.Router - *out = new(OpenstackRouter) - if err := Convert_kops_OpenstackRouter_To_v1alpha1_OpenstackRouter(*in, *out, s); err != nil { - return err - } - } else { - out.Router = nil - } - if in.BlockStorage != nil { - in, out := &in.BlockStorage, &out.BlockStorage - *out = new(OpenstackBlockStorageConfig) - if err := Convert_kops_OpenstackBlockStorageConfig_To_v1alpha1_OpenstackBlockStorageConfig(*in, *out, s); err != nil { - return err - } - } else { - out.BlockStorage = nil - } - out.InsecureSkipVerify = in.InsecureSkipVerify - return nil -} - -// Convert_kops_OpenstackConfiguration_To_v1alpha1_OpenstackConfiguration is an autogenerated conversion function. -func Convert_kops_OpenstackConfiguration_To_v1alpha1_OpenstackConfiguration(in *kops.OpenstackConfiguration, out *OpenstackConfiguration, s conversion.Scope) error { - return autoConvert_kops_OpenstackConfiguration_To_v1alpha1_OpenstackConfiguration(in, out, s) -} - -func autoConvert_v1alpha1_OpenstackLoadbalancerConfig_To_kops_OpenstackLoadbalancerConfig(in *OpenstackLoadbalancerConfig, out *kops.OpenstackLoadbalancerConfig, s conversion.Scope) error { - out.Method = in.Method - out.Provider = in.Provider - out.UseOctavia = in.UseOctavia - out.FloatingNetwork = in.FloatingNetwork - out.FloatingNetworkID = in.FloatingNetworkID - out.FloatingSubnet = in.FloatingSubnet - out.SubnetID = in.SubnetID - out.ManageSecGroups = in.ManageSecGroups - return nil -} - -// Convert_v1alpha1_OpenstackLoadbalancerConfig_To_kops_OpenstackLoadbalancerConfig is an autogenerated conversion function. -func Convert_v1alpha1_OpenstackLoadbalancerConfig_To_kops_OpenstackLoadbalancerConfig(in *OpenstackLoadbalancerConfig, out *kops.OpenstackLoadbalancerConfig, s conversion.Scope) error { - return autoConvert_v1alpha1_OpenstackLoadbalancerConfig_To_kops_OpenstackLoadbalancerConfig(in, out, s) -} - -func autoConvert_kops_OpenstackLoadbalancerConfig_To_v1alpha1_OpenstackLoadbalancerConfig(in *kops.OpenstackLoadbalancerConfig, out *OpenstackLoadbalancerConfig, s conversion.Scope) error { - out.Method = in.Method - out.Provider = in.Provider - out.UseOctavia = in.UseOctavia - out.FloatingNetwork = in.FloatingNetwork - out.FloatingNetworkID = in.FloatingNetworkID - out.FloatingSubnet = in.FloatingSubnet - out.SubnetID = in.SubnetID - out.ManageSecGroups = in.ManageSecGroups - return nil -} - -// Convert_kops_OpenstackLoadbalancerConfig_To_v1alpha1_OpenstackLoadbalancerConfig is an autogenerated conversion function. -func Convert_kops_OpenstackLoadbalancerConfig_To_v1alpha1_OpenstackLoadbalancerConfig(in *kops.OpenstackLoadbalancerConfig, out *OpenstackLoadbalancerConfig, s conversion.Scope) error { - return autoConvert_kops_OpenstackLoadbalancerConfig_To_v1alpha1_OpenstackLoadbalancerConfig(in, out, s) -} - -func autoConvert_v1alpha1_OpenstackMonitor_To_kops_OpenstackMonitor(in *OpenstackMonitor, out *kops.OpenstackMonitor, s conversion.Scope) error { - out.Delay = in.Delay - out.Timeout = in.Timeout - out.MaxRetries = in.MaxRetries - return nil -} - -// Convert_v1alpha1_OpenstackMonitor_To_kops_OpenstackMonitor is an autogenerated conversion function. -func Convert_v1alpha1_OpenstackMonitor_To_kops_OpenstackMonitor(in *OpenstackMonitor, out *kops.OpenstackMonitor, s conversion.Scope) error { - return autoConvert_v1alpha1_OpenstackMonitor_To_kops_OpenstackMonitor(in, out, s) -} - -func autoConvert_kops_OpenstackMonitor_To_v1alpha1_OpenstackMonitor(in *kops.OpenstackMonitor, out *OpenstackMonitor, s conversion.Scope) error { - out.Delay = in.Delay - out.Timeout = in.Timeout - out.MaxRetries = in.MaxRetries - return nil -} - -// Convert_kops_OpenstackMonitor_To_v1alpha1_OpenstackMonitor is an autogenerated conversion function. -func Convert_kops_OpenstackMonitor_To_v1alpha1_OpenstackMonitor(in *kops.OpenstackMonitor, out *OpenstackMonitor, s conversion.Scope) error { - return autoConvert_kops_OpenstackMonitor_To_v1alpha1_OpenstackMonitor(in, out, s) -} - -func autoConvert_v1alpha1_OpenstackRouter_To_kops_OpenstackRouter(in *OpenstackRouter, out *kops.OpenstackRouter, s conversion.Scope) error { - out.ExternalNetwork = in.ExternalNetwork - out.DNSServers = in.DNSServers - out.ExternalSubnet = in.ExternalSubnet - return nil -} - -// Convert_v1alpha1_OpenstackRouter_To_kops_OpenstackRouter is an autogenerated conversion function. -func Convert_v1alpha1_OpenstackRouter_To_kops_OpenstackRouter(in *OpenstackRouter, out *kops.OpenstackRouter, s conversion.Scope) error { - return autoConvert_v1alpha1_OpenstackRouter_To_kops_OpenstackRouter(in, out, s) -} - -func autoConvert_kops_OpenstackRouter_To_v1alpha1_OpenstackRouter(in *kops.OpenstackRouter, out *OpenstackRouter, s conversion.Scope) error { - out.ExternalNetwork = in.ExternalNetwork - out.DNSServers = in.DNSServers - out.ExternalSubnet = in.ExternalSubnet - return nil -} - -// Convert_kops_OpenstackRouter_To_v1alpha1_OpenstackRouter is an autogenerated conversion function. -func Convert_kops_OpenstackRouter_To_v1alpha1_OpenstackRouter(in *kops.OpenstackRouter, out *OpenstackRouter, s conversion.Scope) error { - return autoConvert_kops_OpenstackRouter_To_v1alpha1_OpenstackRouter(in, out, s) -} - -func autoConvert_v1alpha1_RBACAuthorizationSpec_To_kops_RBACAuthorizationSpec(in *RBACAuthorizationSpec, out *kops.RBACAuthorizationSpec, s conversion.Scope) error { - return nil -} - -// Convert_v1alpha1_RBACAuthorizationSpec_To_kops_RBACAuthorizationSpec is an autogenerated conversion function. -func Convert_v1alpha1_RBACAuthorizationSpec_To_kops_RBACAuthorizationSpec(in *RBACAuthorizationSpec, out *kops.RBACAuthorizationSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_RBACAuthorizationSpec_To_kops_RBACAuthorizationSpec(in, out, s) -} - -func autoConvert_kops_RBACAuthorizationSpec_To_v1alpha1_RBACAuthorizationSpec(in *kops.RBACAuthorizationSpec, out *RBACAuthorizationSpec, s conversion.Scope) error { - return nil -} - -// Convert_kops_RBACAuthorizationSpec_To_v1alpha1_RBACAuthorizationSpec is an autogenerated conversion function. -func Convert_kops_RBACAuthorizationSpec_To_v1alpha1_RBACAuthorizationSpec(in *kops.RBACAuthorizationSpec, out *RBACAuthorizationSpec, s conversion.Scope) error { - return autoConvert_kops_RBACAuthorizationSpec_To_v1alpha1_RBACAuthorizationSpec(in, out, s) -} - -func autoConvert_v1alpha1_RollingUpdate_To_kops_RollingUpdate(in *RollingUpdate, out *kops.RollingUpdate, s conversion.Scope) error { - out.MaxUnavailable = in.MaxUnavailable - out.MaxSurge = in.MaxSurge - return nil -} - -// Convert_v1alpha1_RollingUpdate_To_kops_RollingUpdate is an autogenerated conversion function. -func Convert_v1alpha1_RollingUpdate_To_kops_RollingUpdate(in *RollingUpdate, out *kops.RollingUpdate, s conversion.Scope) error { - return autoConvert_v1alpha1_RollingUpdate_To_kops_RollingUpdate(in, out, s) -} - -func autoConvert_kops_RollingUpdate_To_v1alpha1_RollingUpdate(in *kops.RollingUpdate, out *RollingUpdate, s conversion.Scope) error { - out.MaxUnavailable = in.MaxUnavailable - out.MaxSurge = in.MaxSurge - return nil -} - -// Convert_kops_RollingUpdate_To_v1alpha1_RollingUpdate is an autogenerated conversion function. -func Convert_kops_RollingUpdate_To_v1alpha1_RollingUpdate(in *kops.RollingUpdate, out *RollingUpdate, s conversion.Scope) error { - return autoConvert_kops_RollingUpdate_To_v1alpha1_RollingUpdate(in, out, s) -} - -func autoConvert_v1alpha1_RomanaNetworkingSpec_To_kops_RomanaNetworkingSpec(in *RomanaNetworkingSpec, out *kops.RomanaNetworkingSpec, s conversion.Scope) error { - out.DaemonServiceIP = in.DaemonServiceIP - out.EtcdServiceIP = in.EtcdServiceIP - return nil -} - -// Convert_v1alpha1_RomanaNetworkingSpec_To_kops_RomanaNetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_RomanaNetworkingSpec_To_kops_RomanaNetworkingSpec(in *RomanaNetworkingSpec, out *kops.RomanaNetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_RomanaNetworkingSpec_To_kops_RomanaNetworkingSpec(in, out, s) -} - -func autoConvert_kops_RomanaNetworkingSpec_To_v1alpha1_RomanaNetworkingSpec(in *kops.RomanaNetworkingSpec, out *RomanaNetworkingSpec, s conversion.Scope) error { - out.DaemonServiceIP = in.DaemonServiceIP - out.EtcdServiceIP = in.EtcdServiceIP - return nil -} - -// Convert_kops_RomanaNetworkingSpec_To_v1alpha1_RomanaNetworkingSpec is an autogenerated conversion function. -func Convert_kops_RomanaNetworkingSpec_To_v1alpha1_RomanaNetworkingSpec(in *kops.RomanaNetworkingSpec, out *RomanaNetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_RomanaNetworkingSpec_To_v1alpha1_RomanaNetworkingSpec(in, out, s) -} - -func autoConvert_v1alpha1_SSHCredential_To_kops_SSHCredential(in *SSHCredential, out *kops.SSHCredential, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1alpha1_SSHCredentialSpec_To_kops_SSHCredentialSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - return nil -} - -// Convert_v1alpha1_SSHCredential_To_kops_SSHCredential is an autogenerated conversion function. -func Convert_v1alpha1_SSHCredential_To_kops_SSHCredential(in *SSHCredential, out *kops.SSHCredential, s conversion.Scope) error { - return autoConvert_v1alpha1_SSHCredential_To_kops_SSHCredential(in, out, s) -} - -func autoConvert_kops_SSHCredential_To_v1alpha1_SSHCredential(in *kops.SSHCredential, out *SSHCredential, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_kops_SSHCredentialSpec_To_v1alpha1_SSHCredentialSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - return nil -} - -// Convert_kops_SSHCredential_To_v1alpha1_SSHCredential is an autogenerated conversion function. -func Convert_kops_SSHCredential_To_v1alpha1_SSHCredential(in *kops.SSHCredential, out *SSHCredential, s conversion.Scope) error { - return autoConvert_kops_SSHCredential_To_v1alpha1_SSHCredential(in, out, s) -} - -func autoConvert_v1alpha1_SSHCredentialList_To_kops_SSHCredentialList(in *SSHCredentialList, out *kops.SSHCredentialList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]kops.SSHCredential, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_SSHCredential_To_kops_SSHCredential(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_v1alpha1_SSHCredentialList_To_kops_SSHCredentialList is an autogenerated conversion function. -func Convert_v1alpha1_SSHCredentialList_To_kops_SSHCredentialList(in *SSHCredentialList, out *kops.SSHCredentialList, s conversion.Scope) error { - return autoConvert_v1alpha1_SSHCredentialList_To_kops_SSHCredentialList(in, out, s) -} - -func autoConvert_kops_SSHCredentialList_To_v1alpha1_SSHCredentialList(in *kops.SSHCredentialList, out *SSHCredentialList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]SSHCredential, len(*in)) - for i := range *in { - if err := Convert_kops_SSHCredential_To_v1alpha1_SSHCredential(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_kops_SSHCredentialList_To_v1alpha1_SSHCredentialList is an autogenerated conversion function. -func Convert_kops_SSHCredentialList_To_v1alpha1_SSHCredentialList(in *kops.SSHCredentialList, out *SSHCredentialList, s conversion.Scope) error { - return autoConvert_kops_SSHCredentialList_To_v1alpha1_SSHCredentialList(in, out, s) -} - -func autoConvert_v1alpha1_SSHCredentialSpec_To_kops_SSHCredentialSpec(in *SSHCredentialSpec, out *kops.SSHCredentialSpec, s conversion.Scope) error { - out.PublicKey = in.PublicKey - return nil -} - -// Convert_v1alpha1_SSHCredentialSpec_To_kops_SSHCredentialSpec is an autogenerated conversion function. -func Convert_v1alpha1_SSHCredentialSpec_To_kops_SSHCredentialSpec(in *SSHCredentialSpec, out *kops.SSHCredentialSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_SSHCredentialSpec_To_kops_SSHCredentialSpec(in, out, s) -} - -func autoConvert_kops_SSHCredentialSpec_To_v1alpha1_SSHCredentialSpec(in *kops.SSHCredentialSpec, out *SSHCredentialSpec, s conversion.Scope) error { - out.PublicKey = in.PublicKey - return nil -} - -// Convert_kops_SSHCredentialSpec_To_v1alpha1_SSHCredentialSpec is an autogenerated conversion function. -func Convert_kops_SSHCredentialSpec_To_v1alpha1_SSHCredentialSpec(in *kops.SSHCredentialSpec, out *SSHCredentialSpec, s conversion.Scope) error { - return autoConvert_kops_SSHCredentialSpec_To_v1alpha1_SSHCredentialSpec(in, out, s) -} - -func autoConvert_v1alpha1_TargetSpec_To_kops_TargetSpec(in *TargetSpec, out *kops.TargetSpec, s conversion.Scope) error { - if in.Terraform != nil { - in, out := &in.Terraform, &out.Terraform - *out = new(kops.TerraformSpec) - if err := Convert_v1alpha1_TerraformSpec_To_kops_TerraformSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Terraform = nil - } - return nil -} - -// Convert_v1alpha1_TargetSpec_To_kops_TargetSpec is an autogenerated conversion function. -func Convert_v1alpha1_TargetSpec_To_kops_TargetSpec(in *TargetSpec, out *kops.TargetSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_TargetSpec_To_kops_TargetSpec(in, out, s) -} - -func autoConvert_kops_TargetSpec_To_v1alpha1_TargetSpec(in *kops.TargetSpec, out *TargetSpec, s conversion.Scope) error { - if in.Terraform != nil { - in, out := &in.Terraform, &out.Terraform - *out = new(TerraformSpec) - if err := Convert_kops_TerraformSpec_To_v1alpha1_TerraformSpec(*in, *out, s); err != nil { - return err - } - } else { - out.Terraform = nil - } - return nil -} - -// Convert_kops_TargetSpec_To_v1alpha1_TargetSpec is an autogenerated conversion function. -func Convert_kops_TargetSpec_To_v1alpha1_TargetSpec(in *kops.TargetSpec, out *TargetSpec, s conversion.Scope) error { - return autoConvert_kops_TargetSpec_To_v1alpha1_TargetSpec(in, out, s) -} - -func autoConvert_v1alpha1_TerraformSpec_To_kops_TerraformSpec(in *TerraformSpec, out *kops.TerraformSpec, s conversion.Scope) error { - out.ProviderExtraConfig = in.ProviderExtraConfig - return nil -} - -// Convert_v1alpha1_TerraformSpec_To_kops_TerraformSpec is an autogenerated conversion function. -func Convert_v1alpha1_TerraformSpec_To_kops_TerraformSpec(in *TerraformSpec, out *kops.TerraformSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_TerraformSpec_To_kops_TerraformSpec(in, out, s) -} - -func autoConvert_kops_TerraformSpec_To_v1alpha1_TerraformSpec(in *kops.TerraformSpec, out *TerraformSpec, s conversion.Scope) error { - out.ProviderExtraConfig = in.ProviderExtraConfig - return nil -} - -// Convert_kops_TerraformSpec_To_v1alpha1_TerraformSpec is an autogenerated conversion function. -func Convert_kops_TerraformSpec_To_v1alpha1_TerraformSpec(in *kops.TerraformSpec, out *TerraformSpec, s conversion.Scope) error { - return autoConvert_kops_TerraformSpec_To_v1alpha1_TerraformSpec(in, out, s) -} - -func autoConvert_v1alpha1_UserData_To_kops_UserData(in *UserData, out *kops.UserData, s conversion.Scope) error { - out.Name = in.Name - out.Type = in.Type - out.Content = in.Content - return nil -} - -// Convert_v1alpha1_UserData_To_kops_UserData is an autogenerated conversion function. -func Convert_v1alpha1_UserData_To_kops_UserData(in *UserData, out *kops.UserData, s conversion.Scope) error { - return autoConvert_v1alpha1_UserData_To_kops_UserData(in, out, s) -} - -func autoConvert_kops_UserData_To_v1alpha1_UserData(in *kops.UserData, out *UserData, s conversion.Scope) error { - out.Name = in.Name - out.Type = in.Type - out.Content = in.Content - return nil -} - -// Convert_kops_UserData_To_v1alpha1_UserData is an autogenerated conversion function. -func Convert_kops_UserData_To_v1alpha1_UserData(in *kops.UserData, out *UserData, s conversion.Scope) error { - return autoConvert_kops_UserData_To_v1alpha1_UserData(in, out, s) -} - -func autoConvert_v1alpha1_VolumeMountSpec_To_kops_VolumeMountSpec(in *VolumeMountSpec, out *kops.VolumeMountSpec, s conversion.Scope) error { - out.Device = in.Device - out.Filesystem = in.Filesystem - out.FormatOptions = in.FormatOptions - out.MountOptions = in.MountOptions - out.Path = in.Path - return nil -} - -// Convert_v1alpha1_VolumeMountSpec_To_kops_VolumeMountSpec is an autogenerated conversion function. -func Convert_v1alpha1_VolumeMountSpec_To_kops_VolumeMountSpec(in *VolumeMountSpec, out *kops.VolumeMountSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_VolumeMountSpec_To_kops_VolumeMountSpec(in, out, s) -} - -func autoConvert_kops_VolumeMountSpec_To_v1alpha1_VolumeMountSpec(in *kops.VolumeMountSpec, out *VolumeMountSpec, s conversion.Scope) error { - out.Device = in.Device - out.Filesystem = in.Filesystem - out.FormatOptions = in.FormatOptions - out.MountOptions = in.MountOptions - out.Path = in.Path - return nil -} - -// Convert_kops_VolumeMountSpec_To_v1alpha1_VolumeMountSpec is an autogenerated conversion function. -func Convert_kops_VolumeMountSpec_To_v1alpha1_VolumeMountSpec(in *kops.VolumeMountSpec, out *VolumeMountSpec, s conversion.Scope) error { - return autoConvert_kops_VolumeMountSpec_To_v1alpha1_VolumeMountSpec(in, out, s) -} - -func autoConvert_v1alpha1_VolumeSpec_To_kops_VolumeSpec(in *VolumeSpec, out *kops.VolumeSpec, s conversion.Scope) error { - out.DeleteOnTermination = in.DeleteOnTermination - out.Device = in.Device - out.Encrypted = in.Encrypted - out.Iops = in.Iops - out.Size = in.Size - out.Type = in.Type - return nil -} - -// Convert_v1alpha1_VolumeSpec_To_kops_VolumeSpec is an autogenerated conversion function. -func Convert_v1alpha1_VolumeSpec_To_kops_VolumeSpec(in *VolumeSpec, out *kops.VolumeSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_VolumeSpec_To_kops_VolumeSpec(in, out, s) -} - -func autoConvert_kops_VolumeSpec_To_v1alpha1_VolumeSpec(in *kops.VolumeSpec, out *VolumeSpec, s conversion.Scope) error { - out.DeleteOnTermination = in.DeleteOnTermination - out.Device = in.Device - out.Encrypted = in.Encrypted - out.Iops = in.Iops - out.Size = in.Size - out.Type = in.Type - return nil -} - -// Convert_kops_VolumeSpec_To_v1alpha1_VolumeSpec is an autogenerated conversion function. -func Convert_kops_VolumeSpec_To_v1alpha1_VolumeSpec(in *kops.VolumeSpec, out *VolumeSpec, s conversion.Scope) error { - return autoConvert_kops_VolumeSpec_To_v1alpha1_VolumeSpec(in, out, s) -} - -func autoConvert_v1alpha1_WeaveNetworkingSpec_To_kops_WeaveNetworkingSpec(in *WeaveNetworkingSpec, out *kops.WeaveNetworkingSpec, s conversion.Scope) error { - out.MTU = in.MTU - out.ConnLimit = in.ConnLimit - out.NoMasqLocal = in.NoMasqLocal - out.MemoryRequest = in.MemoryRequest - out.CPURequest = in.CPURequest - out.MemoryLimit = in.MemoryLimit - out.CPULimit = in.CPULimit - out.NetExtraArgs = in.NetExtraArgs - out.NPCMemoryRequest = in.NPCMemoryRequest - out.NPCCPURequest = in.NPCCPURequest - out.NPCMemoryLimit = in.NPCMemoryLimit - out.NPCCPULimit = in.NPCCPULimit - out.NPCExtraArgs = in.NPCExtraArgs - return nil -} - -// Convert_v1alpha1_WeaveNetworkingSpec_To_kops_WeaveNetworkingSpec is an autogenerated conversion function. -func Convert_v1alpha1_WeaveNetworkingSpec_To_kops_WeaveNetworkingSpec(in *WeaveNetworkingSpec, out *kops.WeaveNetworkingSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_WeaveNetworkingSpec_To_kops_WeaveNetworkingSpec(in, out, s) -} - -func autoConvert_kops_WeaveNetworkingSpec_To_v1alpha1_WeaveNetworkingSpec(in *kops.WeaveNetworkingSpec, out *WeaveNetworkingSpec, s conversion.Scope) error { - out.MTU = in.MTU - out.ConnLimit = in.ConnLimit - out.NoMasqLocal = in.NoMasqLocal - out.MemoryRequest = in.MemoryRequest - out.CPURequest = in.CPURequest - out.MemoryLimit = in.MemoryLimit - out.CPULimit = in.CPULimit - out.NetExtraArgs = in.NetExtraArgs - out.NPCMemoryRequest = in.NPCMemoryRequest - out.NPCCPURequest = in.NPCCPURequest - out.NPCMemoryLimit = in.NPCMemoryLimit - out.NPCCPULimit = in.NPCCPULimit - out.NPCExtraArgs = in.NPCExtraArgs - return nil -} - -// Convert_kops_WeaveNetworkingSpec_To_v1alpha1_WeaveNetworkingSpec is an autogenerated conversion function. -func Convert_kops_WeaveNetworkingSpec_To_v1alpha1_WeaveNetworkingSpec(in *kops.WeaveNetworkingSpec, out *WeaveNetworkingSpec, s conversion.Scope) error { - return autoConvert_kops_WeaveNetworkingSpec_To_v1alpha1_WeaveNetworkingSpec(in, out, s) -} diff --git a/pkg/apis/kops/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/kops/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index d96656808e..0000000000 --- a/pkg/apis/kops/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,3637 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - intstr "k8s.io/apimachinery/pkg/util/intstr" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AccessSpec) DeepCopyInto(out *AccessSpec) { - *out = *in - if in.DNS != nil { - in, out := &in.DNS, &out.DNS - *out = new(DNSAccessSpec) - **out = **in - } - if in.LoadBalancer != nil { - in, out := &in.LoadBalancer, &out.LoadBalancer - *out = new(LoadBalancerAccessSpec) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessSpec. -func (in *AccessSpec) DeepCopy() *AccessSpec { - if in == nil { - return nil - } - out := new(AccessSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AddonSpec) DeepCopyInto(out *AddonSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonSpec. -func (in *AddonSpec) DeepCopy() *AddonSpec { - if in == nil { - return nil - } - out := new(AddonSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AlwaysAllowAuthorizationSpec) DeepCopyInto(out *AlwaysAllowAuthorizationSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlwaysAllowAuthorizationSpec. -func (in *AlwaysAllowAuthorizationSpec) DeepCopy() *AlwaysAllowAuthorizationSpec { - if in == nil { - return nil - } - out := new(AlwaysAllowAuthorizationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AmazonVPCNetworkingSpec) DeepCopyInto(out *AmazonVPCNetworkingSpec) { - *out = *in - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make([]EnvVar, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AmazonVPCNetworkingSpec. -func (in *AmazonVPCNetworkingSpec) DeepCopy() *AmazonVPCNetworkingSpec { - if in == nil { - return nil - } - out := new(AmazonVPCNetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Assets) DeepCopyInto(out *Assets) { - *out = *in - if in.ContainerRegistry != nil { - in, out := &in.ContainerRegistry, &out.ContainerRegistry - *out = new(string) - **out = **in - } - if in.FileRepository != nil { - in, out := &in.FileRepository, &out.FileRepository - *out = new(string) - **out = **in - } - if in.ContainerProxy != nil { - in, out := &in.ContainerProxy, &out.ContainerProxy - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Assets. -func (in *Assets) DeepCopy() *Assets { - if in == nil { - return nil - } - out := new(Assets) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AuthenticationSpec) DeepCopyInto(out *AuthenticationSpec) { - *out = *in - if in.Kopeio != nil { - in, out := &in.Kopeio, &out.Kopeio - *out = new(KopeioAuthenticationSpec) - **out = **in - } - if in.Aws != nil { - in, out := &in.Aws, &out.Aws - *out = new(AwsAuthenticationSpec) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationSpec. -func (in *AuthenticationSpec) DeepCopy() *AuthenticationSpec { - if in == nil { - return nil - } - out := new(AuthenticationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AuthorizationSpec) DeepCopyInto(out *AuthorizationSpec) { - *out = *in - if in.AlwaysAllow != nil { - in, out := &in.AlwaysAllow, &out.AlwaysAllow - *out = new(AlwaysAllowAuthorizationSpec) - **out = **in - } - if in.RBAC != nil { - in, out := &in.RBAC, &out.RBAC - *out = new(RBACAuthorizationSpec) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationSpec. -func (in *AuthorizationSpec) DeepCopy() *AuthorizationSpec { - if in == nil { - return nil - } - out := new(AuthorizationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AwsAuthenticationSpec) DeepCopyInto(out *AwsAuthenticationSpec) { - *out = *in - if in.MemoryRequest != nil { - in, out := &in.MemoryRequest, &out.MemoryRequest - x := (*in).DeepCopy() - *out = &x - } - if in.CPURequest != nil { - in, out := &in.CPURequest, &out.CPURequest - x := (*in).DeepCopy() - *out = &x - } - if in.MemoryLimit != nil { - in, out := &in.MemoryLimit, &out.MemoryLimit - x := (*in).DeepCopy() - *out = &x - } - if in.CPULimit != nil { - in, out := &in.CPULimit, &out.CPULimit - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsAuthenticationSpec. -func (in *AwsAuthenticationSpec) DeepCopy() *AwsAuthenticationSpec { - if in == nil { - return nil - } - out := new(AwsAuthenticationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BastionSpec) DeepCopyInto(out *BastionSpec) { - *out = *in - if in.IdleTimeout != nil { - in, out := &in.IdleTimeout, &out.IdleTimeout - *out = new(int64) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BastionSpec. -func (in *BastionSpec) DeepCopy() *BastionSpec { - if in == nil { - return nil - } - out := new(BastionSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in ByName) DeepCopyInto(out *ByName) { - { - in := &in - *out = make(ByName, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(ClusterZoneSpec) - **out = **in - } - } - return - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ByName. -func (in ByName) DeepCopy() ByName { - if in == nil { - return nil - } - out := new(ByName) - in.DeepCopyInto(out) - return *out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CNINetworkingSpec) DeepCopyInto(out *CNINetworkingSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CNINetworkingSpec. -func (in *CNINetworkingSpec) DeepCopy() *CNINetworkingSpec { - if in == nil { - return nil - } - out := new(CNINetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CalicoNetworkingSpec) DeepCopyInto(out *CalicoNetworkingSpec) { - *out = *in - if in.MTU != nil { - in, out := &in.MTU, &out.MTU - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CalicoNetworkingSpec. -func (in *CalicoNetworkingSpec) DeepCopy() *CalicoNetworkingSpec { - if in == nil { - return nil - } - out := new(CalicoNetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CanalNetworkingSpec) DeepCopyInto(out *CanalNetworkingSpec) { - *out = *in - if in.MTU != nil { - in, out := &in.MTU, &out.MTU - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CanalNetworkingSpec. -func (in *CanalNetworkingSpec) DeepCopy() *CanalNetworkingSpec { - if in == nil { - return nil - } - out := new(CanalNetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CiliumNetworkingSpec) DeepCopyInto(out *CiliumNetworkingSpec) { - *out = *in - if in.AgentLabels != nil { - in, out := &in.AgentLabels, &out.AgentLabels - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ContainerRuntime != nil { - in, out := &in.ContainerRuntime, &out.ContainerRuntime - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ContainerRuntimeEndpoint != nil { - in, out := &in.ContainerRuntimeEndpoint, &out.ContainerRuntimeEndpoint - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.DebugVerbose != nil { - in, out := &in.DebugVerbose, &out.DebugVerbose - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Labels != nil { - in, out := &in.Labels, &out.Labels - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.LogDrivers != nil { - in, out := &in.LogDrivers, &out.LogDrivers - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.LogOpt != nil { - in, out := &in.LogOpt, &out.LogOpt - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CiliumNetworkingSpec. -func (in *CiliumNetworkingSpec) DeepCopy() *CiliumNetworkingSpec { - if in == nil { - return nil - } - out := new(CiliumNetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClassicNetworkingSpec) DeepCopyInto(out *ClassicNetworkingSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClassicNetworkingSpec. -func (in *ClassicNetworkingSpec) DeepCopy() *ClassicNetworkingSpec { - if in == nil { - return nil - } - out := new(ClassicNetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CloudConfiguration) DeepCopyInto(out *CloudConfiguration) { - *out = *in - if in.Multizone != nil { - in, out := &in.Multizone, &out.Multizone - *out = new(bool) - **out = **in - } - if in.NodeTags != nil { - in, out := &in.NodeTags, &out.NodeTags - *out = new(string) - **out = **in - } - if in.NodeInstancePrefix != nil { - in, out := &in.NodeInstancePrefix, &out.NodeInstancePrefix - *out = new(string) - **out = **in - } - if in.DisableSecurityGroupIngress != nil { - in, out := &in.DisableSecurityGroupIngress, &out.DisableSecurityGroupIngress - *out = new(bool) - **out = **in - } - if in.ElbSecurityGroup != nil { - in, out := &in.ElbSecurityGroup, &out.ElbSecurityGroup - *out = new(string) - **out = **in - } - if in.VSphereUsername != nil { - in, out := &in.VSphereUsername, &out.VSphereUsername - *out = new(string) - **out = **in - } - if in.VSpherePassword != nil { - in, out := &in.VSpherePassword, &out.VSpherePassword - *out = new(string) - **out = **in - } - if in.VSphereServer != nil { - in, out := &in.VSphereServer, &out.VSphereServer - *out = new(string) - **out = **in - } - if in.VSphereDatacenter != nil { - in, out := &in.VSphereDatacenter, &out.VSphereDatacenter - *out = new(string) - **out = **in - } - if in.VSphereResourcePool != nil { - in, out := &in.VSphereResourcePool, &out.VSphereResourcePool - *out = new(string) - **out = **in - } - if in.VSphereDatastore != nil { - in, out := &in.VSphereDatastore, &out.VSphereDatastore - *out = new(string) - **out = **in - } - if in.VSphereCoreDNSServer != nil { - in, out := &in.VSphereCoreDNSServer, &out.VSphereCoreDNSServer - *out = new(string) - **out = **in - } - if in.SpotinstProduct != nil { - in, out := &in.SpotinstProduct, &out.SpotinstProduct - *out = new(string) - **out = **in - } - if in.SpotinstOrientation != nil { - in, out := &in.SpotinstOrientation, &out.SpotinstOrientation - *out = new(string) - **out = **in - } - if in.Openstack != nil { - in, out := &in.Openstack, &out.Openstack - *out = new(OpenstackConfiguration) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudConfiguration. -func (in *CloudConfiguration) DeepCopy() *CloudConfiguration { - if in == nil { - return nil - } - out := new(CloudConfiguration) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CloudControllerManagerConfig) DeepCopyInto(out *CloudControllerManagerConfig) { - *out = *in - if in.AllocateNodeCIDRs != nil { - in, out := &in.AllocateNodeCIDRs, &out.AllocateNodeCIDRs - *out = new(bool) - **out = **in - } - if in.ConfigureCloudRoutes != nil { - in, out := &in.ConfigureCloudRoutes, &out.ConfigureCloudRoutes - *out = new(bool) - **out = **in - } - if in.CIDRAllocatorType != nil { - in, out := &in.CIDRAllocatorType, &out.CIDRAllocatorType - *out = new(string) - **out = **in - } - if in.LeaderElection != nil { - in, out := &in.LeaderElection, &out.LeaderElection - *out = new(LeaderElectionConfiguration) - (*in).DeepCopyInto(*out) - } - if in.UseServiceAccountCredentials != nil { - in, out := &in.UseServiceAccountCredentials, &out.UseServiceAccountCredentials - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudControllerManagerConfig. -func (in *CloudControllerManagerConfig) DeepCopy() *CloudControllerManagerConfig { - if in == nil { - return nil - } - out := new(CloudControllerManagerConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Cluster) DeepCopyInto(out *Cluster) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. -func (in *Cluster) DeepCopy() *Cluster { - if in == nil { - return nil - } - out := new(Cluster) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Cluster) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterList) DeepCopyInto(out *ClusterList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Cluster, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList. -func (in *ClusterList) DeepCopy() *ClusterList { - if in == nil { - return nil - } - out := new(ClusterList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { - *out = *in - if in.Addons != nil { - in, out := &in.Addons, &out.Addons - *out = make([]AddonSpec, len(*in)) - copy(*out, *in) - } - if in.GossipConfig != nil { - in, out := &in.GossipConfig, &out.GossipConfig - *out = new(GossipConfig) - (*in).DeepCopyInto(*out) - } - if in.Zones != nil { - in, out := &in.Zones, &out.Zones - *out = make([]*ClusterZoneSpec, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(ClusterZoneSpec) - **out = **in - } - } - } - if in.AdditionalNetworkCIDRs != nil { - in, out := &in.AdditionalNetworkCIDRs, &out.AdditionalNetworkCIDRs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Topology != nil { - in, out := &in.Topology, &out.Topology - *out = new(TopologySpec) - (*in).DeepCopyInto(*out) - } - if in.DNSControllerGossipConfig != nil { - in, out := &in.DNSControllerGossipConfig, &out.DNSControllerGossipConfig - *out = new(DNSControllerGossipConfig) - (*in).DeepCopyInto(*out) - } - if in.AdditionalSANs != nil { - in, out := &in.AdditionalSANs, &out.AdditionalSANs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Multizone != nil { - in, out := &in.Multizone, &out.Multizone - *out = new(bool) - **out = **in - } - if in.AdminAccess != nil { - in, out := &in.AdminAccess, &out.AdminAccess - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.IsolateMasters != nil { - in, out := &in.IsolateMasters, &out.IsolateMasters - *out = new(bool) - **out = **in - } - if in.UpdatePolicy != nil { - in, out := &in.UpdatePolicy, &out.UpdatePolicy - *out = new(string) - **out = **in - } - if in.ExternalPolicies != nil { - in, out := &in.ExternalPolicies, &out.ExternalPolicies - *out = new(map[string][]string) - if **in != nil { - in, out := *in, *out - *out = make(map[string][]string, len(*in)) - for key, val := range *in { - var outVal []string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make([]string, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal - } - } - } - if in.AdditionalPolicies != nil { - in, out := &in.AdditionalPolicies, &out.AdditionalPolicies - *out = new(map[string]string) - if **in != nil { - in, out := *in, *out - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - } - if in.FileAssets != nil { - in, out := &in.FileAssets, &out.FileAssets - *out = make([]FileAssetSpec, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.EgressProxy != nil { - in, out := &in.EgressProxy, &out.EgressProxy - *out = new(EgressProxySpec) - **out = **in - } - if in.SSHKeyName != nil { - in, out := &in.SSHKeyName, &out.SSHKeyName - *out = new(string) - **out = **in - } - if in.EtcdClusters != nil { - in, out := &in.EtcdClusters, &out.EtcdClusters - *out = make([]*EtcdClusterSpec, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(EtcdClusterSpec) - (*in).DeepCopyInto(*out) - } - } - } - if in.Containerd != nil { - in, out := &in.Containerd, &out.Containerd - *out = new(ContainerdConfig) - (*in).DeepCopyInto(*out) - } - if in.Docker != nil { - in, out := &in.Docker, &out.Docker - *out = new(DockerConfig) - (*in).DeepCopyInto(*out) - } - if in.KubeDNS != nil { - in, out := &in.KubeDNS, &out.KubeDNS - *out = new(KubeDNSConfig) - (*in).DeepCopyInto(*out) - } - if in.KubeAPIServer != nil { - in, out := &in.KubeAPIServer, &out.KubeAPIServer - *out = new(KubeAPIServerConfig) - (*in).DeepCopyInto(*out) - } - if in.KubeControllerManager != nil { - in, out := &in.KubeControllerManager, &out.KubeControllerManager - *out = new(KubeControllerManagerConfig) - (*in).DeepCopyInto(*out) - } - if in.ExternalCloudControllerManager != nil { - in, out := &in.ExternalCloudControllerManager, &out.ExternalCloudControllerManager - *out = new(CloudControllerManagerConfig) - (*in).DeepCopyInto(*out) - } - if in.KubeScheduler != nil { - in, out := &in.KubeScheduler, &out.KubeScheduler - *out = new(KubeSchedulerConfig) - (*in).DeepCopyInto(*out) - } - if in.KubeProxy != nil { - in, out := &in.KubeProxy, &out.KubeProxy - *out = new(KubeProxyConfig) - (*in).DeepCopyInto(*out) - } - if in.Kubelet != nil { - in, out := &in.Kubelet, &out.Kubelet - *out = new(KubeletConfigSpec) - (*in).DeepCopyInto(*out) - } - if in.MasterKubelet != nil { - in, out := &in.MasterKubelet, &out.MasterKubelet - *out = new(KubeletConfigSpec) - (*in).DeepCopyInto(*out) - } - if in.CloudConfig != nil { - in, out := &in.CloudConfig, &out.CloudConfig - *out = new(CloudConfiguration) - (*in).DeepCopyInto(*out) - } - if in.ExternalDNS != nil { - in, out := &in.ExternalDNS, &out.ExternalDNS - *out = new(ExternalDNSConfig) - (*in).DeepCopyInto(*out) - } - if in.Networking != nil { - in, out := &in.Networking, &out.Networking - *out = new(NetworkingSpec) - (*in).DeepCopyInto(*out) - } - if in.API != nil { - in, out := &in.API, &out.API - *out = new(AccessSpec) - (*in).DeepCopyInto(*out) - } - if in.Authentication != nil { - in, out := &in.Authentication, &out.Authentication - *out = new(AuthenticationSpec) - (*in).DeepCopyInto(*out) - } - if in.Authorization != nil { - in, out := &in.Authorization, &out.Authorization - *out = new(AuthorizationSpec) - (*in).DeepCopyInto(*out) - } - if in.NodeAuthorization != nil { - in, out := &in.NodeAuthorization, &out.NodeAuthorization - *out = new(NodeAuthorizationSpec) - (*in).DeepCopyInto(*out) - } - if in.CloudLabels != nil { - in, out := &in.CloudLabels, &out.CloudLabels - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.Hooks != nil { - in, out := &in.Hooks, &out.Hooks - *out = make([]HookSpec, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Assets != nil { - in, out := &in.Assets, &out.Assets - *out = new(Assets) - (*in).DeepCopyInto(*out) - } - if in.IAM != nil { - in, out := &in.IAM, &out.IAM - *out = new(IAMSpec) - **out = **in - } - if in.EncryptionConfig != nil { - in, out := &in.EncryptionConfig, &out.EncryptionConfig - *out = new(bool) - **out = **in - } - if in.Target != nil { - in, out := &in.Target, &out.Target - *out = new(TargetSpec) - (*in).DeepCopyInto(*out) - } - if in.UseHostCertificates != nil { - in, out := &in.UseHostCertificates, &out.UseHostCertificates - *out = new(bool) - **out = **in - } - if in.SysctlParameters != nil { - in, out := &in.SysctlParameters, &out.SysctlParameters - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdate) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec. -func (in *ClusterSpec) DeepCopy() *ClusterSpec { - if in == nil { - return nil - } - out := new(ClusterSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterZoneSpec) DeepCopyInto(out *ClusterZoneSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterZoneSpec. -func (in *ClusterZoneSpec) DeepCopy() *ClusterZoneSpec { - if in == nil { - return nil - } - out := new(ClusterZoneSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ContainerdConfig) DeepCopyInto(out *ContainerdConfig) { - *out = *in - if in.Address != nil { - in, out := &in.Address, &out.Address - *out = new(string) - **out = **in - } - if in.ConfigOverride != nil { - in, out := &in.ConfigOverride, &out.ConfigOverride - *out = new(string) - **out = **in - } - if in.LogLevel != nil { - in, out := &in.LogLevel, &out.LogLevel - *out = new(string) - **out = **in - } - if in.Root != nil { - in, out := &in.Root, &out.Root - *out = new(string) - **out = **in - } - if in.State != nil { - in, out := &in.State, &out.State - *out = new(string) - **out = **in - } - if in.Version != nil { - in, out := &in.Version, &out.Version - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerdConfig. -func (in *ContainerdConfig) DeepCopy() *ContainerdConfig { - if in == nil { - return nil - } - out := new(ContainerdConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DNSAccessSpec) DeepCopyInto(out *DNSAccessSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSAccessSpec. -func (in *DNSAccessSpec) DeepCopy() *DNSAccessSpec { - if in == nil { - return nil - } - out := new(DNSAccessSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DNSControllerGossipConfig) DeepCopyInto(out *DNSControllerGossipConfig) { - *out = *in - if in.Protocol != nil { - in, out := &in.Protocol, &out.Protocol - *out = new(string) - **out = **in - } - if in.Listen != nil { - in, out := &in.Listen, &out.Listen - *out = new(string) - **out = **in - } - if in.Secret != nil { - in, out := &in.Secret, &out.Secret - *out = new(string) - **out = **in - } - if in.Secondary != nil { - in, out := &in.Secondary, &out.Secondary - *out = new(DNSControllerGossipConfig) - (*in).DeepCopyInto(*out) - } - if in.Seed != nil { - in, out := &in.Seed, &out.Seed - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSControllerGossipConfig. -func (in *DNSControllerGossipConfig) DeepCopy() *DNSControllerGossipConfig { - if in == nil { - return nil - } - out := new(DNSControllerGossipConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DNSSpec) DeepCopyInto(out *DNSSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSSpec. -func (in *DNSSpec) DeepCopy() *DNSSpec { - if in == nil { - return nil - } - out := new(DNSSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DockerConfig) DeepCopyInto(out *DockerConfig) { - *out = *in - if in.AuthorizationPlugins != nil { - in, out := &in.AuthorizationPlugins, &out.AuthorizationPlugins - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Bridge != nil { - in, out := &in.Bridge, &out.Bridge - *out = new(string) - **out = **in - } - if in.BridgeIP != nil { - in, out := &in.BridgeIP, &out.BridgeIP - *out = new(string) - **out = **in - } - if in.DataRoot != nil { - in, out := &in.DataRoot, &out.DataRoot - *out = new(string) - **out = **in - } - if in.DefaultUlimit != nil { - in, out := &in.DefaultUlimit, &out.DefaultUlimit - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ExecOpt != nil { - in, out := &in.ExecOpt, &out.ExecOpt - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ExecRoot != nil { - in, out := &in.ExecRoot, &out.ExecRoot - *out = new(string) - **out = **in - } - if in.Experimental != nil { - in, out := &in.Experimental, &out.Experimental - *out = new(bool) - **out = **in - } - if in.Hosts != nil { - in, out := &in.Hosts, &out.Hosts - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.IPMasq != nil { - in, out := &in.IPMasq, &out.IPMasq - *out = new(bool) - **out = **in - } - if in.IPTables != nil { - in, out := &in.IPTables, &out.IPTables - *out = new(bool) - **out = **in - } - if in.InsecureRegistry != nil { - in, out := &in.InsecureRegistry, &out.InsecureRegistry - *out = new(string) - **out = **in - } - if in.InsecureRegistries != nil { - in, out := &in.InsecureRegistries, &out.InsecureRegistries - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.LiveRestore != nil { - in, out := &in.LiveRestore, &out.LiveRestore - *out = new(bool) - **out = **in - } - if in.LogDriver != nil { - in, out := &in.LogDriver, &out.LogDriver - *out = new(string) - **out = **in - } - if in.LogLevel != nil { - in, out := &in.LogLevel, &out.LogLevel - *out = new(string) - **out = **in - } - if in.LogOpt != nil { - in, out := &in.LogOpt, &out.LogOpt - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.MetricsAddress != nil { - in, out := &in.MetricsAddress, &out.MetricsAddress - *out = new(string) - **out = **in - } - if in.MTU != nil { - in, out := &in.MTU, &out.MTU - *out = new(int32) - **out = **in - } - if in.RegistryMirrors != nil { - in, out := &in.RegistryMirrors, &out.RegistryMirrors - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Storage != nil { - in, out := &in.Storage, &out.Storage - *out = new(string) - **out = **in - } - if in.StorageOpts != nil { - in, out := &in.StorageOpts, &out.StorageOpts - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Version != nil { - in, out := &in.Version, &out.Version - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerConfig. -func (in *DockerConfig) DeepCopy() *DockerConfig { - if in == nil { - return nil - } - out := new(DockerConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EgressProxySpec) DeepCopyInto(out *EgressProxySpec) { - *out = *in - out.HTTPProxy = in.HTTPProxy - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressProxySpec. -func (in *EgressProxySpec) DeepCopy() *EgressProxySpec { - if in == nil { - return nil - } - out := new(EgressProxySpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvVar) DeepCopyInto(out *EnvVar) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVar. -func (in *EnvVar) DeepCopy() *EnvVar { - if in == nil { - return nil - } - out := new(EnvVar) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EtcdBackupSpec) DeepCopyInto(out *EtcdBackupSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupSpec. -func (in *EtcdBackupSpec) DeepCopy() *EtcdBackupSpec { - if in == nil { - return nil - } - out := new(EtcdBackupSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EtcdClusterSpec) DeepCopyInto(out *EtcdClusterSpec) { - *out = *in - if in.Members != nil { - in, out := &in.Members, &out.Members - *out = make([]*EtcdMemberSpec, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(EtcdMemberSpec) - (*in).DeepCopyInto(*out) - } - } - } - if in.LeaderElectionTimeout != nil { - in, out := &in.LeaderElectionTimeout, &out.LeaderElectionTimeout - *out = new(v1.Duration) - **out = **in - } - if in.HeartbeatInterval != nil { - in, out := &in.HeartbeatInterval, &out.HeartbeatInterval - *out = new(v1.Duration) - **out = **in - } - if in.Backups != nil { - in, out := &in.Backups, &out.Backups - *out = new(EtcdBackupSpec) - **out = **in - } - if in.Manager != nil { - in, out := &in.Manager, &out.Manager - *out = new(EtcdManagerSpec) - (*in).DeepCopyInto(*out) - } - if in.MemoryRequest != nil { - in, out := &in.MemoryRequest, &out.MemoryRequest - x := (*in).DeepCopy() - *out = &x - } - if in.CPURequest != nil { - in, out := &in.CPURequest, &out.CPURequest - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdClusterSpec. -func (in *EtcdClusterSpec) DeepCopy() *EtcdClusterSpec { - if in == nil { - return nil - } - out := new(EtcdClusterSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EtcdManagerSpec) DeepCopyInto(out *EtcdManagerSpec) { - *out = *in - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make([]EnvVar, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdManagerSpec. -func (in *EtcdManagerSpec) DeepCopy() *EtcdManagerSpec { - if in == nil { - return nil - } - out := new(EtcdManagerSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EtcdMemberSpec) DeepCopyInto(out *EtcdMemberSpec) { - *out = *in - if in.Zone != nil { - in, out := &in.Zone, &out.Zone - *out = new(string) - **out = **in - } - if in.VolumeType != nil { - in, out := &in.VolumeType, &out.VolumeType - *out = new(string) - **out = **in - } - if in.VolumeIops != nil { - in, out := &in.VolumeIops, &out.VolumeIops - *out = new(int32) - **out = **in - } - if in.VolumeSize != nil { - in, out := &in.VolumeSize, &out.VolumeSize - *out = new(int32) - **out = **in - } - if in.KmsKeyId != nil { - in, out := &in.KmsKeyId, &out.KmsKeyId - *out = new(string) - **out = **in - } - if in.EncryptedVolume != nil { - in, out := &in.EncryptedVolume, &out.EncryptedVolume - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdMemberSpec. -func (in *EtcdMemberSpec) DeepCopy() *EtcdMemberSpec { - if in == nil { - return nil - } - out := new(EtcdMemberSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExecContainerAction) DeepCopyInto(out *ExecContainerAction) { - *out = *in - if in.Command != nil { - in, out := &in.Command, &out.Command - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Environment != nil { - in, out := &in.Environment, &out.Environment - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecContainerAction. -func (in *ExecContainerAction) DeepCopy() *ExecContainerAction { - if in == nil { - return nil - } - out := new(ExecContainerAction) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Ext4FileSystemSpec) DeepCopyInto(out *Ext4FileSystemSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ext4FileSystemSpec. -func (in *Ext4FileSystemSpec) DeepCopy() *Ext4FileSystemSpec { - if in == nil { - return nil - } - out := new(Ext4FileSystemSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalDNSConfig) DeepCopyInto(out *ExternalDNSConfig) { - *out = *in - if in.WatchIngress != nil { - in, out := &in.WatchIngress, &out.WatchIngress - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalDNSConfig. -func (in *ExternalDNSConfig) DeepCopy() *ExternalDNSConfig { - if in == nil { - return nil - } - out := new(ExternalDNSConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalNetworkingSpec) DeepCopyInto(out *ExternalNetworkingSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalNetworkingSpec. -func (in *ExternalNetworkingSpec) DeepCopy() *ExternalNetworkingSpec { - if in == nil { - return nil - } - out := new(ExternalNetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FileAssetSpec) DeepCopyInto(out *FileAssetSpec) { - *out = *in - if in.Roles != nil { - in, out := &in.Roles, &out.Roles - *out = make([]InstanceGroupRole, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileAssetSpec. -func (in *FileAssetSpec) DeepCopy() *FileAssetSpec { - if in == nil { - return nil - } - out := new(FileAssetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FlannelNetworkingSpec) DeepCopyInto(out *FlannelNetworkingSpec) { - *out = *in - if in.IptablesResyncSeconds != nil { - in, out := &in.IptablesResyncSeconds, &out.IptablesResyncSeconds - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlannelNetworkingSpec. -func (in *FlannelNetworkingSpec) DeepCopy() *FlannelNetworkingSpec { - if in == nil { - return nil - } - out := new(FlannelNetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GCENetworkingSpec) DeepCopyInto(out *GCENetworkingSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCENetworkingSpec. -func (in *GCENetworkingSpec) DeepCopy() *GCENetworkingSpec { - if in == nil { - return nil - } - out := new(GCENetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GossipConfig) DeepCopyInto(out *GossipConfig) { - *out = *in - if in.Protocol != nil { - in, out := &in.Protocol, &out.Protocol - *out = new(string) - **out = **in - } - if in.Listen != nil { - in, out := &in.Listen, &out.Listen - *out = new(string) - **out = **in - } - if in.Secret != nil { - in, out := &in.Secret, &out.Secret - *out = new(string) - **out = **in - } - if in.Secondary != nil { - in, out := &in.Secondary, &out.Secondary - *out = new(GossipConfig) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GossipConfig. -func (in *GossipConfig) DeepCopy() *GossipConfig { - if in == nil { - return nil - } - out := new(GossipConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HTTPProxy) DeepCopyInto(out *HTTPProxy) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPProxy. -func (in *HTTPProxy) DeepCopy() *HTTPProxy { - if in == nil { - return nil - } - out := new(HTTPProxy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HookSpec) DeepCopyInto(out *HookSpec) { - *out = *in - if in.Roles != nil { - in, out := &in.Roles, &out.Roles - *out = make([]InstanceGroupRole, len(*in)) - copy(*out, *in) - } - if in.Requires != nil { - in, out := &in.Requires, &out.Requires - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Before != nil { - in, out := &in.Before, &out.Before - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ExecContainer != nil { - in, out := &in.ExecContainer, &out.ExecContainer - *out = new(ExecContainerAction) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HookSpec. -func (in *HookSpec) DeepCopy() *HookSpec { - if in == nil { - return nil - } - out := new(HookSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IAMProfileSpec) DeepCopyInto(out *IAMProfileSpec) { - *out = *in - if in.Profile != nil { - in, out := &in.Profile, &out.Profile - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IAMProfileSpec. -func (in *IAMProfileSpec) DeepCopy() *IAMProfileSpec { - if in == nil { - return nil - } - out := new(IAMProfileSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IAMSpec) DeepCopyInto(out *IAMSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IAMSpec. -func (in *IAMSpec) DeepCopy() *IAMSpec { - if in == nil { - return nil - } - out := new(IAMSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InstanceGroup) DeepCopyInto(out *InstanceGroup) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceGroup. -func (in *InstanceGroup) DeepCopy() *InstanceGroup { - if in == nil { - return nil - } - out := new(InstanceGroup) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *InstanceGroup) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InstanceGroupList) DeepCopyInto(out *InstanceGroupList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]InstanceGroup, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceGroupList. -func (in *InstanceGroupList) DeepCopy() *InstanceGroupList { - if in == nil { - return nil - } - out := new(InstanceGroupList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *InstanceGroupList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InstanceGroupSpec) DeepCopyInto(out *InstanceGroupSpec) { - *out = *in - if in.MinSize != nil { - in, out := &in.MinSize, &out.MinSize - *out = new(int32) - **out = **in - } - if in.MaxSize != nil { - in, out := &in.MaxSize, &out.MaxSize - *out = new(int32) - **out = **in - } - if in.RootVolumeSize != nil { - in, out := &in.RootVolumeSize, &out.RootVolumeSize - *out = new(int32) - **out = **in - } - if in.RootVolumeType != nil { - in, out := &in.RootVolumeType, &out.RootVolumeType - *out = new(string) - **out = **in - } - if in.RootVolumeIops != nil { - in, out := &in.RootVolumeIops, &out.RootVolumeIops - *out = new(int32) - **out = **in - } - if in.RootVolumeOptimization != nil { - in, out := &in.RootVolumeOptimization, &out.RootVolumeOptimization - *out = new(bool) - **out = **in - } - if in.RootVolumeDeleteOnTermination != nil { - in, out := &in.RootVolumeDeleteOnTermination, &out.RootVolumeDeleteOnTermination - *out = new(bool) - **out = **in - } - if in.Volumes != nil { - in, out := &in.Volumes, &out.Volumes - *out = make([]*VolumeSpec, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(VolumeSpec) - (*in).DeepCopyInto(*out) - } - } - } - if in.VolumeMounts != nil { - in, out := &in.VolumeMounts, &out.VolumeMounts - *out = make([]*VolumeMountSpec, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(VolumeMountSpec) - (*in).DeepCopyInto(*out) - } - } - } - if in.Hooks != nil { - in, out := &in.Hooks, &out.Hooks - *out = make([]HookSpec, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.MaxPrice != nil { - in, out := &in.MaxPrice, &out.MaxPrice - *out = new(string) - **out = **in - } - if in.AssociatePublicIP != nil { - in, out := &in.AssociatePublicIP, &out.AssociatePublicIP - *out = new(bool) - **out = **in - } - if in.AdditionalSecurityGroups != nil { - in, out := &in.AdditionalSecurityGroups, &out.AdditionalSecurityGroups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.CloudLabels != nil { - in, out := &in.CloudLabels, &out.CloudLabels - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.NodeLabels != nil { - in, out := &in.NodeLabels, &out.NodeLabels - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.FileAssets != nil { - in, out := &in.FileAssets, &out.FileAssets - *out = make([]FileAssetSpec, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Kubelet != nil { - in, out := &in.Kubelet, &out.Kubelet - *out = new(KubeletConfigSpec) - (*in).DeepCopyInto(*out) - } - if in.Taints != nil { - in, out := &in.Taints, &out.Taints - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.MixedInstancesPolicy != nil { - in, out := &in.MixedInstancesPolicy, &out.MixedInstancesPolicy - *out = new(MixedInstancesPolicySpec) - (*in).DeepCopyInto(*out) - } - if in.AdditionalUserData != nil { - in, out := &in.AdditionalUserData, &out.AdditionalUserData - *out = make([]UserData, len(*in)) - copy(*out, *in) - } - if in.Zones != nil { - in, out := &in.Zones, &out.Zones - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.SuspendProcesses != nil { - in, out := &in.SuspendProcesses, &out.SuspendProcesses - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ExternalLoadBalancers != nil { - in, out := &in.ExternalLoadBalancers, &out.ExternalLoadBalancers - *out = make([]LoadBalancer, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.DetailedInstanceMonitoring != nil { - in, out := &in.DetailedInstanceMonitoring, &out.DetailedInstanceMonitoring - *out = new(bool) - **out = **in - } - if in.IAM != nil { - in, out := &in.IAM, &out.IAM - *out = new(IAMProfileSpec) - (*in).DeepCopyInto(*out) - } - if in.SecurityGroupOverride != nil { - in, out := &in.SecurityGroupOverride, &out.SecurityGroupOverride - *out = new(string) - **out = **in - } - if in.InstanceProtection != nil { - in, out := &in.InstanceProtection, &out.InstanceProtection - *out = new(bool) - **out = **in - } - if in.SysctlParameters != nil { - in, out := &in.SysctlParameters, &out.SysctlParameters - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdate) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceGroupSpec. -func (in *InstanceGroupSpec) DeepCopy() *InstanceGroupSpec { - if in == nil { - return nil - } - out := new(InstanceGroupSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KopeioAuthenticationSpec) DeepCopyInto(out *KopeioAuthenticationSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KopeioAuthenticationSpec. -func (in *KopeioAuthenticationSpec) DeepCopy() *KopeioAuthenticationSpec { - if in == nil { - return nil - } - out := new(KopeioAuthenticationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KopeioNetworkingSpec) DeepCopyInto(out *KopeioNetworkingSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KopeioNetworkingSpec. -func (in *KopeioNetworkingSpec) DeepCopy() *KopeioNetworkingSpec { - if in == nil { - return nil - } - out := new(KopeioNetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KubeAPIServerConfig) DeepCopyInto(out *KubeAPIServerConfig) { - *out = *in - if in.EnableBootstrapAuthToken != nil { - in, out := &in.EnableBootstrapAuthToken, &out.EnableBootstrapAuthToken - *out = new(bool) - **out = **in - } - if in.EnableAggregatorRouting != nil { - in, out := &in.EnableAggregatorRouting, &out.EnableAggregatorRouting - *out = new(bool) - **out = **in - } - if in.AdmissionControl != nil { - in, out := &in.AdmissionControl, &out.AdmissionControl - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.AppendAdmissionPlugins != nil { - in, out := &in.AppendAdmissionPlugins, &out.AppendAdmissionPlugins - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.EnableAdmissionPlugins != nil { - in, out := &in.EnableAdmissionPlugins, &out.EnableAdmissionPlugins - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.DisableAdmissionPlugins != nil { - in, out := &in.DisableAdmissionPlugins, &out.DisableAdmissionPlugins - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.EtcdServers != nil { - in, out := &in.EtcdServers, &out.EtcdServers - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.EtcdServersOverrides != nil { - in, out := &in.EtcdServersOverrides, &out.EtcdServersOverrides - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.TLSCipherSuites != nil { - in, out := &in.TLSCipherSuites, &out.TLSCipherSuites - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.AllowPrivileged != nil { - in, out := &in.AllowPrivileged, &out.AllowPrivileged - *out = new(bool) - **out = **in - } - if in.APIServerCount != nil { - in, out := &in.APIServerCount, &out.APIServerCount - *out = new(int32) - **out = **in - } - if in.RuntimeConfig != nil { - in, out := &in.RuntimeConfig, &out.RuntimeConfig - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.AnonymousAuth != nil { - in, out := &in.AnonymousAuth, &out.AnonymousAuth - *out = new(bool) - **out = **in - } - if in.KubeletPreferredAddressTypes != nil { - in, out := &in.KubeletPreferredAddressTypes, &out.KubeletPreferredAddressTypes - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.StorageBackend != nil { - in, out := &in.StorageBackend, &out.StorageBackend - *out = new(string) - **out = **in - } - if in.OIDCUsernameClaim != nil { - in, out := &in.OIDCUsernameClaim, &out.OIDCUsernameClaim - *out = new(string) - **out = **in - } - if in.OIDCUsernamePrefix != nil { - in, out := &in.OIDCUsernamePrefix, &out.OIDCUsernamePrefix - *out = new(string) - **out = **in - } - if in.OIDCGroupsClaim != nil { - in, out := &in.OIDCGroupsClaim, &out.OIDCGroupsClaim - *out = new(string) - **out = **in - } - if in.OIDCGroupsPrefix != nil { - in, out := &in.OIDCGroupsPrefix, &out.OIDCGroupsPrefix - *out = new(string) - **out = **in - } - if in.OIDCIssuerURL != nil { - in, out := &in.OIDCIssuerURL, &out.OIDCIssuerURL - *out = new(string) - **out = **in - } - if in.OIDCClientID != nil { - in, out := &in.OIDCClientID, &out.OIDCClientID - *out = new(string) - **out = **in - } - if in.OIDCRequiredClaim != nil { - in, out := &in.OIDCRequiredClaim, &out.OIDCRequiredClaim - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.OIDCCAFile != nil { - in, out := &in.OIDCCAFile, &out.OIDCCAFile - *out = new(string) - **out = **in - } - if in.ProxyClientCertFile != nil { - in, out := &in.ProxyClientCertFile, &out.ProxyClientCertFile - *out = new(string) - **out = **in - } - if in.ProxyClientKeyFile != nil { - in, out := &in.ProxyClientKeyFile, &out.ProxyClientKeyFile - *out = new(string) - **out = **in - } - if in.AuditLogFormat != nil { - in, out := &in.AuditLogFormat, &out.AuditLogFormat - *out = new(string) - **out = **in - } - if in.AuditLogPath != nil { - in, out := &in.AuditLogPath, &out.AuditLogPath - *out = new(string) - **out = **in - } - if in.AuditLogMaxAge != nil { - in, out := &in.AuditLogMaxAge, &out.AuditLogMaxAge - *out = new(int32) - **out = **in - } - if in.AuditLogMaxBackups != nil { - in, out := &in.AuditLogMaxBackups, &out.AuditLogMaxBackups - *out = new(int32) - **out = **in - } - if in.AuditLogMaxSize != nil { - in, out := &in.AuditLogMaxSize, &out.AuditLogMaxSize - *out = new(int32) - **out = **in - } - if in.AuditWebhookBatchBufferSize != nil { - in, out := &in.AuditWebhookBatchBufferSize, &out.AuditWebhookBatchBufferSize - *out = new(int32) - **out = **in - } - if in.AuditWebhookBatchMaxSize != nil { - in, out := &in.AuditWebhookBatchMaxSize, &out.AuditWebhookBatchMaxSize - *out = new(int32) - **out = **in - } - if in.AuditWebhookBatchMaxWait != nil { - in, out := &in.AuditWebhookBatchMaxWait, &out.AuditWebhookBatchMaxWait - *out = new(v1.Duration) - **out = **in - } - if in.AuditWebhookBatchThrottleBurst != nil { - in, out := &in.AuditWebhookBatchThrottleBurst, &out.AuditWebhookBatchThrottleBurst - *out = new(int32) - **out = **in - } - if in.AuditWebhookBatchThrottleEnable != nil { - in, out := &in.AuditWebhookBatchThrottleEnable, &out.AuditWebhookBatchThrottleEnable - *out = new(bool) - **out = **in - } - if in.AuditWebhookBatchThrottleQps != nil { - in, out := &in.AuditWebhookBatchThrottleQps, &out.AuditWebhookBatchThrottleQps - x := (*in).DeepCopy() - *out = &x - } - if in.AuditWebhookInitialBackoff != nil { - in, out := &in.AuditWebhookInitialBackoff, &out.AuditWebhookInitialBackoff - *out = new(v1.Duration) - **out = **in - } - if in.AuthenticationTokenWebhookConfigFile != nil { - in, out := &in.AuthenticationTokenWebhookConfigFile, &out.AuthenticationTokenWebhookConfigFile - *out = new(string) - **out = **in - } - if in.AuthenticationTokenWebhookCacheTTL != nil { - in, out := &in.AuthenticationTokenWebhookCacheTTL, &out.AuthenticationTokenWebhookCacheTTL - *out = new(v1.Duration) - **out = **in - } - if in.AuthorizationMode != nil { - in, out := &in.AuthorizationMode, &out.AuthorizationMode - *out = new(string) - **out = **in - } - if in.AuthorizationWebhookConfigFile != nil { - in, out := &in.AuthorizationWebhookConfigFile, &out.AuthorizationWebhookConfigFile - *out = new(string) - **out = **in - } - if in.AuthorizationWebhookCacheAuthorizedTTL != nil { - in, out := &in.AuthorizationWebhookCacheAuthorizedTTL, &out.AuthorizationWebhookCacheAuthorizedTTL - *out = new(v1.Duration) - **out = **in - } - if in.AuthorizationWebhookCacheUnauthorizedTTL != nil { - in, out := &in.AuthorizationWebhookCacheUnauthorizedTTL, &out.AuthorizationWebhookCacheUnauthorizedTTL - *out = new(v1.Duration) - **out = **in - } - if in.AuthorizationRBACSuperUser != nil { - in, out := &in.AuthorizationRBACSuperUser, &out.AuthorizationRBACSuperUser - *out = new(string) - **out = **in - } - if in.EncryptionProviderConfig != nil { - in, out := &in.EncryptionProviderConfig, &out.EncryptionProviderConfig - *out = new(string) - **out = **in - } - if in.ExperimentalEncryptionProviderConfig != nil { - in, out := &in.ExperimentalEncryptionProviderConfig, &out.ExperimentalEncryptionProviderConfig - *out = new(string) - **out = **in - } - if in.RequestheaderUsernameHeaders != nil { - in, out := &in.RequestheaderUsernameHeaders, &out.RequestheaderUsernameHeaders - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.RequestheaderGroupHeaders != nil { - in, out := &in.RequestheaderGroupHeaders, &out.RequestheaderGroupHeaders - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.RequestheaderExtraHeaderPrefixes != nil { - in, out := &in.RequestheaderExtraHeaderPrefixes, &out.RequestheaderExtraHeaderPrefixes - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.RequestheaderAllowedNames != nil { - in, out := &in.RequestheaderAllowedNames, &out.RequestheaderAllowedNames - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.FeatureGates != nil { - in, out := &in.FeatureGates, &out.FeatureGates - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.HTTP2MaxStreamsPerConnection != nil { - in, out := &in.HTTP2MaxStreamsPerConnection, &out.HTTP2MaxStreamsPerConnection - *out = new(int32) - **out = **in - } - if in.EtcdQuorumRead != nil { - in, out := &in.EtcdQuorumRead, &out.EtcdQuorumRead - *out = new(bool) - **out = **in - } - if in.MinRequestTimeout != nil { - in, out := &in.MinRequestTimeout, &out.MinRequestTimeout - *out = new(int32) - **out = **in - } - if in.ServiceAccountKeyFile != nil { - in, out := &in.ServiceAccountKeyFile, &out.ServiceAccountKeyFile - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ServiceAccountSigningKeyFile != nil { - in, out := &in.ServiceAccountSigningKeyFile, &out.ServiceAccountSigningKeyFile - *out = new(string) - **out = **in - } - if in.ServiceAccountIssuer != nil { - in, out := &in.ServiceAccountIssuer, &out.ServiceAccountIssuer - *out = new(string) - **out = **in - } - if in.APIAudiences != nil { - in, out := &in.APIAudiences, &out.APIAudiences - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.EventTTL != nil { - in, out := &in.EventTTL, &out.EventTTL - *out = new(v1.Duration) - **out = **in - } - if in.AuditDynamicConfiguration != nil { - in, out := &in.AuditDynamicConfiguration, &out.AuditDynamicConfiguration - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeAPIServerConfig. -func (in *KubeAPIServerConfig) DeepCopy() *KubeAPIServerConfig { - if in == nil { - return nil - } - out := new(KubeAPIServerConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KubeControllerManagerConfig) DeepCopyInto(out *KubeControllerManagerConfig) { - *out = *in - if in.AllocateNodeCIDRs != nil { - in, out := &in.AllocateNodeCIDRs, &out.AllocateNodeCIDRs - *out = new(bool) - **out = **in - } - if in.NodeCIDRMaskSize != nil { - in, out := &in.NodeCIDRMaskSize, &out.NodeCIDRMaskSize - *out = new(int32) - **out = **in - } - if in.ConfigureCloudRoutes != nil { - in, out := &in.ConfigureCloudRoutes, &out.ConfigureCloudRoutes - *out = new(bool) - **out = **in - } - if in.Controllers != nil { - in, out := &in.Controllers, &out.Controllers - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.CIDRAllocatorType != nil { - in, out := &in.CIDRAllocatorType, &out.CIDRAllocatorType - *out = new(string) - **out = **in - } - if in.LeaderElection != nil { - in, out := &in.LeaderElection, &out.LeaderElection - *out = new(LeaderElectionConfiguration) - (*in).DeepCopyInto(*out) - } - if in.AttachDetachReconcileSyncPeriod != nil { - in, out := &in.AttachDetachReconcileSyncPeriod, &out.AttachDetachReconcileSyncPeriod - *out = new(v1.Duration) - **out = **in - } - if in.TerminatedPodGCThreshold != nil { - in, out := &in.TerminatedPodGCThreshold, &out.TerminatedPodGCThreshold - *out = new(int32) - **out = **in - } - if in.NodeMonitorPeriod != nil { - in, out := &in.NodeMonitorPeriod, &out.NodeMonitorPeriod - *out = new(v1.Duration) - **out = **in - } - if in.NodeMonitorGracePeriod != nil { - in, out := &in.NodeMonitorGracePeriod, &out.NodeMonitorGracePeriod - *out = new(v1.Duration) - **out = **in - } - if in.PodEvictionTimeout != nil { - in, out := &in.PodEvictionTimeout, &out.PodEvictionTimeout - *out = new(v1.Duration) - **out = **in - } - if in.UseServiceAccountCredentials != nil { - in, out := &in.UseServiceAccountCredentials, &out.UseServiceAccountCredentials - *out = new(bool) - **out = **in - } - if in.HorizontalPodAutoscalerSyncPeriod != nil { - in, out := &in.HorizontalPodAutoscalerSyncPeriod, &out.HorizontalPodAutoscalerSyncPeriod - *out = new(v1.Duration) - **out = **in - } - if in.HorizontalPodAutoscalerDownscaleDelay != nil { - in, out := &in.HorizontalPodAutoscalerDownscaleDelay, &out.HorizontalPodAutoscalerDownscaleDelay - *out = new(v1.Duration) - **out = **in - } - if in.HorizontalPodAutoscalerDownscaleStabilization != nil { - in, out := &in.HorizontalPodAutoscalerDownscaleStabilization, &out.HorizontalPodAutoscalerDownscaleStabilization - *out = new(v1.Duration) - **out = **in - } - if in.HorizontalPodAutoscalerUpscaleDelay != nil { - in, out := &in.HorizontalPodAutoscalerUpscaleDelay, &out.HorizontalPodAutoscalerUpscaleDelay - *out = new(v1.Duration) - **out = **in - } - if in.HorizontalPodAutoscalerTolerance != nil { - in, out := &in.HorizontalPodAutoscalerTolerance, &out.HorizontalPodAutoscalerTolerance - x := (*in).DeepCopy() - *out = &x - } - if in.HorizontalPodAutoscalerUseRestClients != nil { - in, out := &in.HorizontalPodAutoscalerUseRestClients, &out.HorizontalPodAutoscalerUseRestClients - *out = new(bool) - **out = **in - } - if in.ExperimentalClusterSigningDuration != nil { - in, out := &in.ExperimentalClusterSigningDuration, &out.ExperimentalClusterSigningDuration - *out = new(v1.Duration) - **out = **in - } - if in.FeatureGates != nil { - in, out := &in.FeatureGates, &out.FeatureGates - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.TLSCipherSuites != nil { - in, out := &in.TLSCipherSuites, &out.TLSCipherSuites - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.KubeAPIQPS != nil { - in, out := &in.KubeAPIQPS, &out.KubeAPIQPS - x := (*in).DeepCopy() - *out = &x - } - if in.KubeAPIBurst != nil { - in, out := &in.KubeAPIBurst, &out.KubeAPIBurst - *out = new(int32) - **out = **in - } - if in.ConcurrentDeploymentSyncs != nil { - in, out := &in.ConcurrentDeploymentSyncs, &out.ConcurrentDeploymentSyncs - *out = new(int32) - **out = **in - } - if in.ConcurrentEndpointSyncs != nil { - in, out := &in.ConcurrentEndpointSyncs, &out.ConcurrentEndpointSyncs - *out = new(int32) - **out = **in - } - if in.ConcurrentNamespaceSyncs != nil { - in, out := &in.ConcurrentNamespaceSyncs, &out.ConcurrentNamespaceSyncs - *out = new(int32) - **out = **in - } - if in.ConcurrentReplicasetSyncs != nil { - in, out := &in.ConcurrentReplicasetSyncs, &out.ConcurrentReplicasetSyncs - *out = new(int32) - **out = **in - } - if in.ConcurrentServiceSyncs != nil { - in, out := &in.ConcurrentServiceSyncs, &out.ConcurrentServiceSyncs - *out = new(int32) - **out = **in - } - if in.ConcurrentResourceQuotaSyncs != nil { - in, out := &in.ConcurrentResourceQuotaSyncs, &out.ConcurrentResourceQuotaSyncs - *out = new(int32) - **out = **in - } - if in.ConcurrentServiceaccountTokenSyncs != nil { - in, out := &in.ConcurrentServiceaccountTokenSyncs, &out.ConcurrentServiceaccountTokenSyncs - *out = new(int32) - **out = **in - } - if in.ConcurrentRcSyncs != nil { - in, out := &in.ConcurrentRcSyncs, &out.ConcurrentRcSyncs - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeControllerManagerConfig. -func (in *KubeControllerManagerConfig) DeepCopy() *KubeControllerManagerConfig { - if in == nil { - return nil - } - out := new(KubeControllerManagerConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KubeDNSConfig) DeepCopyInto(out *KubeDNSConfig) { - *out = *in - if in.StubDomains != nil { - in, out := &in.StubDomains, &out.StubDomains - *out = make(map[string][]string, len(*in)) - for key, val := range *in { - var outVal []string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make([]string, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal - } - } - if in.UpstreamNameservers != nil { - in, out := &in.UpstreamNameservers, &out.UpstreamNameservers - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.MemoryRequest != nil { - in, out := &in.MemoryRequest, &out.MemoryRequest - x := (*in).DeepCopy() - *out = &x - } - if in.CPURequest != nil { - in, out := &in.CPURequest, &out.CPURequest - x := (*in).DeepCopy() - *out = &x - } - if in.MemoryLimit != nil { - in, out := &in.MemoryLimit, &out.MemoryLimit - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeDNSConfig. -func (in *KubeDNSConfig) DeepCopy() *KubeDNSConfig { - if in == nil { - return nil - } - out := new(KubeDNSConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KubeProxyConfig) DeepCopyInto(out *KubeProxyConfig) { - *out = *in - if in.MetricsBindAddress != nil { - in, out := &in.MetricsBindAddress, &out.MetricsBindAddress - *out = new(string) - **out = **in - } - if in.Enabled != nil { - in, out := &in.Enabled, &out.Enabled - *out = new(bool) - **out = **in - } - if in.IPVSExcludeCIDRS != nil { - in, out := &in.IPVSExcludeCIDRS, &out.IPVSExcludeCIDRS - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.IPVSMinSyncPeriod != nil { - in, out := &in.IPVSMinSyncPeriod, &out.IPVSMinSyncPeriod - *out = new(v1.Duration) - **out = **in - } - if in.IPVSScheduler != nil { - in, out := &in.IPVSScheduler, &out.IPVSScheduler - *out = new(string) - **out = **in - } - if in.IPVSSyncPeriod != nil { - in, out := &in.IPVSSyncPeriod, &out.IPVSSyncPeriod - *out = new(v1.Duration) - **out = **in - } - if in.FeatureGates != nil { - in, out := &in.FeatureGates, &out.FeatureGates - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.ConntrackMaxPerCore != nil { - in, out := &in.ConntrackMaxPerCore, &out.ConntrackMaxPerCore - *out = new(int32) - **out = **in - } - if in.ConntrackMin != nil { - in, out := &in.ConntrackMin, &out.ConntrackMin - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConfig. -func (in *KubeProxyConfig) DeepCopy() *KubeProxyConfig { - if in == nil { - return nil - } - out := new(KubeProxyConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KubeSchedulerConfig) DeepCopyInto(out *KubeSchedulerConfig) { - *out = *in - if in.LeaderElection != nil { - in, out := &in.LeaderElection, &out.LeaderElection - *out = new(LeaderElectionConfiguration) - (*in).DeepCopyInto(*out) - } - if in.UsePolicyConfigMap != nil { - in, out := &in.UsePolicyConfigMap, &out.UsePolicyConfigMap - *out = new(bool) - **out = **in - } - if in.FeatureGates != nil { - in, out := &in.FeatureGates, &out.FeatureGates - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.MaxPersistentVolumes != nil { - in, out := &in.MaxPersistentVolumes, &out.MaxPersistentVolumes - *out = new(int32) - **out = **in - } - if in.Qps != nil { - in, out := &in.Qps, &out.Qps - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeSchedulerConfig. -func (in *KubeSchedulerConfig) DeepCopy() *KubeSchedulerConfig { - if in == nil { - return nil - } - out := new(KubeSchedulerConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KubeletConfigSpec) DeepCopyInto(out *KubeletConfigSpec) { - *out = *in - if in.AnonymousAuth != nil { - in, out := &in.AnonymousAuth, &out.AnonymousAuth - *out = new(bool) - **out = **in - } - if in.TLSCipherSuites != nil { - in, out := &in.TLSCipherSuites, &out.TLSCipherSuites - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.RequireKubeconfig != nil { - in, out := &in.RequireKubeconfig, &out.RequireKubeconfig - *out = new(bool) - **out = **in - } - if in.LogLevel != nil { - in, out := &in.LogLevel, &out.LogLevel - *out = new(int32) - **out = **in - } - if in.SeccompProfileRoot != nil { - in, out := &in.SeccompProfileRoot, &out.SeccompProfileRoot - *out = new(string) - **out = **in - } - if in.AllowPrivileged != nil { - in, out := &in.AllowPrivileged, &out.AllowPrivileged - *out = new(bool) - **out = **in - } - if in.EnableDebuggingHandlers != nil { - in, out := &in.EnableDebuggingHandlers, &out.EnableDebuggingHandlers - *out = new(bool) - **out = **in - } - if in.RegisterNode != nil { - in, out := &in.RegisterNode, &out.RegisterNode - *out = new(bool) - **out = **in - } - if in.NodeStatusUpdateFrequency != nil { - in, out := &in.NodeStatusUpdateFrequency, &out.NodeStatusUpdateFrequency - *out = new(v1.Duration) - **out = **in - } - if in.ReadOnlyPort != nil { - in, out := &in.ReadOnlyPort, &out.ReadOnlyPort - *out = new(int32) - **out = **in - } - if in.ConfigureCBR0 != nil { - in, out := &in.ConfigureCBR0, &out.ConfigureCBR0 - *out = new(bool) - **out = **in - } - if in.BabysitDaemons != nil { - in, out := &in.BabysitDaemons, &out.BabysitDaemons - *out = new(bool) - **out = **in - } - if in.MaxPods != nil { - in, out := &in.MaxPods, &out.MaxPods - *out = new(int32) - **out = **in - } - if in.ResolverConfig != nil { - in, out := &in.ResolverConfig, &out.ResolverConfig - *out = new(string) - **out = **in - } - if in.ReconcileCIDR != nil { - in, out := &in.ReconcileCIDR, &out.ReconcileCIDR - *out = new(bool) - **out = **in - } - if in.RegisterSchedulable != nil { - in, out := &in.RegisterSchedulable, &out.RegisterSchedulable - *out = new(bool) - **out = **in - } - if in.SerializeImagePulls != nil { - in, out := &in.SerializeImagePulls, &out.SerializeImagePulls - *out = new(bool) - **out = **in - } - if in.NodeLabels != nil { - in, out := &in.NodeLabels, &out.NodeLabels - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.EnableCustomMetrics != nil { - in, out := &in.EnableCustomMetrics, &out.EnableCustomMetrics - *out = new(bool) - **out = **in - } - if in.NetworkPluginMTU != nil { - in, out := &in.NetworkPluginMTU, &out.NetworkPluginMTU - *out = new(int32) - **out = **in - } - if in.ImageGCHighThresholdPercent != nil { - in, out := &in.ImageGCHighThresholdPercent, &out.ImageGCHighThresholdPercent - *out = new(int32) - **out = **in - } - if in.ImageGCLowThresholdPercent != nil { - in, out := &in.ImageGCLowThresholdPercent, &out.ImageGCLowThresholdPercent - *out = new(int32) - **out = **in - } - if in.ImagePullProgressDeadline != nil { - in, out := &in.ImagePullProgressDeadline, &out.ImagePullProgressDeadline - *out = new(v1.Duration) - **out = **in - } - if in.EvictionHard != nil { - in, out := &in.EvictionHard, &out.EvictionHard - *out = new(string) - **out = **in - } - if in.EvictionPressureTransitionPeriod != nil { - in, out := &in.EvictionPressureTransitionPeriod, &out.EvictionPressureTransitionPeriod - *out = new(v1.Duration) - **out = **in - } - if in.Taints != nil { - in, out := &in.Taints, &out.Taints - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.FeatureGates != nil { - in, out := &in.FeatureGates, &out.FeatureGates - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.KubeReserved != nil { - in, out := &in.KubeReserved, &out.KubeReserved - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.SystemReserved != nil { - in, out := &in.SystemReserved, &out.SystemReserved - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.RuntimeRequestTimeout != nil { - in, out := &in.RuntimeRequestTimeout, &out.RuntimeRequestTimeout - *out = new(v1.Duration) - **out = **in - } - if in.VolumeStatsAggPeriod != nil { - in, out := &in.VolumeStatsAggPeriod, &out.VolumeStatsAggPeriod - *out = new(v1.Duration) - **out = **in - } - if in.FailSwapOn != nil { - in, out := &in.FailSwapOn, &out.FailSwapOn - *out = new(bool) - **out = **in - } - if in.ExperimentalAllowedUnsafeSysctls != nil { - in, out := &in.ExperimentalAllowedUnsafeSysctls, &out.ExperimentalAllowedUnsafeSysctls - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.AllowedUnsafeSysctls != nil { - in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.StreamingConnectionIdleTimeout != nil { - in, out := &in.StreamingConnectionIdleTimeout, &out.StreamingConnectionIdleTimeout - *out = new(v1.Duration) - **out = **in - } - if in.DockerDisableSharedPID != nil { - in, out := &in.DockerDisableSharedPID, &out.DockerDisableSharedPID - *out = new(bool) - **out = **in - } - if in.AuthenticationTokenWebhook != nil { - in, out := &in.AuthenticationTokenWebhook, &out.AuthenticationTokenWebhook - *out = new(bool) - **out = **in - } - if in.AuthenticationTokenWebhookCacheTTL != nil { - in, out := &in.AuthenticationTokenWebhookCacheTTL, &out.AuthenticationTokenWebhookCacheTTL - *out = new(v1.Duration) - **out = **in - } - if in.CPUCFSQuota != nil { - in, out := &in.CPUCFSQuota, &out.CPUCFSQuota - *out = new(bool) - **out = **in - } - if in.CPUCFSQuotaPeriod != nil { - in, out := &in.CPUCFSQuotaPeriod, &out.CPUCFSQuotaPeriod - *out = new(v1.Duration) - **out = **in - } - if in.RegistryPullQPS != nil { - in, out := &in.RegistryPullQPS, &out.RegistryPullQPS - *out = new(int32) - **out = **in - } - if in.RegistryBurst != nil { - in, out := &in.RegistryBurst, &out.RegistryBurst - *out = new(int32) - **out = **in - } - if in.RotateCertificates != nil { - in, out := &in.RotateCertificates, &out.RotateCertificates - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeletConfigSpec. -func (in *KubeletConfigSpec) DeepCopy() *KubeletConfigSpec { - if in == nil { - return nil - } - out := new(KubeletConfigSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KubenetNetworkingSpec) DeepCopyInto(out *KubenetNetworkingSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubenetNetworkingSpec. -func (in *KubenetNetworkingSpec) DeepCopy() *KubenetNetworkingSpec { - if in == nil { - return nil - } - out := new(KubenetNetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KuberouterNetworkingSpec) DeepCopyInto(out *KuberouterNetworkingSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KuberouterNetworkingSpec. -func (in *KuberouterNetworkingSpec) DeepCopy() *KuberouterNetworkingSpec { - if in == nil { - return nil - } - out := new(KuberouterNetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LeaderElectionConfiguration) DeepCopyInto(out *LeaderElectionConfiguration) { - *out = *in - if in.LeaderElect != nil { - in, out := &in.LeaderElect, &out.LeaderElect - *out = new(bool) - **out = **in - } - if in.LeaderElectLeaseDuration != nil { - in, out := &in.LeaderElectLeaseDuration, &out.LeaderElectLeaseDuration - *out = new(v1.Duration) - **out = **in - } - if in.LeaderElectRenewDeadlineDuration != nil { - in, out := &in.LeaderElectRenewDeadlineDuration, &out.LeaderElectRenewDeadlineDuration - *out = new(v1.Duration) - **out = **in - } - if in.LeaderElectResourceLock != nil { - in, out := &in.LeaderElectResourceLock, &out.LeaderElectResourceLock - *out = new(string) - **out = **in - } - if in.LeaderElectResourceName != nil { - in, out := &in.LeaderElectResourceName, &out.LeaderElectResourceName - *out = new(string) - **out = **in - } - if in.LeaderElectResourceNamespace != nil { - in, out := &in.LeaderElectResourceNamespace, &out.LeaderElectResourceNamespace - *out = new(string) - **out = **in - } - if in.LeaderElectRetryPeriod != nil { - in, out := &in.LeaderElectRetryPeriod, &out.LeaderElectRetryPeriod - *out = new(v1.Duration) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaderElectionConfiguration. -func (in *LeaderElectionConfiguration) DeepCopy() *LeaderElectionConfiguration { - if in == nil { - return nil - } - out := new(LeaderElectionConfiguration) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancer) DeepCopyInto(out *LoadBalancer) { - *out = *in - if in.LoadBalancerName != nil { - in, out := &in.LoadBalancerName, &out.LoadBalancerName - *out = new(string) - **out = **in - } - if in.TargetGroupARN != nil { - in, out := &in.TargetGroupARN, &out.TargetGroupARN - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancer. -func (in *LoadBalancer) DeepCopy() *LoadBalancer { - if in == nil { - return nil - } - out := new(LoadBalancer) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerAccessSpec) DeepCopyInto(out *LoadBalancerAccessSpec) { - *out = *in - if in.IdleTimeoutSeconds != nil { - in, out := &in.IdleTimeoutSeconds, &out.IdleTimeoutSeconds - *out = new(int64) - **out = **in - } - if in.SecurityGroupOverride != nil { - in, out := &in.SecurityGroupOverride, &out.SecurityGroupOverride - *out = new(string) - **out = **in - } - if in.AdditionalSecurityGroups != nil { - in, out := &in.AdditionalSecurityGroups, &out.AdditionalSecurityGroups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.CrossZoneLoadBalancing != nil { - in, out := &in.CrossZoneLoadBalancing, &out.CrossZoneLoadBalancing - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerAccessSpec. -func (in *LoadBalancerAccessSpec) DeepCopy() *LoadBalancerAccessSpec { - if in == nil { - return nil - } - out := new(LoadBalancerAccessSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LyftVPCNetworkingSpec) DeepCopyInto(out *LyftVPCNetworkingSpec) { - *out = *in - if in.SubnetTags != nil { - in, out := &in.SubnetTags, &out.SubnetTags - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LyftVPCNetworkingSpec. -func (in *LyftVPCNetworkingSpec) DeepCopy() *LyftVPCNetworkingSpec { - if in == nil { - return nil - } - out := new(LyftVPCNetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MixedInstancesPolicySpec) DeepCopyInto(out *MixedInstancesPolicySpec) { - *out = *in - if in.Instances != nil { - in, out := &in.Instances, &out.Instances - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.OnDemandAllocationStrategy != nil { - in, out := &in.OnDemandAllocationStrategy, &out.OnDemandAllocationStrategy - *out = new(string) - **out = **in - } - if in.OnDemandBase != nil { - in, out := &in.OnDemandBase, &out.OnDemandBase - *out = new(int64) - **out = **in - } - if in.OnDemandAboveBase != nil { - in, out := &in.OnDemandAboveBase, &out.OnDemandAboveBase - *out = new(int64) - **out = **in - } - if in.SpotAllocationStrategy != nil { - in, out := &in.SpotAllocationStrategy, &out.SpotAllocationStrategy - *out = new(string) - **out = **in - } - if in.SpotInstancePools != nil { - in, out := &in.SpotInstancePools, &out.SpotInstancePools - *out = new(int64) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MixedInstancesPolicySpec. -func (in *MixedInstancesPolicySpec) DeepCopy() *MixedInstancesPolicySpec { - if in == nil { - return nil - } - out := new(MixedInstancesPolicySpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkingSpec) DeepCopyInto(out *NetworkingSpec) { - *out = *in - if in.Classic != nil { - in, out := &in.Classic, &out.Classic - *out = new(ClassicNetworkingSpec) - **out = **in - } - if in.Kubenet != nil { - in, out := &in.Kubenet, &out.Kubenet - *out = new(KubenetNetworkingSpec) - **out = **in - } - if in.External != nil { - in, out := &in.External, &out.External - *out = new(ExternalNetworkingSpec) - **out = **in - } - if in.CNI != nil { - in, out := &in.CNI, &out.CNI - *out = new(CNINetworkingSpec) - **out = **in - } - if in.Kopeio != nil { - in, out := &in.Kopeio, &out.Kopeio - *out = new(KopeioNetworkingSpec) - **out = **in - } - if in.Weave != nil { - in, out := &in.Weave, &out.Weave - *out = new(WeaveNetworkingSpec) - (*in).DeepCopyInto(*out) - } - if in.Flannel != nil { - in, out := &in.Flannel, &out.Flannel - *out = new(FlannelNetworkingSpec) - (*in).DeepCopyInto(*out) - } - if in.Calico != nil { - in, out := &in.Calico, &out.Calico - *out = new(CalicoNetworkingSpec) - (*in).DeepCopyInto(*out) - } - if in.Canal != nil { - in, out := &in.Canal, &out.Canal - *out = new(CanalNetworkingSpec) - (*in).DeepCopyInto(*out) - } - if in.Kuberouter != nil { - in, out := &in.Kuberouter, &out.Kuberouter - *out = new(KuberouterNetworkingSpec) - **out = **in - } - if in.Romana != nil { - in, out := &in.Romana, &out.Romana - *out = new(RomanaNetworkingSpec) - **out = **in - } - if in.AmazonVPC != nil { - in, out := &in.AmazonVPC, &out.AmazonVPC - *out = new(AmazonVPCNetworkingSpec) - (*in).DeepCopyInto(*out) - } - if in.Cilium != nil { - in, out := &in.Cilium, &out.Cilium - *out = new(CiliumNetworkingSpec) - (*in).DeepCopyInto(*out) - } - if in.LyftVPC != nil { - in, out := &in.LyftVPC, &out.LyftVPC - *out = new(LyftVPCNetworkingSpec) - (*in).DeepCopyInto(*out) - } - if in.GCE != nil { - in, out := &in.GCE, &out.GCE - *out = new(GCENetworkingSpec) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkingSpec. -func (in *NetworkingSpec) DeepCopy() *NetworkingSpec { - if in == nil { - return nil - } - out := new(NetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeAuthorizationSpec) DeepCopyInto(out *NodeAuthorizationSpec) { - *out = *in - if in.NodeAuthorizer != nil { - in, out := &in.NodeAuthorizer, &out.NodeAuthorizer - *out = new(NodeAuthorizerSpec) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeAuthorizationSpec. -func (in *NodeAuthorizationSpec) DeepCopy() *NodeAuthorizationSpec { - if in == nil { - return nil - } - out := new(NodeAuthorizationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeAuthorizerSpec) DeepCopyInto(out *NodeAuthorizerSpec) { - *out = *in - if in.Features != nil { - in, out := &in.Features, &out.Features - *out = new([]string) - if **in != nil { - in, out := *in, *out - *out = make([]string, len(*in)) - copy(*out, *in) - } - } - if in.Interval != nil { - in, out := &in.Interval, &out.Interval - *out = new(v1.Duration) - **out = **in - } - if in.Timeout != nil { - in, out := &in.Timeout, &out.Timeout - *out = new(v1.Duration) - **out = **in - } - if in.TokenTTL != nil { - in, out := &in.TokenTTL, &out.TokenTTL - *out = new(v1.Duration) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeAuthorizerSpec. -func (in *NodeAuthorizerSpec) DeepCopy() *NodeAuthorizerSpec { - if in == nil { - return nil - } - out := new(NodeAuthorizerSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackBlockStorageConfig) DeepCopyInto(out *OpenstackBlockStorageConfig) { - *out = *in - if in.Version != nil { - in, out := &in.Version, &out.Version - *out = new(string) - **out = **in - } - if in.IgnoreAZ != nil { - in, out := &in.IgnoreAZ, &out.IgnoreAZ - *out = new(bool) - **out = **in - } - if in.OverrideAZ != nil { - in, out := &in.OverrideAZ, &out.OverrideAZ - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackBlockStorageConfig. -func (in *OpenstackBlockStorageConfig) DeepCopy() *OpenstackBlockStorageConfig { - if in == nil { - return nil - } - out := new(OpenstackBlockStorageConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackConfiguration) DeepCopyInto(out *OpenstackConfiguration) { - *out = *in - if in.Loadbalancer != nil { - in, out := &in.Loadbalancer, &out.Loadbalancer - *out = new(OpenstackLoadbalancerConfig) - (*in).DeepCopyInto(*out) - } - if in.Monitor != nil { - in, out := &in.Monitor, &out.Monitor - *out = new(OpenstackMonitor) - (*in).DeepCopyInto(*out) - } - if in.Router != nil { - in, out := &in.Router, &out.Router - *out = new(OpenstackRouter) - (*in).DeepCopyInto(*out) - } - if in.BlockStorage != nil { - in, out := &in.BlockStorage, &out.BlockStorage - *out = new(OpenstackBlockStorageConfig) - (*in).DeepCopyInto(*out) - } - if in.InsecureSkipVerify != nil { - in, out := &in.InsecureSkipVerify, &out.InsecureSkipVerify - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackConfiguration. -func (in *OpenstackConfiguration) DeepCopy() *OpenstackConfiguration { - if in == nil { - return nil - } - out := new(OpenstackConfiguration) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackLoadbalancerConfig) DeepCopyInto(out *OpenstackLoadbalancerConfig) { - *out = *in - if in.Method != nil { - in, out := &in.Method, &out.Method - *out = new(string) - **out = **in - } - if in.Provider != nil { - in, out := &in.Provider, &out.Provider - *out = new(string) - **out = **in - } - if in.UseOctavia != nil { - in, out := &in.UseOctavia, &out.UseOctavia - *out = new(bool) - **out = **in - } - if in.FloatingNetwork != nil { - in, out := &in.FloatingNetwork, &out.FloatingNetwork - *out = new(string) - **out = **in - } - if in.FloatingNetworkID != nil { - in, out := &in.FloatingNetworkID, &out.FloatingNetworkID - *out = new(string) - **out = **in - } - if in.FloatingSubnet != nil { - in, out := &in.FloatingSubnet, &out.FloatingSubnet - *out = new(string) - **out = **in - } - if in.SubnetID != nil { - in, out := &in.SubnetID, &out.SubnetID - *out = new(string) - **out = **in - } - if in.ManageSecGroups != nil { - in, out := &in.ManageSecGroups, &out.ManageSecGroups - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackLoadbalancerConfig. -func (in *OpenstackLoadbalancerConfig) DeepCopy() *OpenstackLoadbalancerConfig { - if in == nil { - return nil - } - out := new(OpenstackLoadbalancerConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackMonitor) DeepCopyInto(out *OpenstackMonitor) { - *out = *in - if in.Delay != nil { - in, out := &in.Delay, &out.Delay - *out = new(string) - **out = **in - } - if in.Timeout != nil { - in, out := &in.Timeout, &out.Timeout - *out = new(string) - **out = **in - } - if in.MaxRetries != nil { - in, out := &in.MaxRetries, &out.MaxRetries - *out = new(int) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackMonitor. -func (in *OpenstackMonitor) DeepCopy() *OpenstackMonitor { - if in == nil { - return nil - } - out := new(OpenstackMonitor) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackRouter) DeepCopyInto(out *OpenstackRouter) { - *out = *in - if in.ExternalNetwork != nil { - in, out := &in.ExternalNetwork, &out.ExternalNetwork - *out = new(string) - **out = **in - } - if in.DNSServers != nil { - in, out := &in.DNSServers, &out.DNSServers - *out = new(string) - **out = **in - } - if in.ExternalSubnet != nil { - in, out := &in.ExternalSubnet, &out.ExternalSubnet - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackRouter. -func (in *OpenstackRouter) DeepCopy() *OpenstackRouter { - if in == nil { - return nil - } - out := new(OpenstackRouter) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RBACAuthorizationSpec) DeepCopyInto(out *RBACAuthorizationSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RBACAuthorizationSpec. -func (in *RBACAuthorizationSpec) DeepCopy() *RBACAuthorizationSpec { - if in == nil { - return nil - } - out := new(RBACAuthorizationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RollingUpdate) DeepCopyInto(out *RollingUpdate) { - *out = *in - if in.MaxUnavailable != nil { - in, out := &in.MaxUnavailable, &out.MaxUnavailable - *out = new(intstr.IntOrString) - **out = **in - } - if in.MaxSurge != nil { - in, out := &in.MaxSurge, &out.MaxSurge - *out = new(intstr.IntOrString) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdate. -func (in *RollingUpdate) DeepCopy() *RollingUpdate { - if in == nil { - return nil - } - out := new(RollingUpdate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RomanaNetworkingSpec) DeepCopyInto(out *RomanaNetworkingSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RomanaNetworkingSpec. -func (in *RomanaNetworkingSpec) DeepCopy() *RomanaNetworkingSpec { - if in == nil { - return nil - } - out := new(RomanaNetworkingSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SSHCredential) DeepCopyInto(out *SSHCredential) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHCredential. -func (in *SSHCredential) DeepCopy() *SSHCredential { - if in == nil { - return nil - } - out := new(SSHCredential) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SSHCredential) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SSHCredentialList) DeepCopyInto(out *SSHCredentialList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]SSHCredential, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHCredentialList. -func (in *SSHCredentialList) DeepCopy() *SSHCredentialList { - if in == nil { - return nil - } - out := new(SSHCredentialList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SSHCredentialList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SSHCredentialSpec) DeepCopyInto(out *SSHCredentialSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHCredentialSpec. -func (in *SSHCredentialSpec) DeepCopy() *SSHCredentialSpec { - if in == nil { - return nil - } - out := new(SSHCredentialSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetSpec) DeepCopyInto(out *TargetSpec) { - *out = *in - if in.Terraform != nil { - in, out := &in.Terraform, &out.Terraform - *out = new(TerraformSpec) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetSpec. -func (in *TargetSpec) DeepCopy() *TargetSpec { - if in == nil { - return nil - } - out := new(TargetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TerraformSpec) DeepCopyInto(out *TerraformSpec) { - *out = *in - if in.ProviderExtraConfig != nil { - in, out := &in.ProviderExtraConfig, &out.ProviderExtraConfig - *out = new(map[string]string) - if **in != nil { - in, out := *in, *out - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TerraformSpec. -func (in *TerraformSpec) DeepCopy() *TerraformSpec { - if in == nil { - return nil - } - out := new(TerraformSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TopologySpec) DeepCopyInto(out *TopologySpec) { - *out = *in - if in.Bastion != nil { - in, out := &in.Bastion, &out.Bastion - *out = new(BastionSpec) - (*in).DeepCopyInto(*out) - } - if in.DNS != nil { - in, out := &in.DNS, &out.DNS - *out = new(DNSSpec) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TopologySpec. -func (in *TopologySpec) DeepCopy() *TopologySpec { - if in == nil { - return nil - } - out := new(TopologySpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserData) DeepCopyInto(out *UserData) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserData. -func (in *UserData) DeepCopy() *UserData { - if in == nil { - return nil - } - out := new(UserData) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeMountSpec) DeepCopyInto(out *VolumeMountSpec) { - *out = *in - if in.FormatOptions != nil { - in, out := &in.FormatOptions, &out.FormatOptions - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.MountOptions != nil { - in, out := &in.MountOptions, &out.MountOptions - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeMountSpec. -func (in *VolumeMountSpec) DeepCopy() *VolumeMountSpec { - if in == nil { - return nil - } - out := new(VolumeMountSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSpec) DeepCopyInto(out *VolumeSpec) { - *out = *in - if in.DeleteOnTermination != nil { - in, out := &in.DeleteOnTermination, &out.DeleteOnTermination - *out = new(bool) - **out = **in - } - if in.Encrypted != nil { - in, out := &in.Encrypted, &out.Encrypted - *out = new(bool) - **out = **in - } - if in.Iops != nil { - in, out := &in.Iops, &out.Iops - *out = new(int64) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSpec. -func (in *VolumeSpec) DeepCopy() *VolumeSpec { - if in == nil { - return nil - } - out := new(VolumeSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WeaveNetworkingSpec) DeepCopyInto(out *WeaveNetworkingSpec) { - *out = *in - if in.MTU != nil { - in, out := &in.MTU, &out.MTU - *out = new(int32) - **out = **in - } - if in.ConnLimit != nil { - in, out := &in.ConnLimit, &out.ConnLimit - *out = new(int32) - **out = **in - } - if in.NoMasqLocal != nil { - in, out := &in.NoMasqLocal, &out.NoMasqLocal - *out = new(int32) - **out = **in - } - if in.MemoryRequest != nil { - in, out := &in.MemoryRequest, &out.MemoryRequest - x := (*in).DeepCopy() - *out = &x - } - if in.CPURequest != nil { - in, out := &in.CPURequest, &out.CPURequest - x := (*in).DeepCopy() - *out = &x - } - if in.MemoryLimit != nil { - in, out := &in.MemoryLimit, &out.MemoryLimit - x := (*in).DeepCopy() - *out = &x - } - if in.CPULimit != nil { - in, out := &in.CPULimit, &out.CPULimit - x := (*in).DeepCopy() - *out = &x - } - if in.NPCMemoryRequest != nil { - in, out := &in.NPCMemoryRequest, &out.NPCMemoryRequest - x := (*in).DeepCopy() - *out = &x - } - if in.NPCCPURequest != nil { - in, out := &in.NPCCPURequest, &out.NPCCPURequest - x := (*in).DeepCopy() - *out = &x - } - if in.NPCMemoryLimit != nil { - in, out := &in.NPCMemoryLimit, &out.NPCMemoryLimit - x := (*in).DeepCopy() - *out = &x - } - if in.NPCCPULimit != nil { - in, out := &in.NPCCPULimit, &out.NPCCPULimit - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WeaveNetworkingSpec. -func (in *WeaveNetworkingSpec) DeepCopy() *WeaveNetworkingSpec { - if in == nil { - return nil - } - out := new(WeaveNetworkingSpec) - in.DeepCopyInto(out) - return out -} diff --git a/pkg/apis/kops/v1alpha1/zz_generated.defaults.go b/pkg/apis/kops/v1alpha1/zz_generated.defaults.go deleted file mode 100644 index 205893f51b..0000000000 --- a/pkg/apis/kops/v1alpha1/zz_generated.defaults.go +++ /dev/null @@ -1,45 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by defaulter-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// RegisterDefaults adds defaulters functions to the given scheme. -// Public to allow building arbitrary schemes. -// All generated defaulters are covering - they call all nested defaulters. -func RegisterDefaults(scheme *runtime.Scheme) error { - scheme.AddTypeDefaultingFunc(&Cluster{}, func(obj interface{}) { SetObjectDefaults_Cluster(obj.(*Cluster)) }) - scheme.AddTypeDefaultingFunc(&ClusterList{}, func(obj interface{}) { SetObjectDefaults_ClusterList(obj.(*ClusterList)) }) - return nil -} - -func SetObjectDefaults_Cluster(in *Cluster) { - SetDefaults_ClusterSpec(&in.Spec) -} - -func SetObjectDefaults_ClusterList(in *ClusterList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_Cluster(a) - } -} diff --git a/pkg/client/clientset_generated/clientset/BUILD.bazel b/pkg/client/clientset_generated/clientset/BUILD.bazel index 2d117b15c2..ca3720cbee 100644 --- a/pkg/client/clientset_generated/clientset/BUILD.bazel +++ b/pkg/client/clientset_generated/clientset/BUILD.bazel @@ -10,7 +10,6 @@ go_library( visibility = ["//visibility:public"], deps = [ "//pkg/client/clientset_generated/clientset/typed/kops/internalversion:go_default_library", - "//pkg/client/clientset_generated/clientset/typed/kops/v1alpha1:go_default_library", "//pkg/client/clientset_generated/clientset/typed/kops/v1alpha2:go_default_library", "//vendor/k8s.io/client-go/discovery:go_default_library", "//vendor/k8s.io/client-go/rest:go_default_library", diff --git a/pkg/client/clientset_generated/clientset/clientset.go b/pkg/client/clientset_generated/clientset/clientset.go index e63ebf702e..8f4ad298b7 100644 --- a/pkg/client/clientset_generated/clientset/clientset.go +++ b/pkg/client/clientset_generated/clientset/clientset.go @@ -25,14 +25,12 @@ import ( rest "k8s.io/client-go/rest" flowcontrol "k8s.io/client-go/util/flowcontrol" kopsinternalversion "k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/internalversion" - kopsv1alpha1 "k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1" kopsv1alpha2 "k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha2" ) type Interface interface { Discovery() discovery.DiscoveryInterface Kops() kopsinternalversion.KopsInterface - KopsV1alpha1() kopsv1alpha1.KopsV1alpha1Interface KopsV1alpha2() kopsv1alpha2.KopsV1alpha2Interface } @@ -41,7 +39,6 @@ type Interface interface { type Clientset struct { *discovery.DiscoveryClient kops *kopsinternalversion.KopsClient - kopsV1alpha1 *kopsv1alpha1.KopsV1alpha1Client kopsV1alpha2 *kopsv1alpha2.KopsV1alpha2Client } @@ -50,11 +47,6 @@ func (c *Clientset) Kops() kopsinternalversion.KopsInterface { return c.kops } -// KopsV1alpha1 retrieves the KopsV1alpha1Client -func (c *Clientset) KopsV1alpha1() kopsv1alpha1.KopsV1alpha1Interface { - return c.kopsV1alpha1 -} - // KopsV1alpha2 retrieves the KopsV1alpha2Client func (c *Clientset) KopsV1alpha2() kopsv1alpha2.KopsV1alpha2Interface { return c.kopsV1alpha2 @@ -85,10 +77,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { if err != nil { return nil, err } - cs.kopsV1alpha1, err = kopsv1alpha1.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } cs.kopsV1alpha2, err = kopsv1alpha2.NewForConfig(&configShallowCopy) if err != nil { return nil, err @@ -106,7 +94,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { func NewForConfigOrDie(c *rest.Config) *Clientset { var cs Clientset cs.kops = kopsinternalversion.NewForConfigOrDie(c) - cs.kopsV1alpha1 = kopsv1alpha1.NewForConfigOrDie(c) cs.kopsV1alpha2 = kopsv1alpha2.NewForConfigOrDie(c) cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) @@ -117,7 +104,6 @@ func NewForConfigOrDie(c *rest.Config) *Clientset { func New(c rest.Interface) *Clientset { var cs Clientset cs.kops = kopsinternalversion.New(c) - cs.kopsV1alpha1 = kopsv1alpha1.New(c) cs.kopsV1alpha2 = kopsv1alpha2.New(c) cs.DiscoveryClient = discovery.NewDiscoveryClient(c) diff --git a/pkg/client/clientset_generated/clientset/fake/BUILD.bazel b/pkg/client/clientset_generated/clientset/fake/BUILD.bazel index 440c89bb69..142ba2f3a0 100644 --- a/pkg/client/clientset_generated/clientset/fake/BUILD.bazel +++ b/pkg/client/clientset_generated/clientset/fake/BUILD.bazel @@ -11,13 +11,10 @@ go_library( visibility = ["//visibility:public"], deps = [ "//pkg/apis/kops:go_default_library", - "//pkg/apis/kops/v1alpha1:go_default_library", "//pkg/apis/kops/v1alpha2:go_default_library", "//pkg/client/clientset_generated/clientset:go_default_library", "//pkg/client/clientset_generated/clientset/typed/kops/internalversion:go_default_library", "//pkg/client/clientset_generated/clientset/typed/kops/internalversion/fake:go_default_library", - "//pkg/client/clientset_generated/clientset/typed/kops/v1alpha1:go_default_library", - "//pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake:go_default_library", "//pkg/client/clientset_generated/clientset/typed/kops/v1alpha2:go_default_library", "//pkg/client/clientset_generated/clientset/typed/kops/v1alpha2/fake:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", diff --git a/pkg/client/clientset_generated/clientset/fake/clientset_generated.go b/pkg/client/clientset_generated/clientset/fake/clientset_generated.go index d168d1c6d0..f56050b4cb 100644 --- a/pkg/client/clientset_generated/clientset/fake/clientset_generated.go +++ b/pkg/client/clientset_generated/clientset/fake/clientset_generated.go @@ -27,8 +27,6 @@ import ( clientset "k8s.io/kops/pkg/client/clientset_generated/clientset" kopsinternalversion "k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/internalversion" fakekopsinternalversion "k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/internalversion/fake" - kopsv1alpha1 "k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1" - fakekopsv1alpha1 "k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake" kopsv1alpha2 "k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha2" fakekopsv1alpha2 "k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha2/fake" ) @@ -85,11 +83,6 @@ func (c *Clientset) Kops() kopsinternalversion.KopsInterface { return &fakekopsinternalversion.FakeKops{Fake: &c.Fake} } -// KopsV1alpha1 retrieves the KopsV1alpha1Client -func (c *Clientset) KopsV1alpha1() kopsv1alpha1.KopsV1alpha1Interface { - return &fakekopsv1alpha1.FakeKopsV1alpha1{Fake: &c.Fake} -} - // KopsV1alpha2 retrieves the KopsV1alpha2Client func (c *Clientset) KopsV1alpha2() kopsv1alpha2.KopsV1alpha2Interface { return &fakekopsv1alpha2.FakeKopsV1alpha2{Fake: &c.Fake} diff --git a/pkg/client/clientset_generated/clientset/fake/register.go b/pkg/client/clientset_generated/clientset/fake/register.go index 7ad2fe7eec..035317b128 100644 --- a/pkg/client/clientset_generated/clientset/fake/register.go +++ b/pkg/client/clientset_generated/clientset/fake/register.go @@ -25,7 +25,6 @@ import ( serializer "k8s.io/apimachinery/pkg/runtime/serializer" utilruntime "k8s.io/apimachinery/pkg/util/runtime" kopsinternalversion "k8s.io/kops/pkg/apis/kops" - kopsv1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" kopsv1alpha2 "k8s.io/kops/pkg/apis/kops/v1alpha2" ) @@ -34,7 +33,6 @@ var codecs = serializer.NewCodecFactory(scheme) var parameterCodec = runtime.NewParameterCodec(scheme) var localSchemeBuilder = runtime.SchemeBuilder{ kopsinternalversion.AddToScheme, - kopsv1alpha1.AddToScheme, kopsv1alpha2.AddToScheme, } diff --git a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/BUILD.bazel b/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/BUILD.bazel deleted file mode 100644 index 35f24f1d18..0000000000 --- a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "cluster.go", - "doc.go", - "generated_expansion.go", - "instancegroup.go", - "kops_client.go", - "sshcredential.go", - ], - importpath = "k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1", - visibility = ["//visibility:public"], - deps = [ - "//pkg/apis/kops/v1alpha1:go_default_library", - "//pkg/client/clientset_generated/clientset/scheme:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/watch:go_default_library", - "//vendor/k8s.io/client-go/rest:go_default_library", - ], -) diff --git a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/cluster.go b/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/cluster.go deleted file mode 100644 index 131f566ac1..0000000000 --- a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/cluster.go +++ /dev/null @@ -1,174 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "time" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" - scheme "k8s.io/kops/pkg/client/clientset_generated/clientset/scheme" -) - -// ClustersGetter has a method to return a ClusterInterface. -// A group's client should implement this interface. -type ClustersGetter interface { - Clusters(namespace string) ClusterInterface -} - -// ClusterInterface has methods to work with Cluster resources. -type ClusterInterface interface { - Create(*v1alpha1.Cluster) (*v1alpha1.Cluster, error) - Update(*v1alpha1.Cluster) (*v1alpha1.Cluster, error) - Delete(name string, options *v1.DeleteOptions) error - DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error - Get(name string, options v1.GetOptions) (*v1alpha1.Cluster, error) - List(opts v1.ListOptions) (*v1alpha1.ClusterList, error) - Watch(opts v1.ListOptions) (watch.Interface, error) - Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Cluster, err error) - ClusterExpansion -} - -// clusters implements ClusterInterface -type clusters struct { - client rest.Interface - ns string -} - -// newClusters returns a Clusters -func newClusters(c *KopsV1alpha1Client, namespace string) *clusters { - return &clusters{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any. -func (c *clusters) Get(name string, options v1.GetOptions) (result *v1alpha1.Cluster, err error) { - result = &v1alpha1.Cluster{} - err = c.client.Get(). - Namespace(c.ns). - Resource("clusters"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Clusters that match those selectors. -func (c *clusters) List(opts v1.ListOptions) (result *v1alpha1.ClusterList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.ClusterList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("clusters"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested clusters. -func (c *clusters) Watch(opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("clusters"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch() -} - -// Create takes the representation of a cluster and creates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *clusters) Create(cluster *v1alpha1.Cluster) (result *v1alpha1.Cluster, err error) { - result = &v1alpha1.Cluster{} - err = c.client.Post(). - Namespace(c.ns). - Resource("clusters"). - Body(cluster). - Do(). - Into(result) - return -} - -// Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *clusters) Update(cluster *v1alpha1.Cluster) (result *v1alpha1.Cluster, err error) { - result = &v1alpha1.Cluster{} - err = c.client.Put(). - Namespace(c.ns). - Resource("clusters"). - Name(cluster.Name). - Body(cluster). - Do(). - Into(result) - return -} - -// Delete takes name of the cluster and deletes it. Returns an error if one occurs. -func (c *clusters) Delete(name string, options *v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("clusters"). - Name(name). - Body(options). - Do(). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *clusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { - var timeout time.Duration - if listOptions.TimeoutSeconds != nil { - timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("clusters"). - VersionedParams(&listOptions, scheme.ParameterCodec). - Timeout(timeout). - Body(options). - Do(). - Error() -} - -// Patch applies the patch and returns the patched cluster. -func (c *clusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Cluster, err error) { - result = &v1alpha1.Cluster{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("clusters"). - SubResource(subresources...). - Name(name). - Body(data). - Do(). - Into(result) - return -} diff --git a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/doc.go b/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/doc.go deleted file mode 100644 index 54eabf9454..0000000000 --- a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/BUILD.bazel b/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/BUILD.bazel deleted file mode 100644 index 71c19777e7..0000000000 --- a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "doc.go", - "fake_cluster.go", - "fake_instancegroup.go", - "fake_kops_client.go", - "fake_sshcredential.go", - ], - importpath = "k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake", - visibility = ["//visibility:public"], - deps = [ - "//pkg/apis/kops/v1alpha1:go_default_library", - "//pkg/client/clientset_generated/clientset/typed/kops/v1alpha1:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/labels:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/watch:go_default_library", - "//vendor/k8s.io/client-go/rest:go_default_library", - "//vendor/k8s.io/client-go/testing:go_default_library", - ], -) diff --git a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/doc.go b/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/doc.go deleted file mode 100644 index 0243e68ff4..0000000000 --- a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/fake_cluster.go b/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/fake_cluster.go deleted file mode 100644 index fe8b5c32bd..0000000000 --- a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/fake_cluster.go +++ /dev/null @@ -1,128 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" -) - -// FakeClusters implements ClusterInterface -type FakeClusters struct { - Fake *FakeKopsV1alpha1 - ns string -} - -var clustersResource = schema.GroupVersionResource{Group: "kops.k8s.io", Version: "v1alpha1", Resource: "clusters"} - -var clustersKind = schema.GroupVersionKind{Group: "kops.k8s.io", Version: "v1alpha1", Kind: "Cluster"} - -// Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any. -func (c *FakeClusters) Get(name string, options v1.GetOptions) (result *v1alpha1.Cluster, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(clustersResource, c.ns, name), &v1alpha1.Cluster{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Cluster), err -} - -// List takes label and field selectors, and returns the list of Clusters that match those selectors. -func (c *FakeClusters) List(opts v1.ListOptions) (result *v1alpha1.ClusterList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(clustersResource, clustersKind, c.ns, opts), &v1alpha1.ClusterList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ClusterList{ListMeta: obj.(*v1alpha1.ClusterList).ListMeta} - for _, item := range obj.(*v1alpha1.ClusterList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested clusters. -func (c *FakeClusters) Watch(opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(clustersResource, c.ns, opts)) - -} - -// Create takes the representation of a cluster and creates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *FakeClusters) Create(cluster *v1alpha1.Cluster) (result *v1alpha1.Cluster, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(clustersResource, c.ns, cluster), &v1alpha1.Cluster{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Cluster), err -} - -// Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *FakeClusters) Update(cluster *v1alpha1.Cluster) (result *v1alpha1.Cluster, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(clustersResource, c.ns, cluster), &v1alpha1.Cluster{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Cluster), err -} - -// Delete takes name of the cluster and deletes it. Returns an error if one occurs. -func (c *FakeClusters) Delete(name string, options *v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteAction(clustersResource, c.ns, name), &v1alpha1.Cluster{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(clustersResource, c.ns, listOptions) - - _, err := c.Fake.Invokes(action, &v1alpha1.ClusterList{}) - return err -} - -// Patch applies the patch and returns the patched cluster. -func (c *FakeClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Cluster, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(clustersResource, c.ns, name, pt, data, subresources...), &v1alpha1.Cluster{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Cluster), err -} diff --git a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/fake_instancegroup.go b/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/fake_instancegroup.go deleted file mode 100644 index 36d049f84d..0000000000 --- a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/fake_instancegroup.go +++ /dev/null @@ -1,128 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" -) - -// FakeInstanceGroups implements InstanceGroupInterface -type FakeInstanceGroups struct { - Fake *FakeKopsV1alpha1 - ns string -} - -var instancegroupsResource = schema.GroupVersionResource{Group: "kops.k8s.io", Version: "v1alpha1", Resource: "instancegroups"} - -var instancegroupsKind = schema.GroupVersionKind{Group: "kops.k8s.io", Version: "v1alpha1", Kind: "InstanceGroup"} - -// Get takes name of the instanceGroup, and returns the corresponding instanceGroup object, and an error if there is any. -func (c *FakeInstanceGroups) Get(name string, options v1.GetOptions) (result *v1alpha1.InstanceGroup, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(instancegroupsResource, c.ns, name), &v1alpha1.InstanceGroup{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.InstanceGroup), err -} - -// List takes label and field selectors, and returns the list of InstanceGroups that match those selectors. -func (c *FakeInstanceGroups) List(opts v1.ListOptions) (result *v1alpha1.InstanceGroupList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(instancegroupsResource, instancegroupsKind, c.ns, opts), &v1alpha1.InstanceGroupList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.InstanceGroupList{ListMeta: obj.(*v1alpha1.InstanceGroupList).ListMeta} - for _, item := range obj.(*v1alpha1.InstanceGroupList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested instanceGroups. -func (c *FakeInstanceGroups) Watch(opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(instancegroupsResource, c.ns, opts)) - -} - -// Create takes the representation of a instanceGroup and creates it. Returns the server's representation of the instanceGroup, and an error, if there is any. -func (c *FakeInstanceGroups) Create(instanceGroup *v1alpha1.InstanceGroup) (result *v1alpha1.InstanceGroup, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(instancegroupsResource, c.ns, instanceGroup), &v1alpha1.InstanceGroup{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.InstanceGroup), err -} - -// Update takes the representation of a instanceGroup and updates it. Returns the server's representation of the instanceGroup, and an error, if there is any. -func (c *FakeInstanceGroups) Update(instanceGroup *v1alpha1.InstanceGroup) (result *v1alpha1.InstanceGroup, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(instancegroupsResource, c.ns, instanceGroup), &v1alpha1.InstanceGroup{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.InstanceGroup), err -} - -// Delete takes name of the instanceGroup and deletes it. Returns an error if one occurs. -func (c *FakeInstanceGroups) Delete(name string, options *v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteAction(instancegroupsResource, c.ns, name), &v1alpha1.InstanceGroup{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeInstanceGroups) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(instancegroupsResource, c.ns, listOptions) - - _, err := c.Fake.Invokes(action, &v1alpha1.InstanceGroupList{}) - return err -} - -// Patch applies the patch and returns the patched instanceGroup. -func (c *FakeInstanceGroups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.InstanceGroup, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(instancegroupsResource, c.ns, name, pt, data, subresources...), &v1alpha1.InstanceGroup{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.InstanceGroup), err -} diff --git a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/fake_kops_client.go b/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/fake_kops_client.go deleted file mode 100644 index 5d05d72dc2..0000000000 --- a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/fake_kops_client.go +++ /dev/null @@ -1,48 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" - v1alpha1 "k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1" -) - -type FakeKopsV1alpha1 struct { - *testing.Fake -} - -func (c *FakeKopsV1alpha1) Clusters(namespace string) v1alpha1.ClusterInterface { - return &FakeClusters{c, namespace} -} - -func (c *FakeKopsV1alpha1) InstanceGroups(namespace string) v1alpha1.InstanceGroupInterface { - return &FakeInstanceGroups{c, namespace} -} - -func (c *FakeKopsV1alpha1) SSHCredentials(namespace string) v1alpha1.SSHCredentialInterface { - return &FakeSSHCredentials{c, namespace} -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeKopsV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/fake_sshcredential.go b/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/fake_sshcredential.go deleted file mode 100644 index 1c9da6ed05..0000000000 --- a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/fake/fake_sshcredential.go +++ /dev/null @@ -1,128 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" -) - -// FakeSSHCredentials implements SSHCredentialInterface -type FakeSSHCredentials struct { - Fake *FakeKopsV1alpha1 - ns string -} - -var sshcredentialsResource = schema.GroupVersionResource{Group: "kops.k8s.io", Version: "v1alpha1", Resource: "sshcredentials"} - -var sshcredentialsKind = schema.GroupVersionKind{Group: "kops.k8s.io", Version: "v1alpha1", Kind: "SSHCredential"} - -// Get takes name of the sSHCredential, and returns the corresponding sSHCredential object, and an error if there is any. -func (c *FakeSSHCredentials) Get(name string, options v1.GetOptions) (result *v1alpha1.SSHCredential, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(sshcredentialsResource, c.ns, name), &v1alpha1.SSHCredential{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SSHCredential), err -} - -// List takes label and field selectors, and returns the list of SSHCredentials that match those selectors. -func (c *FakeSSHCredentials) List(opts v1.ListOptions) (result *v1alpha1.SSHCredentialList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(sshcredentialsResource, sshcredentialsKind, c.ns, opts), &v1alpha1.SSHCredentialList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.SSHCredentialList{ListMeta: obj.(*v1alpha1.SSHCredentialList).ListMeta} - for _, item := range obj.(*v1alpha1.SSHCredentialList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested sSHCredentials. -func (c *FakeSSHCredentials) Watch(opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(sshcredentialsResource, c.ns, opts)) - -} - -// Create takes the representation of a sSHCredential and creates it. Returns the server's representation of the sSHCredential, and an error, if there is any. -func (c *FakeSSHCredentials) Create(sSHCredential *v1alpha1.SSHCredential) (result *v1alpha1.SSHCredential, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(sshcredentialsResource, c.ns, sSHCredential), &v1alpha1.SSHCredential{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SSHCredential), err -} - -// Update takes the representation of a sSHCredential and updates it. Returns the server's representation of the sSHCredential, and an error, if there is any. -func (c *FakeSSHCredentials) Update(sSHCredential *v1alpha1.SSHCredential) (result *v1alpha1.SSHCredential, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(sshcredentialsResource, c.ns, sSHCredential), &v1alpha1.SSHCredential{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SSHCredential), err -} - -// Delete takes name of the sSHCredential and deletes it. Returns an error if one occurs. -func (c *FakeSSHCredentials) Delete(name string, options *v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteAction(sshcredentialsResource, c.ns, name), &v1alpha1.SSHCredential{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSSHCredentials) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(sshcredentialsResource, c.ns, listOptions) - - _, err := c.Fake.Invokes(action, &v1alpha1.SSHCredentialList{}) - return err -} - -// Patch applies the patch and returns the patched sSHCredential. -func (c *FakeSSHCredentials) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.SSHCredential, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(sshcredentialsResource, c.ns, name, pt, data, subresources...), &v1alpha1.SSHCredential{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SSHCredential), err -} diff --git a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/generated_expansion.go b/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/generated_expansion.go deleted file mode 100644 index 4973b4d380..0000000000 --- a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,25 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -type ClusterExpansion interface{} - -type InstanceGroupExpansion interface{} - -type SSHCredentialExpansion interface{} diff --git a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/instancegroup.go b/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/instancegroup.go deleted file mode 100644 index 38bd2a7cbb..0000000000 --- a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/instancegroup.go +++ /dev/null @@ -1,174 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "time" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" - scheme "k8s.io/kops/pkg/client/clientset_generated/clientset/scheme" -) - -// InstanceGroupsGetter has a method to return a InstanceGroupInterface. -// A group's client should implement this interface. -type InstanceGroupsGetter interface { - InstanceGroups(namespace string) InstanceGroupInterface -} - -// InstanceGroupInterface has methods to work with InstanceGroup resources. -type InstanceGroupInterface interface { - Create(*v1alpha1.InstanceGroup) (*v1alpha1.InstanceGroup, error) - Update(*v1alpha1.InstanceGroup) (*v1alpha1.InstanceGroup, error) - Delete(name string, options *v1.DeleteOptions) error - DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error - Get(name string, options v1.GetOptions) (*v1alpha1.InstanceGroup, error) - List(opts v1.ListOptions) (*v1alpha1.InstanceGroupList, error) - Watch(opts v1.ListOptions) (watch.Interface, error) - Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.InstanceGroup, err error) - InstanceGroupExpansion -} - -// instanceGroups implements InstanceGroupInterface -type instanceGroups struct { - client rest.Interface - ns string -} - -// newInstanceGroups returns a InstanceGroups -func newInstanceGroups(c *KopsV1alpha1Client, namespace string) *instanceGroups { - return &instanceGroups{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the instanceGroup, and returns the corresponding instanceGroup object, and an error if there is any. -func (c *instanceGroups) Get(name string, options v1.GetOptions) (result *v1alpha1.InstanceGroup, err error) { - result = &v1alpha1.InstanceGroup{} - err = c.client.Get(). - Namespace(c.ns). - Resource("instancegroups"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of InstanceGroups that match those selectors. -func (c *instanceGroups) List(opts v1.ListOptions) (result *v1alpha1.InstanceGroupList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.InstanceGroupList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("instancegroups"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested instanceGroups. -func (c *instanceGroups) Watch(opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("instancegroups"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch() -} - -// Create takes the representation of a instanceGroup and creates it. Returns the server's representation of the instanceGroup, and an error, if there is any. -func (c *instanceGroups) Create(instanceGroup *v1alpha1.InstanceGroup) (result *v1alpha1.InstanceGroup, err error) { - result = &v1alpha1.InstanceGroup{} - err = c.client.Post(). - Namespace(c.ns). - Resource("instancegroups"). - Body(instanceGroup). - Do(). - Into(result) - return -} - -// Update takes the representation of a instanceGroup and updates it. Returns the server's representation of the instanceGroup, and an error, if there is any. -func (c *instanceGroups) Update(instanceGroup *v1alpha1.InstanceGroup) (result *v1alpha1.InstanceGroup, err error) { - result = &v1alpha1.InstanceGroup{} - err = c.client.Put(). - Namespace(c.ns). - Resource("instancegroups"). - Name(instanceGroup.Name). - Body(instanceGroup). - Do(). - Into(result) - return -} - -// Delete takes name of the instanceGroup and deletes it. Returns an error if one occurs. -func (c *instanceGroups) Delete(name string, options *v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("instancegroups"). - Name(name). - Body(options). - Do(). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *instanceGroups) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { - var timeout time.Duration - if listOptions.TimeoutSeconds != nil { - timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("instancegroups"). - VersionedParams(&listOptions, scheme.ParameterCodec). - Timeout(timeout). - Body(options). - Do(). - Error() -} - -// Patch applies the patch and returns the patched instanceGroup. -func (c *instanceGroups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.InstanceGroup, err error) { - result = &v1alpha1.InstanceGroup{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("instancegroups"). - SubResource(subresources...). - Name(name). - Body(data). - Do(). - Into(result) - return -} diff --git a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/kops_client.go b/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/kops_client.go deleted file mode 100644 index f601bf0e6d..0000000000 --- a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/kops_client.go +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - rest "k8s.io/client-go/rest" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" - "k8s.io/kops/pkg/client/clientset_generated/clientset/scheme" -) - -type KopsV1alpha1Interface interface { - RESTClient() rest.Interface - ClustersGetter - InstanceGroupsGetter - SSHCredentialsGetter -} - -// KopsV1alpha1Client is used to interact with features provided by the kops.k8s.io group. -type KopsV1alpha1Client struct { - restClient rest.Interface -} - -func (c *KopsV1alpha1Client) Clusters(namespace string) ClusterInterface { - return newClusters(c, namespace) -} - -func (c *KopsV1alpha1Client) InstanceGroups(namespace string) InstanceGroupInterface { - return newInstanceGroups(c, namespace) -} - -func (c *KopsV1alpha1Client) SSHCredentials(namespace string) SSHCredentialInterface { - return newSSHCredentials(c, namespace) -} - -// NewForConfig creates a new KopsV1alpha1Client for the given config. -func NewForConfig(c *rest.Config) (*KopsV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientFor(&config) - if err != nil { - return nil, err - } - return &KopsV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new KopsV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *KopsV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new KopsV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *KopsV1alpha1Client { - return &KopsV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *KopsV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/sshcredential.go b/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/sshcredential.go deleted file mode 100644 index 74a50225d3..0000000000 --- a/pkg/client/clientset_generated/clientset/typed/kops/v1alpha1/sshcredential.go +++ /dev/null @@ -1,174 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "time" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" - scheme "k8s.io/kops/pkg/client/clientset_generated/clientset/scheme" -) - -// SSHCredentialsGetter has a method to return a SSHCredentialInterface. -// A group's client should implement this interface. -type SSHCredentialsGetter interface { - SSHCredentials(namespace string) SSHCredentialInterface -} - -// SSHCredentialInterface has methods to work with SSHCredential resources. -type SSHCredentialInterface interface { - Create(*v1alpha1.SSHCredential) (*v1alpha1.SSHCredential, error) - Update(*v1alpha1.SSHCredential) (*v1alpha1.SSHCredential, error) - Delete(name string, options *v1.DeleteOptions) error - DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error - Get(name string, options v1.GetOptions) (*v1alpha1.SSHCredential, error) - List(opts v1.ListOptions) (*v1alpha1.SSHCredentialList, error) - Watch(opts v1.ListOptions) (watch.Interface, error) - Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.SSHCredential, err error) - SSHCredentialExpansion -} - -// sSHCredentials implements SSHCredentialInterface -type sSHCredentials struct { - client rest.Interface - ns string -} - -// newSSHCredentials returns a SSHCredentials -func newSSHCredentials(c *KopsV1alpha1Client, namespace string) *sSHCredentials { - return &sSHCredentials{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the sSHCredential, and returns the corresponding sSHCredential object, and an error if there is any. -func (c *sSHCredentials) Get(name string, options v1.GetOptions) (result *v1alpha1.SSHCredential, err error) { - result = &v1alpha1.SSHCredential{} - err = c.client.Get(). - Namespace(c.ns). - Resource("sshcredentials"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of SSHCredentials that match those selectors. -func (c *sSHCredentials) List(opts v1.ListOptions) (result *v1alpha1.SSHCredentialList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.SSHCredentialList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("sshcredentials"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested sSHCredentials. -func (c *sSHCredentials) Watch(opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("sshcredentials"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch() -} - -// Create takes the representation of a sSHCredential and creates it. Returns the server's representation of the sSHCredential, and an error, if there is any. -func (c *sSHCredentials) Create(sSHCredential *v1alpha1.SSHCredential) (result *v1alpha1.SSHCredential, err error) { - result = &v1alpha1.SSHCredential{} - err = c.client.Post(). - Namespace(c.ns). - Resource("sshcredentials"). - Body(sSHCredential). - Do(). - Into(result) - return -} - -// Update takes the representation of a sSHCredential and updates it. Returns the server's representation of the sSHCredential, and an error, if there is any. -func (c *sSHCredentials) Update(sSHCredential *v1alpha1.SSHCredential) (result *v1alpha1.SSHCredential, err error) { - result = &v1alpha1.SSHCredential{} - err = c.client.Put(). - Namespace(c.ns). - Resource("sshcredentials"). - Name(sSHCredential.Name). - Body(sSHCredential). - Do(). - Into(result) - return -} - -// Delete takes name of the sSHCredential and deletes it. Returns an error if one occurs. -func (c *sSHCredentials) Delete(name string, options *v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("sshcredentials"). - Name(name). - Body(options). - Do(). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *sSHCredentials) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { - var timeout time.Duration - if listOptions.TimeoutSeconds != nil { - timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("sshcredentials"). - VersionedParams(&listOptions, scheme.ParameterCodec). - Timeout(timeout). - Body(options). - Do(). - Error() -} - -// Patch applies the patch and returns the patched sSHCredential. -func (c *sSHCredentials) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.SSHCredential, err error) { - result = &v1alpha1.SSHCredential{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("sshcredentials"). - SubResource(subresources...). - Name(name). - Body(data). - Do(). - Into(result) - return -} diff --git a/pkg/client/clientset_generated/internalclientset/BUILD.bazel b/pkg/client/clientset_generated/internalclientset/BUILD.bazel index 5000f5d19b..33c2e25da4 100644 --- a/pkg/client/clientset_generated/internalclientset/BUILD.bazel +++ b/pkg/client/clientset_generated/internalclientset/BUILD.bazel @@ -10,7 +10,6 @@ go_library( visibility = ["//visibility:public"], deps = [ "//pkg/client/clientset_generated/internalclientset/typed/kops/internalversion:go_default_library", - "//pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1:go_default_library", "//pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha2:go_default_library", "//vendor/k8s.io/client-go/discovery:go_default_library", "//vendor/k8s.io/client-go/rest:go_default_library", diff --git a/pkg/client/clientset_generated/internalclientset/clientset.go b/pkg/client/clientset_generated/internalclientset/clientset.go index 51ff675217..734b704c96 100644 --- a/pkg/client/clientset_generated/internalclientset/clientset.go +++ b/pkg/client/clientset_generated/internalclientset/clientset.go @@ -25,14 +25,12 @@ import ( rest "k8s.io/client-go/rest" flowcontrol "k8s.io/client-go/util/flowcontrol" kopsinternalversion "k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/internalversion" - kopsv1alpha1 "k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1" kopsv1alpha2 "k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha2" ) type Interface interface { Discovery() discovery.DiscoveryInterface Kops() kopsinternalversion.KopsInterface - KopsV1alpha1() kopsv1alpha1.KopsV1alpha1Interface KopsV1alpha2() kopsv1alpha2.KopsV1alpha2Interface } @@ -41,7 +39,6 @@ type Interface interface { type Clientset struct { *discovery.DiscoveryClient kops *kopsinternalversion.KopsClient - kopsV1alpha1 *kopsv1alpha1.KopsV1alpha1Client kopsV1alpha2 *kopsv1alpha2.KopsV1alpha2Client } @@ -50,11 +47,6 @@ func (c *Clientset) Kops() kopsinternalversion.KopsInterface { return c.kops } -// KopsV1alpha1 retrieves the KopsV1alpha1Client -func (c *Clientset) KopsV1alpha1() kopsv1alpha1.KopsV1alpha1Interface { - return c.kopsV1alpha1 -} - // KopsV1alpha2 retrieves the KopsV1alpha2Client func (c *Clientset) KopsV1alpha2() kopsv1alpha2.KopsV1alpha2Interface { return c.kopsV1alpha2 @@ -85,10 +77,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { if err != nil { return nil, err } - cs.kopsV1alpha1, err = kopsv1alpha1.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } cs.kopsV1alpha2, err = kopsv1alpha2.NewForConfig(&configShallowCopy) if err != nil { return nil, err @@ -106,7 +94,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { func NewForConfigOrDie(c *rest.Config) *Clientset { var cs Clientset cs.kops = kopsinternalversion.NewForConfigOrDie(c) - cs.kopsV1alpha1 = kopsv1alpha1.NewForConfigOrDie(c) cs.kopsV1alpha2 = kopsv1alpha2.NewForConfigOrDie(c) cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) @@ -117,7 +104,6 @@ func NewForConfigOrDie(c *rest.Config) *Clientset { func New(c rest.Interface) *Clientset { var cs Clientset cs.kops = kopsinternalversion.New(c) - cs.kopsV1alpha1 = kopsv1alpha1.New(c) cs.kopsV1alpha2 = kopsv1alpha2.New(c) cs.DiscoveryClient = discovery.NewDiscoveryClient(c) diff --git a/pkg/client/clientset_generated/internalclientset/fake/BUILD.bazel b/pkg/client/clientset_generated/internalclientset/fake/BUILD.bazel index 091284f321..9c14d55f40 100644 --- a/pkg/client/clientset_generated/internalclientset/fake/BUILD.bazel +++ b/pkg/client/clientset_generated/internalclientset/fake/BUILD.bazel @@ -11,13 +11,10 @@ go_library( visibility = ["//visibility:public"], deps = [ "//pkg/apis/kops:go_default_library", - "//pkg/apis/kops/v1alpha1:go_default_library", "//pkg/apis/kops/v1alpha2:go_default_library", "//pkg/client/clientset_generated/internalclientset:go_default_library", "//pkg/client/clientset_generated/internalclientset/typed/kops/internalversion:go_default_library", "//pkg/client/clientset_generated/internalclientset/typed/kops/internalversion/fake:go_default_library", - "//pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1:go_default_library", - "//pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake:go_default_library", "//pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha2:go_default_library", "//pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha2/fake:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", diff --git a/pkg/client/clientset_generated/internalclientset/fake/clientset_generated.go b/pkg/client/clientset_generated/internalclientset/fake/clientset_generated.go index 388e739910..70d80f4f0e 100644 --- a/pkg/client/clientset_generated/internalclientset/fake/clientset_generated.go +++ b/pkg/client/clientset_generated/internalclientset/fake/clientset_generated.go @@ -27,8 +27,6 @@ import ( clientset "k8s.io/kops/pkg/client/clientset_generated/internalclientset" kopsinternalversion "k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/internalversion" fakekopsinternalversion "k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/internalversion/fake" - kopsv1alpha1 "k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1" - fakekopsv1alpha1 "k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake" kopsv1alpha2 "k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha2" fakekopsv1alpha2 "k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha2/fake" ) @@ -85,11 +83,6 @@ func (c *Clientset) Kops() kopsinternalversion.KopsInterface { return &fakekopsinternalversion.FakeKops{Fake: &c.Fake} } -// KopsV1alpha1 retrieves the KopsV1alpha1Client -func (c *Clientset) KopsV1alpha1() kopsv1alpha1.KopsV1alpha1Interface { - return &fakekopsv1alpha1.FakeKopsV1alpha1{Fake: &c.Fake} -} - // KopsV1alpha2 retrieves the KopsV1alpha2Client func (c *Clientset) KopsV1alpha2() kopsv1alpha2.KopsV1alpha2Interface { return &fakekopsv1alpha2.FakeKopsV1alpha2{Fake: &c.Fake} diff --git a/pkg/client/clientset_generated/internalclientset/fake/register.go b/pkg/client/clientset_generated/internalclientset/fake/register.go index 7ad2fe7eec..035317b128 100644 --- a/pkg/client/clientset_generated/internalclientset/fake/register.go +++ b/pkg/client/clientset_generated/internalclientset/fake/register.go @@ -25,7 +25,6 @@ import ( serializer "k8s.io/apimachinery/pkg/runtime/serializer" utilruntime "k8s.io/apimachinery/pkg/util/runtime" kopsinternalversion "k8s.io/kops/pkg/apis/kops" - kopsv1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" kopsv1alpha2 "k8s.io/kops/pkg/apis/kops/v1alpha2" ) @@ -34,7 +33,6 @@ var codecs = serializer.NewCodecFactory(scheme) var parameterCodec = runtime.NewParameterCodec(scheme) var localSchemeBuilder = runtime.SchemeBuilder{ kopsinternalversion.AddToScheme, - kopsv1alpha1.AddToScheme, kopsv1alpha2.AddToScheme, } diff --git a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/BUILD.bazel b/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/BUILD.bazel deleted file mode 100644 index 71639e3302..0000000000 --- a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "cluster.go", - "doc.go", - "generated_expansion.go", - "instancegroup.go", - "kops_client.go", - "sshcredential.go", - ], - importpath = "k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1", - visibility = ["//visibility:public"], - deps = [ - "//pkg/apis/kops/v1alpha1:go_default_library", - "//pkg/client/clientset_generated/internalclientset/scheme:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/watch:go_default_library", - "//vendor/k8s.io/client-go/rest:go_default_library", - ], -) diff --git a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/cluster.go b/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/cluster.go deleted file mode 100644 index 9bce25f4a6..0000000000 --- a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/cluster.go +++ /dev/null @@ -1,174 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "time" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" - scheme "k8s.io/kops/pkg/client/clientset_generated/internalclientset/scheme" -) - -// ClustersGetter has a method to return a ClusterInterface. -// A group's client should implement this interface. -type ClustersGetter interface { - Clusters(namespace string) ClusterInterface -} - -// ClusterInterface has methods to work with Cluster resources. -type ClusterInterface interface { - Create(*v1alpha1.Cluster) (*v1alpha1.Cluster, error) - Update(*v1alpha1.Cluster) (*v1alpha1.Cluster, error) - Delete(name string, options *v1.DeleteOptions) error - DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error - Get(name string, options v1.GetOptions) (*v1alpha1.Cluster, error) - List(opts v1.ListOptions) (*v1alpha1.ClusterList, error) - Watch(opts v1.ListOptions) (watch.Interface, error) - Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Cluster, err error) - ClusterExpansion -} - -// clusters implements ClusterInterface -type clusters struct { - client rest.Interface - ns string -} - -// newClusters returns a Clusters -func newClusters(c *KopsV1alpha1Client, namespace string) *clusters { - return &clusters{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any. -func (c *clusters) Get(name string, options v1.GetOptions) (result *v1alpha1.Cluster, err error) { - result = &v1alpha1.Cluster{} - err = c.client.Get(). - Namespace(c.ns). - Resource("clusters"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Clusters that match those selectors. -func (c *clusters) List(opts v1.ListOptions) (result *v1alpha1.ClusterList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.ClusterList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("clusters"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested clusters. -func (c *clusters) Watch(opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("clusters"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch() -} - -// Create takes the representation of a cluster and creates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *clusters) Create(cluster *v1alpha1.Cluster) (result *v1alpha1.Cluster, err error) { - result = &v1alpha1.Cluster{} - err = c.client.Post(). - Namespace(c.ns). - Resource("clusters"). - Body(cluster). - Do(). - Into(result) - return -} - -// Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *clusters) Update(cluster *v1alpha1.Cluster) (result *v1alpha1.Cluster, err error) { - result = &v1alpha1.Cluster{} - err = c.client.Put(). - Namespace(c.ns). - Resource("clusters"). - Name(cluster.Name). - Body(cluster). - Do(). - Into(result) - return -} - -// Delete takes name of the cluster and deletes it. Returns an error if one occurs. -func (c *clusters) Delete(name string, options *v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("clusters"). - Name(name). - Body(options). - Do(). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *clusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { - var timeout time.Duration - if listOptions.TimeoutSeconds != nil { - timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("clusters"). - VersionedParams(&listOptions, scheme.ParameterCodec). - Timeout(timeout). - Body(options). - Do(). - Error() -} - -// Patch applies the patch and returns the patched cluster. -func (c *clusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Cluster, err error) { - result = &v1alpha1.Cluster{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("clusters"). - SubResource(subresources...). - Name(name). - Body(data). - Do(). - Into(result) - return -} diff --git a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/doc.go b/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/doc.go deleted file mode 100644 index 54eabf9454..0000000000 --- a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/BUILD.bazel b/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/BUILD.bazel deleted file mode 100644 index cbef8800e0..0000000000 --- a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "doc.go", - "fake_cluster.go", - "fake_instancegroup.go", - "fake_kops_client.go", - "fake_sshcredential.go", - ], - importpath = "k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake", - visibility = ["//visibility:public"], - deps = [ - "//pkg/apis/kops/v1alpha1:go_default_library", - "//pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/labels:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/watch:go_default_library", - "//vendor/k8s.io/client-go/rest:go_default_library", - "//vendor/k8s.io/client-go/testing:go_default_library", - ], -) diff --git a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/doc.go b/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/doc.go deleted file mode 100644 index 0243e68ff4..0000000000 --- a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/fake_cluster.go b/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/fake_cluster.go deleted file mode 100644 index fe8b5c32bd..0000000000 --- a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/fake_cluster.go +++ /dev/null @@ -1,128 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" -) - -// FakeClusters implements ClusterInterface -type FakeClusters struct { - Fake *FakeKopsV1alpha1 - ns string -} - -var clustersResource = schema.GroupVersionResource{Group: "kops.k8s.io", Version: "v1alpha1", Resource: "clusters"} - -var clustersKind = schema.GroupVersionKind{Group: "kops.k8s.io", Version: "v1alpha1", Kind: "Cluster"} - -// Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any. -func (c *FakeClusters) Get(name string, options v1.GetOptions) (result *v1alpha1.Cluster, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(clustersResource, c.ns, name), &v1alpha1.Cluster{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Cluster), err -} - -// List takes label and field selectors, and returns the list of Clusters that match those selectors. -func (c *FakeClusters) List(opts v1.ListOptions) (result *v1alpha1.ClusterList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(clustersResource, clustersKind, c.ns, opts), &v1alpha1.ClusterList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ClusterList{ListMeta: obj.(*v1alpha1.ClusterList).ListMeta} - for _, item := range obj.(*v1alpha1.ClusterList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested clusters. -func (c *FakeClusters) Watch(opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(clustersResource, c.ns, opts)) - -} - -// Create takes the representation of a cluster and creates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *FakeClusters) Create(cluster *v1alpha1.Cluster) (result *v1alpha1.Cluster, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(clustersResource, c.ns, cluster), &v1alpha1.Cluster{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Cluster), err -} - -// Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *FakeClusters) Update(cluster *v1alpha1.Cluster) (result *v1alpha1.Cluster, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(clustersResource, c.ns, cluster), &v1alpha1.Cluster{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Cluster), err -} - -// Delete takes name of the cluster and deletes it. Returns an error if one occurs. -func (c *FakeClusters) Delete(name string, options *v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteAction(clustersResource, c.ns, name), &v1alpha1.Cluster{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(clustersResource, c.ns, listOptions) - - _, err := c.Fake.Invokes(action, &v1alpha1.ClusterList{}) - return err -} - -// Patch applies the patch and returns the patched cluster. -func (c *FakeClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Cluster, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(clustersResource, c.ns, name, pt, data, subresources...), &v1alpha1.Cluster{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Cluster), err -} diff --git a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/fake_instancegroup.go b/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/fake_instancegroup.go deleted file mode 100644 index 36d049f84d..0000000000 --- a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/fake_instancegroup.go +++ /dev/null @@ -1,128 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" -) - -// FakeInstanceGroups implements InstanceGroupInterface -type FakeInstanceGroups struct { - Fake *FakeKopsV1alpha1 - ns string -} - -var instancegroupsResource = schema.GroupVersionResource{Group: "kops.k8s.io", Version: "v1alpha1", Resource: "instancegroups"} - -var instancegroupsKind = schema.GroupVersionKind{Group: "kops.k8s.io", Version: "v1alpha1", Kind: "InstanceGroup"} - -// Get takes name of the instanceGroup, and returns the corresponding instanceGroup object, and an error if there is any. -func (c *FakeInstanceGroups) Get(name string, options v1.GetOptions) (result *v1alpha1.InstanceGroup, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(instancegroupsResource, c.ns, name), &v1alpha1.InstanceGroup{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.InstanceGroup), err -} - -// List takes label and field selectors, and returns the list of InstanceGroups that match those selectors. -func (c *FakeInstanceGroups) List(opts v1.ListOptions) (result *v1alpha1.InstanceGroupList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(instancegroupsResource, instancegroupsKind, c.ns, opts), &v1alpha1.InstanceGroupList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.InstanceGroupList{ListMeta: obj.(*v1alpha1.InstanceGroupList).ListMeta} - for _, item := range obj.(*v1alpha1.InstanceGroupList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested instanceGroups. -func (c *FakeInstanceGroups) Watch(opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(instancegroupsResource, c.ns, opts)) - -} - -// Create takes the representation of a instanceGroup and creates it. Returns the server's representation of the instanceGroup, and an error, if there is any. -func (c *FakeInstanceGroups) Create(instanceGroup *v1alpha1.InstanceGroup) (result *v1alpha1.InstanceGroup, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(instancegroupsResource, c.ns, instanceGroup), &v1alpha1.InstanceGroup{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.InstanceGroup), err -} - -// Update takes the representation of a instanceGroup and updates it. Returns the server's representation of the instanceGroup, and an error, if there is any. -func (c *FakeInstanceGroups) Update(instanceGroup *v1alpha1.InstanceGroup) (result *v1alpha1.InstanceGroup, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(instancegroupsResource, c.ns, instanceGroup), &v1alpha1.InstanceGroup{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.InstanceGroup), err -} - -// Delete takes name of the instanceGroup and deletes it. Returns an error if one occurs. -func (c *FakeInstanceGroups) Delete(name string, options *v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteAction(instancegroupsResource, c.ns, name), &v1alpha1.InstanceGroup{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeInstanceGroups) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(instancegroupsResource, c.ns, listOptions) - - _, err := c.Fake.Invokes(action, &v1alpha1.InstanceGroupList{}) - return err -} - -// Patch applies the patch and returns the patched instanceGroup. -func (c *FakeInstanceGroups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.InstanceGroup, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(instancegroupsResource, c.ns, name, pt, data, subresources...), &v1alpha1.InstanceGroup{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.InstanceGroup), err -} diff --git a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/fake_kops_client.go b/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/fake_kops_client.go deleted file mode 100644 index 33d917c8f2..0000000000 --- a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/fake_kops_client.go +++ /dev/null @@ -1,48 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" - v1alpha1 "k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1" -) - -type FakeKopsV1alpha1 struct { - *testing.Fake -} - -func (c *FakeKopsV1alpha1) Clusters(namespace string) v1alpha1.ClusterInterface { - return &FakeClusters{c, namespace} -} - -func (c *FakeKopsV1alpha1) InstanceGroups(namespace string) v1alpha1.InstanceGroupInterface { - return &FakeInstanceGroups{c, namespace} -} - -func (c *FakeKopsV1alpha1) SSHCredentials(namespace string) v1alpha1.SSHCredentialInterface { - return &FakeSSHCredentials{c, namespace} -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeKopsV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/fake_sshcredential.go b/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/fake_sshcredential.go deleted file mode 100644 index 1c9da6ed05..0000000000 --- a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/fake/fake_sshcredential.go +++ /dev/null @@ -1,128 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" -) - -// FakeSSHCredentials implements SSHCredentialInterface -type FakeSSHCredentials struct { - Fake *FakeKopsV1alpha1 - ns string -} - -var sshcredentialsResource = schema.GroupVersionResource{Group: "kops.k8s.io", Version: "v1alpha1", Resource: "sshcredentials"} - -var sshcredentialsKind = schema.GroupVersionKind{Group: "kops.k8s.io", Version: "v1alpha1", Kind: "SSHCredential"} - -// Get takes name of the sSHCredential, and returns the corresponding sSHCredential object, and an error if there is any. -func (c *FakeSSHCredentials) Get(name string, options v1.GetOptions) (result *v1alpha1.SSHCredential, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(sshcredentialsResource, c.ns, name), &v1alpha1.SSHCredential{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SSHCredential), err -} - -// List takes label and field selectors, and returns the list of SSHCredentials that match those selectors. -func (c *FakeSSHCredentials) List(opts v1.ListOptions) (result *v1alpha1.SSHCredentialList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(sshcredentialsResource, sshcredentialsKind, c.ns, opts), &v1alpha1.SSHCredentialList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.SSHCredentialList{ListMeta: obj.(*v1alpha1.SSHCredentialList).ListMeta} - for _, item := range obj.(*v1alpha1.SSHCredentialList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested sSHCredentials. -func (c *FakeSSHCredentials) Watch(opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(sshcredentialsResource, c.ns, opts)) - -} - -// Create takes the representation of a sSHCredential and creates it. Returns the server's representation of the sSHCredential, and an error, if there is any. -func (c *FakeSSHCredentials) Create(sSHCredential *v1alpha1.SSHCredential) (result *v1alpha1.SSHCredential, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(sshcredentialsResource, c.ns, sSHCredential), &v1alpha1.SSHCredential{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SSHCredential), err -} - -// Update takes the representation of a sSHCredential and updates it. Returns the server's representation of the sSHCredential, and an error, if there is any. -func (c *FakeSSHCredentials) Update(sSHCredential *v1alpha1.SSHCredential) (result *v1alpha1.SSHCredential, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(sshcredentialsResource, c.ns, sSHCredential), &v1alpha1.SSHCredential{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SSHCredential), err -} - -// Delete takes name of the sSHCredential and deletes it. Returns an error if one occurs. -func (c *FakeSSHCredentials) Delete(name string, options *v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteAction(sshcredentialsResource, c.ns, name), &v1alpha1.SSHCredential{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSSHCredentials) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(sshcredentialsResource, c.ns, listOptions) - - _, err := c.Fake.Invokes(action, &v1alpha1.SSHCredentialList{}) - return err -} - -// Patch applies the patch and returns the patched sSHCredential. -func (c *FakeSSHCredentials) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.SSHCredential, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(sshcredentialsResource, c.ns, name, pt, data, subresources...), &v1alpha1.SSHCredential{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SSHCredential), err -} diff --git a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/generated_expansion.go b/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/generated_expansion.go deleted file mode 100644 index 4973b4d380..0000000000 --- a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,25 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -type ClusterExpansion interface{} - -type InstanceGroupExpansion interface{} - -type SSHCredentialExpansion interface{} diff --git a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/instancegroup.go b/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/instancegroup.go deleted file mode 100644 index aef181c9fb..0000000000 --- a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/instancegroup.go +++ /dev/null @@ -1,174 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "time" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" - scheme "k8s.io/kops/pkg/client/clientset_generated/internalclientset/scheme" -) - -// InstanceGroupsGetter has a method to return a InstanceGroupInterface. -// A group's client should implement this interface. -type InstanceGroupsGetter interface { - InstanceGroups(namespace string) InstanceGroupInterface -} - -// InstanceGroupInterface has methods to work with InstanceGroup resources. -type InstanceGroupInterface interface { - Create(*v1alpha1.InstanceGroup) (*v1alpha1.InstanceGroup, error) - Update(*v1alpha1.InstanceGroup) (*v1alpha1.InstanceGroup, error) - Delete(name string, options *v1.DeleteOptions) error - DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error - Get(name string, options v1.GetOptions) (*v1alpha1.InstanceGroup, error) - List(opts v1.ListOptions) (*v1alpha1.InstanceGroupList, error) - Watch(opts v1.ListOptions) (watch.Interface, error) - Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.InstanceGroup, err error) - InstanceGroupExpansion -} - -// instanceGroups implements InstanceGroupInterface -type instanceGroups struct { - client rest.Interface - ns string -} - -// newInstanceGroups returns a InstanceGroups -func newInstanceGroups(c *KopsV1alpha1Client, namespace string) *instanceGroups { - return &instanceGroups{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the instanceGroup, and returns the corresponding instanceGroup object, and an error if there is any. -func (c *instanceGroups) Get(name string, options v1.GetOptions) (result *v1alpha1.InstanceGroup, err error) { - result = &v1alpha1.InstanceGroup{} - err = c.client.Get(). - Namespace(c.ns). - Resource("instancegroups"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of InstanceGroups that match those selectors. -func (c *instanceGroups) List(opts v1.ListOptions) (result *v1alpha1.InstanceGroupList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.InstanceGroupList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("instancegroups"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested instanceGroups. -func (c *instanceGroups) Watch(opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("instancegroups"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch() -} - -// Create takes the representation of a instanceGroup and creates it. Returns the server's representation of the instanceGroup, and an error, if there is any. -func (c *instanceGroups) Create(instanceGroup *v1alpha1.InstanceGroup) (result *v1alpha1.InstanceGroup, err error) { - result = &v1alpha1.InstanceGroup{} - err = c.client.Post(). - Namespace(c.ns). - Resource("instancegroups"). - Body(instanceGroup). - Do(). - Into(result) - return -} - -// Update takes the representation of a instanceGroup and updates it. Returns the server's representation of the instanceGroup, and an error, if there is any. -func (c *instanceGroups) Update(instanceGroup *v1alpha1.InstanceGroup) (result *v1alpha1.InstanceGroup, err error) { - result = &v1alpha1.InstanceGroup{} - err = c.client.Put(). - Namespace(c.ns). - Resource("instancegroups"). - Name(instanceGroup.Name). - Body(instanceGroup). - Do(). - Into(result) - return -} - -// Delete takes name of the instanceGroup and deletes it. Returns an error if one occurs. -func (c *instanceGroups) Delete(name string, options *v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("instancegroups"). - Name(name). - Body(options). - Do(). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *instanceGroups) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { - var timeout time.Duration - if listOptions.TimeoutSeconds != nil { - timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("instancegroups"). - VersionedParams(&listOptions, scheme.ParameterCodec). - Timeout(timeout). - Body(options). - Do(). - Error() -} - -// Patch applies the patch and returns the patched instanceGroup. -func (c *instanceGroups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.InstanceGroup, err error) { - result = &v1alpha1.InstanceGroup{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("instancegroups"). - SubResource(subresources...). - Name(name). - Body(data). - Do(). - Into(result) - return -} diff --git a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/kops_client.go b/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/kops_client.go deleted file mode 100644 index f2062532a1..0000000000 --- a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/kops_client.go +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - rest "k8s.io/client-go/rest" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" - "k8s.io/kops/pkg/client/clientset_generated/internalclientset/scheme" -) - -type KopsV1alpha1Interface interface { - RESTClient() rest.Interface - ClustersGetter - InstanceGroupsGetter - SSHCredentialsGetter -} - -// KopsV1alpha1Client is used to interact with features provided by the kops.k8s.io group. -type KopsV1alpha1Client struct { - restClient rest.Interface -} - -func (c *KopsV1alpha1Client) Clusters(namespace string) ClusterInterface { - return newClusters(c, namespace) -} - -func (c *KopsV1alpha1Client) InstanceGroups(namespace string) InstanceGroupInterface { - return newInstanceGroups(c, namespace) -} - -func (c *KopsV1alpha1Client) SSHCredentials(namespace string) SSHCredentialInterface { - return newSSHCredentials(c, namespace) -} - -// NewForConfig creates a new KopsV1alpha1Client for the given config. -func NewForConfig(c *rest.Config) (*KopsV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientFor(&config) - if err != nil { - return nil, err - } - return &KopsV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new KopsV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *KopsV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new KopsV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *KopsV1alpha1Client { - return &KopsV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *KopsV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/sshcredential.go b/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/sshcredential.go deleted file mode 100644 index 226b5cfe95..0000000000 --- a/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha1/sshcredential.go +++ /dev/null @@ -1,174 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. - -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. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "time" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" - v1alpha1 "k8s.io/kops/pkg/apis/kops/v1alpha1" - scheme "k8s.io/kops/pkg/client/clientset_generated/internalclientset/scheme" -) - -// SSHCredentialsGetter has a method to return a SSHCredentialInterface. -// A group's client should implement this interface. -type SSHCredentialsGetter interface { - SSHCredentials(namespace string) SSHCredentialInterface -} - -// SSHCredentialInterface has methods to work with SSHCredential resources. -type SSHCredentialInterface interface { - Create(*v1alpha1.SSHCredential) (*v1alpha1.SSHCredential, error) - Update(*v1alpha1.SSHCredential) (*v1alpha1.SSHCredential, error) - Delete(name string, options *v1.DeleteOptions) error - DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error - Get(name string, options v1.GetOptions) (*v1alpha1.SSHCredential, error) - List(opts v1.ListOptions) (*v1alpha1.SSHCredentialList, error) - Watch(opts v1.ListOptions) (watch.Interface, error) - Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.SSHCredential, err error) - SSHCredentialExpansion -} - -// sSHCredentials implements SSHCredentialInterface -type sSHCredentials struct { - client rest.Interface - ns string -} - -// newSSHCredentials returns a SSHCredentials -func newSSHCredentials(c *KopsV1alpha1Client, namespace string) *sSHCredentials { - return &sSHCredentials{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the sSHCredential, and returns the corresponding sSHCredential object, and an error if there is any. -func (c *sSHCredentials) Get(name string, options v1.GetOptions) (result *v1alpha1.SSHCredential, err error) { - result = &v1alpha1.SSHCredential{} - err = c.client.Get(). - Namespace(c.ns). - Resource("sshcredentials"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of SSHCredentials that match those selectors. -func (c *sSHCredentials) List(opts v1.ListOptions) (result *v1alpha1.SSHCredentialList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.SSHCredentialList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("sshcredentials"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested sSHCredentials. -func (c *sSHCredentials) Watch(opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("sshcredentials"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch() -} - -// Create takes the representation of a sSHCredential and creates it. Returns the server's representation of the sSHCredential, and an error, if there is any. -func (c *sSHCredentials) Create(sSHCredential *v1alpha1.SSHCredential) (result *v1alpha1.SSHCredential, err error) { - result = &v1alpha1.SSHCredential{} - err = c.client.Post(). - Namespace(c.ns). - Resource("sshcredentials"). - Body(sSHCredential). - Do(). - Into(result) - return -} - -// Update takes the representation of a sSHCredential and updates it. Returns the server's representation of the sSHCredential, and an error, if there is any. -func (c *sSHCredentials) Update(sSHCredential *v1alpha1.SSHCredential) (result *v1alpha1.SSHCredential, err error) { - result = &v1alpha1.SSHCredential{} - err = c.client.Put(). - Namespace(c.ns). - Resource("sshcredentials"). - Name(sSHCredential.Name). - Body(sSHCredential). - Do(). - Into(result) - return -} - -// Delete takes name of the sSHCredential and deletes it. Returns an error if one occurs. -func (c *sSHCredentials) Delete(name string, options *v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("sshcredentials"). - Name(name). - Body(options). - Do(). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *sSHCredentials) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { - var timeout time.Duration - if listOptions.TimeoutSeconds != nil { - timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("sshcredentials"). - VersionedParams(&listOptions, scheme.ParameterCodec). - Timeout(timeout). - Body(options). - Do(). - Error() -} - -// Patch applies the patch and returns the patched sSHCredential. -func (c *sSHCredentials) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.SSHCredential, err error) { - result = &v1alpha1.SSHCredential{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("sshcredentials"). - SubResource(subresources...). - Name(name). - Body(data). - Do(). - Into(result) - return -} diff --git a/pkg/client/simple/vfsclientset/BUILD.bazel b/pkg/client/simple/vfsclientset/BUILD.bazel index bf1ddcefdc..e5172c4a98 100644 --- a/pkg/client/simple/vfsclientset/BUILD.bazel +++ b/pkg/client/simple/vfsclientset/BUILD.bazel @@ -15,7 +15,6 @@ go_library( "//pkg/acls:go_default_library", "//pkg/apis/kops:go_default_library", "//pkg/apis/kops/registry:go_default_library", - "//pkg/apis/kops/v1alpha1:go_default_library", "//pkg/apis/kops/v1alpha2:go_default_library", "//pkg/apis/kops/validation:go_default_library", "//pkg/client/clientset_generated/clientset/typed/kops/internalversion:go_default_library", diff --git a/pkg/client/simple/vfsclientset/cluster.go b/pkg/client/simple/vfsclientset/cluster.go index a895951186..f35e194d55 100644 --- a/pkg/client/simple/vfsclientset/cluster.go +++ b/pkg/client/simple/vfsclientset/cluster.go @@ -32,7 +32,6 @@ import ( "k8s.io/klog" api "k8s.io/kops/pkg/apis/kops" "k8s.io/kops/pkg/apis/kops/registry" - "k8s.io/kops/pkg/apis/kops/v1alpha1" "k8s.io/kops/pkg/apis/kops/validation" "k8s.io/kops/util/pkg/vfs" ) @@ -44,8 +43,6 @@ type ClusterVFS struct { func newClusterVFS(basePath vfs.Path) *ClusterVFS { c := &ClusterVFS{} c.init("Cluster", basePath, StoreVersion) - defaultReadVersion := v1alpha1.SchemeGroupVersion.WithKind("Cluster") - c.defaultReadVersion = &defaultReadVersion return c } diff --git a/pkg/client/simple/vfsclientset/commonvfs.go b/pkg/client/simple/vfsclientset/commonvfs.go index db2c24b949..bcbcfefb66 100644 --- a/pkg/client/simple/vfsclientset/commonvfs.go +++ b/pkg/client/simple/vfsclientset/commonvfs.go @@ -27,7 +27,6 @@ import ( "k8s.io/apimachinery/pkg/api/meta" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/klog" "k8s.io/kops/pkg/acls" "k8s.io/kops/pkg/apis/kops" @@ -41,11 +40,10 @@ var StoreVersion = v1alpha2.SchemeGroupVersion type ValidationFunction func(o runtime.Object) error type commonVFS struct { - kind string - basePath vfs.Path - encoder runtime.Encoder - defaultReadVersion *schema.GroupVersionKind - validate ValidationFunction + kind string + basePath vfs.Path + encoder runtime.Encoder + validate ValidationFunction } func (c *commonVFS) init(kind string, basePath vfs.Path, storeVersion runtime.GroupVersioner) { @@ -123,7 +121,7 @@ func (c *commonVFS) readConfig(configPath vfs.Path) (runtime.Object, error) { return nil, fmt.Errorf("error reading %s: %v", configPath, err) } - object, _, err := kopscodecs.Decode(data, c.defaultReadVersion) + object, _, err := kopscodecs.Decode(data, nil) if err != nil { return nil, fmt.Errorf("error parsing %s: %v", configPath, err) } diff --git a/pkg/client/simple/vfsclientset/instancegroup.go b/pkg/client/simple/vfsclientset/instancegroup.go index 1dd8f8aa35..fa7848eb39 100644 --- a/pkg/client/simple/vfsclientset/instancegroup.go +++ b/pkg/client/simple/vfsclientset/instancegroup.go @@ -28,7 +28,6 @@ import ( "k8s.io/apimachinery/pkg/watch" "k8s.io/klog" kopsapi "k8s.io/kops/pkg/apis/kops" - "k8s.io/kops/pkg/apis/kops/v1alpha1" "k8s.io/kops/pkg/apis/kops/validation" kopsinternalversion "k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/internalversion" "k8s.io/kops/util/pkg/vfs" @@ -60,8 +59,6 @@ func NewInstanceGroupMirror(cluster *kopsapi.Cluster, configBase vfs.Path) Insta clusterName: clusterName, } r.init(kind, configBase.Join("instancegroup"), StoreVersion) - defaultReadVersion := v1alpha1.SchemeGroupVersion.WithKind(kind) - r.defaultReadVersion = &defaultReadVersion r.validate = func(o runtime.Object) error { return validation.ValidateInstanceGroup(o.(*kopsapi.InstanceGroup)).ToAggregate() } @@ -81,8 +78,6 @@ func newInstanceGroupVFS(c *VFSClientset, cluster *kopsapi.Cluster) *InstanceGro clusterName: clusterName, } r.init(kind, c.basePath.Join(clusterName, "instancegroup"), StoreVersion) - defaultReadVersion := v1alpha1.SchemeGroupVersion.WithKind(kind) - r.defaultReadVersion = &defaultReadVersion r.validate = func(o runtime.Object) error { return validation.ValidateInstanceGroup(o.(*kopsapi.InstanceGroup)).ToAggregate() } diff --git a/pkg/kopscodecs/codecs.go b/pkg/kopscodecs/codecs.go index 8186504c5f..e4a6d9d811 100644 --- a/pkg/kopscodecs/codecs.go +++ b/pkg/kopscodecs/codecs.go @@ -106,14 +106,6 @@ func rewriteAPIGroup(y []byte) []byte { continue } - { - re := regexp.MustCompile("kops/v1alpha1") - if re.Match(lines[i]) { - lines[i] = re.ReplaceAllLiteral(lines[i], []byte("kops.k8s.io/v1alpha1")) - changed = true - } - } - { re := regexp.MustCompile("kops/v1alpha2") lines[i] = re.ReplaceAllLiteral(lines[i], []byte("kops.k8s.io/v1alpha2")) diff --git a/tests/integration/conversion/BUILD.bazel b/tests/integration/conversion/BUILD.bazel index f5c3509361..a4bd5ab741 100644 --- a/tests/integration/conversion/BUILD.bazel +++ b/tests/integration/conversion/BUILD.bazel @@ -7,12 +7,10 @@ go_test( "exported_testdata", # keep ], deps = [ - "//pkg/apis/kops/v1alpha1:go_default_library", "//pkg/apis/kops/v1alpha2:go_default_library", "//pkg/diff:go_default_library", "//pkg/kopscodecs:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", - "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", ], ) diff --git a/tests/integration/conversion/integration_test.go b/tests/integration/conversion/integration_test.go index dc72cde988..2fc092e1c7 100644 --- a/tests/integration/conversion/integration_test.go +++ b/tests/integration/conversion/integration_test.go @@ -24,8 +24,6 @@ import ( "testing" "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" - "k8s.io/kops/pkg/apis/kops/v1alpha1" "k8s.io/kops/pkg/apis/kops/v1alpha2" "k8s.io/kops/pkg/diff" "k8s.io/kops/pkg/kopscodecs" @@ -33,16 +31,6 @@ import ( // TestConversionMinimal runs the test on a minimum configuration, similar to kops create cluster minimal.example.com --zones us-west-1a func TestConversionMinimal(t *testing.T) { - runTest(t, "minimal", "v1alpha1", "v1alpha2") - runTest(t, "minimal", "v1alpha2", "v1alpha1") - - runTest(t, "minimal", "v1alpha0", "v1alpha1") - runTest(t, "minimal", "v1alpha0", "v1alpha2") - - runTest(t, "minimal", "legacy-v1alpha1", "v1alpha1") - runTest(t, "minimal", "legacy-v1alpha1", "v1alpha2") - - runTest(t, "minimal", "legacy-v1alpha2", "v1alpha1") runTest(t, "minimal", "legacy-v1alpha2", "v1alpha2") } @@ -59,11 +47,6 @@ func runTest(t *testing.T, srcDir string, fromVersion string, toVersion string) t.Fatalf("unexpected error reading expectedPath %q: %v", expectedPath, err) } - defaults := &schema.GroupVersionKind{ - Group: v1alpha1.SchemeGroupVersion.Group, - Version: v1alpha1.SchemeGroupVersion.Version, - } - yaml, ok := runtime.SerializerInfoForMediaType(kopscodecs.Codecs.SupportedMediaTypes(), "application/yaml") if !ok { t.Fatalf("no YAML serializer registered") @@ -71,8 +54,6 @@ func runTest(t *testing.T, srcDir string, fromVersion string, toVersion string) var encoder runtime.Encoder switch toVersion { - case "v1alpha1": - encoder = kopscodecs.Codecs.EncoderForVersion(yaml.Serializer, v1alpha1.SchemeGroupVersion) case "v1alpha2": encoder = kopscodecs.Codecs.EncoderForVersion(yaml.Serializer, v1alpha2.SchemeGroupVersion) @@ -83,7 +64,7 @@ func runTest(t *testing.T, srcDir string, fromVersion string, toVersion string) var actual []string for _, s := range strings.Split(string(sourceBytes), "\n---\n") { - o, gvk, err := kopscodecs.Decode([]byte(s), defaults) + o, gvk, err := kopscodecs.Decode([]byte(s), nil) if err != nil { t.Fatalf("error parsing file %q: %v", sourcePath, err) } diff --git a/tests/integration/conversion/minimal/legacy-v1alpha1.yaml b/tests/integration/conversion/minimal/legacy-v1alpha1.yaml deleted file mode 100644 index 099bcdf11d..0000000000 --- a/tests/integration/conversion/minimal/legacy-v1alpha1.yaml +++ /dev/null @@ -1,89 +0,0 @@ -apiVersion: kops/v1alpha1 -kind: Cluster -metadata: - creationTimestamp: "2016-12-10T22:42:27Z" - name: minimal.example.com -spec: - additionalSans: - - proxy.api.minimal.example.com - addons: - - manifest: s3://somebucket/example.yaml - adminAccess: - - 0.0.0.0/0 - api: - dns: {} - authorization: - alwaysAllow: {} - channel: stable - cloudProvider: aws - configBase: memfs://clusters.example.com/minimal.example.com - etcdClusters: - - cpuRequest: 200m - etcdMembers: - - name: us-test-1a - zone: us-test-1a - memoryRequest: 100Mi - name: main - - cpuRequest: 200m - etcdMembers: - - name: us-test-1a - zone: us-test-1a - memoryRequest: 100Mi - name: events - iam: - legacy: true - kubernetesVersion: v1.14.0 - masterInternalName: api.internal.minimal.example.com - masterPublicName: api.minimal.example.com - networkCIDR: 172.20.0.0/16 - networking: - kubenet: {} - nonMasqueradeCIDR: 100.64.0.0/10 - topology: - dns: - type: Public - masters: public - nodes: public - zones: - - cidr: 172.20.32.0/19 - name: us-test-1a - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-10T22:42:28Z" - labels: - kops.k8s.io/cluster: minimal.example.com - name: nodes -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.medium - maxSize: 2 - minSize: 2 - role: Node - zones: - - us-test-1a - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-10T22:42:28Z" - labels: - kops.k8s.io/cluster: minimal.example.com - name: master-us-test-1a -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: m3.medium - maxSize: 1 - minSize: 1 - role: Master - zones: - - us-test-1a - - diff --git a/tests/integration/conversion/minimal/v1alpha0.yaml b/tests/integration/conversion/minimal/v1alpha0.yaml deleted file mode 100644 index 5a3ade302d..0000000000 --- a/tests/integration/conversion/minimal/v1alpha0.yaml +++ /dev/null @@ -1,81 +0,0 @@ -kind: Cluster -metadata: - creationTimestamp: "2016-12-10T22:42:27Z" - name: minimal.example.com -spec: - additionalSans: - - proxy.api.minimal.example.com - addons: - - manifest: s3://somebucket/example.yaml - adminAccess: - - 0.0.0.0/0 - channel: stable - cloudProvider: aws - configBase: memfs://clusters.example.com/minimal.example.com - etcdClusters: - - cpuRequest: 200m - etcdMembers: - - name: us-test-1a - zone: us-test-1a - memoryRequest: 100Mi - name: main - - cpuRequest: 200m - etcdMembers: - - name: us-test-1a - zone: us-test-1a - memoryRequest: 100Mi - name: events - kubernetesVersion: v1.14.0 - masterInternalName: api.internal.minimal.example.com - masterPublicName: api.minimal.example.com - networkCIDR: 172.20.0.0/16 - networking: - kubenet: {} - nonMasqueradeCIDR: 100.64.0.0/10 - topology: - bastion: - idleTimeout: 120 - machineType: t2.medium - dns: - type: Public - masters: public - nodes: public - zones: - - cidr: 172.20.32.0/19 - name: us-test-1a - ---- - -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-10T22:42:28Z" - name: nodes - labels: - kops.k8s.io/cluster: minimal.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.medium - maxSize: 2 - minSize: 2 - role: Node - zones: - - us-test-1a - ---- - -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-10T22:42:28Z" - name: master-us-test-1a - labels: - kops.k8s.io/cluster: minimal.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: m3.medium - maxSize: 1 - minSize: 1 - role: Master - zones: - - us-test-1a diff --git a/tests/integration/conversion/minimal/v1alpha1.yaml b/tests/integration/conversion/minimal/v1alpha1.yaml deleted file mode 100644 index c80432a93f..0000000000 --- a/tests/integration/conversion/minimal/v1alpha1.yaml +++ /dev/null @@ -1,87 +0,0 @@ -apiVersion: kops.k8s.io/v1alpha1 -kind: Cluster -metadata: - creationTimestamp: "2016-12-10T22:42:27Z" - name: minimal.example.com -spec: - additionalSans: - - proxy.api.minimal.example.com - addons: - - manifest: s3://somebucket/example.yaml - adminAccess: - - 0.0.0.0/0 - api: - dns: {} - authorization: - alwaysAllow: {} - channel: stable - cloudProvider: aws - configBase: memfs://clusters.example.com/minimal.example.com - etcdClusters: - - cpuRequest: 200m - etcdMembers: - - name: us-test-1a - zone: us-test-1a - memoryRequest: 100Mi - name: main - - cpuRequest: 200m - etcdMembers: - - name: us-test-1a - zone: us-test-1a - memoryRequest: 100Mi - name: events - iam: - legacy: true - kubernetesVersion: v1.14.0 - masterInternalName: api.internal.minimal.example.com - masterPublicName: api.minimal.example.com - networkCIDR: 172.20.0.0/16 - networking: - kubenet: {} - nonMasqueradeCIDR: 100.64.0.0/10 - topology: - dns: - type: Public - masters: public - nodes: public - zones: - - cidr: 172.20.32.0/19 - name: us-test-1a - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-10T22:42:28Z" - labels: - kops.k8s.io/cluster: minimal.example.com - name: nodes -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.medium - maxSize: 2 - minSize: 2 - role: Node - zones: - - us-test-1a - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-10T22:42:28Z" - labels: - kops.k8s.io/cluster: minimal.example.com - name: master-us-test-1a -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: m3.medium - maxSize: 1 - minSize: 1 - role: Master - zones: - - us-test-1a diff --git a/tests/integration/update_cluster/ha/in-v1alpha1.yaml b/tests/integration/update_cluster/ha/in-v1alpha1.yaml deleted file mode 100644 index bcc516744c..0000000000 --- a/tests/integration/update_cluster/ha/in-v1alpha1.yaml +++ /dev/null @@ -1,122 +0,0 @@ -apiVersion: kops.k8s.io/v1alpha1 -kind: Cluster -metadata: - creationTimestamp: "2017-01-01T00:00:00Z" - name: ha.example.com -spec: - adminAccess: - - 0.0.0.0/0 - api: - dns: {} - channel: stable - cloudProvider: aws - configBase: memfs://tests/ha.example.com - etcdClusters: - - etcdMembers: - - name: a - zone: us-test-1a - - name: b - zone: us-test-1b - - name: c - zone: us-test-1c - name: main - - etcdMembers: - - name: a - zone: us-test-1a - - name: b - zone: us-test-1b - - name: c - zone: us-test-1c - name: events - kubernetesVersion: v1.14.0 - masterPublicName: api.ha.example.com - networkCIDR: 172.20.0.0/16 - networking: - kubenet: {} - nonMasqueradeCIDR: 100.64.0.0/10 - topology: - dns: - type: Public - masters: public - nodes: public - zones: - - cidr: 172.20.32.0/19 - name: us-test-1a - - cidr: 172.20.64.0/19 - name: us-test-1b - - cidr: 172.20.96.0/19 - name: us-test-1c - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2017-01-01T00:00:00Z" - labels: - kops.k8s.io/cluster: ha.example.com - name: master-us-test-1a -spec: - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: m3.medium - maxSize: 1 - minSize: 1 - role: Master - zones: - - us-test-1a - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2017-01-01T00:00:00Z" - labels: - kops.k8s.io/cluster: ha.example.com - name: master-us-test-1b -spec: - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: m3.medium - maxSize: 1 - minSize: 1 - role: Master - zones: - - us-test-1b - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2017-01-01T00:00:00Z" - labels: - kops.k8s.io/cluster: ha.example.com - name: master-us-test-1c -spec: - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: m3.medium - maxSize: 1 - minSize: 1 - role: Master - zones: - - us-test-1c - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2017-01-01T00:00:00Z" - labels: - kops.k8s.io/cluster: ha.example.com - name: nodes -spec: - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.medium - maxSize: 2 - minSize: 2 - role: Node - zones: - - us-test-1a - - us-test-1b - - us-test-1c diff --git a/tests/integration/update_cluster/minimal-141/id_rsa.pub b/tests/integration/update_cluster/minimal-141/id_rsa.pub deleted file mode 100755 index 81cb012783..0000000000 --- a/tests/integration/update_cluster/minimal-141/id_rsa.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCtWu40XQo8dczLsCq0OWV+hxm9uV3WxeH9Kgh4sMzQxNtoU1pvW0XdjpkBesRKGoolfWeCLXWxpyQb1IaiMkKoz7MdhQ/6UKjMjP66aFWWp3pwD0uj0HuJ7tq4gKHKRYGTaZIRWpzUiANBrjugVgA+Sd7E/mYwc/DMXkIyRZbvhQ== diff --git a/tests/integration/update_cluster/minimal-141/in-v1alpha0.yaml b/tests/integration/update_cluster/minimal-141/in-v1alpha0.yaml deleted file mode 100644 index e429d45aba..0000000000 --- a/tests/integration/update_cluster/minimal-141/in-v1alpha0.yaml +++ /dev/null @@ -1,64 +0,0 @@ -kind: Cluster -metadata: - creationTimestamp: "2016-12-11T05:47:53Z" - name: minimal-141.example.com -spec: - adminAccess: - - 0.0.0.0/0 - channel: stable - cloudProvider: aws - configBase: memfs://clusters.example.com/minimal-141.example.com - etcdClusters: - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: main - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: events - kubernetesVersion: v1.14.0 - masterPublicName: api.minimal-141.example.com - networkCIDR: 172.20.0.0/16 - networking: - kubenet: {} - nonMasqueradeCIDR: 100.64.0.0/10 - zones: - - cidr: 172.20.32.0/19 - name: us-test-1a - ---- - -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-11T05:47:54Z" - name: nodes - labels: - kops.k8s.io/cluster: minimal-141.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.medium - maxSize: 2 - minSize: 2 - role: Node - zones: - - us-test-1a - ---- - -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-11T05:47:54Z" - name: master-us-test-1a - labels: - kops.k8s.io/cluster: minimal-141.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: m3.medium - maxSize: 1 - minSize: 1 - role: Master - zones: - - us-test-1a diff --git a/tests/integration/update_cluster/minimal-141/kubernetes.tf b/tests/integration/update_cluster/minimal-141/kubernetes.tf deleted file mode 100644 index 1920d6d195..0000000000 --- a/tests/integration/update_cluster/minimal-141/kubernetes.tf +++ /dev/null @@ -1,491 +0,0 @@ -locals = { - cluster_name = "minimal-141.example.com" - master_autoscaling_group_ids = ["${aws_autoscaling_group.master-us-test-1a-masters-minimal-141-example-com.id}"] - master_security_group_ids = ["${aws_security_group.masters-minimal-141-example-com.id}"] - masters_role_arn = "${aws_iam_role.masters-minimal-141-example-com.arn}" - masters_role_name = "${aws_iam_role.masters-minimal-141-example-com.name}" - node_autoscaling_group_ids = ["${aws_autoscaling_group.nodes-minimal-141-example-com.id}"] - node_security_group_ids = ["${aws_security_group.nodes-minimal-141-example-com.id}"] - node_subnet_ids = ["${aws_subnet.us-test-1a-minimal-141-example-com.id}"] - nodes_role_arn = "${aws_iam_role.nodes-minimal-141-example-com.arn}" - nodes_role_name = "${aws_iam_role.nodes-minimal-141-example-com.name}" - region = "us-test-1" - route_table_public_id = "${aws_route_table.minimal-141-example-com.id}" - subnet_us-test-1a_id = "${aws_subnet.us-test-1a-minimal-141-example-com.id}" - vpc_cidr_block = "${aws_vpc.minimal-141-example-com.cidr_block}" - vpc_id = "${aws_vpc.minimal-141-example-com.id}" -} - -output "cluster_name" { - value = "minimal-141.example.com" -} - -output "master_autoscaling_group_ids" { - value = ["${aws_autoscaling_group.master-us-test-1a-masters-minimal-141-example-com.id}"] -} - -output "master_security_group_ids" { - value = ["${aws_security_group.masters-minimal-141-example-com.id}"] -} - -output "masters_role_arn" { - value = "${aws_iam_role.masters-minimal-141-example-com.arn}" -} - -output "masters_role_name" { - value = "${aws_iam_role.masters-minimal-141-example-com.name}" -} - -output "node_autoscaling_group_ids" { - value = ["${aws_autoscaling_group.nodes-minimal-141-example-com.id}"] -} - -output "node_security_group_ids" { - value = ["${aws_security_group.nodes-minimal-141-example-com.id}"] -} - -output "node_subnet_ids" { - value = ["${aws_subnet.us-test-1a-minimal-141-example-com.id}"] -} - -output "nodes_role_arn" { - value = "${aws_iam_role.nodes-minimal-141-example-com.arn}" -} - -output "nodes_role_name" { - value = "${aws_iam_role.nodes-minimal-141-example-com.name}" -} - -output "region" { - value = "us-test-1" -} - -output "route_table_public_id" { - value = "${aws_route_table.minimal-141-example-com.id}" -} - -output "subnet_us-test-1a_id" { - value = "${aws_subnet.us-test-1a-minimal-141-example-com.id}" -} - -output "vpc_cidr_block" { - value = "${aws_vpc.minimal-141-example-com.cidr_block}" -} - -output "vpc_id" { - value = "${aws_vpc.minimal-141-example-com.id}" -} - -provider "aws" { - region = "us-test-1" -} - -resource "aws_autoscaling_group" "master-us-test-1a-masters-minimal-141-example-com" { - name = "master-us-test-1a.masters.minimal-141.example.com" - launch_configuration = "${aws_launch_configuration.master-us-test-1a-masters-minimal-141-example-com.id}" - max_size = 1 - min_size = 1 - vpc_zone_identifier = ["${aws_subnet.us-test-1a-minimal-141-example-com.id}"] - - tag = { - key = "KubernetesCluster" - value = "minimal-141.example.com" - propagate_at_launch = true - } - - tag = { - key = "Name" - value = "master-us-test-1a.masters.minimal-141.example.com" - propagate_at_launch = true - } - - tag = { - key = "k8s.io/role/master" - value = "1" - propagate_at_launch = true - } - - tag = { - key = "kops.k8s.io/instancegroup" - value = "master-us-test-1a" - propagate_at_launch = true - } - - tag = { - key = "kubernetes.io/cluster/minimal-141.example.com" - value = "owned" - propagate_at_launch = true - } - - metrics_granularity = "1Minute" - enabled_metrics = ["GroupDesiredCapacity", "GroupInServiceInstances", "GroupMaxSize", "GroupMinSize", "GroupPendingInstances", "GroupStandbyInstances", "GroupTerminatingInstances", "GroupTotalInstances"] -} - -resource "aws_autoscaling_group" "nodes-minimal-141-example-com" { - name = "nodes.minimal-141.example.com" - launch_configuration = "${aws_launch_configuration.nodes-minimal-141-example-com.id}" - max_size = 2 - min_size = 2 - vpc_zone_identifier = ["${aws_subnet.us-test-1a-minimal-141-example-com.id}"] - - tag = { - key = "KubernetesCluster" - value = "minimal-141.example.com" - propagate_at_launch = true - } - - tag = { - key = "Name" - value = "nodes.minimal-141.example.com" - propagate_at_launch = true - } - - tag = { - key = "k8s.io/role/node" - value = "1" - propagate_at_launch = true - } - - tag = { - key = "kops.k8s.io/instancegroup" - value = "nodes" - propagate_at_launch = true - } - - tag = { - key = "kubernetes.io/cluster/minimal-141.example.com" - value = "owned" - propagate_at_launch = true - } - - metrics_granularity = "1Minute" - enabled_metrics = ["GroupDesiredCapacity", "GroupInServiceInstances", "GroupMaxSize", "GroupMinSize", "GroupPendingInstances", "GroupStandbyInstances", "GroupTerminatingInstances", "GroupTotalInstances"] -} - -resource "aws_ebs_volume" "us-test-1a-etcd-events-minimal-141-example-com" { - availability_zone = "us-test-1a" - size = 20 - type = "gp2" - encrypted = false - - tags = { - KubernetesCluster = "minimal-141.example.com" - Name = "us-test-1a.etcd-events.minimal-141.example.com" - "k8s.io/etcd/events" = "us-test-1a/us-test-1a" - "k8s.io/role/master" = "1" - "kubernetes.io/cluster/minimal-141.example.com" = "owned" - } -} - -resource "aws_ebs_volume" "us-test-1a-etcd-main-minimal-141-example-com" { - availability_zone = "us-test-1a" - size = 20 - type = "gp2" - encrypted = false - - tags = { - KubernetesCluster = "minimal-141.example.com" - Name = "us-test-1a.etcd-main.minimal-141.example.com" - "k8s.io/etcd/main" = "us-test-1a/us-test-1a" - "k8s.io/role/master" = "1" - "kubernetes.io/cluster/minimal-141.example.com" = "owned" - } -} - -resource "aws_iam_instance_profile" "masters-minimal-141-example-com" { - name = "masters.minimal-141.example.com" - role = "${aws_iam_role.masters-minimal-141-example-com.name}" -} - -resource "aws_iam_instance_profile" "nodes-minimal-141-example-com" { - name = "nodes.minimal-141.example.com" - role = "${aws_iam_role.nodes-minimal-141-example-com.name}" -} - -resource "aws_iam_role" "masters-minimal-141-example-com" { - name = "masters.minimal-141.example.com" - assume_role_policy = "${file("${path.module}/data/aws_iam_role_masters.minimal-141.example.com_policy")}" -} - -resource "aws_iam_role" "nodes-minimal-141-example-com" { - name = "nodes.minimal-141.example.com" - assume_role_policy = "${file("${path.module}/data/aws_iam_role_nodes.minimal-141.example.com_policy")}" -} - -resource "aws_iam_role_policy" "masters-minimal-141-example-com" { - name = "masters.minimal-141.example.com" - role = "${aws_iam_role.masters-minimal-141-example-com.name}" - policy = "${file("${path.module}/data/aws_iam_role_policy_masters.minimal-141.example.com_policy")}" -} - -resource "aws_iam_role_policy" "nodes-minimal-141-example-com" { - name = "nodes.minimal-141.example.com" - role = "${aws_iam_role.nodes-minimal-141-example-com.name}" - policy = "${file("${path.module}/data/aws_iam_role_policy_nodes.minimal-141.example.com_policy")}" -} - -resource "aws_internet_gateway" "minimal-141-example-com" { - vpc_id = "${aws_vpc.minimal-141-example-com.id}" - - tags = { - KubernetesCluster = "minimal-141.example.com" - Name = "minimal-141.example.com" - "kubernetes.io/cluster/minimal-141.example.com" = "owned" - } -} - -resource "aws_key_pair" "kubernetes-minimal-141-example-com-c4a6ed9aa889b9e2c39cd663eb9c7157" { - key_name = "kubernetes.minimal-141.example.com-c4:a6:ed:9a:a8:89:b9:e2:c3:9c:d6:63:eb:9c:71:57" - public_key = "${file("${path.module}/data/aws_key_pair_kubernetes.minimal-141.example.com-c4a6ed9aa889b9e2c39cd663eb9c7157_public_key")}" -} - -resource "aws_launch_configuration" "master-us-test-1a-masters-minimal-141-example-com" { - name_prefix = "master-us-test-1a.masters.minimal-141.example.com-" - image_id = "ami-12345678" - instance_type = "m3.medium" - key_name = "${aws_key_pair.kubernetes-minimal-141-example-com-c4a6ed9aa889b9e2c39cd663eb9c7157.id}" - iam_instance_profile = "${aws_iam_instance_profile.masters-minimal-141-example-com.id}" - security_groups = ["${aws_security_group.masters-minimal-141-example-com.id}"] - associate_public_ip_address = true - user_data = "${file("${path.module}/data/aws_launch_configuration_master-us-test-1a.masters.minimal-141.example.com_user_data")}" - - root_block_device = { - volume_type = "gp2" - volume_size = 64 - delete_on_termination = true - } - - ephemeral_block_device = { - device_name = "/dev/sdc" - virtual_name = "ephemeral0" - } - - lifecycle = { - create_before_destroy = true - } - - enable_monitoring = false -} - -resource "aws_launch_configuration" "nodes-minimal-141-example-com" { - name_prefix = "nodes.minimal-141.example.com-" - image_id = "ami-12345678" - instance_type = "t2.medium" - key_name = "${aws_key_pair.kubernetes-minimal-141-example-com-c4a6ed9aa889b9e2c39cd663eb9c7157.id}" - iam_instance_profile = "${aws_iam_instance_profile.nodes-minimal-141-example-com.id}" - security_groups = ["${aws_security_group.nodes-minimal-141-example-com.id}"] - associate_public_ip_address = true - user_data = "${file("${path.module}/data/aws_launch_configuration_nodes.minimal-141.example.com_user_data")}" - - root_block_device = { - volume_type = "gp2" - volume_size = 128 - delete_on_termination = true - } - - lifecycle = { - create_before_destroy = true - } - - enable_monitoring = false -} - -resource "aws_route" "route-0-0-0-0--0" { - route_table_id = "${aws_route_table.minimal-141-example-com.id}" - destination_cidr_block = "0.0.0.0/0" - gateway_id = "${aws_internet_gateway.minimal-141-example-com.id}" -} - -resource "aws_route_table" "minimal-141-example-com" { - vpc_id = "${aws_vpc.minimal-141-example-com.id}" - - tags = { - KubernetesCluster = "minimal-141.example.com" - Name = "minimal-141.example.com" - "kubernetes.io/cluster/minimal-141.example.com" = "owned" - "kubernetes.io/kops/role" = "public" - } -} - -resource "aws_route_table_association" "us-test-1a-minimal-141-example-com" { - subnet_id = "${aws_subnet.us-test-1a-minimal-141-example-com.id}" - route_table_id = "${aws_route_table.minimal-141-example-com.id}" -} - -resource "aws_security_group" "masters-minimal-141-example-com" { - name = "masters.minimal-141.example.com" - vpc_id = "${aws_vpc.minimal-141-example-com.id}" - description = "Security group for masters" - - tags = { - KubernetesCluster = "minimal-141.example.com" - Name = "masters.minimal-141.example.com" - "kubernetes.io/cluster/minimal-141.example.com" = "owned" - } -} - -resource "aws_security_group" "nodes-minimal-141-example-com" { - name = "nodes.minimal-141.example.com" - vpc_id = "${aws_vpc.minimal-141-example-com.id}" - description = "Security group for nodes" - - tags = { - KubernetesCluster = "minimal-141.example.com" - Name = "nodes.minimal-141.example.com" - "kubernetes.io/cluster/minimal-141.example.com" = "owned" - } -} - -resource "aws_security_group_rule" "all-master-to-master" { - type = "ingress" - security_group_id = "${aws_security_group.masters-minimal-141-example-com.id}" - source_security_group_id = "${aws_security_group.masters-minimal-141-example-com.id}" - from_port = 0 - to_port = 0 - protocol = "-1" -} - -resource "aws_security_group_rule" "all-master-to-node" { - type = "ingress" - security_group_id = "${aws_security_group.nodes-minimal-141-example-com.id}" - source_security_group_id = "${aws_security_group.masters-minimal-141-example-com.id}" - from_port = 0 - to_port = 0 - protocol = "-1" -} - -resource "aws_security_group_rule" "all-node-to-node" { - type = "ingress" - security_group_id = "${aws_security_group.nodes-minimal-141-example-com.id}" - source_security_group_id = "${aws_security_group.nodes-minimal-141-example-com.id}" - from_port = 0 - to_port = 0 - protocol = "-1" -} - -resource "aws_security_group_rule" "https-external-to-master-0-0-0-0--0" { - type = "ingress" - security_group_id = "${aws_security_group.masters-minimal-141-example-com.id}" - from_port = 443 - to_port = 443 - protocol = "tcp" - cidr_blocks = ["0.0.0.0/0"] -} - -resource "aws_security_group_rule" "master-egress" { - type = "egress" - security_group_id = "${aws_security_group.masters-minimal-141-example-com.id}" - from_port = 0 - to_port = 0 - protocol = "-1" - cidr_blocks = ["0.0.0.0/0"] -} - -resource "aws_security_group_rule" "node-egress" { - type = "egress" - security_group_id = "${aws_security_group.nodes-minimal-141-example-com.id}" - from_port = 0 - to_port = 0 - protocol = "-1" - cidr_blocks = ["0.0.0.0/0"] -} - -resource "aws_security_group_rule" "node-to-master-tcp-1-2379" { - type = "ingress" - security_group_id = "${aws_security_group.masters-minimal-141-example-com.id}" - source_security_group_id = "${aws_security_group.nodes-minimal-141-example-com.id}" - from_port = 1 - to_port = 2379 - protocol = "tcp" -} - -resource "aws_security_group_rule" "node-to-master-tcp-2382-4000" { - type = "ingress" - security_group_id = "${aws_security_group.masters-minimal-141-example-com.id}" - source_security_group_id = "${aws_security_group.nodes-minimal-141-example-com.id}" - from_port = 2382 - to_port = 4000 - protocol = "tcp" -} - -resource "aws_security_group_rule" "node-to-master-tcp-4003-65535" { - type = "ingress" - security_group_id = "${aws_security_group.masters-minimal-141-example-com.id}" - source_security_group_id = "${aws_security_group.nodes-minimal-141-example-com.id}" - from_port = 4003 - to_port = 65535 - protocol = "tcp" -} - -resource "aws_security_group_rule" "node-to-master-udp-1-65535" { - type = "ingress" - security_group_id = "${aws_security_group.masters-minimal-141-example-com.id}" - source_security_group_id = "${aws_security_group.nodes-minimal-141-example-com.id}" - from_port = 1 - to_port = 65535 - protocol = "udp" -} - -resource "aws_security_group_rule" "ssh-external-to-master-0-0-0-0--0" { - type = "ingress" - security_group_id = "${aws_security_group.masters-minimal-141-example-com.id}" - from_port = 22 - to_port = 22 - protocol = "tcp" - cidr_blocks = ["0.0.0.0/0"] -} - -resource "aws_security_group_rule" "ssh-external-to-node-0-0-0-0--0" { - type = "ingress" - security_group_id = "${aws_security_group.nodes-minimal-141-example-com.id}" - from_port = 22 - to_port = 22 - protocol = "tcp" - cidr_blocks = ["0.0.0.0/0"] -} - -resource "aws_subnet" "us-test-1a-minimal-141-example-com" { - vpc_id = "${aws_vpc.minimal-141-example-com.id}" - cidr_block = "172.20.32.0/19" - availability_zone = "us-test-1a" - - tags = { - KubernetesCluster = "minimal-141.example.com" - Name = "us-test-1a.minimal-141.example.com" - SubnetType = "Public" - "kubernetes.io/cluster/minimal-141.example.com" = "owned" - "kubernetes.io/role/elb" = "1" - } -} - -resource "aws_vpc" "minimal-141-example-com" { - cidr_block = "172.20.0.0/16" - enable_dns_hostnames = true - enable_dns_support = true - - tags = { - KubernetesCluster = "minimal-141.example.com" - Name = "minimal-141.example.com" - "kubernetes.io/cluster/minimal-141.example.com" = "owned" - } -} - -resource "aws_vpc_dhcp_options" "minimal-141-example-com" { - domain_name = "us-test-1.compute.internal" - domain_name_servers = ["AmazonProvidedDNS"] - - tags = { - KubernetesCluster = "minimal-141.example.com" - Name = "minimal-141.example.com" - "kubernetes.io/cluster/minimal-141.example.com" = "owned" - } -} - -resource "aws_vpc_dhcp_options_association" "minimal-141-example-com" { - vpc_id = "${aws_vpc.minimal-141-example-com.id}" - dhcp_options_id = "${aws_vpc_dhcp_options.minimal-141-example-com.id}" -} - -terraform = { - required_version = ">= 0.9.3" -} diff --git a/tests/integration/update_cluster/minimal-json/in-v1alpha0.yaml b/tests/integration/update_cluster/minimal-json/in-v1alpha2.yaml similarity index 79% rename from tests/integration/update_cluster/minimal-json/in-v1alpha0.yaml rename to tests/integration/update_cluster/minimal-json/in-v1alpha2.yaml index 0ea5e03ad3..ed4118ff6b 100644 --- a/tests/integration/update_cluster/minimal-json/in-v1alpha0.yaml +++ b/tests/integration/update_cluster/minimal-json/in-v1alpha2.yaml @@ -1,22 +1,22 @@ -apiVersion: kops.k8s.io/v1alpha1 +apiVersion: kops.k8s.io/v1alpha2 kind: Cluster metadata: creationTimestamp: "2016-12-10T22:42:27Z" name: minimal-json.example.com spec: - adminAccess: + kubernetesApiAccess: - 0.0.0.0/0 channel: stable cloudProvider: aws configBase: memfs://clusters.example.com/minimal-json.example.com etcdClusters: - etcdMembers: - - name: us-test-1a - zone: us-test-1a + - instanceGroup: master-us-test-1a + name: us-test-1a name: main - etcdMembers: - - name: us-test-1a - zone: us-test-1a + - instanceGroup: master-us-test-1a + name: us-test-1a name: events kubernetesVersion: v1.14.0 masterInternalName: api.internal.minimal-json.example.com @@ -25,19 +25,20 @@ spec: networking: kubenet: {} nonMasqueradeCIDR: 100.64.0.0/10 + sshAccess: + - 0.0.0.0/0 topology: - bastion: - idleTimeout: 120 - machineType: t2.medium masters: public nodes: public - zones: + subnets: - cidr: 172.20.32.0/19 name: us-test-1a + type: Public + zone: us-test-1a --- -apiVersion: kops.k8s.io/v1alpha1 +apiVersion: kops.k8s.io/v1alpha2 kind: InstanceGroup metadata: creationTimestamp: "2016-12-10T22:42:28Z" @@ -51,12 +52,12 @@ spec: maxSize: 2 minSize: 2 role: Node - zones: + subnets: - us-test-1a --- -apiVersion: kops.k8s.io/v1alpha1 +apiVersion: kops.k8s.io/v1alpha2 kind: InstanceGroup metadata: creationTimestamp: "2016-12-10T22:42:28Z" @@ -70,7 +71,7 @@ spec: maxSize: 1 minSize: 1 role: Master - zones: + subnets: - us-test-1a diff --git a/tests/integration/update_cluster/minimal/in-v1alpha0.yaml b/tests/integration/update_cluster/minimal/in-v1alpha0.yaml deleted file mode 100644 index 51d48296d8..0000000000 --- a/tests/integration/update_cluster/minimal/in-v1alpha0.yaml +++ /dev/null @@ -1,73 +0,0 @@ -kind: Cluster -metadata: - creationTimestamp: "2016-12-10T22:42:27Z" - name: minimal.example.com -spec: - adminAccess: - - 0.0.0.0/0 - channel: stable - cloudProvider: aws - configBase: memfs://clusters.example.com/minimal.example.com - etcdClusters: - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: main - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: events - kubernetesVersion: v1.14.0 - masterInternalName: api.internal.minimal.example.com - masterPublicName: api.minimal.example.com - networkCIDR: 172.20.0.0/16 - networking: - kubenet: {} - nonMasqueradeCIDR: 100.64.0.0/10 - topology: - bastion: - idleTimeout: 120 - machineType: t2.medium - masters: public - nodes: public - zones: - - cidr: 172.20.32.0/19 - name: us-test-1a - ---- - -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-10T22:42:28Z" - name: nodes - labels: - kops.k8s.io/cluster: minimal.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.medium - maxSize: 2 - minSize: 2 - role: Node - zones: - - us-test-1a - ---- - -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-10T22:42:28Z" - name: master-us-test-1a - labels: - kops.k8s.io/cluster: minimal.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: m3.medium - maxSize: 1 - minSize: 1 - role: Master - zones: - - us-test-1a - - diff --git a/tests/integration/update_cluster/minimal/in-v1alpha1.yaml b/tests/integration/update_cluster/minimal/in-v1alpha1.yaml deleted file mode 100644 index 081fa0f73c..0000000000 --- a/tests/integration/update_cluster/minimal/in-v1alpha1.yaml +++ /dev/null @@ -1,76 +0,0 @@ -apiVersion: kops.k8s.io/v1alpha1 -kind: Cluster -metadata: - creationTimestamp: "2016-12-10T22:42:27Z" - name: minimal.example.com -spec: - adminAccess: - - 0.0.0.0/0 - channel: stable - cloudProvider: aws - configBase: memfs://clusters.example.com/minimal.example.com - etcdClusters: - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: main - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: events - kubernetesVersion: v1.14.0 - masterInternalName: api.internal.minimal.example.com - masterPublicName: api.minimal.example.com - networkCIDR: 172.20.0.0/16 - networking: - kubenet: {} - nonMasqueradeCIDR: 100.64.0.0/10 - topology: - bastion: - idleTimeout: 120 - machineType: t2.medium - masters: public - nodes: public - zones: - - cidr: 172.20.32.0/19 - name: us-test-1a - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-10T22:42:28Z" - name: nodes - labels: - kops.k8s.io/cluster: minimal.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.medium - maxSize: 2 - minSize: 2 - role: Node - zones: - - us-test-1a - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-10T22:42:28Z" - name: master-us-test-1a - labels: - kops.k8s.io/cluster: minimal.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: m3.medium - maxSize: 1 - minSize: 1 - role: Master - zones: - - us-test-1a - - diff --git a/tests/integration/update_cluster/privatecalico/in-v1alpha1.yaml b/tests/integration/update_cluster/privatecalico/in-v1alpha1.yaml deleted file mode 100644 index ef9e82a2ca..0000000000 --- a/tests/integration/update_cluster/privatecalico/in-v1alpha1.yaml +++ /dev/null @@ -1,96 +0,0 @@ -apiVersion: kops.k8s.io/v1alpha1 -kind: Cluster -metadata: - creationTimestamp: "2016-12-12T04:13:14Z" - name: privatecalico.example.com -spec: - adminAccess: - - 0.0.0.0/0 - channel: stable - cloudProvider: aws - configBase: memfs://clusters.example.com/privatecalico.example.com - etcdClusters: - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: main - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: events - kubernetesVersion: v1.14.0 - masterInternalName: api.internal.privatecalico.example.com - masterPublicName: api.privatecalico.example.com - networkCIDR: 172.20.0.0/16 - networking: - calico: {} - nonMasqueradeCIDR: 100.64.0.0/10 - topology: - bastion: - enable: true - idleTimeout: 300 - machineType: t2.medium - masters: private - nodes: private - zones: - - cidr: 172.20.4.0/22 - name: us-test-1a - privateCIDR: 172.20.32.0/19 - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-12T04:13:15Z" - name: master-us-test-1a - labels: - kops.k8s.io/cluster: privatecalico.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: m3.medium - maxSize: 1 - minSize: 1 - role: Master - zones: - - us-test-1a - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-12T04:13:15Z" - name: nodes - labels: - kops.k8s.io/cluster: privatecalico.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.medium - maxSize: 2 - minSize: 2 - role: Node - zones: - - us-test-1a - - ---- - -apiVersion: kops.k8s.io/v1alpha2 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-14T15:32:41Z" - name: bastion - labels: - kops.k8s.io/cluster: privatecalico.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.micro - maxSize: 1 - minSize: 1 - role: Bastion - subnets: - - utility-us-test-1a diff --git a/tests/integration/update_cluster/privatecanal/in-v1alpha1.yaml b/tests/integration/update_cluster/privatecanal/in-v1alpha1.yaml deleted file mode 100644 index 8e1993735a..0000000000 --- a/tests/integration/update_cluster/privatecanal/in-v1alpha1.yaml +++ /dev/null @@ -1,96 +0,0 @@ -apiVersion: kops.k8s.io/v1alpha1 -kind: Cluster -metadata: - creationTimestamp: "2016-12-12T04:13:14Z" - name: privatecanal.example.com -spec: - adminAccess: - - 0.0.0.0/0 - channel: stable - cloudProvider: aws - configBase: memfs://clusters.example.com/privatecanal.example.com - etcdClusters: - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: main - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: events - kubernetesVersion: v1.14.0 - masterInternalName: api.internal.privatecanal.example.com - masterPublicName: api.privatecanal.example.com - networkCIDR: 172.20.0.0/16 - networking: - canal: {} - nonMasqueradeCIDR: 100.64.0.0/10 - topology: - bastion: - enable: true - idleTimeout: 300 - machineType: t2.medium - masters: private - nodes: private - zones: - - cidr: 172.20.4.0/22 - name: us-test-1a - privateCIDR: 172.20.32.0/19 - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-12T04:13:15Z" - name: master-us-test-1a - labels: - kops.k8s.io/cluster: privatecanal.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: m3.medium - maxSize: 1 - minSize: 1 - role: Master - zones: - - us-test-1a - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-12T04:13:15Z" - name: nodes - labels: - kops.k8s.io/cluster: privatecanal.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.medium - maxSize: 2 - minSize: 2 - role: Node - zones: - - us-test-1a - - ---- - -apiVersion: kops.k8s.io/v1alpha2 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-14T15:32:41Z" - name: bastion - labels: - kops.k8s.io/cluster: privatecanal.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.micro - maxSize: 1 - minSize: 1 - role: Bastion - subnets: - - utility-us-test-1a diff --git a/tests/integration/update_cluster/privateflannel/in-v1alpha1.yaml b/tests/integration/update_cluster/privateflannel/in-v1alpha1.yaml deleted file mode 100644 index b9f6c1e344..0000000000 --- a/tests/integration/update_cluster/privateflannel/in-v1alpha1.yaml +++ /dev/null @@ -1,97 +0,0 @@ -apiVersion: kops.k8s.io/v1alpha1 -kind: Cluster -metadata: - creationTimestamp: "2016-12-12T04:13:14Z" - name: privateflannel.example.com -spec: - adminAccess: - - 0.0.0.0/0 - channel: stable - cloudProvider: aws - configBase: memfs://clusters.example.com/privateflannel.example.com - etcdClusters: - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: main - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: events - kubernetesVersion: v1.14.0 - masterInternalName: api.internal.privateflannel.example.com - masterPublicName: api.privateflannel.example.com - networkCIDR: 172.20.0.0/16 - networking: - flannel: - backend: vxlan - nonMasqueradeCIDR: 100.64.0.0/10 - topology: - bastion: - enable: true - idleTimeout: 300 - machineType: t2.medium - masters: private - nodes: private - zones: - - cidr: 172.20.4.0/22 - name: us-test-1a - privateCIDR: 172.20.32.0/19 - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-12T04:13:15Z" - name: master-us-test-1a - labels: - kops.k8s.io/cluster: privateflannel.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: m3.medium - maxSize: 1 - minSize: 1 - role: Master - zones: - - us-test-1a - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-12T04:13:15Z" - name: nodes - labels: - kops.k8s.io/cluster: privateflannel.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.medium - maxSize: 2 - minSize: 2 - role: Node - zones: - - us-test-1a - - ---- - -apiVersion: kops.k8s.io/v1alpha2 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-14T15:32:41Z" - name: bastion - labels: - kops.k8s.io/cluster: privateflannel.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.micro - maxSize: 1 - minSize: 1 - role: Bastion - subnets: - - utility-us-test-1a diff --git a/tests/integration/update_cluster/privateweave/in-v1alpha1.yaml b/tests/integration/update_cluster/privateweave/in-v1alpha1.yaml deleted file mode 100644 index 4b860ac92d..0000000000 --- a/tests/integration/update_cluster/privateweave/in-v1alpha1.yaml +++ /dev/null @@ -1,96 +0,0 @@ -apiVersion: kops.k8s.io/v1alpha1 -kind: Cluster -metadata: - creationTimestamp: "2016-12-12T04:13:14Z" - name: privateweave.example.com -spec: - adminAccess: - - 0.0.0.0/0 - channel: stable - cloudProvider: aws - configBase: memfs://clusters.example.com/privateweave.example.com - etcdClusters: - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: main - - etcdMembers: - - name: us-test-1a - zone: us-test-1a - name: events - kubernetesVersion: v1.14.0 - masterInternalName: api.internal.privateweave.example.com - masterPublicName: api.privateweave.example.com - networkCIDR: 172.20.0.0/16 - networking: - weave: {} - nonMasqueradeCIDR: 100.64.0.0/10 - topology: - bastion: - enable: true - idleTimeout: 300 - machineType: t2.medium - masters: private - nodes: private - zones: - - cidr: 172.20.4.0/22 - name: us-test-1a - privateCIDR: 172.20.32.0/19 - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-12T04:13:15Z" - name: master-us-test-1a - labels: - kops.k8s.io/cluster: privateweave.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: m3.medium - maxSize: 1 - minSize: 1 - role: Master - zones: - - us-test-1a - ---- - -apiVersion: kops.k8s.io/v1alpha1 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-12T04:13:15Z" - name: nodes - labels: - kops.k8s.io/cluster: privateweave.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.medium - maxSize: 2 - minSize: 2 - role: Node - zones: - - us-test-1a - - ---- - -apiVersion: kops.k8s.io/v1alpha2 -kind: InstanceGroup -metadata: - creationTimestamp: "2016-12-14T15:32:41Z" - name: bastion - labels: - kops.k8s.io/cluster: privateweave.example.com -spec: - associatePublicIp: true - image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 - machineType: t2.micro - maxSize: 1 - minSize: 1 - role: Bastion - subnets: - - utility-us-test-1a