Skip to content

Commit 8d025bc

Browse files
authored
chore: remove the old name of the instance manager (PGK) from code comments (cloudnative-pg#1530)
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
1 parent 8e4ca03 commit 8d025bc

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

internal/management/controller/manager.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Package controller contains the function in PGK that reacts to events in
18-
// the cluster.
17+
// Package controller contains the functions in PostgreSQL instance manager
18+
// that reacts to changes to the Cluster resource.
1919
package controller
2020

2121
import (
@@ -33,8 +33,8 @@ import (
3333
"github.com/cloudnative-pg/cloudnative-pg/pkg/management/postgres/webserver/metricserver"
3434
)
3535

36-
// InstanceReconciler can reconcile the status of the PostgreSQL cluster with
37-
// the one of this PostgreSQL instance. Also the configuration in the
36+
// InstanceReconciler reconciles the status of the Cluster resource with
37+
// the one of this PostgreSQL instance. Also, the configuration in the
3838
// ConfigMap is applied when needed
3939
type InstanceReconciler struct {
4040
client ctrl.Client

internal/pgbouncer/management/controller/manager.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Package controller contains the function in PGK that reacts to events in
18-
// the cluster.
17+
// Package controller contains the functions in pgbouncer instance manager
18+
// that reacts to changes in the Pooler resource.
1919
package controller
2020

2121
import (
@@ -38,9 +38,8 @@ import (
3838
"github.com/cloudnative-pg/cloudnative-pg/pkg/management/pgbouncer/config"
3939
)
4040

41-
// PgBouncerReconciler can reconcile the status of the PostgreSQL cluster with
42-
// the one of this PostgreSQL instance. Also the configuration in the
43-
// ConfigMap is applied when needed
41+
// PgBouncerReconciler reconciles the status of the Pooler resource with
42+
// the one of this pgbouncer instance
4443
type PgBouncerReconciler struct {
4544
client ctrl.WithWatch
4645
poolerWatch watch.Interface

pkg/management/log/log.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Package log contains the logging subsystem of PGK
17+
// Package log contains the logging subsystem of the instance manager
1818
package log
1919

2020
import (

pkg/management/logtest/logtest.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Package logtest contains the testing utils for the logging subsystem of PGK
17+
// Package logtest contains the testing utils for the logging subsystem of the instance manager
1818
package logtest
1919

2020
import (

pkg/management/postgres/initdb.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ limitations under the License.
1515
*/
1616

1717
// Package postgres contains the function about starting up,
18-
// shutting down and managing a PostgreSQL instance. This functions
19-
// are primarily used by PGK
18+
// shutting down and managing a PostgreSQL instance. These functions
19+
// are primarily used by the instance manager
2020
package postgres
2121

2222
import (

pkg/specs/rolebinding.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2222
)
2323

24-
// CreateRoleBinding is the binding between the permissions that PGK can use
24+
// CreateRoleBinding is the binding between the permissions that the instance manager can use
2525
// and the ServiceAccount used by the Pod
2626
func CreateRoleBinding(objectMeta metav1.ObjectMeta) rbacv1.RoleBinding {
2727
return rbacv1.RoleBinding{

0 commit comments

Comments
 (0)