Skip to content

Commit

Permalink
Update Kubernetes v1.18.9 dependencies (#106)
Browse files Browse the repository at this point in the history
Signed-off-by: 1gtm <1gtm@appscode.com>
  • Loading branch information
1gtm committed Feb 17, 2021
1 parent 9a568de commit a35db64
Show file tree
Hide file tree
Showing 8 changed files with 1,176 additions and 79 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -14,7 +14,7 @@ require (
k8s.io/component-base v0.18.9
k8s.io/kubectl v0.18.9
kmodules.xyz/client-go v0.0.0-20210213000708-f480974ce46d
kmodules.xyz/custom-resources v0.0.0-20201124062543-bd8d35c21b0c
kmodules.xyz/custom-resources v0.0.0-20210216191337-d890c51255a5
kubevault.dev/apimachinery v0.0.0-20210124211354-5738aa125d4d
)

Expand Down
2 changes: 2 additions & 0 deletions go.sum
Expand Up @@ -1039,6 +1039,8 @@ kmodules.xyz/client-go v0.0.0-20210213000708-f480974ce46d/go.mod h1:GdX1CHOpjL4F
kmodules.xyz/crd-schema-fuzz v0.0.0-20200922204806-c1426cd7fcf4/go.mod h1:WrO3fryNyFCgqqyWnwI89lnzWA7kN072Ehya7ELGfzE=
kmodules.xyz/custom-resources v0.0.0-20201124062543-bd8d35c21b0c h1:OIAnTI2yik4i1DSe23kO+89RMw/Eu6WUG/IQ++ivYNo=
kmodules.xyz/custom-resources v0.0.0-20201124062543-bd8d35c21b0c/go.mod h1:/r3/eJ3LIfwGyBEVaobqUZRZGh7GJv5RJojj/bdD14Q=
kmodules.xyz/custom-resources v0.0.0-20210216191337-d890c51255a5 h1:YigtxpoQw/sw0QtAzq4DEp0T/rRCMO+yp+S7y/7s0L4=
kmodules.xyz/custom-resources v0.0.0-20210216191337-d890c51255a5/go.mod h1:/r3/eJ3LIfwGyBEVaobqUZRZGh7GJv5RJojj/bdD14Q=
kmodules.xyz/monitoring-agent-api v0.0.0-20201105074044-be7a1044891a h1:3uwHtoj4msqYEoAJ7lyS7z3OFeQPF9v3J4Iv8shs86U=
kmodules.xyz/monitoring-agent-api v0.0.0-20201105074044-be7a1044891a/go.mod h1:r8b8lckYt5Gc5tiF3NSBPJmUrxPILerNRdozcaX7grI=
kmodules.xyz/offshoot-api v0.0.0-20201105074700-8675f5f686f2 h1:JVuNeHhVq/iRRM2yRF7nuYUdq1necfAPGpA5JjUcBuk=
Expand Down

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,50 @@
/*
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 (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// StashTask defines a Stash backup and restore task definitions.

type StashTask struct {
metav1.TypeMeta `json:",inline,omitempty"`
Stash StashTaskSpec `json:"stash,omitempty" protobuf:"bytes,1,opt,name=stash"`
}

// StashTaskSpec is the spec for app
type StashTaskSpec struct {
// Backup task definition
BackupTask TaskRef `json:"backupTask" protobuf:"bytes,1,opt,name=backupTask"`

// Restore task definition
RestoreTask TaskRef `json:"restoreTask" protobuf:"bytes,2,opt,name=restoreTask"`
}

type TaskRef struct {
Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
// Params specifies a list of parameter to pass to the Task. Stash will use this parameters to resolve the task.
// +optional
Params []Param `json:"params,omitempty" protobuf:"bytes,2,rep,name=params"`
}

// Param declares a value to use for the Param called Name.
type Param struct {
Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
Value string `json:"value" protobuf:"bytes,2,opt,name=value"`
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Expand Up @@ -451,7 +451,7 @@ kmodules.xyz/client-go/meta
kmodules.xyz/client-go/tools/analytics
kmodules.xyz/client-go/tools/cli
kmodules.xyz/client-go/tools/clusterid
# kmodules.xyz/custom-resources v0.0.0-20201124062543-bd8d35c21b0c
# kmodules.xyz/custom-resources v0.0.0-20210216191337-d890c51255a5
## explicit
kmodules.xyz/custom-resources/apis/appcatalog
kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1
Expand Down

0 comments on commit a35db64

Please sign in to comment.