Skip to content

Commit a1a424b

Browse files
authored
Prepare for release v0.18.0 (#598)
ProductLine: KubeDB Release: v2021.04.16 Release-tracker: kubedb/CHANGELOG#37 Signed-off-by: 1gtm <1gtm@appscode.com>
1 parent c8bec97 commit a1a424b

File tree

57 files changed

+1840
-1049
lines changed

Some content is hidden

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

57 files changed

+1840
-1049
lines changed

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ require (
1515
k8s.io/client-go v0.18.9
1616
k8s.io/component-base v0.18.9
1717
k8s.io/kubectl v0.18.9
18-
kmodules.xyz/client-go v0.0.0-20210313172452-3345a02bec66
18+
kmodules.xyz/client-go v0.0.0-20210415071346-d5cb3228d022
1919
kmodules.xyz/custom-resources v0.0.0-20210222235834-b3f8dc56b6a3
2020
kmodules.xyz/monitoring-agent-api v0.0.0-20201105074044-be7a1044891a
21-
kubedb.dev/apimachinery v0.17.1
22-
stash.appscode.dev/apimachinery v0.11.11
21+
kubedb.dev/apimachinery v0.18.0
22+
stash.appscode.dev/apimachinery v0.12.1
2323
)
2424

2525
replace bitbucket.org/ww/goautoneg => gomodules.xyz/goautoneg v0.0.0-20120707110453-a547fc61f48d

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,8 +1337,8 @@ k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89 h1:d4vVOjXm687F1iLSP2q3lyPPuyvTU
13371337
k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew=
13381338
kmodules.xyz/client-go v0.0.0-20201105071625-0b277310b9b8/go.mod h1:WXDwZBmvrcLgGcuO9iZpI9jcfPuDFfWbxA4EnhAFtGw=
13391339
kmodules.xyz/client-go v0.0.0-20210218100652-8f345ddfe801/go.mod h1:GdX1CHOpjL4F8P9O/7dE9m0fIOs05BNHKVT+kM51rk8=
1340-
kmodules.xyz/client-go v0.0.0-20210313172452-3345a02bec66 h1:gXf6p9siE6aHMGE5BKiKMtX3cyNGwEWCqizxQFqkq3A=
1341-
kmodules.xyz/client-go v0.0.0-20210313172452-3345a02bec66/go.mod h1:GdX1CHOpjL4F8P9O/7dE9m0fIOs05BNHKVT+kM51rk8=
1340+
kmodules.xyz/client-go v0.0.0-20210415071346-d5cb3228d022 h1:11famSa3R0AdYwMmBnzubDNHV8SYqsyixGuPh3Ukhqo=
1341+
kmodules.xyz/client-go v0.0.0-20210415071346-d5cb3228d022/go.mod h1:GdX1CHOpjL4F8P9O/7dE9m0fIOs05BNHKVT+kM51rk8=
13421342
kmodules.xyz/constants v0.0.0-20200923054614-6b87dbbae4d6/go.mod h1:DbiFk1bJ1KEO94t1SlAn7tzc+Zz95rSXgyUKa2nzPmY=
13431343
kmodules.xyz/crd-schema-fuzz v0.0.0-20200922204806-c1426cd7fcf4/go.mod h1:WrO3fryNyFCgqqyWnwI89lnzWA7kN072Ehya7ELGfzE=
13441344
kmodules.xyz/custom-resources v0.0.0-20210222100152-7426e3678989/go.mod h1:/r3/eJ3LIfwGyBEVaobqUZRZGh7GJv5RJojj/bdD14Q=
@@ -1355,8 +1355,8 @@ kmodules.xyz/openshift v0.0.0-20201105073146-0da509a7d39f/go.mod h1:vFwB/f5rVH5Q
13551355
kmodules.xyz/prober v0.0.0-20210218144026-43e923722d81 h1:mi0XHhavbXQqj9q89dNhWaOdGjZWHhpr3ai5gSYMZ44=
13561356
kmodules.xyz/prober v0.0.0-20210218144026-43e923722d81/go.mod h1:2eN8X5Wq7/AAgE5AWMAX8T0lE51HZiYEldG2RQuouX4=
13571357
kmodules.xyz/webhook-runtime v0.0.0-20201105073856-2dc7382b88c6/go.mod h1:xLgewoOzwR5ZrVOHQ2SR0P4E7tgCyBWbYlUawEXgeF4=
1358-
kubedb.dev/apimachinery v0.17.1 h1:qwmhZAmwaebccdCAAB7UhZPjNnjKOEns922YpdIcMTE=
1359-
kubedb.dev/apimachinery v0.17.1/go.mod h1:UNTeh+NqGnFM1D2vcMki80DH5krLijRcDsuqDwOVhxY=
1358+
kubedb.dev/apimachinery v0.18.0 h1:Ar4qup7opGzzKENZeidgi6fQHmLqhTsVkbok+TJxDOo=
1359+
kubedb.dev/apimachinery v0.18.0/go.mod h1:Z40oGFQbjQJoa7WzhJrOJDgEOian5YzQJdol0bFs1Sg=
13601360
modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw=
13611361
modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk=
13621362
modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k=
@@ -1383,6 +1383,6 @@ sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
13831383
software.sslmate.com/src/go-pkcs12 v0.0.0-20180114231543-2291e8f0f237/go.mod h1:/xvNRWUqm0+/ZMiF4EX00vrSCMsE4/NHb+Pt3freEeQ=
13841384
sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU=
13851385
sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0=
1386-
stash.appscode.dev/apimachinery v0.11.11 h1:1QECCeqhc2j+UdgGYc8XOJiHxF6J/Vd3FCbbjEhq5Nk=
1387-
stash.appscode.dev/apimachinery v0.11.11/go.mod h1:/mCvRYT6pzejllri8OMBRHrpYUSD9fMB7GlgZvCRp6Y=
1386+
stash.appscode.dev/apimachinery v0.12.1 h1:uArtie3jx9P3NdnC6PmTV3tj8eH8tbbh3FCGs0e8Q/M=
1387+
stash.appscode.dev/apimachinery v0.12.1/go.mod h1:/mCvRYT6pzejllri8OMBRHrpYUSD9fMB7GlgZvCRp6Y=
13881388
vbom.ml/util v0.0.0-20160121211510-db5cfe13f5cc/go.mod h1:so/NYdZXCz+E3ZpW0uAoCj6uzU2+8OWDFv/HxUSs7kI=

vendor/kmodules.xyz/client-go/core/v1/kubernetes.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ func UpsertContainer(containers []core.Container, upsert core.Container) []core.
8181
container.Command = upsert.Command
8282
container.Args = upsert.Args
8383
container.Env = upsert.Env
84+
container.VolumeMounts = upsert.VolumeMounts
85+
container.VolumeDevices = upsert.VolumeDevices
8486
containers[i] = container
8587
return containers
8688
}

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package discovery
1919
import (
2020
"context"
2121
"fmt"
22+
"log"
2223

2324
"github.com/golang/glog"
2425
"github.com/pkg/errors"
@@ -122,6 +123,40 @@ func ExistsGroupKind(client discovery.DiscoveryInterface, group, kind string) bo
122123
return false
123124
}
124125

126+
func ExistsGroupKinds(client discovery.DiscoveryInterface, gk schema.GroupKind, otherGks ...schema.GroupKind) bool {
127+
desired := make(map[schema.GroupKind]bool, 1+len(otherGks))
128+
desired[gk] = false
129+
for _, other := range otherGks {
130+
desired[other] = false
131+
}
132+
133+
if resourceList, err := client.ServerPreferredResources(); discovery.IsGroupDiscoveryFailedError(err) || err == nil {
134+
for _, resources := range resourceList {
135+
gv, err := schema.ParseGroupVersion(resources.GroupVersion)
136+
if err != nil {
137+
return false
138+
}
139+
for _, resource := range resources.APIResources {
140+
x := schema.GroupKind{
141+
Group: gv.Group,
142+
Kind: resource.Kind,
143+
}
144+
if _, found := desired[x]; found {
145+
desired[x] = true
146+
}
147+
}
148+
}
149+
}
150+
151+
for gk, found := range desired {
152+
if !found {
153+
log.Printf("%+v not found", gk)
154+
return false
155+
}
156+
}
157+
return true
158+
}
159+
125160
type KnownBug struct {
126161
URL string
127162
Fix string

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"sigs.k8s.io/yaml"
88
)
99

10-
func DecodeObject(in map[string]interface{}, out interface{}) error {
10+
func DecodeObject(in interface{}, out interface{}) error {
1111
config := &mapstructure.DecoderConfig{
1212
Metadata: nil,
1313
TagName: "json",

vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/elasticsearch_version_types.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ type ElasticsearchVersionSpec struct {
7272
// Stash defines backup and restore task definitions.
7373
// +optional
7474
Stash appcat.StashAddonSpec `json:"stash,omitempty" protobuf:"bytes,9,opt,name=stash"`
75+
// SecurityContext is for the additional security information for the Elasticsearch container
76+
// +optional
77+
SecurityContext ElasticsearchSecurityContext `json:"securityContext" protobuf:"bytes,10,opt,name=securityContext"`
7578
}
7679

7780
// ElasticsearchVersionDatabase is the Elasticsearch Database image
@@ -105,6 +108,15 @@ type ElasticsearchVersionList struct {
105108
Items []ElasticsearchVersion `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
106109
}
107110

111+
// ElasticsearchSecurityContext provides additional securityContext settings for the Elasticsearch Image
112+
type ElasticsearchSecurityContext struct {
113+
// RunAsUser is default UID for the DB container. It defaults to 1000.
114+
RunAsUser *int64 `json:"runAsUser,omitempty" protobuf:"varint,1,opt,name=runAsUser"`
115+
116+
// RunAsAnyNonRoot will be true if user can change the default UID to other than 1000.
117+
RunAsAnyNonRoot bool `json:"runAsAnyNonRoot,omitempty" protobuf:"varint,2,opt,name=runAsAnyNonRoot"`
118+
}
119+
108120
// +kubebuilder:validation:Enum=OpenDistro;SearchGuard;X-Pack
109121
type ElasticsearchAuthPlugin string
110122

0 commit comments

Comments
 (0)