Skip to content

Conversation

@gkech
Copy link
Contributor

@gkech gkech commented Jul 21, 2025

K8SPG-552 Powered by Pull Request Badge

CHANGE DESCRIPTION

Problem:
Short explanation of the problem.

Cause:
Short explanation of the root cause of the issue if applicable.

Solution:
Short explanation of the solution we are providing with this PR.

CHECKLIST

Jira

  • Is the Jira ticket created and referenced properly?
  • Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
  • Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

  • Is an E2E test/test case added for the new feature/change?
  • Are unit tests added where appropriate?

Config/Logging/Testability

  • Are all needed new/changed options added to default YAML files?
  • Are all needed new/changed options added to the Helm Chart?
  • Did we add proper logging messages for operator actions?
  • Did we ensure compatibility with the previous version or cluster upgrade process?
  • Does the change support oldest and newest supported PG version?
  • Does the change support oldest and newest supported Kubernetes version?

@gkech gkech changed the title K8SPG-552 cert manager integration [WIP] K8SPG-552 cert manager integration Jul 21, 2025
"sigs.k8s.io/controller-runtime/pkg/event"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
"sigs.k8s.io/controller-runtime/pkg/manager"
certmanagerscheme "github.com/cert-manager/cert-manager/pkg/client/clientset/versioned/scheme"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶

Suggested change
certmanagerscheme "github.com/cert-manager/cert-manager/pkg/client/clientset/versioned/scheme"

"github.com/percona/percona-postgresql-operator/v2/internal/controller/runtime"
"github.com/percona/percona-postgresql-operator/v2/internal/controller/standalone_pgadmin"
"github.com/percona/percona-postgresql-operator/v2/internal/feature"
"github.com/percona/percona-postgresql-operator/v2/percona/certmanager"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶

Suggested change
"github.com/percona/percona-postgresql-operator/v2/percona/certmanager"

"context"
"errors"
"fmt"
"github.com/percona/percona-postgresql-operator/v2/percona/certmanager"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[goimports-reviser] reported by reviewdog 🐶

Suggested change
"github.com/percona/percona-postgresql-operator/v2/percona/certmanager"

"fmt"
"github.com/percona/percona-postgresql-operator/v2/percona/certmanager"
"io"
"k8s.io/client-go/rest"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[goimports-reviser] reported by reviewdog 🐶

Suggested change
"k8s.io/client-go/rest"

k8sruntime "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/util/validation/field"
"k8s.io/client-go/discovery"
"k8s.io/client-go/tools/record"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[goimports-reviser] reported by reviewdog 🐶

Suggested change
"k8s.io/client-go/tools/record"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/record"

kubectl create namespace cert-manager || :
kubectl label namespace cert-manager certmanager.k8s.io/disable-validation=true || :
kubectl apply -f "https://github.com/jetstack/cert-manager/releases/download/v${CERT_MANAGER_VER}/cert-manager.yaml" --validate=false > /dev/null 2>&1 || :
kubectl apply -f "https://github.com/jetstack/cert-manager/releases/download/v1.17.1/cert-manager.yaml" --validate=false > /dev/null 2>&1 || :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
kubectl apply -f "https://github.com/jetstack/cert-manager/releases/download/v1.17.1/cert-manager.yaml" --validate=false > /dev/null 2>&1 || :
kubectl apply -f "https://github.com/jetstack/cert-manager/releases/download/v1.17.1/cert-manager.yaml" --validate=false >/dev/null 2>&1 || :

kubectl create namespace cert-manager || :
kubectl label namespace cert-manager certmanager.k8s.io/disable-validation=true || :
kubectl apply -f "https://github.com/jetstack/cert-manager/releases/download/v${CERT_MANAGER_VER}/cert-manager.yaml" --validate=false > /dev/null 2>&1 || :
kubectl apply -f "https://github.com/jetstack/cert-manager/releases/download/v1.17.1/cert-manager.yaml" --validate=false > /dev/null 2>&1 || :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
kubectl apply -f "https://github.com/jetstack/cert-manager/releases/download/v1.17.1/cert-manager.yaml" --validate=false > /dev/null 2>&1 || :
kubectl apply -f "https://github.com/jetstack/cert-manager/releases/download/v1.17.1/cert-manager.yaml" --validate=false >/dev/null 2>&1 || :

@JNKPercona
Copy link
Collaborator

Test Name Result Time
backup-enable-disable failure 00:00:00
custom-envs failure 00:00:00
custom-extensions failure 00:00:00
custom-tls failure 00:00:00
database-init-sql skipped 00:00:00
demand-backup skipped 00:00:00
finalizers skipped 00:00:00
init-deploy skipped 00:00:00
monitoring skipped 00:00:00
monitoring-pmm3 skipped 00:00:00
one-pod skipped 00:00:00
operator-self-healing skipped 00:00:00
pgvector-extension skipped 00:00:00
pitr skipped 00:00:00
scaling skipped 00:00:00
scheduled-backup skipped 00:00:00
self-healing skipped 00:00:00
sidecars skipped 00:00:00
start-from-backup skipped 00:00:00
tablespaces skipped 00:00:00
telemetry-transfer skipped 00:00:00
upgrade-consistency skipped 00:00:00
upgrade-minor skipped 00:00:00
users skipped 00:00:00
Summary Value
Tests Run 4/24
Job Duration 00:20:01
Total Test Time N/A

commit: 1fe470d
image: perconalab/percona-postgresql-operator:PR-1233-1fe470dfa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants