K8SPG-1080 v3 module#1686
Conversation
| python3 -m yq -r \ | ||
| .spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.customTLSSecret.properties.name.description \ | ||
| "${clusters_dir}/generated/upstream.pgv2.percona.com_postgresclusters.yaml" | ||
| "${clusters_dir}/generated/upstream.pgv3.percona.com_postgresclusters.yaml" |
There was a problem hiding this comment.
[shfmt] reported by reviewdog 🐶
| python3 -m yq -r \ | |
| .spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.customTLSSecret.properties.name.description \ | |
| "${clusters_dir}/generated/upstream.pgv2.percona.com_postgresclusters.yaml" | |
| "${clusters_dir}/generated/upstream.pgv3.percona.com_postgresclusters.yaml" | |
| python3 -m yq -r \ | |
| .spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.customTLSSecret.properties.name.description \ | |
| "${clusters_dir}/generated/upstream.pgv3.percona.com_postgresclusters.yaml" |
| @@ -34,7 +34,7 @@ echo "Generating Kustomize patch file for removing Kube API TODOs" | |||
| name_desc_with_todo=$( | |||
| python3 -m yq -r \ | |||
| .spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.customTLSSecret.properties.name.description \ | |||
| "${clusters_dir}/generated/upstream.pgv2.percona.com_postgresclusters.yaml" | |||
| "${clusters_dir}/generated/upstream.pgv3.percona.com_postgresclusters.yaml" | |||
| ) | |||
| name_desc_without_todo=$(sed 's/ TODO.*//g' <<< "${name_desc_with_todo}") | |||
There was a problem hiding this comment.
[shfmt] reported by reviewdog 🐶
| name_desc_without_todo=$(sed 's/ TODO.*//g' <<< "${name_desc_with_todo}") | |
| name_desc_without_todo=$(sed 's/ TODO.*//g' <<<"${name_desc_with_todo}") |
| @@ -44,11 +44,11 @@ python3 -m yq -y --arg old "${name_desc_with_todo}" --arg new "${name_desc_witho | |||
| [paths(select(. == $old)) | { op: "copy", from: "/work", path: "/\(map(tostring) | join("/"))" }] + | |||
| [{ op: "remove", path: "/work" }] | |||
| ' \ | |||
| "${clusters_dir}/generated/upstream.pgv2.percona.com_postgresclusters.yaml" > "${clusters_dir}/todos.yaml" | |||
| "${clusters_dir}/generated/upstream.pgv3.percona.com_postgresclusters.yaml" > "${clusters_dir}/todos.yaml" | |||
There was a problem hiding this comment.
[shfmt] reported by reviewdog 🐶
| "${clusters_dir}/generated/upstream.pgv3.percona.com_postgresclusters.yaml" > "${clusters_dir}/todos.yaml" | |
| "${clusters_dir}/generated/upstream.pgv3.percona.com_postgresclusters.yaml" >"${clusters_dir}/todos.yaml" |
|
|
||
| python3 -m yq -y --arg old "${name_desc_with_todo}" --arg new "${name_desc_without_todo}" ' | ||
| [{ op: "add", path: "/work", value: $new }] + | ||
| [paths(select(. == $old)) | { op: "copy", from: "/work", path: "/\(map(tostring) | join("/"))" }] + | ||
| [{ op: "remove", path: "/work" }] | ||
| ' \ | ||
| "${upgrades_dir}/generated/upstream.pgv2.percona.com_pgupgrades.yaml" > "${upgrades_dir}/todos.yaml" | ||
| "${upgrades_dir}/generated/upstream.pgv3.percona.com_pgupgrades.yaml" > "${upgrades_dir}/todos.yaml" |
There was a problem hiding this comment.
[shfmt] reported by reviewdog 🐶
| "${upgrades_dir}/generated/upstream.pgv3.percona.com_pgupgrades.yaml" > "${upgrades_dir}/todos.yaml" | |
| "${upgrades_dir}/generated/upstream.pgv3.percona.com_pgupgrades.yaml" >"${upgrades_dir}/todos.yaml" |
| @@ -29,25 +29,25 @@ import ( | |||
| "sigs.k8s.io/controller-runtime/pkg/manager" | |||
|
|
|||
| certmanagerscheme "github.com/cert-manager/cert-manager/pkg/client/clientset/versioned/scheme" | |||
There was a problem hiding this comment.
[goimports-reviser] reported by reviewdog 🐶
| certmanagerscheme "github.com/cert-manager/cert-manager/pkg/client/clientset/versioned/scheme" |
| @@ -15,9 +15,9 @@ import ( | |||
| apierrors "k8s.io/apimachinery/pkg/api/errors" | |||
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |||
|
|
|||
There was a problem hiding this comment.
[goimports-reviser] reported by reviewdog 🐶
| "sigs.k8s.io/controller-runtime/pkg/client" | |
| @@ -20,11 +20,11 @@ import ( | |||
| "sigs.k8s.io/controller-runtime/pkg/manager" | |||
| "sigs.k8s.io/yaml" | |||
|
|
|||
| "github.com/percona/percona-postgresql-operator/v2/internal/controller/runtime" | |||
| "github.com/percona/percona-postgresql-operator/v3/internal/controller/runtime" | |||
|
|
|||
There was a problem hiding this comment.
[goimports-reviser] reported by reviewdog 🐶
| @@ -20,12 +20,12 @@ import ( | |||
| "k8s.io/apimachinery/pkg/types" | |||
| "sigs.k8s.io/controller-runtime/pkg/client" | |||
|
|
|||
| "github.com/percona/percona-postgresql-operator/v2/internal/feature" | |||
| "github.com/percona/percona-postgresql-operator/v3/internal/feature" | |||
|
|
|||
There was a problem hiding this comment.
[goimports-reviser] reported by reviewdog 🐶
| volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" | ||
|
|
There was a problem hiding this comment.
[goimports-reviser] reported by reviewdog 🐶
| volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" |
| @@ -17,9 +17,9 @@ import ( | |||
|
|
|||
| "github.com/pkg/errors" | |||
|
|
|||
There was a problem hiding this comment.
[goimports-reviser] reported by reviewdog 🐶
| corev1 "k8s.io/api/core/v1" | |
| "github.com/pkg/errors" | ||
|
|
There was a problem hiding this comment.
[goimports-reviser] reported by reviewdog 🐶
| "github.com/pkg/errors" |
| "github.com/pkg/errors" | ||
|
|
There was a problem hiding this comment.
[goimports-reviser] reported by reviewdog 🐶
| "github.com/pkg/errors" |
| "github.com/percona/percona-postgresql-operator/v3/internal/logging" | ||
| "github.com/percona/percona-postgresql-operator/v3/internal/naming" | ||
| v2 "github.com/percona/percona-postgresql-operator/v3/pkg/apis/pgv3.percona.com/v2" | ||
| "github.com/percona/percona-postgresql-operator/v3/pkg/apis/upstream.pgv3.percona.com/v1beta1" | ||
| "github.com/pkg/errors" |
There was a problem hiding this comment.
[goimports-reviser] reported by reviewdog 🐶
| "github.com/pkg/errors" |
| @@ -21,12 +21,12 @@ import ( | |||
| "sigs.k8s.io/controller-runtime/pkg/client/fake" | |||
|
|
|||
| volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" | |||
There was a problem hiding this comment.
[goimports-reviser] reported by reviewdog 🐶
| volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1" |
commit: 1793a01 |
v3 module
Problem:
PG 3.0.0 is released while go module still references v2 which makes it harder to use it.
Solution:
Implement v3 module
CHECKLIST
Jira
Needs Doc) and QA (Needs QA)?Tests
Config/Logging/Testability