Skip to content

Commit 2c74f48

Browse files
authored
Prepare for release 3.6.8-beta.20200708 (#93)
ProductLine: Stash Release: v2020.07.08-beta.0 Release-tracker: stashed/CHANGELOG#1 Signed-off-by: 1gtm <1gtm@appscode.com>
1 parent ad45d26 commit 2c74f48

File tree

149 files changed

+208
-183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+208
-183
lines changed

charts/stash-mongodb/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
description: 'stash-mongodb - MongoDB database plugin for Stash by AppsCode'
33
name: stash-mongodb
4-
version: 3.6.8
5-
appVersion: 3.6.8
4+
version: 3.6.8-beta.20200708
5+
appVersion: 3.6.8-beta.20200708
66
home: https://github.com/stashed/mongodb
77
icon: https://cdn.appscode.com/images/icon/stash.png
88
sources:

charts/stash-mongodb/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
```console
88
$ helm repo add appscode https://charts.appscode.com/stable/
99
$ helm repo update
10-
$ helm install stash-mongodb-3.6.8 appscode/stash-mongodb -n kube-system --version=3.6.8
10+
$ helm install stash-mongodb-3.6.8-beta.20200708 appscode/stash-mongodb -n kube-system --version=3.6.8-beta.20200708
1111
```
1212

1313
## Introduction
@@ -20,10 +20,10 @@ This chart deploys necessary `Function` and `Task` definition to backup or resto
2020

2121
## Installing the Chart
2222

23-
To install the chart with the release name `stash-mongodb-3.6.8`:
23+
To install the chart with the release name `stash-mongodb-3.6.8-beta.20200708`:
2424

2525
```console
26-
$ helm install stash-mongodb-3.6.8 appscode/stash-mongodb -n kube-system --version=3.6.8
26+
$ helm install stash-mongodb-3.6.8-beta.20200708 appscode/stash-mongodb -n kube-system --version=3.6.8-beta.20200708
2727
```
2828

2929
The command deploys necessary `Function` and `Task` definition to backup or restore MongoDB 3.6.8 using Stash on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation.
@@ -32,10 +32,10 @@ The command deploys necessary `Function` and `Task` definition to backup or rest
3232
3333
## Uninstalling the Chart
3434

35-
To uninstall/delete the `stash-mongodb-3.6.8`:
35+
To uninstall/delete the `stash-mongodb-3.6.8-beta.20200708`:
3636

3737
```console
38-
$ helm delete stash-mongodb-3.6.8 -n kube-system
38+
$ helm delete stash-mongodb-3.6.8-beta.20200708 -n kube-system
3939
```
4040

4141
The command removes all the Kubernetes components associated with the chart and deletes the release.
@@ -60,12 +60,12 @@ The following table lists the configurable parameters of the `stash-mongodb` cha
6060
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example:
6161

6262
```console
63-
$ helm install stash-mongodb-3.6.8 appscode/stash-mongodb -n kube-system --version=3.6.8 --set image.registry=stashed
63+
$ helm install stash-mongodb-3.6.8-beta.20200708 appscode/stash-mongodb -n kube-system --version=3.6.8-beta.20200708 --set image.registry=stashed
6464
```
6565

6666
Alternatively, a YAML file that specifies the values for the parameters can be provided while
6767
installing the chart. For example:
6868

6969
```console
70-
$ helm install stash-mongodb-3.6.8 appscode/stash-mongodb -n kube-system --version=3.6.8 --values values.yaml
70+
$ helm install stash-mongodb-3.6.8-beta.20200708 appscode/stash-mongodb -n kube-system --version=3.6.8-beta.20200708 --values values.yaml
7171
```

charts/stash-mongodb/doc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ repository:
1010
name: appscode
1111
chart:
1212
name: stash-mongodb
13-
version: 3.6.8
13+
version: 3.6.8-beta.20200708
1414
values: "-- generate from values file --"
1515
valuesExample: "-- generate from values file --"
1616
prerequisites:
1717
- Kubernetes 1.11+
1818
release:
19-
name: stash-mongodb-3.6.8
19+
name: stash-mongodb-3.6.8-beta.20200708
2020
namespace: kube-system

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ require (
1616
k8s.io/apimachinery v0.18.3
1717
k8s.io/client-go v12.0.0+incompatible
1818
k8s.io/kube-openapi v0.0.0-20200410145947-61e04a5be9a6
19-
kmodules.xyz/client-go v0.0.0-20200525195850-2fd180961371
19+
kmodules.xyz/client-go v0.0.0-20200630053911-20d035822d35
2020
kmodules.xyz/crd-schema-fuzz v0.0.0-20200521005638-2433a187de95
2121
kmodules.xyz/custom-resources v0.0.0-20200604135349-9e9f5c4fdba9
2222
kmodules.xyz/offshoot-api v0.0.0-20200521035628-e135bf07b226
2323
kubedb.dev/apimachinery v0.14.0-alpha.5
2424
sigs.k8s.io/yaml v1.2.0
25-
stash.appscode.dev/apimachinery v0.10.0-alpha.0
25+
stash.appscode.dev/apimachinery v0.10.0-beta.0
2626
)
2727

2828
replace (

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,8 @@ kmodules.xyz/client-go v0.0.0-20200524205059-e986bc44c91b/go.mod h1:sY/eoe4ktxZE
12571257
kmodules.xyz/client-go v0.0.0-20200525012433-99c6914a1eca/go.mod h1:sY/eoe4ktxZEoHpr5NpAQ5s22VSwTE8psJtKVeVgLRY=
12581258
kmodules.xyz/client-go v0.0.0-20200525195850-2fd180961371 h1:PPawDOMyDHGeDPN8j1epNozaIB/Z7MlJsXpwm/r4jgk=
12591259
kmodules.xyz/client-go v0.0.0-20200525195850-2fd180961371/go.mod h1:sY/eoe4ktxZEoHpr5NpAQ5s22VSwTE8psJtKVeVgLRY=
1260+
kmodules.xyz/client-go v0.0.0-20200630053911-20d035822d35 h1:gDzZWVvgAaEBzo4lxMGhPUWqySgFyFDkcqw3NskZiwQ=
1261+
kmodules.xyz/client-go v0.0.0-20200630053911-20d035822d35/go.mod h1:sY/eoe4ktxZEoHpr5NpAQ5s22VSwTE8psJtKVeVgLRY=
12601262
kmodules.xyz/constants v0.0.0-20200506032633-a21e58ceec72/go.mod h1:DbiFk1bJ1KEO94t1SlAn7tzc+Zz95rSXgyUKa2nzPmY=
12611263
kmodules.xyz/crd-schema-fuzz v0.0.0-20200521005638-2433a187de95 h1:v0S/+ftzL6Xrs9XevgchAOJyPKlRQXPiZf87xotj3X4=
12621264
kmodules.xyz/crd-schema-fuzz v0.0.0-20200521005638-2433a187de95/go.mod h1:jpu8xFsDKd6kAWUAKk8oTu/GQGBWqhrcaDeOJdaCJnk=
@@ -1305,4 +1307,6 @@ software.sslmate.com/src/go-pkcs12 v0.0.0-20180114231543-2291e8f0f237/go.mod h1:
13051307
sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0=
13061308
stash.appscode.dev/apimachinery v0.10.0-alpha.0 h1:/CBUctjDJyjo9a9lANjAPRq3Fj1KygXddgoJKdGQ0Q8=
13071309
stash.appscode.dev/apimachinery v0.10.0-alpha.0/go.mod h1:su9Q+3/B6+5PdGvVZBIkXoAik6iKKFUcdPNThpZPVV4=
1310+
stash.appscode.dev/apimachinery v0.10.0-beta.0 h1:gIn9ai1ipjgGImTXJseOsucv3rJmQC4/34kihUWul4g=
1311+
stash.appscode.dev/apimachinery v0.10.0-beta.0/go.mod h1:v3rBovazmdCv/9rAA5U7LpDRFhVqcLsagnLlbPfD2Eg=
13081312
vbom.ml/util v0.0.0-20160121211510-db5cfe13f5cc/go.mod h1:so/NYdZXCz+E3ZpW0uAoCj6uzU2+8OWDFv/HxUSs7kI=

vendor/kmodules.xyz/client-go/apiextensions/kubernetes.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ func RegisterCRDs(client crd_cs.Interface, crds []*CustomResourceDefinition) err
5454
client,
5555
crd.V1.Name,
5656
func(in *crdv1.CustomResourceDefinition) *crdv1.CustomResourceDefinition {
57-
in.Labels = meta_util.MergeKeys(in.Labels, crd.V1.Labels)
58-
in.Annotations = meta_util.MergeKeys(in.Annotations, crd.V1.Annotations)
57+
in.Labels = meta_util.OverwriteKeys(in.Labels, crd.V1.Labels)
58+
in.Annotations = meta_util.OverwriteKeys(in.Annotations, crd.V1.Annotations)
5959

6060
in.Spec = crd.V1.Spec
6161
return in
@@ -86,8 +86,8 @@ func RegisterCRDs(client crd_cs.Interface, crds []*CustomResourceDefinition) err
8686
client,
8787
crd.V1beta1.Name,
8888
func(in *crdv1beta1.CustomResourceDefinition) *crdv1beta1.CustomResourceDefinition {
89-
in.Labels = meta_util.MergeKeys(in.Labels, crd.V1beta1.Labels)
90-
in.Annotations = meta_util.MergeKeys(in.Annotations, crd.V1beta1.Annotations)
89+
in.Labels = meta_util.OverwriteKeys(in.Labels, crd.V1beta1.Labels)
90+
in.Annotations = meta_util.OverwriteKeys(in.Annotations, crd.V1beta1.Annotations)
9191

9292
in.Spec = crd.V1beta1.Spec
9393
return in

vendor/kmodules.xyz/client-go/meta/lib.go

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,32 @@ func MergeKeys(out, in map[string]string) map[string]string {
109109
out = make(map[string]string, len(in))
110110
}
111111

112+
for k, v := range in {
113+
if _, ok := out[k]; !ok {
114+
out[k] = v
115+
}
116+
}
117+
return out
118+
}
119+
120+
func OverwriteKeys(out, in map[string]string) map[string]string {
121+
if in == nil {
122+
return out
123+
}
124+
if out == nil {
125+
out = make(map[string]string, len(in))
126+
}
127+
112128
for k, v := range in {
113129
out[k] = v
114130
}
115131
return out
116132
}
117133

134+
func NameWithPrefix(prefix, name string, customLength ...int) string {
135+
return ValidNameWithPrefix(prefix, name, customLength...)
136+
}
137+
118138
func ValidNameWithPrefix(prefix, name string, customLength ...int) string {
119139
maxLength := validation.DNS1123LabelMaxLength
120140
if len(customLength) != 0 {
@@ -124,6 +144,19 @@ func ValidNameWithPrefix(prefix, name string, customLength ...int) string {
124144
return strings.Trim(out[:min(maxLength, len(out))], "-")
125145
}
126146

147+
func NameWithSuffix(name, suffix string, customLength ...int) string {
148+
maxLength := validation.DNS1123LabelMaxLength
149+
if len(customLength) != 0 {
150+
maxLength = customLength[0]
151+
}
152+
if len(suffix) >= maxLength {
153+
return strings.Trim(suffix[max(0, len(suffix)-maxLength):], "-")
154+
}
155+
out := fmt.Sprintf("%s-%s", name[:min(len(name), maxLength-len(suffix)-1)], suffix)
156+
return strings.Trim(out, "-")
157+
}
158+
159+
// Deprecated: Use NameWithSuffix in new code
127160
func ValidNameWithSuffix(name, suffix string, customLength ...int) string {
128161
maxLength := validation.DNS1123LabelMaxLength
129162
if len(customLength) != 0 {
@@ -133,7 +166,7 @@ func ValidNameWithSuffix(name, suffix string, customLength ...int) string {
133166
return strings.Trim(out[max(0, len(out)-maxLength):], "-")
134167
}
135168

136-
func ValidNameWithPefixNSuffix(prefix, name, suffix string, customLength ...int) string {
169+
func ValidNameWithPrefixNSuffix(prefix, name, suffix string, customLength ...int) string {
137170
maxLength := validation.DNS1123LabelMaxLength
138171
if len(customLength) != 0 {
139172
maxLength = customLength[0]
@@ -154,8 +187,8 @@ func ValidCronJobNameWithSuffix(name, suffix string) string {
154187
return ValidNameWithSuffix(name, suffix, MaxCronJobNameLength)
155188
}
156189

157-
func ValidCronJobNameWithPefixNSuffix(prefix, name, suffix string) string {
158-
return ValidNameWithPefixNSuffix(prefix, name, suffix, MaxCronJobNameLength)
190+
func ValidCronJobNameWithPrefixNSuffix(prefix, name, suffix string) string {
191+
return ValidNameWithPrefixNSuffix(prefix, name, suffix, MaxCronJobNameLength)
159192
}
160193

161194
func min(x, y int) int {

vendor/modules.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ k8s.io/utils/net
770770
k8s.io/utils/path
771771
k8s.io/utils/pointer
772772
k8s.io/utils/trace
773-
# kmodules.xyz/client-go v0.0.0-20200525195850-2fd180961371
773+
# kmodules.xyz/client-go v0.0.0-20200630053911-20d035822d35
774774
kmodules.xyz/client-go
775775
kmodules.xyz/client-go/api/v1
776776
kmodules.xyz/client-go/apiextensions
@@ -813,8 +813,7 @@ sigs.k8s.io/structured-merge-diff/v3/typed
813813
sigs.k8s.io/structured-merge-diff/v3/value
814814
# sigs.k8s.io/yaml v1.2.0
815815
sigs.k8s.io/yaml
816-
# stash.appscode.dev/apimachinery v0.10.0-alpha.0
817-
stash.appscode.dev/apimachinery/api/crds
816+
# stash.appscode.dev/apimachinery v0.10.0-beta.0
818817
stash.appscode.dev/apimachinery/apis
819818
stash.appscode.dev/apimachinery/apis/repositories
820819
stash.appscode.dev/apimachinery/apis/repositories/v1alpha1
@@ -831,4 +830,5 @@ stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1alpha1/
831830
stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1
832831
stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/fake
833832
stash.appscode.dev/apimachinery/client/clientset/versioned/typed/stash/v1beta1/util
833+
stash.appscode.dev/apimachinery/crds
834834
stash.appscode.dev/apimachinery/pkg/restic

vendor/stash.appscode.dev/apimachinery/apis/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright The Stash Authors.
2+
Copyright AppsCode Inc. and Contributors
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

vendor/stash.appscode.dev/apimachinery/apis/invoker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright The Stash Authors.
2+
Copyright AppsCode Inc. and Contributors
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)