diff --git a/Dockerfile.dbg b/Dockerfile.dbg index 00a2e8387..68511107c 100644 --- a/Dockerfile.dbg +++ b/Dockerfile.dbg @@ -1,10 +1,10 @@ -# Copyright The Stash Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/Dockerfile.in b/Dockerfile.in index 1e2385d5f..c37249113 100644 --- a/Dockerfile.in +++ b/Dockerfile.in @@ -1,10 +1,10 @@ -# Copyright The Stash Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 000000000..ed87e53b3 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,5 @@ +## License + +Source code in this repository, Binaries, Docker images and Charts produced by the build process are licensed under the AppsCode Free Trial License 1.0.0. You may obtain a copy of the License at + + - [AppsCode-Trial-1.0.0](https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md) diff --git a/Makefile b/Makefile index 5f42ff674..7793e9144 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,10 @@ -# Copyright 2019 AppsCode Inc. -# Copyright 2016 The Kubernetes Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/api/crds/doc.go b/api/crds/doc.go index 8c24aeee0..a8b00a9cf 100644 --- a/api/crds/doc.go +++ b/api/crds/doc.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/api/crds/doc.go~HEAD b/api/crds/doc.go~HEAD new file mode 100644 index 000000000..8c24aeee0 --- /dev/null +++ b/api/crds/doc.go~HEAD @@ -0,0 +1,17 @@ +/* +Copyright The Stash 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 crds diff --git a/api/crds/doc.go~master b/api/crds/doc.go~master new file mode 100644 index 000000000..a8b00a9cf --- /dev/null +++ b/api/crds/doc.go~master @@ -0,0 +1,17 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the AppsCode Free Trial License 1.0.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md + +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 crds diff --git a/api/crds/lib.go b/api/crds/lib.go index cc6e91578..7abd2b9f8 100644 --- a/api/crds/lib.go +++ b/api/crds/lib.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/api/crds/lib.go~HEAD b/api/crds/lib.go~HEAD new file mode 100644 index 000000000..cc6e91578 --- /dev/null +++ b/api/crds/lib.go~HEAD @@ -0,0 +1,46 @@ +/* +Copyright The Stash 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 crds + +import ( + "fmt" + + apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" + "k8s.io/apimachinery/pkg/runtime/schema" + "sigs.k8s.io/yaml" +) + +func CustomResourceDefinition(gvr schema.GroupVersionResource) (*apiextensions.CustomResourceDefinition, error) { + data, err := Asset(fmt.Sprintf("%s_%s.yaml", gvr.Group, gvr.Resource)) + if err != nil { + return nil, err + } + var out apiextensions.CustomResourceDefinition + err = yaml.Unmarshal(data, &out) + if err != nil { + return nil, err + } + return &out, nil +} + +func MustCustomResourceDefinition(gvr schema.GroupVersionResource) *apiextensions.CustomResourceDefinition { + out, err := CustomResourceDefinition(gvr) + if err != nil { + panic(err) + } + return out +} diff --git a/api/crds/lib.go~master b/api/crds/lib.go~master new file mode 100644 index 000000000..7abd2b9f8 --- /dev/null +++ b/api/crds/lib.go~master @@ -0,0 +1,46 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the AppsCode Free Trial License 1.0.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md + +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 crds + +import ( + "fmt" + + apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" + "k8s.io/apimachinery/pkg/runtime/schema" + "sigs.k8s.io/yaml" +) + +func CustomResourceDefinition(gvr schema.GroupVersionResource) (*apiextensions.CustomResourceDefinition, error) { + data, err := Asset(fmt.Sprintf("%s_%s.yaml", gvr.Group, gvr.Resource)) + if err != nil { + return nil, err + } + var out apiextensions.CustomResourceDefinition + err = yaml.Unmarshal(data, &out) + if err != nil { + return nil, err + } + return &out, nil +} + +func MustCustomResourceDefinition(gvr schema.GroupVersionResource) *apiextensions.CustomResourceDefinition { + out, err := CustomResourceDefinition(gvr) + if err != nil { + panic(err) + } + return out +} diff --git a/apis/installer/fuzzer/fuzzer.go b/apis/installer/fuzzer/fuzzer.go index 310dc9e10..addaf0e3c 100644 --- a/apis/installer/fuzzer/fuzzer.go +++ b/apis/installer/fuzzer/fuzzer.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/apis/installer/install/install.go b/apis/installer/install/install.go index 4a80a547c..d02cbf1a6 100644 --- a/apis/installer/install/install.go +++ b/apis/installer/install/install.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/apis/installer/install/pruning_test.go b/apis/installer/install/pruning_test.go index b38762100..36cf16d94 100644 --- a/apis/installer/install/pruning_test.go +++ b/apis/installer/install/pruning_test.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/apis/installer/install/roundtrip_test.go b/apis/installer/install/roundtrip_test.go index 39e950d0c..5aace603b 100644 --- a/apis/installer/install/roundtrip_test.go +++ b/apis/installer/install/roundtrip_test.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/apis/installer/register.go b/apis/installer/register.go index 60d37d9d0..1c14c0c26 100644 --- a/apis/installer/register.go +++ b/apis/installer/register.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/apis/installer/v1alpha1/doc.go b/apis/installer/v1alpha1/doc.go index 59b05efc3..f3d198278 100644 --- a/apis/installer/v1alpha1/doc.go +++ b/apis/installer/v1alpha1/doc.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ 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 is the v1alpha1 version of the API. // +k8s:deepcopy-gen=package,register diff --git a/apis/installer/v1alpha1/generated.pb.go b/apis/installer/v1alpha1/generated.pb.go index 1e0aa6ae8..11091a14b 100644 --- a/apis/installer/v1alpha1/generated.pb.go +++ b/apis/installer/v1alpha1/generated.pb.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/apis/installer/v1alpha1/generated.proto b/apis/installer/v1alpha1/generated.proto index f9daaee75..9f28d7172 100644 --- a/apis/installer/v1alpha1/generated.proto +++ b/apis/installer/v1alpha1/generated.proto @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/apis/installer/v1alpha1/openapi_generated.go b/apis/installer/v1alpha1/openapi_generated.go index 6907aae9a..6b45aa02c 100644 --- a/apis/installer/v1alpha1/openapi_generated.go +++ b/apis/installer/v1alpha1/openapi_generated.go @@ -1,13 +1,13 @@ // +build !ignore_autogenerated /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/apis/installer/v1alpha1/register.go b/apis/installer/v1alpha1/register.go index 75a7c2b15..a5a6acd36 100644 --- a/apis/installer/v1alpha1/register.go +++ b/apis/installer/v1alpha1/register.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/apis/installer/v1alpha1/stash_perconaxtradb_helpers.go b/apis/installer/v1alpha1/stash_perconaxtradb_helpers.go index 303e43742..e17c8cfd7 100644 --- a/apis/installer/v1alpha1/stash_perconaxtradb_helpers.go +++ b/apis/installer/v1alpha1/stash_perconaxtradb_helpers.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/apis/installer/v1alpha1/stash_perconaxtradb_helpers.go~HEAD b/apis/installer/v1alpha1/stash_perconaxtradb_helpers.go~HEAD new file mode 100644 index 000000000..303e43742 --- /dev/null +++ b/apis/installer/v1alpha1/stash_perconaxtradb_helpers.go~HEAD @@ -0,0 +1,27 @@ +/* +Copyright The Stash 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 ( + "stash.appscode.dev/percona-xtradb/api/crds" + + apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" +) + +func (_ StashPerconaXtraDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourceStashPerconaXtraDBs)) +} diff --git a/apis/installer/v1alpha1/stash_perconaxtradb_helpers.go~master b/apis/installer/v1alpha1/stash_perconaxtradb_helpers.go~master new file mode 100644 index 000000000..e17c8cfd7 --- /dev/null +++ b/apis/installer/v1alpha1/stash_perconaxtradb_helpers.go~master @@ -0,0 +1,27 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the AppsCode Free Trial License 1.0.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md + +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 ( + "stash.appscode.dev/percona-xtradb/api/crds" + + apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" +) + +func (_ StashPerconaXtraDB) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourceStashPerconaXtraDBs)) +} diff --git a/apis/installer/v1alpha1/stash_perconaxtradb_types.go b/apis/installer/v1alpha1/stash_perconaxtradb_types.go index 6e908ed10..d915cdce2 100644 --- a/apis/installer/v1alpha1/stash_perconaxtradb_types.go +++ b/apis/installer/v1alpha1/stash_perconaxtradb_types.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/apis/installer/v1alpha1/stash_perconaxtradb_types_test.go b/apis/installer/v1alpha1/stash_perconaxtradb_types_test.go index 8040933d9..4092f7a35 100644 --- a/apis/installer/v1alpha1/stash_perconaxtradb_types_test.go +++ b/apis/installer/v1alpha1/stash_perconaxtradb_types_test.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/apis/installer/v1alpha1/zz_generated.deepcopy.go b/apis/installer/v1alpha1/zz_generated.deepcopy.go index a8262ab31..5cd75aba9 100644 --- a/apis/installer/v1alpha1/zz_generated.deepcopy.go +++ b/apis/installer/v1alpha1/zz_generated.deepcopy.go @@ -1,13 +1,13 @@ // +build !ignore_autogenerated /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/cmd/stash-percona-xtradb/main.go b/cmd/stash-percona-xtradb/main.go index addf55ca1..e9cc0bcb3 100644 --- a/cmd/stash-percona-xtradb/main.go +++ b/cmd/stash-percona-xtradb/main.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/cmd/stash-percona-xtradb/version.go b/cmd/stash-percona-xtradb/version.go index a8a09748f..698f05e28 100644 --- a/cmd/stash-percona-xtradb/version.go +++ b/cmd/stash-percona-xtradb/version.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/hack/build.sh b/hack/build.sh index d76311dcc..ab653dcb0 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -1,12 +1,12 @@ #!/usr/bin/env bash -# Copyright The Stash Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/hack/docker/stash-percona-xtradb/backup.sh b/hack/docker/stash-percona-xtradb/backup.sh index 5060d04cc..458b9906c 100755 --- a/hack/docker/stash-percona-xtradb/backup.sh +++ b/hack/docker/stash-percona-xtradb/backup.sh @@ -1,12 +1,12 @@ #!/usr/bin/env bash -# Copyright The Stash Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/hack/docker/stash-percona-xtradb/restore.sh b/hack/docker/stash-percona-xtradb/restore.sh index 17fd43954..8d41d54dd 100755 --- a/hack/docker/stash-percona-xtradb/restore.sh +++ b/hack/docker/stash-percona-xtradb/restore.sh @@ -1,12 +1,12 @@ #!/usr/bin/env bash -# Copyright The Stash Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/hack/e2e.sh b/hack/e2e.sh index a525581d7..e3481027c 100755 --- a/hack/e2e.sh +++ b/hack/e2e.sh @@ -1,12 +1,12 @@ #!/usr/bin/env bash -# Copyright The Stash Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/hack/fmt.sh b/hack/fmt.sh index 793db8583..f7a1593db 100755 --- a/hack/fmt.sh +++ b/hack/fmt.sh @@ -1,12 +1,12 @@ #!/usr/bin/env bash -# Copyright The Stash Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/hack/gencrd/main.go b/hack/gencrd/main.go index e76b1dcec..79bd0e860 100644 --- a/hack/gencrd/main.go +++ b/hack/gencrd/main.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/hack/license/bash.txt b/hack/license/bash.txt index b04243c16..b06d563f1 100644 --- a/hack/license/bash.txt +++ b/hack/license/bash.txt @@ -1,14 +1,13 @@ -# Copyright The Stash Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # 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. - diff --git a/hack/license/dockerfile.txt b/hack/license/dockerfile.txt index b04243c16..7328737e6 100644 --- a/hack/license/dockerfile.txt +++ b/hack/license/dockerfile.txt @@ -1,10 +1,10 @@ -# Copyright The Stash Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/hack/license/go.txt b/hack/license/go.txt index 6d8cecd45..dab94a77a 100644 --- a/hack/license/go.txt +++ b/hack/license/go.txt @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/hack/license/makefile.txt b/hack/license/makefile.txt index afae7977e..7328737e6 100644 --- a/hack/license/makefile.txt +++ b/hack/license/makefile.txt @@ -1,14 +1,14 @@ -# Copyright 2019 AppsCode Inc. -# Copyright 2016 The Kubernetes Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # 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. + diff --git a/hack/scripts/cherry-pick.sh b/hack/scripts/cherry-pick.sh index 79d7cda73..0921df820 100755 --- a/hack/scripts/cherry-pick.sh +++ b/hack/scripts/cherry-pick.sh @@ -1,12 +1,12 @@ #!/bin/bash -# Copyright The Stash Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/hack/scripts/update-release-tracker.sh b/hack/scripts/update-release-tracker.sh index b25a25087..75234700b 100755 --- a/hack/scripts/update-release-tracker.sh +++ b/hack/scripts/update-release-tracker.sh @@ -1,12 +1,12 @@ #!/bin/bash -# Copyright The Stash Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/hack/test.sh b/hack/test.sh index d87a68311..552a4e922 100755 --- a/hack/test.sh +++ b/hack/test.sh @@ -1,12 +1,12 @@ #!/usr/bin/env bash -# Copyright The Stash Authors. +# Copyright AppsCode Inc. and Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); +# Licensed under the AppsCode Free Trial License 1.0.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 +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/backup.go b/pkg/backup.go index 16af2c167..0637a5088 100644 --- a/pkg/backup.go +++ b/pkg/backup.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/restore.go b/pkg/restore.go index 86e2f087c..226235c53 100644 --- a/pkg/restore.go +++ b/pkg/restore.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/root.go b/pkg/root.go index 53f1f9f77..2b8f73a33 100644 --- a/pkg/root.go +++ b/pkg/root.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/utils.go b/pkg/utils.go index b5f35701c..2cdd260f7 100644 --- a/pkg/utils.go +++ b/pkg/utils.go @@ -1,11 +1,11 @@ /* -Copyright The Stash Authors. +Copyright AppsCode Inc. and Contributors -Licensed under the Apache License, Version 2.0 (the "License"); +Licensed under the AppsCode Free Trial License 1.0.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 + https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/vendor/kmodules.xyz/custom-resources/crds/lib.go~HEAD b/vendor/kmodules.xyz/custom-resources/crds/lib.go~HEAD new file mode 100644 index 000000000..fe8f9dee5 --- /dev/null +++ b/vendor/kmodules.xyz/custom-resources/crds/lib.go~HEAD @@ -0,0 +1,65 @@ +/* +Copyright The Kmodules 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 crds + +import ( + "fmt" + + "kmodules.xyz/client-go/apiextensions" + + "k8s.io/apimachinery/pkg/runtime/schema" + "sigs.k8s.io/yaml" +) + +func load(filename string, o interface{}) error { + if _, ok := _bindata[filename]; ok { + data, err := Asset(filename) + if err != nil { + return err + } + return yaml.Unmarshal(data, o) + } + return nil +} + +func CustomResourceDefinition(gvr schema.GroupVersionResource) (*apiextensions.CustomResourceDefinition, error) { + var out apiextensions.CustomResourceDefinition + + v1file := fmt.Sprintf("%s_%s.v1.yaml", gvr.Group, gvr.Resource) + if err := load(v1file, &out.V1); err != nil { + return nil, err + } + + v1beta1file := fmt.Sprintf("%s_%s.yaml", gvr.Group, gvr.Resource) + if err := load(v1beta1file, &out.V1beta1); err != nil { + return nil, err + } + + if out.V1 == nil && out.V1beta1 == nil { + return nil, fmt.Errorf("missing crd yamls for gvr: %s", gvr) + } + + return &out, nil +} + +func MustCustomResourceDefinition(gvr schema.GroupVersionResource) *apiextensions.CustomResourceDefinition { + out, err := CustomResourceDefinition(gvr) + if err != nil { + panic(err) + } + return out +} diff --git a/vendor/kmodules.xyz/custom-resources/crds/lib.go~master b/vendor/kmodules.xyz/custom-resources/crds/lib.go~master new file mode 100644 index 000000000..fe8f9dee5 --- /dev/null +++ b/vendor/kmodules.xyz/custom-resources/crds/lib.go~master @@ -0,0 +1,65 @@ +/* +Copyright The Kmodules 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 crds + +import ( + "fmt" + + "kmodules.xyz/client-go/apiextensions" + + "k8s.io/apimachinery/pkg/runtime/schema" + "sigs.k8s.io/yaml" +) + +func load(filename string, o interface{}) error { + if _, ok := _bindata[filename]; ok { + data, err := Asset(filename) + if err != nil { + return err + } + return yaml.Unmarshal(data, o) + } + return nil +} + +func CustomResourceDefinition(gvr schema.GroupVersionResource) (*apiextensions.CustomResourceDefinition, error) { + var out apiextensions.CustomResourceDefinition + + v1file := fmt.Sprintf("%s_%s.v1.yaml", gvr.Group, gvr.Resource) + if err := load(v1file, &out.V1); err != nil { + return nil, err + } + + v1beta1file := fmt.Sprintf("%s_%s.yaml", gvr.Group, gvr.Resource) + if err := load(v1beta1file, &out.V1beta1); err != nil { + return nil, err + } + + if out.V1 == nil && out.V1beta1 == nil { + return nil, fmt.Errorf("missing crd yamls for gvr: %s", gvr) + } + + return &out, nil +} + +func MustCustomResourceDefinition(gvr schema.GroupVersionResource) *apiextensions.CustomResourceDefinition { + out, err := CustomResourceDefinition(gvr) + if err != nil { + panic(err) + } + return out +} diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/repository_helpers.go~HEAD b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/repository_helpers.go~HEAD new file mode 100644 index 000000000..b5d5cdaea --- /dev/null +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/repository_helpers.go~HEAD @@ -0,0 +1,44 @@ +/* +Copyright AppsCode Inc. and Contributors + +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 ( + "stash.appscode.dev/apimachinery/crds" + + "kmodules.xyz/client-go/apiextensions" +) + +func (_ Repository) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralRepository)) +} + +func (r *Repository) LocalNetworkVolume() bool { + if r.Spec.Backend.Local != nil && + r.Spec.Backend.Local.NFS != nil { + return true + } + return false +} + +func (r *Repository) LocalNetworkVolumePath() string { + if r.Spec.Backend.Local != nil { + if r.Spec.Backend.Local.NFS != nil { + return r.Spec.Backend.Local.NFS.Path + } + } + return "" +} diff --git a/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/repository_helpers.go~master b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/repository_helpers.go~master new file mode 100644 index 000000000..b5d5cdaea --- /dev/null +++ b/vendor/stash.appscode.dev/apimachinery/apis/stash/v1alpha1/repository_helpers.go~master @@ -0,0 +1,44 @@ +/* +Copyright AppsCode Inc. and Contributors + +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 ( + "stash.appscode.dev/apimachinery/crds" + + "kmodules.xyz/client-go/apiextensions" +) + +func (_ Repository) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { + return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourcePluralRepository)) +} + +func (r *Repository) LocalNetworkVolume() bool { + if r.Spec.Backend.Local != nil && + r.Spec.Backend.Local.NFS != nil { + return true + } + return false +} + +func (r *Repository) LocalNetworkVolumePath() string { + if r.Spec.Backend.Local != nil { + if r.Spec.Backend.Local.NFS != nil { + return r.Spec.Backend.Local.NFS.Path + } + } + return "" +} diff --git a/vendor/stash.appscode.dev/apimachinery/crds/doc.go~HEAD b/vendor/stash.appscode.dev/apimachinery/crds/doc.go~HEAD new file mode 100644 index 000000000..c75b247de --- /dev/null +++ b/vendor/stash.appscode.dev/apimachinery/crds/doc.go~HEAD @@ -0,0 +1,17 @@ +/* +Copyright AppsCode Inc. and Contributors + +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 crds diff --git a/vendor/stash.appscode.dev/apimachinery/crds/doc.go~master b/vendor/stash.appscode.dev/apimachinery/crds/doc.go~master new file mode 100644 index 000000000..c75b247de --- /dev/null +++ b/vendor/stash.appscode.dev/apimachinery/crds/doc.go~master @@ -0,0 +1,17 @@ +/* +Copyright AppsCode Inc. and Contributors + +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 crds