Skip to content

Commit 5c42fa7

Browse files
authored
Merge branch 'main' into dev/127
Signed-off-by: Marco Nenciarini <[email protected]>
2 parents 01cc94f + 78300f0 commit 5c42fa7

File tree

8 files changed

+9
-21
lines changed

8 files changed

+9
-21
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install Dagger
3838
env:
3939
# renovate: datasource=github-tags depName=dagger/dagger versioning=semver
40-
DAGGER_VERSION: 0.15.3
40+
DAGGER_VERSION: 0.16.1
4141
run: |
4242
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
4343
- name: Run CI task

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install Dagger
2323
env:
2424
# renovate: datasource=github-tags depName=dagger/dagger versioning=semver
25-
DAGGER_VERSION: 0.15.3
25+
DAGGER_VERSION: 0.16.1
2626
run: |
2727
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
2828
- name: Create image and manifest

.github/workflows/release-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Install Dagger
1515
env:
1616
# renovate: datasource=github-tags depName=dagger/dagger versioning=semver
17-
DAGGER_VERSION: 0.15.3
17+
DAGGER_VERSION: 0.16.1
1818
run: |
1919
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
2020
- name: Create image and manifest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Here’s an enhanced version of your instructions for verifying the prerequisite
7474
If CloudNativePG is installed in the default `cnpg-system` namespace, verify its version using the following command:
7575

7676
```sh
77-
kubectl get deployment -n cnpg-system cnpg-controller-manager \
77+
kubectl get deployment -n cnpg-system cnpg-controller-manager -o yaml \
7878
| grep ghcr.io/cloudnative-pg/cloudnative-pg
7979
```
8080

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ tasks:
147147
- start-build-network
148148
vars:
149149
# renovate: datasource=github-tags depName=dagger/dagger versioning=semver
150-
DAGGER_VERSION: 0.15.3
150+
DAGGER_VERSION: 0.16.1
151151
DAGGER_ENGINE_IMAGE: registry.dagger.io/engine:v{{ .DAGGER_VERSION }}
152152
cmds:
153153
- >

internal/cnpgi/restore/manager.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ import (
66
cnpgv1 "github.com/cloudnative-pg/cloudnative-pg/api/v1"
77
"github.com/spf13/viper"
88
corev1 "k8s.io/api/core/v1"
9-
"k8s.io/apimachinery/pkg/fields"
109
"k8s.io/apimachinery/pkg/runtime"
1110
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
1211
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
1312
ctrl "sigs.k8s.io/controller-runtime"
14-
"sigs.k8s.io/controller-runtime/pkg/cache"
1513
"sigs.k8s.io/controller-runtime/pkg/client"
1614
"sigs.k8s.io/controller-runtime/pkg/log"
1715

@@ -30,23 +28,9 @@ func init() {
3028
func Start(ctx context.Context) error {
3129
setupLog := log.FromContext(ctx)
3230
setupLog.Info("Starting barman cloud instance plugin")
33-
namespace := viper.GetString("namespace")
34-
clusterName := viper.GetString("cluster-name")
35-
36-
objs := map[client.Object]cache.ByObject{
37-
&cnpgv1.Cluster{}: {
38-
Field: fields.OneTermEqualSelector("metadata.name", clusterName),
39-
Namespaces: map[string]cache.Config{
40-
namespace: {},
41-
},
42-
},
43-
}
4431

4532
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
4633
Scheme: scheme,
47-
Cache: cache.Options{
48-
ByObject: objs,
49-
},
5034
Client: client.Options{
5135
Cache: &client.CacheOptions{
5236
DisableFor: []client.Object{

test/e2e/internal/tests/backup/fixtures.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ func newSrcClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster {
285285
Spec: cloudnativepgv1.ClusterSpec{
286286
Instances: 2,
287287
ImagePullPolicy: corev1.PullAlways,
288+
ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm",
288289
Plugins: []cloudnativepgv1.PluginConfiguration{
289290
{
290291
Name: "barman-cloud.cloudnative-pg.io",
@@ -320,6 +321,7 @@ func newDstClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster {
320321
Spec: cloudnativepgv1.ClusterSpec{
321322
Instances: 2,
322323
ImagePullPolicy: corev1.PullAlways,
324+
ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm",
323325
Bootstrap: &cloudnativepgv1.BootstrapConfiguration{
324326
Recovery: &cloudnativepgv1.BootstrapRecovery{
325327
Source: "source",

test/e2e/internal/tests/replicacluster/fixtures.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func newSrcCluster(namespace string) *cloudnativepgv1.Cluster {
112112
Spec: cloudnativepgv1.ClusterSpec{
113113
Instances: 2,
114114
ImagePullPolicy: corev1.PullAlways,
115+
ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm",
115116
Plugins: []cloudnativepgv1.PluginConfiguration{
116117
{
117118
Name: "barman-cloud.cloudnative-pg.io",
@@ -218,6 +219,7 @@ func newReplicaCluster(namespace string) *cloudnativepgv1.Cluster {
218219
Spec: cloudnativepgv1.ClusterSpec{
219220
Instances: 2,
220221
ImagePullPolicy: corev1.PullAlways,
222+
ImageName: "ghcr.io/cloudnative-pg/postgresql:17-minimal-bookworm",
221223
Bootstrap: &cloudnativepgv1.BootstrapConfiguration{
222224
Recovery: &cloudnativepgv1.BootstrapRecovery{
223225
Source: "source",

0 commit comments

Comments
 (0)