Skip to content

Commit 069f877

Browse files
authored
Merge branch 'main' into konflux/references/main
2 parents 119c18c + 5c99f62 commit 069f877

File tree

654 files changed

+13855
-102953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

654 files changed

+13855
-102953
lines changed

.tekton/network-observability-console-plugin-pull-request.yaml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,11 @@ spec:
2626
value: quay.io/redhat-user-workloads/ocp-network-observab-tenant/netobserv-operator/network-observability-console-plugin:on-pr-{{revision}}
2727
- name: image-expires-after
2828
value: 5d
29+
- name: build-args-file
30+
value: Dockerfile-args.downstream
2931
- name: dockerfile
3032
value: Dockerfile.downstream
33+
- name: build-platforms
34+
value: ["linux/x86_64"]
3135
pipelineRef:
3236
name: build-pipeline
33-
taskRunTemplate: {}
34-
workspaces:
35-
- name: workspace
36-
volumeClaimTemplate:
37-
metadata:
38-
creationTimestamp: null
39-
spec:
40-
accessModes:
41-
- ReadWriteOnce
42-
resources:
43-
requests:
44-
storage: 1Gi
45-
status: {}
46-
- name: git-auth
47-
secret:
48-
secretName: '{{ git_auth_secret }}'
49-
status: {}

.tekton/network-observability-console-plugin-push.yaml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ metadata:
55
build.appstudio.openshift.io/repo: https://github.com/netobserv/network-observability-console-plugin?rev={{revision}}
66
build.appstudio.redhat.com/commit_sha: '{{revision}}'
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8-
build.appstudio.openshift.io/build-nudge-files: "hack/container_digest.sh"
98
pipelinesascode.tekton.dev/max-keep-runs: "3"
9+
build.appstudio.openshift.io/build-nudge-files: "hack/nudging/container_digest.sh"
1010
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
1111
== "main"
1212
creationTimestamp: null
@@ -24,24 +24,11 @@ spec:
2424
value: '{{revision}}'
2525
- name: output-image
2626
value: quay.io/redhat-user-workloads/ocp-network-observab-tenant/netobserv-operator/network-observability-console-plugin:{{revision}}
27+
- name: image-expires-after
28+
value: 14d
29+
- name: build-args-file
30+
value: Dockerfile-args.downstream
2731
- name: dockerfile
2832
value: Dockerfile.downstream
2933
pipelineRef:
3034
name: build-pipeline
31-
taskRunTemplate: {}
32-
workspaces:
33-
- name: workspace
34-
volumeClaimTemplate:
35-
metadata:
36-
creationTimestamp: null
37-
spec:
38-
accessModes:
39-
- ReadWriteOnce
40-
resources:
41-
requests:
42-
storage: 1Gi
43-
status: {}
44-
- name: git-auth
45-
secret:
46-
secretName: '{{ git_auth_secret }}'
47-
status: {}

.tekton/pipeline-ref.yaml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ spec:
2121
- description: Source Repository URL
2222
name: git-url
2323
type: string
24-
- description: Version to build
25-
name: build-version
26-
type: string
27-
default: "main"
2824
- default: ""
2925
description: Revision of the Source Repository
3026
name: revision
@@ -197,9 +193,6 @@ spec:
197193
- name: BUILD_ARGS
198194
value:
199195
- $(params.build-args[*])
200-
- "COMMIT=$(tasks.clone-repository.results.commit)"
201-
- "BUILDVERSION=$(params.build-version)"
202-
- "DATE=$(tasks.clone-repository.results.commit-timestamp)"
203196
- name: BUILD_ARGS_FILE
204197
value: $(params.build-args-file)
205198
- name: SOURCE_ARTIFACT
@@ -248,9 +241,6 @@ spec:
248241
- name: BUILD_ARGS
249242
value:
250243
- $(params.build-args[*])
251-
- "COMMIT=$(tasks.clone-repository.results.commit)"
252-
- "BUILDVERSION=$(params.build-version)"
253-
- "DATE=$(tasks.clone-repository.results.commit-timestamp)"
254244
- "FRONTBUILD=$(params.output-image)-front"
255245
- name: BUILD_ARGS_FILE
256246
value: $(params.build-args-file)
@@ -332,20 +322,20 @@ spec:
332322
operator: in
333323
values:
334324
- "true"
335-
- name: rpms-signature-scan
325+
- name: deprecated-base-image-check
336326
params:
337-
- name: image-url
327+
- name: IMAGE_URL
338328
value: $(tasks.build-image-index.results.IMAGE_URL)
339-
- name: image-digest
329+
- name: IMAGE_DIGEST
340330
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
341331
runAfter:
342332
- build-image-index
343333
taskRef:
344334
params:
345335
- name: name
346-
value: rpms-signature-scan
336+
value: deprecated-image-check
347337
- name: bundle
348-
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:d00d159c370e3c99447516970c316ef57dfd27c29e0ce3cff50727c9c40936d8
338+
value: quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check:0.5@sha256:ced089bd8d86f95ee70f6ee1a6941d677f1c66c3b8f02fa60f9309c6c32e1929
349339
- name: kind
350340
value: task
351341
resolver: bundles
@@ -354,20 +344,20 @@ spec:
354344
operator: in
355345
values:
356346
- "false"
357-
- name: deprecated-base-image-check
347+
- name: rpms-signature-scan
358348
params:
359-
- name: IMAGE_URL
349+
- name: image-url
360350
value: $(tasks.build-image-index.results.IMAGE_URL)
361-
- name: IMAGE_DIGEST
351+
- name: image-digest
362352
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
363353
runAfter:
364354
- build-image-index
365355
taskRef:
366356
params:
367357
- name: name
368-
value: deprecated-image-check
358+
value: rpms-signature-scan
369359
- name: bundle
370-
value: quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check:0.5@sha256:5d63b920b71192906fe4d6c4903f594e6f34c5edcff9d21714a08b5edcfbc667
360+
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:e603b3df510aeefeaa12e8778c4642b21743cb0ae68704359dc7ffd2814249d2
371361
- name: kind
372362
value: task
373363
resolver: bundles

Dockerfile-args.downstream

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BUILDVERSION=1.9.0

Dockerfile.downstream

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
1-
ARG COMMIT
1+
ARG BUILDVERSION
22
ARG FRONTBUILD
33

44
FROM $FRONTBUILD as web-builder
55

66
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.23 as go-builder
77

88
ARG BUILDVERSION
9-
ARG DATE
109

1110
WORKDIR /opt/app-root
1211

1312
COPY go.mod go.mod
1413
COPY go.sum go.sum
1514
COPY vendor/ vendor/
16-
COPY .mk/ .mk/
1715
COPY cmd/ cmd/
1816
COPY pkg/ pkg/
1917

2018
ENV GOEXPERIMENT strictfipsruntime
21-
RUN go build -tags strictfipsruntime -ldflags "-X main.buildVersion=$BUILDVERSION -X main.buildDate=$DATE" -mod vendor -o plugin-backend cmd/plugin-backend.go
19+
RUN go build -tags strictfipsruntime -ldflags "-X 'main.buildVersion=$BUILDVERSION' -X 'main.buildDate=`date +%Y-%m-%d\ %H:%M`'" -mod vendor -o plugin-backend cmd/plugin-backend.go
2220

2321
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.5-1739420147
22+
ARG BUILDVERSION
2423

2524
COPY --from=web-builder /opt/app-root/web/dist ./web/dist
2625
COPY --from=go-builder /opt/app-root/plugin-backend ./
26+
COPY LICENSE /licenses/
27+
28+
USER 65532:65532
2729

2830
ENTRYPOINT ["./plugin-backend"]
2931

@@ -34,7 +36,5 @@ LABEL io.k8s.description="Network Observability Console Plugin"
3436
LABEL summary="Network Observability Console Plugin"
3537
LABEL maintainer="[email protected]"
3638
LABEL io.openshift.tags="network-observability-console-plugin"
37-
LABEL upstream-vcs-ref="$COMMIT"
38-
LABEL upstream-vcs-type="git"
39-
LABEL description="Based on Openshift Console dynamic plugin, this plugin implement the console elements for Network Observability."
40-
LABEL version="1.9.0"
39+
LABEL description="Network Observability visualization tool for the OpenShift Console."
40+
LABEL version=$BUILDVERSION

go.mod

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,26 @@ require (
88
github.com/gorilla/mux v1.8.1
99
github.com/json-iterator/go v1.1.12
1010
github.com/mitchellh/mapstructure v1.5.0
11-
github.com/ovn-org/ovn-kubernetes/go-controller v0.0.0-20241126140656-c95491e46334
11+
github.com/netobserv/netobserv-ebpf-agent v1.7.0-community.0.20250220123714-ff37a09f6232
1212
github.com/prometheus/client_golang v1.21.1
1313
github.com/prometheus/common v0.62.0
1414
github.com/sirupsen/logrus v1.9.3
1515
github.com/stretchr/testify v1.10.0
1616
gopkg.in/yaml.v3 v3.0.1
17-
k8s.io/api v0.32.1
17+
k8s.io/api v0.32.2
1818
k8s.io/apimachinery v0.32.2
19-
k8s.io/client-go v0.32.1
19+
k8s.io/client-go v0.32.2
2020
)
2121

2222
require (
2323
github.com/beorn7/perks v1.0.1 // indirect
24-
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
25-
github.com/cenkalti/hub v1.0.1 // indirect
26-
github.com/cenkalti/rpc2 v0.0.0-20210604223624-c1acbc6ec984 // indirect
2724
github.com/cespare/xxhash/v2 v2.3.0 // indirect
28-
github.com/containernetworking/cni v1.1.2 // indirect
29-
github.com/containernetworking/plugins v1.2.0 // indirect
30-
github.com/coreos/go-iptables v0.6.0 // indirect
31-
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
3225
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
33-
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
26+
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
3427
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
3528
github.com/go-logr/logr v1.4.2 // indirect
36-
github.com/go-logr/stdr v1.2.2 // indirect
3729
github.com/go-openapi/jsonpointer v0.21.0 // indirect
38-
github.com/go-openapi/jsonreference v0.20.2 // indirect
30+
github.com/go-openapi/jsonreference v0.21.0 // indirect
3931
github.com/go-openapi/swag v0.23.0 // indirect
4032
github.com/gogo/protobuf v1.3.2 // indirect
4133
github.com/golang/protobuf v1.5.4 // indirect
@@ -51,31 +43,24 @@ require (
5143
github.com/modern-go/reflect2 v1.0.2 // indirect
5244
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5345
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
54-
github.com/ovn-org/libovsdb v0.7.1-0.20240820095311-ce1951614a20 // indirect
46+
github.com/netobserv/flowlogs-pipeline v1.7.0-community.0.20241217113023-fa0540a1658e // indirect
47+
github.com/ovn-org/ovn-kubernetes/go-controller v0.0.0-20250215040159-dd2a70c928d3 // indirect
5548
github.com/pkg/errors v0.9.1 // indirect
5649
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
5750
github.com/prometheus/client_model v0.6.1 // indirect
5851
github.com/prometheus/procfs v0.15.1 // indirect
59-
github.com/russross/blackfriday/v2 v2.1.0 // indirect
60-
github.com/safchain/ethtool v0.3.1-0.20231027162144-83e5e0097c91 // indirect
52+
github.com/spf13/pflag v1.0.5 // indirect
6153
github.com/stretchr/objx v0.5.2 // indirect
62-
github.com/urfave/cli/v2 v2.27.2 // indirect
63-
github.com/vishvananda/netlink v1.2.1-beta.2.0.20231024175852-77df5d35f725 // indirect
64-
github.com/vishvananda/netns v0.0.4 // indirect
6554
github.com/x448/float16 v0.8.4 // indirect
66-
github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 // indirect
6755
golang.org/x/net v0.33.0 // indirect
6856
golang.org/x/oauth2 v0.24.0 // indirect
69-
golang.org/x/sys v0.28.0 // indirect
57+
golang.org/x/sys v0.30.0 // indirect
7058
golang.org/x/term v0.27.0 // indirect
7159
golang.org/x/text v0.21.0 // indirect
7260
golang.org/x/time v0.7.0 // indirect
73-
google.golang.org/protobuf v1.36.1 // indirect
61+
google.golang.org/protobuf v1.36.5 // indirect
7462
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
75-
gopkg.in/gcfg.v1 v1.2.3 // indirect
7663
gopkg.in/inf.v0 v0.9.1 // indirect
77-
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
78-
gopkg.in/warnings.v0 v0.1.2 // indirect
7964
gopkg.in/yaml.v2 v2.4.0 // indirect
8065
k8s.io/klog/v2 v2.130.1 // indirect
8166
k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect

0 commit comments

Comments
 (0)