Skip to content

Commit

Permalink
Merge branch 'master' into fix/fluentbit-ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
eumel8 authored Nov 11, 2024
2 parents c7b228e + 39b50fe commit de31710
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ jobs:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2 # 0.28.0
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:1
with:
input: image
format: sarif
Expand Down Expand Up @@ -275,6 +278,9 @@ jobs:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2 # 0.28.0
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:1
with:
scan-type: config
scan-ref: charts/${{ steps.chart-name.outputs.value }}
Expand Down
2 changes: 1 addition & 1 deletion e2e/common/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func LoggingInfra(
ControlNamespace: nsInfra,
FluentdSpec: &v1beta1.FluentdSpec{
Image: v1beta1.ImageSpec{
Tag: "v1.16-4.9-base",
Tag: "v1.16-4.11-base",
},
DisablePvc: true,
Resources: v12.ResourceRequirements{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func TestFluentdAggregator_NamespaceLabel(t *testing.T) {
},
FluentdSpec: &v1beta1.FluentdSpec{
Image: v1beta1.ImageSpec{
Tag: "v1.16-4.9-base",
Tag: "v1.16-4.11-base",
},
Resources: corev1.ResourceRequirements{
Limits: corev1.ResourceList{
Expand Down
4 changes: 2 additions & 2 deletions e2e/fluentd-aggregator/fluentd_aggregator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestFluentdAggregator_MultiWorker(t *testing.T) {
},
FluentdSpec: &v1beta1.FluentdSpec{
Image: v1beta1.ImageSpec{
Tag: "v1.16-4.9-base",
Tag: "v1.16-4.11-base",
},
Resources: corev1.ResourceRequirements{
Limits: corev1.ResourceList{
Expand Down Expand Up @@ -259,7 +259,7 @@ func TestFluentdAggregator_ConfigChecks(t *testing.T) {
},
FluentdSpec: &v1beta1.FluentdSpec{
Image: v1beta1.ImageSpec{
Tag: "v1.16-4.9-base",
Tag: "v1.16-4.11-base",
},
Resources: corev1.ResourceRequirements{
Limits: corev1.ResourceList{
Expand Down
2 changes: 1 addition & 1 deletion e2e/volumedrain/volumedrain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestVolumeDrain_Downscale(t *testing.T) {
},
FluentdSpec: &v1beta1.FluentdSpec{
Image: v1beta1.ImageSpec{
Tag: "v1.16-4.9-base",
Tag: "v1.16-4.11-base",
},
Resources: corev1.ResourceRequirements{
Limits: corev1.ResourceList{
Expand Down
5 changes: 3 additions & 2 deletions pkg/resources/configcheck/configcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ type ConfigCheckCleaner struct {
labels client.MatchingLabels
}

func NewConfigCheckCleaner(c client.Client, component string) *ConfigCheckCleaner {
func NewConfigCheckCleaner(c client.Client, component string, logging string) *ConfigCheckCleaner {
return &ConfigCheckCleaner{
client: c,
labels: client.MatchingLabels{
"app.kubernetes.io/component": component,
"app.kubernetes.io/component": component,
"app.kubernetes.io/managed-by": logging,
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/fluentd/fluentd.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (r *Reconciler) Reconcile(ctx context.Context) (*reconcile.Result, error) {
}

if result, ok := r.Logging.Status.ConfigCheckResults[hash]; ok {
cleaner := configcheck.NewConfigCheckCleaner(r.Client, ComponentConfigCheck)
cleaner := configcheck.NewConfigCheckCleaner(r.Client, ComponentConfigCheck, r.Logging.GetName())

var cleanupErrs error
cleanupErrs = errors.Append(cleanupErrs, cleaner.SecretCleanup(ctx, hash))
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/syslogng/syslogng.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (r *Reconciler) Reconcile(ctx context.Context) (*reconcile.Result, error) {

// Cleanup previous configcheck results
if result, ok := r.Logging.Status.ConfigCheckResults[hash]; ok {
cleaner := configcheck.NewConfigCheckCleaner(r.Client, ComponentConfigCheck)
cleaner := configcheck.NewConfigCheckCleaner(r.Client, ComponentConfigCheck, r.Logging.GetName())

var cleanupErrs error
cleanupErrs = errors.Append(cleanupErrs, cleaner.SecretCleanup(ctx, hash))
Expand Down
2 changes: 1 addition & 1 deletion pkg/sdk/logging/api/v1beta1/logging_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const (
DefaultFluentbitConfigReloaderImageRepository = "ghcr.io/kube-logging/config-reloader"
DefaultFluentbitConfigReloaderImageTag = "v0.0.6"
DefaultFluentdImageRepository = "ghcr.io/kube-logging/fluentd"
DefaultFluentdImageTag = "v1.16-4.10-full"
DefaultFluentdImageTag = "v1.16-4.11-full"
DefaultFluentdBufferStorageVolumeName = "fluentd-buffer"
DefaultFluentdDrainWatchImageRepository = "ghcr.io/kube-logging/fluentd-drain-watch"
DefaultFluentdDrainWatchImageTag = "v0.2.3"
Expand Down
2 changes: 1 addition & 1 deletion pkg/sdk/logging/api/v1beta1/syslogng_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type _metaSyslogNGSpec interface{} //nolint:deadcode,unused

const (
defaultSyslogngImageRepository = "ghcr.io/axoflow/axosyslog"
defaultSyslogngImageTag = "4.8.1-1"
defaultSyslogngImageTag = "4.9.0"
configReloaderImageRepository = "ghcr.io/kube-logging/syslogng-reload"
configReloaderImageTag = "v1.5.0"
prometheusExporterImageRepository = "ghcr.io/axoflow/axosyslog-metrics-exporter"
Expand Down

0 comments on commit de31710

Please sign in to comment.