Skip to content

Commit 58ebd25

Browse files
authored
Merge pull request #2028 from kube-logging/chore/use-ghcr-for-fluentbit
2 parents 2f6034e + 91e8e38 commit 58ebd25

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

pkg/sdk/extensions/extensionsconfig/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var Global = GlobalConfig{
7171

7272
// HostTailer configuration
7373
var HostTailer = HostTailerConfig{
74-
FluentBitImage: "docker.io/fluent/fluent-bit:3.2.5",
74+
FluentBitImage: "ghcr.io/fluent/fluent-bit:3.2.5",
7575
TailerAffix: "host-tailer",
7676
}
7777

@@ -85,7 +85,7 @@ var EventTailer = EventTailerConfig{
8585

8686
// TailerWebhook configuration
8787
var TailerWebhook = TailerWebhookConfig{
88-
FluentBitImage: "docker.io/fluent/fluent-bit:3.2.5",
88+
FluentBitImage: "ghcr.io/fluent/fluent-bit:3.2.5",
8989
AnnotationKey: "sidecar.logging-extensions.banzaicloud.io/tail",
9090
ServerPath: "/tailer-webhook",
9191
ServerPort: 9443,

pkg/sdk/extensions/extensionsconfig/config_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func TestFluentBitConfigFilePath(t *testing.T) {
4646
},
4747
{
4848
name: "imageVersionInvalid",
49-
args: args{image: "docker.io/fluent/[email protected]!unset", filePath: "/dev/stdout"},
49+
args: args{image: "ghcr.io/fluent/[email protected]!unset", filePath: "/dev/stdout"},
5050
want: []string{"-p", "path=/dev/stdout"},
5151
},
5252
{
@@ -56,7 +56,7 @@ func TestFluentBitConfigFilePath(t *testing.T) {
5656
},
5757
{
5858
name: "imageVersionLongVersionLess",
59-
args: args{image: "docker.io/fluent/fluent-bit:1.4.5", filePath: "/dev/stdout"},
59+
args: args{image: "ghcr.io/fluent/fluent-bit:1.4.5", filePath: "/dev/stdout"},
6060
want: []string{"-p", "path=/dev/stdout"},
6161
},
6262
{
@@ -66,7 +66,7 @@ func TestFluentBitConfigFilePath(t *testing.T) {
6666
},
6767
{
6868
name: "imageVersionLongversionEquals",
69-
args: args{image: "docker.io/fluent/fluent-bit:1.4.6", filePath: "/dev/stdout"},
69+
args: args{image: "ghcr.io/fluent/fluent-bit:1.4.6", filePath: "/dev/stdout"},
7070
want: []string{"-p", "path=/dev/", "-p", "file=stdout"},
7171
},
7272
{
@@ -76,22 +76,22 @@ func TestFluentBitConfigFilePath(t *testing.T) {
7676
},
7777
{
7878
name: "imageVersionLongversionGreater",
79-
args: args{image: "docker.io/fluent/fluent-bit:1.4.7", filePath: "/dev/stdout"},
79+
args: args{image: "ghcr.io/fluent/fluent-bit:1.4.7", filePath: "/dev/stdout"},
8080
want: []string{"-p", "path=/dev/", "-p", "file=stdout"},
8181
},
8282
{
8383
name: "longPath",
84-
args: args{image: "docker.io/fluent/fluent-bit:1.4.7", filePath: "/var/log/nginx/myaccess.log"},
84+
args: args{image: "ghcr.io/fluent/fluent-bit:1.4.7", filePath: "/var/log/nginx/myaccess.log"},
8585
want: []string{"-p", "path=/var/log/nginx/", "-p", "file=myaccess.log"},
8686
},
8787
{
8888
name: "relativeFilePath",
89-
args: args{image: "docker.io/fluent/fluent-bit:1.4.7", filePath: "./myaccess.log"},
89+
args: args{image: "ghcr.io/fluent/fluent-bit:1.4.7", filePath: "./myaccess.log"},
9090
want: []string{"-p", "path=./", "-p", "file=myaccess.log"},
9191
},
9292
{
9393
name: "noPathGiven",
94-
args: args{image: "docker.io/fluent/fluent-bit:1.4.7", filePath: "myaccess.log"},
94+
args: args{image: "ghcr.io/fluent/fluent-bit:1.4.7", filePath: "myaccess.log"},
9595
want: []string{"-p", "path=myaccess.log"},
9696
},
9797
}

pkg/sdk/logging/api/v1beta1/logging_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ type DefaultFlowSpec struct {
198198
var Version string
199199

200200
const (
201-
DefaultFluentbitImageRepository = "docker.io/fluent/fluent-bit"
201+
DefaultFluentbitImageRepository = "ghcr.io/fluent/fluent-bit"
202202
DefaultFluentbitImageTag = "3.2.5"
203203
DefaultFluentbitBufferVolumeImageRepository = "ghcr.io/kube-logging/logging-operator/node-exporter"
204204
DefaultFluentbitBufferVolumeImageTag = "latest"

0 commit comments

Comments
 (0)