diff --git a/go.mod b/go.mod index 613fe04ee..afa1860e9 100644 --- a/go.mod +++ b/go.mod @@ -22,10 +22,17 @@ require ( kmodules.xyz/client-go v0.25.17 kmodules.xyz/custom-resources v0.25.1 kmodules.xyz/monitoring-agent-api v0.25.0 - kubedb.dev/apimachinery v0.30.1 + kubedb.dev/apimachinery v0.31.0 stash.appscode.dev/apimachinery v0.24.0 ) +require ( + github.com/kr/pretty v0.3.0 // indirect + github.com/onsi/ginkgo/v2 v2.4.0 // indirect + github.com/onsi/gomega v1.24.0 // indirect + github.com/rogpeppe/go-internal v1.8.1 // indirect +) + require ( cloud.google.com/go v0.99.0 // indirect github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect diff --git a/go.sum b/go.sum index 5a755a095..367d699db 100644 --- a/go.sum +++ b/go.sum @@ -113,6 +113,7 @@ github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfc github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.11 h1:07n33Z8lZxZ2qwegKbObQohDhXDQxiMMz1NOUGYlesw= github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -328,11 +329,13 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxv github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= +github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0= github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= @@ -381,12 +384,15 @@ github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRW github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= -github.com/onsi/ginkgo/v2 v2.1.6 h1:Fx2POJZfKRQcM1pH49qSZiYeu319wji004qX+GDovrU= -github.com/onsi/gomega v1.20.1 h1:PA/3qinGoukvymdIDV8pii6tiZgC8kbmJO6Z5+b002Q= +github.com/onsi/ginkgo/v2 v2.4.0 h1:+Ig9nvqgS5OBSACXNk15PLdp0U9XPYROt9CFzVdFGIs= +github.com/onsi/ginkgo/v2 v2.4.0/go.mod h1:iHkDK1fKGcBoEHT5W7YBq4RFWaQulw+caOMkAt4OrFo= +github.com/onsi/gomega v1.24.0 h1:+0glovB9Jd6z3VR+ScSwQqXVTIfJcGA9UBM8yzQxhqg= +github.com/onsi/gomega v1.24.0/go.mod h1:Z/NWtiqwBrwUt4/2loMmHL63EDLnYHmVbuBpDr2vQAg= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= @@ -427,6 +433,9 @@ github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40T github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= +github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -996,8 +1005,8 @@ kmodules.xyz/offshoot-api v0.25.0 h1:Svq9da/+sg5afOjpgo9vx2J/Lu90Mo0aFxkdQmgKnGI kmodules.xyz/offshoot-api v0.25.0/go.mod h1:ysEBn7LJuT3+s8ynAQA/OG0BSsJugXa6KGtDLMRjlKo= kmodules.xyz/prober v0.25.0 h1:R5uRLHJEvEtEoogj+vaTAob0Btph6+PX5IlS6hPh8PA= kmodules.xyz/prober v0.25.0/go.mod h1:z4RTnjaajNQa/vPltsiOnO3xI716I/ziD2ac2Exm+1M= -kubedb.dev/apimachinery v0.30.1 h1:QDkq0inGCzQIbW3lKiLc2gVzqbbz/tXbQvHVGP7+9E4= -kubedb.dev/apimachinery v0.30.1/go.mod h1:dQ8v2NGRxosrch7eyyu6qYvCKkHIU9NM8t8LXKYBpEA= +kubedb.dev/apimachinery v0.31.0 h1:R+8GHs5lfc1orpoL3mJXujp3WEPSEZ1F64a91w4/UCY= +kubedb.dev/apimachinery v0.31.0/go.mod h1:C/38ZkheTVvKAAJ09jfqHUF3e+pOeTabO9oqnVloCvs= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go index 2b8d63c10..c43a7ead9 100644 --- a/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/autoscaling/v1alpha1/openapi_generated.go @@ -373,7 +373,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), - "kmodules.xyz/client-go/api/v1.PullSecrets": schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref), + "kmodules.xyz/client-go/api/v1.PullCredentials": schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref), "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), @@ -18217,8 +18217,9 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "image": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "lineages": { @@ -18234,17 +18235,17 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) }, }, }, - "pullSecrets": { + "pullCredentials": { SchemaProps: spec.SchemaProps{ - Ref: ref("kmodules.xyz/client-go/api/v1.PullSecrets"), + Ref: ref("kmodules.xyz/client-go/api/v1.PullCredentials"), }, }, }, - Required: []string{"pullSecrets"}, + Required: []string{"image"}, }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullSecrets"}, + "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullCredentials"}, } } @@ -18381,19 +18382,26 @@ func schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref common.ReferenceCal } } -func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceAccountName": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "refs": { + "secretRefs": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ @@ -18407,6 +18415,7 @@ func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallbac }, }, }, + Required: []string{"namespace"}, }, }, Dependencies: []string{ diff --git a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go index df5645885..8dd907816 100644 --- a/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/catalog/v1alpha1/openapi_generated.go @@ -373,7 +373,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), - "kmodules.xyz/client-go/api/v1.PullSecrets": schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref), + "kmodules.xyz/client-go/api/v1.PullCredentials": schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref), "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), @@ -18222,8 +18222,9 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "image": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "lineages": { @@ -18239,17 +18240,17 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) }, }, }, - "pullSecrets": { + "pullCredentials": { SchemaProps: spec.SchemaProps{ - Ref: ref("kmodules.xyz/client-go/api/v1.PullSecrets"), + Ref: ref("kmodules.xyz/client-go/api/v1.PullCredentials"), }, }, }, - Required: []string{"pullSecrets"}, + Required: []string{"image"}, }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullSecrets"}, + "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullCredentials"}, } } @@ -18386,19 +18387,26 @@ func schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref common.ReferenceCal } } -func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceAccountName": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "refs": { + "secretRefs": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ @@ -18412,6 +18420,7 @@ func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallbac }, }, }, + Required: []string{"namespace"}, }, }, Dependencies: []string{ diff --git a/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/openapi_generated.go index f033b6574..165e4fba7 100644 --- a/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/config/v1alpha1/openapi_generated.go @@ -373,7 +373,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), - "kmodules.xyz/client-go/api/v1.PullSecrets": schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref), + "kmodules.xyz/client-go/api/v1.PullCredentials": schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref), "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), @@ -18132,8 +18132,9 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "image": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "lineages": { @@ -18149,17 +18150,17 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) }, }, }, - "pullSecrets": { + "pullCredentials": { SchemaProps: spec.SchemaProps{ - Ref: ref("kmodules.xyz/client-go/api/v1.PullSecrets"), + Ref: ref("kmodules.xyz/client-go/api/v1.PullCredentials"), }, }, }, - Required: []string{"pullSecrets"}, + Required: []string{"image"}, }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullSecrets"}, + "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullCredentials"}, } } @@ -18296,19 +18297,26 @@ func schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref common.ReferenceCal } } -func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceAccountName": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "refs": { + "secretRefs": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ @@ -18322,6 +18330,7 @@ func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallbac }, }, }, + Required: []string{"namespace"}, }, }, Dependencies: []string{ diff --git a/vendor/kubedb.dev/apimachinery/apis/dashboard/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/dashboard/v1alpha1/openapi_generated.go index 4535b08f1..2df7e848f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/dashboard/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/dashboard/v1alpha1/openapi_generated.go @@ -373,7 +373,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), - "kmodules.xyz/client-go/api/v1.PullSecrets": schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref), + "kmodules.xyz/client-go/api/v1.PullCredentials": schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref), "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), @@ -18133,8 +18133,9 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "image": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "lineages": { @@ -18150,17 +18151,17 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) }, }, }, - "pullSecrets": { + "pullCredentials": { SchemaProps: spec.SchemaProps{ - Ref: ref("kmodules.xyz/client-go/api/v1.PullSecrets"), + Ref: ref("kmodules.xyz/client-go/api/v1.PullCredentials"), }, }, }, - Required: []string{"pullSecrets"}, + Required: []string{"image"}, }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullSecrets"}, + "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullCredentials"}, } } @@ -18297,19 +18298,26 @@ func schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref common.ReferenceCal } } -func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceAccountName": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "refs": { + "secretRefs": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ @@ -18323,6 +18331,7 @@ func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallbac }, }, }, + Required: []string{"namespace"}, }, }, Dependencies: []string{ diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go index c83e52ab1..2b99210fb 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha1/openapi_generated.go @@ -373,7 +373,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), - "kmodules.xyz/client-go/api/v1.PullSecrets": schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref), + "kmodules.xyz/client-go/api/v1.PullCredentials": schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref), "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), @@ -18191,8 +18191,9 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "image": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "lineages": { @@ -18208,17 +18209,17 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) }, }, }, - "pullSecrets": { + "pullCredentials": { SchemaProps: spec.SchemaProps{ - Ref: ref("kmodules.xyz/client-go/api/v1.PullSecrets"), + Ref: ref("kmodules.xyz/client-go/api/v1.PullCredentials"), }, }, }, - Required: []string{"pullSecrets"}, + Required: []string{"image"}, }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullSecrets"}, + "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullCredentials"}, } } @@ -18355,19 +18356,26 @@ func schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref common.ReferenceCal } } -func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceAccountName": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "refs": { + "secretRefs": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ @@ -18381,6 +18389,7 @@ func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallbac }, }, }, + Required: []string{"namespace"}, }, }, Dependencies: []string{ diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go index ca21d592b..0927ee64e 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/openapi_generated.go @@ -373,7 +373,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), - "kmodules.xyz/client-go/api/v1.PullSecrets": schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref), + "kmodules.xyz/client-go/api/v1.PullCredentials": schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref), "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), @@ -18247,8 +18247,9 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "image": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "lineages": { @@ -18264,17 +18265,17 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) }, }, }, - "pullSecrets": { + "pullCredentials": { SchemaProps: spec.SchemaProps{ - Ref: ref("kmodules.xyz/client-go/api/v1.PullSecrets"), + Ref: ref("kmodules.xyz/client-go/api/v1.PullCredentials"), }, }, }, - Required: []string{"pullSecrets"}, + Required: []string{"image"}, }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullSecrets"}, + "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullCredentials"}, } } @@ -18411,19 +18412,26 @@ func schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref common.ReferenceCal } } -func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceAccountName": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "refs": { + "secretRefs": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ @@ -18437,6 +18445,7 @@ func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallbac }, }, }, + Required: []string{"namespace"}, }, }, Dependencies: []string{ diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/postgres_helpers.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/postgres_helpers.go index 4fb7b2de0..56d72bdc7 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/postgres_helpers.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/postgres_helpers.go @@ -207,7 +207,7 @@ func (p *Postgres) SetDefaults(postgresVersion *catalog.PostgresVersion, topolog p.Spec.LeaderElection.TransferLeadershipInterval = &metav1.Duration{Duration: 1 * time.Second} } if p.Spec.LeaderElection.TransferLeadershipTimeout == nil { - p.Spec.LeaderElection.TransferLeadershipTimeout = &metav1.Duration{Duration: 120 * time.Second} + p.Spec.LeaderElection.TransferLeadershipTimeout = &metav1.Duration{Duration: 60 * time.Second} } apis.SetDefaultResourceLimits(&p.Spec.Coordinator.Resources, CoordinatorDefaultResources) diff --git a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/postgres_types.go b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/postgres_types.go index 7e40828e2..c3fa13a2f 100644 --- a/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/postgres_types.go +++ b/vendor/kubedb.dev/apimachinery/apis/kubedb/v1alpha2/postgres_types.go @@ -196,13 +196,13 @@ type PostgreLeaderElectionConfig struct { // TransferLeadershipInterval retry interval for transfer leadership // to the healthiest node - // +kubebuilder:default="1000ms" + // +kubebuilder:default="1s" // +optional TransferLeadershipInterval *metav1.Duration `json:"transferLeadershipInterval,omitempty"` // TransferLeadershipTimeout retry timeout for transfer leadership // to the healthiest node - // +kubebuilder:default="120s" + // +kubebuilder:default="60s" // +optional TransferLeadershipTimeout *metav1.Duration `json:"transferLeadershipTimeout,omitempty"` } diff --git a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go index 9541315fd..96a5023d4 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/ops/v1alpha1/openapi_generated.go @@ -373,7 +373,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), - "kmodules.xyz/client-go/api/v1.PullSecrets": schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref), + "kmodules.xyz/client-go/api/v1.PullCredentials": schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref), "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), @@ -18262,8 +18262,9 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "image": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "lineages": { @@ -18279,17 +18280,17 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) }, }, }, - "pullSecrets": { + "pullCredentials": { SchemaProps: spec.SchemaProps{ - Ref: ref("kmodules.xyz/client-go/api/v1.PullSecrets"), + Ref: ref("kmodules.xyz/client-go/api/v1.PullCredentials"), }, }, }, - Required: []string{"pullSecrets"}, + Required: []string{"image"}, }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullSecrets"}, + "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullCredentials"}, } } @@ -18426,19 +18427,26 @@ func schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref common.ReferenceCal } } -func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceAccountName": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "refs": { + "secretRefs": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ @@ -18452,6 +18460,7 @@ func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallbac }, }, }, + Required: []string{"namespace"}, }, }, Dependencies: []string{ diff --git a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/openapi_generated.go index 6b7245107..cae2f28d5 100644 --- a/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/postgres/v1alpha1/openapi_generated.go @@ -373,7 +373,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), - "kmodules.xyz/client-go/api/v1.PullSecrets": schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref), + "kmodules.xyz/client-go/api/v1.PullCredentials": schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref), "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), @@ -18144,8 +18144,9 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "image": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "lineages": { @@ -18161,17 +18162,17 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) }, }, }, - "pullSecrets": { + "pullCredentials": { SchemaProps: spec.SchemaProps{ - Ref: ref("kmodules.xyz/client-go/api/v1.PullSecrets"), + Ref: ref("kmodules.xyz/client-go/api/v1.PullCredentials"), }, }, }, - Required: []string{"pullSecrets"}, + Required: []string{"image"}, }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullSecrets"}, + "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullCredentials"}, } } @@ -18308,19 +18309,26 @@ func schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref common.ReferenceCal } } -func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceAccountName": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "refs": { + "secretRefs": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ @@ -18334,6 +18342,7 @@ func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallbac }, }, }, + Required: []string{"namespace"}, }, }, Dependencies: []string{ diff --git a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/openapi_generated.go index 422965c22..356510aee 100644 --- a/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/schema/v1alpha1/openapi_generated.go @@ -373,7 +373,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), - "kmodules.xyz/client-go/api/v1.PullSecrets": schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref), + "kmodules.xyz/client-go/api/v1.PullCredentials": schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref), "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), @@ -18155,8 +18155,9 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "image": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "lineages": { @@ -18172,17 +18173,17 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) }, }, }, - "pullSecrets": { + "pullCredentials": { SchemaProps: spec.SchemaProps{ - Ref: ref("kmodules.xyz/client-go/api/v1.PullSecrets"), + Ref: ref("kmodules.xyz/client-go/api/v1.PullCredentials"), }, }, }, - Required: []string{"pullSecrets"}, + Required: []string{"image"}, }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullSecrets"}, + "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullCredentials"}, } } @@ -18319,19 +18320,26 @@ func schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref common.ReferenceCal } } -func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceAccountName": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "refs": { + "secretRefs": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ @@ -18345,6 +18353,7 @@ func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallbac }, }, }, + Required: []string{"namespace"}, }, }, Dependencies: []string{ diff --git a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/openapi_generated.go b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/openapi_generated.go index 4476c7b38..eecd4772c 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/openapi_generated.go +++ b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/openapi_generated.go @@ -373,7 +373,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), - "kmodules.xyz/client-go/api/v1.PullSecrets": schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref), + "kmodules.xyz/client-go/api/v1.PullCredentials": schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref), "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), @@ -495,7 +495,23 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubedb.dev/apimachinery/apis/ui/v1alpha1.NodesStatsStoreStats": schema_apimachinery_apis_ui_v1alpha1_NodesStatsStoreStats(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.NodesStatsTranslogStats": schema_apimachinery_apis_ui_v1alpha1_NodesStatsTranslogStats(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.NodesStatsWarmerStats": schema_apimachinery_apis_ui_v1alpha1_NodesStatsWarmerStats(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PBSetting": schema_apimachinery_apis_ui_v1alpha1_PBSetting(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.PGSetting": schema_apimachinery_apis_ui_v1alpha1_PGSetting(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerInsight": schema_apimachinery_apis_ui_v1alpha1_PgBouncerInsight(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerInsightList": schema_apimachinery_apis_ui_v1alpha1_PgBouncerInsightList(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerInsightSpec": schema_apimachinery_apis_ui_v1alpha1_PgBouncerInsightSpec(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerPodInsight": schema_apimachinery_apis_ui_v1alpha1_PgBouncerPodInsight(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerPool": schema_apimachinery_apis_ui_v1alpha1_PgBouncerPool(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerPoolOverview": schema_apimachinery_apis_ui_v1alpha1_PgBouncerPoolOverview(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerPoolOverviewList": schema_apimachinery_apis_ui_v1alpha1_PgBouncerPoolOverviewList(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerPoolOverviewSpec": schema_apimachinery_apis_ui_v1alpha1_PgBouncerPoolOverviewSpec(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerServer": schema_apimachinery_apis_ui_v1alpha1_PgBouncerServer(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerServerOverview": schema_apimachinery_apis_ui_v1alpha1_PgBouncerServerOverview(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerServerOverviewList": schema_apimachinery_apis_ui_v1alpha1_PgBouncerServerOverviewList(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerServerOverviewSpec": schema_apimachinery_apis_ui_v1alpha1_PgBouncerServerOverviewSpec(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerSettings": schema_apimachinery_apis_ui_v1alpha1_PgBouncerSettings(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerSettingsList": schema_apimachinery_apis_ui_v1alpha1_PgBouncerSettingsList(ref), + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerSettingsSpec": schema_apimachinery_apis_ui_v1alpha1_PgBouncerSettingsSpec(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.PodInsight": schema_apimachinery_apis_ui_v1alpha1_PodInsight(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.PostgresConnectionInfo": schema_apimachinery_apis_ui_v1alpha1_PostgresConnectionInfo(ref), "kubedb.dev/apimachinery/apis/ui/v1alpha1.PostgresInsight": schema_apimachinery_apis_ui_v1alpha1_PostgresInsight(ref), @@ -18241,8 +18257,9 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "image": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "lineages": { @@ -18258,17 +18275,17 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) }, }, }, - "pullSecrets": { + "pullCredentials": { SchemaProps: spec.SchemaProps{ - Ref: ref("kmodules.xyz/client-go/api/v1.PullSecrets"), + Ref: ref("kmodules.xyz/client-go/api/v1.PullCredentials"), }, }, }, - Required: []string{"pullSecrets"}, + Required: []string{"image"}, }, }, Dependencies: []string{ - "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullSecrets"}, + "kmodules.xyz/client-go/api/v1.Lineage", "kmodules.xyz/client-go/api/v1.PullCredentials"}, } } @@ -18405,19 +18422,26 @@ func schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref common.ReferenceCal } } -func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceAccountName": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "refs": { + "secretRefs": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ @@ -18431,6 +18455,7 @@ func schema_kmodulesxyz_client_go_api_v1_PullSecrets(ref common.ReferenceCallbac }, }, }, + Required: []string{"namespace"}, }, }, Dependencies: []string{ @@ -24758,6 +24783,47 @@ func schema_apimachinery_apis_ui_v1alpha1_NodesStatsWarmerStats(ref common.Refer } } +func schema_apimachinery_apis_ui_v1alpha1_PBSetting(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "currentValue": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "defaultValue": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "changeable": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"name", "currentValue", "defaultValue", "changeable"}, + }, + }, + } +} + func schema_apimachinery_apis_ui_v1alpha1_PGSetting(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -24804,6 +24870,880 @@ func schema_apimachinery_apis_ui_v1alpha1_PGSetting(ref common.ReferenceCallback } } +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerInsight(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PgBouncerInsight is the Schema for the pgbouncerinsights API", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerInsightSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/kubedb/v1alpha2.PgBouncerStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/kubedb/v1alpha2.PgBouncerStatus", "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerInsightSpec"}, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerInsightList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PgBouncerInsightList contains a list of PgBouncerInsight", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerInsight"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerInsight"}, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerInsightSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "sslMode": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "maxConnections": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "podInsights": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerPodInsight"), + }, + }, + }, + }, + }, + }, + Required: []string{"version", "status"}, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerPodInsight"}, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerPodInsight(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "podName": { + SchemaProps: spec.SchemaProps{ + Description: "PodName represents the name of the pod", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "databases": { + SchemaProps: spec.SchemaProps{ + Description: "Databases represents the number of databases", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "users": { + SchemaProps: spec.SchemaProps{ + Description: "Users represents the number of users", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "pools": { + SchemaProps: spec.SchemaProps{ + Description: "Pools represents the number of pools", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "freeClients": { + SchemaProps: spec.SchemaProps{ + Description: "FreeClients represents the number of free clients", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "usedClients": { + SchemaProps: spec.SchemaProps{ + Description: "UsedClients represents the number of used clients", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "loginClients": { + SchemaProps: spec.SchemaProps{ + Description: "LoginClients represents the number of clients in the login state", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "freeServers": { + SchemaProps: spec.SchemaProps{ + Description: "FreeServers represents the number of free servers", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "usedServers": { + SchemaProps: spec.SchemaProps{ + Description: "UsedServers represents the number of used servers", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "totalQueryCount": { + SchemaProps: spec.SchemaProps{ + Description: "TotalQueryCount represents the total number of query counts", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "averageQueryCount": { + SchemaProps: spec.SchemaProps{ + Description: "AverageQueryCount represents the average number of query counts", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "totalQueryTimeMS": { + SchemaProps: spec.SchemaProps{ + Description: "TotalQueryTime represents the total time spent for the queries", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "averageQueryTimeMS": { + SchemaProps: spec.SchemaProps{ + Description: "AverageQueryTime represents the average time spent for a single query", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"podName"}, + }, + }, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerPool(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "podName": { + SchemaProps: spec.SchemaProps{ + Description: "PodName represents the corresponding pod for the pool", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "database": { + SchemaProps: spec.SchemaProps{ + Description: "Database represents the database of the pool", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "user": { + SchemaProps: spec.SchemaProps{ + Description: "User represents the user of the pool", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "activeClientConnections": { + SchemaProps: spec.SchemaProps{ + Description: "ActiveClientConnections represents client connections that are either linked to server connections or are idle with no queries waiting to be processed", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "waitingClientConnections": { + SchemaProps: spec.SchemaProps{ + Description: "WaitingClientConnections represents client connections that have sent queries but have not yet got a server connection", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "activeQueryCancellationRequest": { + SchemaProps: spec.SchemaProps{ + Description: "ActiveQueryCancellationRequest represents client connections that have forwarded query cancellations to the server", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "waitingQueryCancellationRequest": { + SchemaProps: spec.SchemaProps{ + Description: "WaitingQueryCancellationRequest represents client connections that are waiting to forwarded query cancellations to the server", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "activeServerConnections": { + SchemaProps: spec.SchemaProps{ + Description: "ActiveServerConnections represents server connections that are linked to a client.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "activeServersCancelRequest": { + SchemaProps: spec.SchemaProps{ + Description: "ActiveServersCancelRequest represents server connections that are currently forwarding a cancel request.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "serversBeingCanceled": { + SchemaProps: spec.SchemaProps{ + Description: "ServersBeingCanceled represents servers that normally could become idle but are waiting to do so until all in-flight cancel requests have completed", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "idleServers": { + SchemaProps: spec.SchemaProps{ + Description: "IdleServers represents server connections that are unused and immediately usable for client queries.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "usedServers": { + SchemaProps: spec.SchemaProps{ + Description: "UsedServers represents server connections that have been idle for more than server_check_delay", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "testedServers": { + SchemaProps: spec.SchemaProps{ + Description: "ServersTested represents server connections that are currently running either server_reset_query or server_check_query", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "serversInLogin": { + SchemaProps: spec.SchemaProps{ + Description: "ServersInLogin represents server connections currently in the process of logging in", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "maxWaitMS": { + SchemaProps: spec.SchemaProps{ + Description: "MaxWaitMS represents how long the first (oldest) client in the queue has waited", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "mode": { + SchemaProps: spec.SchemaProps{ + Description: "Mode represents the pooling mode in use. ex: session, transaction, statement", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"podName", "database", "user", "mode"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerPoolOverview(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PgBouncerPoolOverview is the Schema for the PgBouncerPoolOverviews API", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerPoolOverviewSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerPoolOverviewSpec"}, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerPoolOverviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PgBouncerPoolOverviewList contains a list of PgBouncerPoolOverviews", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerPoolOverview"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerPoolOverview"}, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerPoolOverviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "pools": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerPool"), + }, + }, + }, + }, + }, + }, + Required: []string{"pools"}, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerPool"}, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerServer(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "podName": { + SchemaProps: spec.SchemaProps{ + Description: "PodName represents the pod name", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "user": { + SchemaProps: spec.SchemaProps{ + Description: "User which name pgbouncer uses to connect to server.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "database": { + SchemaProps: spec.SchemaProps{ + Description: "Database represents the database name", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "state": { + SchemaProps: spec.SchemaProps{ + Description: "State of the pgbouncer server connection, one of active, idle, used, tested, new, active_cancel, being_canceled.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "address": { + SchemaProps: spec.SchemaProps{ + Description: "IP Address of PostgreSQL server", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "port": { + SchemaProps: spec.SchemaProps{ + Description: "Port of PostgreSQL server", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "localAddress": { + SchemaProps: spec.SchemaProps{ + Description: "LocalAddress represents connection start address on local machine", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "localPort": { + SchemaProps: spec.SchemaProps{ + Description: "LocalPort represents connection start port on local machine", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "connectTime": { + SchemaProps: spec.SchemaProps{ + Description: "ConnectTime represents when the connection was made", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "requestTime": { + SchemaProps: spec.SchemaProps{ + Description: "RequestTime represents when last request was issued", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "closeNeeded": { + SchemaProps: spec.SchemaProps{ + Description: "CloseNeeded is 1 if the connection will be closed as soon as possible, because a configuration file reload or DNS update changed the connection information or RECONNECT was issued", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "ptr": { + SchemaProps: spec.SchemaProps{ + Description: "PTR represents address of internal object for this connection. Used as unique ID", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "link": { + SchemaProps: spec.SchemaProps{ + Description: "Link represents address of client connection the server is paired with.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "remotePid": { + SchemaProps: spec.SchemaProps{ + Description: "RemotePid represents PID of backend server process.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "tls": { + SchemaProps: spec.SchemaProps{ + Description: "A string with TLS connection information, or empty if not using TLS", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "applicationName": { + SchemaProps: spec.SchemaProps{ + Description: "A string containing the application_name set on the linked client connection", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"podName", "user", "database", "state", "address", "localAddress", "ptr", "link", "remotePid", "tls", "applicationName"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerServerOverview(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerServerOverviewSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerServerOverviewSpec"}, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerServerOverviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerServerOverview"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerServerOverview"}, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerServerOverviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "servers": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerServer"), + }, + }, + }, + }, + }, + }, + Required: []string{"servers"}, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerServer"}, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerSettings(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PgBouncerSettings is the Schema for the PgBouncerSettingss API", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerSettingsSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerSettingsSpec"}, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerSettingsList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PgBouncerSettingsList contains a list of PgBouncerSettings", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerSettings"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubedb.dev/apimachinery/apis/ui/v1alpha1.PgBouncerSettings"}, + } +} + +func schema_apimachinery_apis_ui_v1alpha1_PgBouncerSettingsSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PgBouncerSettingsSpec defines the desired state of PgBouncerSettings", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "settings": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kubedb.dev/apimachinery/apis/ui/v1alpha1.PBSetting"), + }, + }, + }, + }, + }, + }, + Required: []string{"settings"}, + }, + }, + Dependencies: []string{ + "kubedb.dev/apimachinery/apis/ui/v1alpha1.PBSetting"}, + } +} + func schema_apimachinery_apis_ui_v1alpha1_PodInsight(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/pgbouncer_insight_types.go b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/pgbouncer_insight_types.go new file mode 100644 index 000000000..8a4ee47f7 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/pgbouncer_insight_types.go @@ -0,0 +1,88 @@ +/* +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 ( + api "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + ResourceKindPgBouncerInsight = "PgBouncerInsight" + ResourcePgBouncerInsight = "pgbouncerinsight" + ResourcePgBouncerInsights = "pgbouncerinsights" +) + +type PgBouncerInsightSpec struct { + Version string `json:"version"` + Status string `json:"status"` + SSLMode api.SSLMode `json:"sslMode,omitempty"` + MaxConnections *int32 `json:"maxConnections,omitempty"` + PodInsights []PgBouncerPodInsight `json:"podInsights,omitempty"` +} + +type PgBouncerPodInsight struct { + // PodName represents the name of the pod + PodName string `json:"podName"` + // Databases represents the number of databases + Databases *int32 `json:"databases,omitempty"` + // Users represents the number of users + Users *int32 `json:"users,omitempty"` + // Pools represents the number of pools + Pools *int32 `json:"pools,omitempty"` + // FreeClients represents the number of free clients + FreeClients *int32 `json:"freeClients,omitempty"` + // UsedClients represents the number of used clients + UsedClients *int32 `json:"usedClients,omitempty"` + // LoginClients represents the number of clients in the login state + LoginClients *int32 `json:"loginClients,omitempty"` + // FreeServers represents the number of free servers + FreeServers *int32 `json:"freeServers,omitempty"` + // UsedServers represents the number of used servers + UsedServers *int32 `json:"usedServers,omitempty"` + // TotalQueryCount represents the total number of query counts + TotalQueryCount *int32 `json:"totalQueryCount,omitempty"` + // AverageQueryCount represents the average number of query counts + AverageQueryCount *int32 `json:"averageQueryCount,omitempty"` + // TotalQueryTime represents the total time spent for the queries + TotalQueryTimeMS *int32 `json:"totalQueryTimeMS,omitempty"` + // AverageQueryTime represents the average time spent for a single query + AverageQueryTimeMS *int32 `json:"averageQueryTimeMS,omitempty"` +} + +// PgBouncerInsight is the Schema for the pgbouncerinsights API +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type PgBouncerInsight struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec PgBouncerInsightSpec `json:"spec,omitempty"` + Status api.PgBouncerStatus `json:"status,omitempty"` +} + +// PgBouncerInsightList contains a list of PgBouncerInsight +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type PgBouncerInsightList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []PgBouncerInsight `json:"items"` +} + +func init() { + SchemeBuilder.Register(&PgBouncerInsight{}, &PgBouncerInsightList{}) +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/pgbouncer_pool_overview_types.go b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/pgbouncer_pool_overview_types.go new file mode 100644 index 000000000..48a2a9c07 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/pgbouncer_pool_overview_types.go @@ -0,0 +1,90 @@ +/* +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" +) + +const ( + ResourceKindPgBouncerPoolOverview = "PgBouncerPoolOverview" + ResourcePgBouncerPoolOverview = "pgbouncerpooloverview" + ResourcePgBouncerPoolOverviews = "pgbouncerpooloverviews" +) + +type PgBouncerPoolOverviewSpec struct { + Pools []PgBouncerPool `json:"pools"` +} + +type PgBouncerPool struct { + // PodName represents the corresponding pod for the pool + PodName string `json:"podName"` + // Database represents the database of the pool + Database string `json:"database"` + // User represents the user of the pool + User string `json:"user"` + // ActiveClientConnections represents client connections that are either linked to server connections + // or are idle with no queries waiting to be processed + ActiveClientConnections *int32 `json:"activeClientConnections,omitempty"` + // WaitingClientConnections represents client connections that have sent queries + // but have not yet got a server connection + WaitingClientConnections *int32 `json:"waitingClientConnections,omitempty"` + // ActiveQueryCancellationRequest represents client connections that have forwarded query cancellations to the server + ActiveQueryCancellationRequest *int32 `json:"activeQueryCancellationRequest,omitempty"` + // WaitingQueryCancellationRequest represents client connections that are waiting to forwarded query cancellations to the server + WaitingQueryCancellationRequest *int32 `json:"waitingQueryCancellationRequest,omitempty"` + // ActiveServerConnections represents server connections that are linked to a client. + ActiveServerConnections *int32 `json:"activeServerConnections,omitempty"` + // ActiveServersCancelRequest represents server connections that are currently forwarding a cancel request. + ActiveServersCancelRequest *int32 `json:"activeServersCancelRequest,omitempty"` + // ServersBeingCanceled represents servers that normally could become idle but are waiting to do + // so until all in-flight cancel requests have completed + ServersBeingCanceled *int32 `json:"serversBeingCanceled,omitempty"` + // IdleServers represents server connections that are unused and immediately usable for client queries. + IdleServers *int32 `json:"idleServers,omitempty"` + // UsedServers represents server connections that have been idle for more than server_check_delay + UsedServers *int32 `json:"usedServers,omitempty"` + // ServersTested represents server connections that are currently running either server_reset_query or server_check_query + TestedServers *int32 `json:"testedServers,omitempty"` + // ServersInLogin represents server connections currently in the process of logging in + ServersInLogin *int32 `json:"serversInLogin,omitempty"` + // MaxWaitMS represents how long the first (oldest) client in the queue has waited + MaxWaitMS *metav1.Duration `json:"maxWaitMS,omitempty"` + // Mode represents the pooling mode in use. ex: session, transaction, statement + Mode string `json:"mode"` +} + +// PgBouncerPoolOverview is the Schema for the PgBouncerPoolOverviews API +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type PgBouncerPoolOverview struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec PgBouncerPoolOverviewSpec `json:"spec,omitempty"` +} + +// PgBouncerPoolOverviewList contains a list of PgBouncerPoolOverviews +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type PgBouncerPoolOverviewList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []PgBouncerPoolOverview `json:"items"` +} + +func init() { + SchemeBuilder.Register(&PgBouncerPoolOverview{}, &PgBouncerPoolOverviewList{}) +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/pgbouncer_server_overview_types.go b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/pgbouncer_server_overview_types.go new file mode 100644 index 000000000..d468d1016 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/pgbouncer_server_overview_types.go @@ -0,0 +1,88 @@ +/* +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" + +const ( + ResourceKindPgBouncerServerOverView = "PgBouncerServerOverview" + ResourcePgBouncerServerOverview = "pgbouncerserveroverview" + ResourcePgBouncerServerOverviews = "pgbouncerserveroverviews" +) + +type PgBouncerServerOverviewSpec struct { + Servers []PgBouncerServer `json:"servers"` +} + +type PgBouncerServer struct { + // PodName represents the pod name + PodName string `json:"podName"` + // User which name pgbouncer uses to connect to server. + User string `json:"user"` + // Database represents the database name + Database string `json:"database"` + // State of the pgbouncer server connection, one of active, idle, used, tested, new, active_cancel, being_canceled. + State string `json:"state"` + // IP Address of PostgreSQL server + Address string `json:"address"` + // Port of PostgreSQL server + Port *int32 `json:"port,omitempty"` + // LocalAddress represents connection start address on local machine + LocalAddress string `json:"localAddress"` + // LocalPort represents connection start port on local machine + LocalPort *int32 `json:"localPort,omitempty"` + // ConnectTime represents when the connection was made + ConnectTime *metav1.Time `json:"connectTime,omitempty"` + // RequestTime represents when last request was issued + RequestTime *metav1.Time `json:"requestTime,omitempty"` + // CloseNeeded is 1 if the connection will be closed as soon as possible, + // because a configuration file reload or DNS update changed the connection information or RECONNECT was issued + CloseNeeded *int32 `json:"closeNeeded,omitempty"` + // PTR represents address of internal object for this connection. Used as unique ID + PTR string `json:"ptr"` + // Link represents address of client connection the server is paired with. + Link string `json:"link"` + // RemotePid represents PID of backend server process. + RemotePid string `json:"remotePid"` + // A string with TLS connection information, or empty if not using TLS + TLS string `json:"tls"` + // A string containing the application_name set on the linked client connection + ApplicationName string `json:"applicationName"` +} + +// PgBouncerServerOverview is the Schema for the PgBouncerServerOverviews API + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type PgBouncerServerOverview struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec PgBouncerServerOverviewSpec `json:"spec,omitempty"` +} + +// PgBouncerServerOverviewList contains a list of PgBouncerServerOverview + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type PgBouncerServerOverviewList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []PgBouncerServerOverview `json:"items"` +} + +func init() { + SchemeBuilder.Register(&PgBouncerServerOverview{}, &PgBouncerServerOverviewList{}) +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/pgbouncer_settings_types.go b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/pgbouncer_settings_types.go new file mode 100644 index 000000000..d97fd26ee --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/pgbouncer_settings_types.go @@ -0,0 +1,60 @@ +/* +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" +) + +const ( + ResourceKindPgBouncerSettings = "PgBouncerSettings" + ResourcePgBouncerSettings = "pgbouncersettings" + ResourcePgBouncerSettingss = "pgbouncersettings" +) + +// PgBouncerSettingsSpec defines the desired state of PgBouncerSettings +type PgBouncerSettingsSpec struct { + Settings []PBSetting `json:"settings"` +} + +type PBSetting struct { + Name string `json:"name"` + CurrentValue string `json:"currentValue"` + DefaultValue string `json:"defaultValue"` + Changeable bool `json:"changeable"` +} + +// PgBouncerSettings is the Schema for the PgBouncerSettingss API +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type PgBouncerSettings struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec PgBouncerSettingsSpec `json:"spec,omitempty"` +} + +// PgBouncerSettingsList contains a list of PgBouncerSettings +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type PgBouncerSettingsList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []PgBouncerSettings `json:"items"` +} + +func init() { + SchemeBuilder.Register(&PgBouncerSettings{}, &PgBouncerSettingsList{}) +} diff --git a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/zz_generated.deepcopy.go b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/zz_generated.deepcopy.go index ea3715c90..38bdde261 100644 --- a/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kubedb.dev/apimachinery/apis/ui/v1alpha1/zz_generated.deepcopy.go @@ -2117,6 +2117,22 @@ func (in *NodesStatsWarmerStats) DeepCopy() *NodesStatsWarmerStats { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PBSetting) DeepCopyInto(out *PBSetting) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PBSetting. +func (in *PBSetting) DeepCopy() *PBSetting { + if in == nil { + return nil + } + out := new(PBSetting) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PGSetting) DeepCopyInto(out *PGSetting) { *out = *in @@ -2133,6 +2149,533 @@ func (in *PGSetting) DeepCopy() *PGSetting { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PgBouncerInsight) DeepCopyInto(out *PgBouncerInsight) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgBouncerInsight. +func (in *PgBouncerInsight) DeepCopy() *PgBouncerInsight { + if in == nil { + return nil + } + out := new(PgBouncerInsight) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PgBouncerInsight) 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 *PgBouncerInsightList) DeepCopyInto(out *PgBouncerInsightList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PgBouncerInsight, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgBouncerInsightList. +func (in *PgBouncerInsightList) DeepCopy() *PgBouncerInsightList { + if in == nil { + return nil + } + out := new(PgBouncerInsightList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PgBouncerInsightList) 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 *PgBouncerInsightSpec) DeepCopyInto(out *PgBouncerInsightSpec) { + *out = *in + if in.MaxConnections != nil { + in, out := &in.MaxConnections, &out.MaxConnections + *out = new(int32) + **out = **in + } + if in.PodInsights != nil { + in, out := &in.PodInsights, &out.PodInsights + *out = make([]PgBouncerPodInsight, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgBouncerInsightSpec. +func (in *PgBouncerInsightSpec) DeepCopy() *PgBouncerInsightSpec { + if in == nil { + return nil + } + out := new(PgBouncerInsightSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PgBouncerPodInsight) DeepCopyInto(out *PgBouncerPodInsight) { + *out = *in + if in.Databases != nil { + in, out := &in.Databases, &out.Databases + *out = new(int32) + **out = **in + } + if in.Users != nil { + in, out := &in.Users, &out.Users + *out = new(int32) + **out = **in + } + if in.Pools != nil { + in, out := &in.Pools, &out.Pools + *out = new(int32) + **out = **in + } + if in.FreeClients != nil { + in, out := &in.FreeClients, &out.FreeClients + *out = new(int32) + **out = **in + } + if in.UsedClients != nil { + in, out := &in.UsedClients, &out.UsedClients + *out = new(int32) + **out = **in + } + if in.LoginClients != nil { + in, out := &in.LoginClients, &out.LoginClients + *out = new(int32) + **out = **in + } + if in.FreeServers != nil { + in, out := &in.FreeServers, &out.FreeServers + *out = new(int32) + **out = **in + } + if in.UsedServers != nil { + in, out := &in.UsedServers, &out.UsedServers + *out = new(int32) + **out = **in + } + if in.TotalQueryCount != nil { + in, out := &in.TotalQueryCount, &out.TotalQueryCount + *out = new(int32) + **out = **in + } + if in.AverageQueryCount != nil { + in, out := &in.AverageQueryCount, &out.AverageQueryCount + *out = new(int32) + **out = **in + } + if in.TotalQueryTimeMS != nil { + in, out := &in.TotalQueryTimeMS, &out.TotalQueryTimeMS + *out = new(int32) + **out = **in + } + if in.AverageQueryTimeMS != nil { + in, out := &in.AverageQueryTimeMS, &out.AverageQueryTimeMS + *out = new(int32) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgBouncerPodInsight. +func (in *PgBouncerPodInsight) DeepCopy() *PgBouncerPodInsight { + if in == nil { + return nil + } + out := new(PgBouncerPodInsight) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PgBouncerPool) DeepCopyInto(out *PgBouncerPool) { + *out = *in + if in.ActiveClientConnections != nil { + in, out := &in.ActiveClientConnections, &out.ActiveClientConnections + *out = new(int32) + **out = **in + } + if in.WaitingClientConnections != nil { + in, out := &in.WaitingClientConnections, &out.WaitingClientConnections + *out = new(int32) + **out = **in + } + if in.ActiveQueryCancellationRequest != nil { + in, out := &in.ActiveQueryCancellationRequest, &out.ActiveQueryCancellationRequest + *out = new(int32) + **out = **in + } + if in.WaitingQueryCancellationRequest != nil { + in, out := &in.WaitingQueryCancellationRequest, &out.WaitingQueryCancellationRequest + *out = new(int32) + **out = **in + } + if in.ActiveServerConnections != nil { + in, out := &in.ActiveServerConnections, &out.ActiveServerConnections + *out = new(int32) + **out = **in + } + if in.ActiveServersCancelRequest != nil { + in, out := &in.ActiveServersCancelRequest, &out.ActiveServersCancelRequest + *out = new(int32) + **out = **in + } + if in.ServersBeingCanceled != nil { + in, out := &in.ServersBeingCanceled, &out.ServersBeingCanceled + *out = new(int32) + **out = **in + } + if in.IdleServers != nil { + in, out := &in.IdleServers, &out.IdleServers + *out = new(int32) + **out = **in + } + if in.UsedServers != nil { + in, out := &in.UsedServers, &out.UsedServers + *out = new(int32) + **out = **in + } + if in.TestedServers != nil { + in, out := &in.TestedServers, &out.TestedServers + *out = new(int32) + **out = **in + } + if in.ServersInLogin != nil { + in, out := &in.ServersInLogin, &out.ServersInLogin + *out = new(int32) + **out = **in + } + if in.MaxWaitMS != nil { + in, out := &in.MaxWaitMS, &out.MaxWaitMS + *out = new(v1.Duration) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgBouncerPool. +func (in *PgBouncerPool) DeepCopy() *PgBouncerPool { + if in == nil { + return nil + } + out := new(PgBouncerPool) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PgBouncerPoolOverview) DeepCopyInto(out *PgBouncerPoolOverview) { + *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 PgBouncerPoolOverview. +func (in *PgBouncerPoolOverview) DeepCopy() *PgBouncerPoolOverview { + if in == nil { + return nil + } + out := new(PgBouncerPoolOverview) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PgBouncerPoolOverview) 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 *PgBouncerPoolOverviewList) DeepCopyInto(out *PgBouncerPoolOverviewList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PgBouncerPoolOverview, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgBouncerPoolOverviewList. +func (in *PgBouncerPoolOverviewList) DeepCopy() *PgBouncerPoolOverviewList { + if in == nil { + return nil + } + out := new(PgBouncerPoolOverviewList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PgBouncerPoolOverviewList) 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 *PgBouncerPoolOverviewSpec) DeepCopyInto(out *PgBouncerPoolOverviewSpec) { + *out = *in + if in.Pools != nil { + in, out := &in.Pools, &out.Pools + *out = make([]PgBouncerPool, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgBouncerPoolOverviewSpec. +func (in *PgBouncerPoolOverviewSpec) DeepCopy() *PgBouncerPoolOverviewSpec { + if in == nil { + return nil + } + out := new(PgBouncerPoolOverviewSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PgBouncerServer) DeepCopyInto(out *PgBouncerServer) { + *out = *in + if in.Port != nil { + in, out := &in.Port, &out.Port + *out = new(int32) + **out = **in + } + if in.LocalPort != nil { + in, out := &in.LocalPort, &out.LocalPort + *out = new(int32) + **out = **in + } + if in.ConnectTime != nil { + in, out := &in.ConnectTime, &out.ConnectTime + *out = (*in).DeepCopy() + } + if in.RequestTime != nil { + in, out := &in.RequestTime, &out.RequestTime + *out = (*in).DeepCopy() + } + if in.CloseNeeded != nil { + in, out := &in.CloseNeeded, &out.CloseNeeded + *out = new(int32) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgBouncerServer. +func (in *PgBouncerServer) DeepCopy() *PgBouncerServer { + if in == nil { + return nil + } + out := new(PgBouncerServer) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PgBouncerServerOverview) DeepCopyInto(out *PgBouncerServerOverview) { + *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 PgBouncerServerOverview. +func (in *PgBouncerServerOverview) DeepCopy() *PgBouncerServerOverview { + if in == nil { + return nil + } + out := new(PgBouncerServerOverview) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PgBouncerServerOverview) 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 *PgBouncerServerOverviewList) DeepCopyInto(out *PgBouncerServerOverviewList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PgBouncerServerOverview, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgBouncerServerOverviewList. +func (in *PgBouncerServerOverviewList) DeepCopy() *PgBouncerServerOverviewList { + if in == nil { + return nil + } + out := new(PgBouncerServerOverviewList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PgBouncerServerOverviewList) 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 *PgBouncerServerOverviewSpec) DeepCopyInto(out *PgBouncerServerOverviewSpec) { + *out = *in + if in.Servers != nil { + in, out := &in.Servers, &out.Servers + *out = make([]PgBouncerServer, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgBouncerServerOverviewSpec. +func (in *PgBouncerServerOverviewSpec) DeepCopy() *PgBouncerServerOverviewSpec { + if in == nil { + return nil + } + out := new(PgBouncerServerOverviewSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PgBouncerSettings) DeepCopyInto(out *PgBouncerSettings) { + *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 PgBouncerSettings. +func (in *PgBouncerSettings) DeepCopy() *PgBouncerSettings { + if in == nil { + return nil + } + out := new(PgBouncerSettings) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PgBouncerSettings) 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 *PgBouncerSettingsList) DeepCopyInto(out *PgBouncerSettingsList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PgBouncerSettings, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgBouncerSettingsList. +func (in *PgBouncerSettingsList) DeepCopy() *PgBouncerSettingsList { + if in == nil { + return nil + } + out := new(PgBouncerSettingsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PgBouncerSettingsList) 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 *PgBouncerSettingsSpec) DeepCopyInto(out *PgBouncerSettingsSpec) { + *out = *in + if in.Settings != nil { + in, out := &in.Settings, &out.Settings + *out = make([]PBSetting, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PgBouncerSettingsSpec. +func (in *PgBouncerSettingsSpec) DeepCopy() *PgBouncerSettingsSpec { + if in == nil { + return nil + } + out := new(PgBouncerSettingsSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodInsight) DeepCopyInto(out *PodInsight) { *out = *in diff --git a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml index be5931745..c981cc653 100644 --- a/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml +++ b/vendor/kubedb.dev/apimachinery/crds/kubedb.com_postgreses.yaml @@ -992,10 +992,10 @@ spec: format: int32 type: integer transferLeadershipInterval: - default: 1000ms + default: 1s type: string transferLeadershipTimeout: - default: 120s + default: 60s type: string type: object monitor: diff --git a/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncerinsights.yaml b/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncerinsights.yaml new file mode 100644 index 000000000..512194e76 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncerinsights.yaml @@ -0,0 +1,135 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: pgbouncerinsights.ui.kubedb.com +spec: + group: ui.kubedb.com + names: + kind: PgBouncerInsight + listKind: PgBouncerInsightList + plural: pgbouncerinsights + singular: pgbouncerinsight + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + maxConnections: + format: int32 + type: integer + podInsights: + items: + properties: + averageQueryCount: + format: int32 + type: integer + averageQueryTimeMS: + format: int32 + type: integer + databases: + format: int32 + type: integer + freeClients: + format: int32 + type: integer + freeServers: + format: int32 + type: integer + loginClients: + format: int32 + type: integer + podName: + type: string + pools: + format: int32 + type: integer + totalQueryCount: + format: int32 + type: integer + totalQueryTimeMS: + format: int32 + type: integer + usedClients: + format: int32 + type: integer + usedServers: + format: int32 + type: integer + users: + format: int32 + type: integer + required: + - podName + type: object + type: array + sslMode: + enum: + - disabled + - allowSSL + - preferSSL + - requireSSL + type: string + status: + type: string + version: + type: string + required: + - status + - version + type: object + status: + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + observedGeneration: + format: int64 + type: integer + reason: + type: string + status: + type: string + type: + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + observedGeneration: + format: int64 + type: integer + phase: + enum: + - Provisioning + - DataRestoring + - Ready + - Critical + - NotReady + - Halted + - Unknown + type: string + type: object + type: object + served: true + storage: true diff --git a/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncerpooloverviews.yaml b/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncerpooloverviews.yaml new file mode 100644 index 000000000..946599f53 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncerpooloverviews.yaml @@ -0,0 +1,87 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: pgbouncerpooloverviews.ui.kubedb.com +spec: + group: ui.kubedb.com + names: + kind: PgBouncerPoolOverview + listKind: PgBouncerPoolOverviewList + plural: pgbouncerpooloverviews + singular: pgbouncerpooloverview + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + pools: + items: + properties: + activeClientConnections: + format: int32 + type: integer + activeQueryCancellationRequest: + format: int32 + type: integer + activeServerConnections: + format: int32 + type: integer + activeServersCancelRequest: + format: int32 + type: integer + database: + type: string + idleServers: + format: int32 + type: integer + maxWaitMS: + type: string + mode: + type: string + podName: + type: string + serversBeingCanceled: + format: int32 + type: integer + serversInLogin: + format: int32 + type: integer + testedServers: + format: int32 + type: integer + usedServers: + format: int32 + type: integer + user: + type: string + waitingClientConnections: + format: int32 + type: integer + waitingQueryCancellationRequest: + format: int32 + type: integer + required: + - database + - mode + - podName + - user + type: object + type: array + required: + - pools + type: object + type: object + served: true + storage: true diff --git a/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncerpools.yaml b/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncerpools.yaml new file mode 100644 index 000000000..ae6d68b11 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncerpools.yaml @@ -0,0 +1,99 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: pgbouncerpools.ui.kubedb.com +spec: + group: ui.kubedb.com + names: + kind: PgBouncerPools + listKind: PgBouncerPoolsList + plural: pgbouncerpools + singular: pgbouncerpools + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + pools: + items: + properties: + clientConnectionsActive: + format: int32 + type: integer + clientConnectionsWaiting: + format: int32 + type: integer + clientsActiveCancelReq: + format: int32 + type: integer + clientsWaitingCancelReq: + format: int32 + type: integer + database: + type: string + maxWait: + type: string + mode: + type: string + podName: + type: string + serverConnectionsActive: + format: int32 + type: integer + serversActiveCancel: + format: int32 + type: integer + serversBeingCanceled: + format: int32 + type: integer + serversIdle: + format: int32 + type: integer + serversLogin: + format: int32 + type: integer + serversTested: + format: int32 + type: integer + serversUsed: + format: int32 + type: integer + user: + type: string + required: + - clientConnectionsActive + - clientConnectionsWaiting + - clientsActiveCancelReq + - clientsWaitingCancelReq + - database + - maxWait + - mode + - podName + - serverConnectionsActive + - serversActiveCancel + - serversBeingCanceled + - serversIdle + - serversLogin + - serversTested + - serversUsed + - user + type: object + type: array + required: + - pools + type: object + type: object + served: true + storage: true diff --git a/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncerserveroverviews.yaml b/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncerserveroverviews.yaml new file mode 100644 index 000000000..1f8130840 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncerserveroverviews.yaml @@ -0,0 +1,88 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: pgbouncerserveroverviews.ui.kubedb.com +spec: + group: ui.kubedb.com + names: + kind: PgBouncerServerOverview + listKind: PgBouncerServerOverviewList + plural: pgbouncerserveroverviews + singular: pgbouncerserveroverview + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + servers: + items: + properties: + address: + type: string + applicationName: + type: string + closeNeeded: + format: int32 + type: integer + connectTime: + format: date-time + type: string + database: + type: string + link: + type: string + localAddress: + type: string + localPort: + format: int32 + type: integer + podName: + type: string + port: + format: int32 + type: integer + ptr: + type: string + remotePid: + type: string + requestTime: + format: date-time + type: string + state: + type: string + tls: + type: string + user: + type: string + required: + - address + - applicationName + - database + - link + - localAddress + - podName + - ptr + - remotePid + - state + - tls + - user + type: object + type: array + required: + - servers + type: object + type: object + served: true + storage: true diff --git a/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncersettings.yaml b/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncersettings.yaml new file mode 100644 index 000000000..2015aa4d4 --- /dev/null +++ b/vendor/kubedb.dev/apimachinery/crds/ui.kubedb.com_pgbouncersettings.yaml @@ -0,0 +1,52 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: kubedb + name: pgbouncersettings.ui.kubedb.com +spec: + group: ui.kubedb.com + names: + kind: PgBouncerSettings + listKind: PgBouncerSettingsList + plural: pgbouncersettings + singular: pgbouncersettings + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + settings: + items: + properties: + changeable: + type: boolean + currentValue: + type: string + defaultValue: + type: string + name: + type: string + required: + - changeable + - currentValue + - defaultValue + - name + type: object + type: array + required: + - settings + type: object + type: object + served: true + storage: true diff --git a/vendor/modules.txt b/vendor/modules.txt index ad99df6c0..5bce69d26 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -148,6 +148,8 @@ github.com/josharian/intern # github.com/json-iterator/go v1.1.12 ## explicit; go 1.12 github.com/json-iterator/go +# github.com/kr/pretty v0.3.0 +## explicit; go 1.12 # github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de ## explicit github.com/liggitt/tabwriter @@ -187,6 +189,10 @@ github.com/monochromegane/go-gitignore # github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 ## explicit github.com/munnerz/goautoneg +# github.com/onsi/ginkgo/v2 v2.4.0 +## explicit; go 1.18 +# github.com/onsi/gomega v1.24.0 +## explicit; go 1.18 # github.com/peterbourgon/diskv v2.0.1+incompatible ## explicit github.com/peterbourgon/diskv @@ -212,6 +218,8 @@ github.com/prometheus/common/model github.com/prometheus/procfs github.com/prometheus/procfs/internal/fs github.com/prometheus/procfs/internal/util +# github.com/rogpeppe/go-internal v1.8.1 +## explicit; go 1.16 # github.com/russross/blackfriday v1.5.2 ## explicit github.com/russross/blackfriday @@ -767,7 +775,7 @@ kmodules.xyz/offshoot-api/api/v1 # kmodules.xyz/prober v0.25.0 ## explicit; go 1.18 kmodules.xyz/prober/api/v1 -# kubedb.dev/apimachinery v0.30.1 +# kubedb.dev/apimachinery v0.31.0 ## explicit; go 1.18 kubedb.dev/apimachinery/apis kubedb.dev/apimachinery/apis/autoscaling