Skip to content

Commit

Permalink
SRIOV-FEC Operator Release v2.11.0
Browse files Browse the repository at this point in the history
Signed-off-by: Balendu Mouli Burla <balendu.burla@intel.com>
  • Loading branch information
MouliBurla committed Feb 10, 2025
1 parent 7f3d4b9 commit 0b655a9
Show file tree
Hide file tree
Showing 192 changed files with 1,525 additions and 531 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
```text
SPDX-License-Identifier: Apache-2.0
Copyright (c) 2020-2024 Intel Corporation
Copyright (c) 2020-2025 Intel Corporation
```
<!-- omit in toc -->
# Contribution Guide
Expand Down
2 changes: 1 addition & 1 deletion COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020-2024 Intel Corporation
# Copyright (c) 2020-2025 Intel Corporation
2 changes: 1 addition & 1 deletion DEVELOPING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020-2024 Intel Corporation
# Copyright (c) 2020-2025 Intel Corporation
<!-- omit in toc -->
# Development Guide

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## SPDX-License-Identifier: Apache-2.0
## Copyright (c) 2020-2024 Intel Corporation
## Copyright (c) 2020-2025 Intel Corporation

# Build the manager binary
FROM golang:1.23.4 as builder
FROM golang:1.23.4 AS builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -22,7 +22,7 @@ COPY controllers/ controllers/
# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go

FROM registry.access.redhat.com/ubi9/ubi-micro:9.5-1733126338
FROM registry.access.redhat.com/ubi9/ubi-micro:9.5-1736426761

ARG VERSION
### Required OpenShift Labels
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.daemon
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020-2024 Intel Corporation
# Copyright (c) 2020-2025 Intel Corporation

FROM golang:1.23.4 AS builder

WORKDIR /workspace-pf

RUN git clone --depth 1 --branch v24.11 https://github.com/intel/pf-bb-config /workspace-pf/pf-bb-config
RUN git clone --depth 1 --branch v25.01 https://github.com/intel/pf-bb-config /workspace-pf/pf-bb-config

WORKDIR /workspace-pf/pf-bb-config

Expand All @@ -23,7 +23,7 @@ COPY api api/

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o sriov_fec_daemon cmd/daemon/main.go

FROM registry.access.redhat.com/ubi9/ubi:9.5-1732804088 AS package_installer
FROM registry.access.redhat.com/ubi9/ubi:9.5-1736404036 AS package_installer

RUN yum install \
kmod-28-10.el9 \
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.labeler
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020-2024 Intel Corporation
# Copyright (c) 2020-2025 Intel Corporation

FROM golang:1.23.4 as builder
FROM golang:1.23.4 AS builder

WORKDIR /workspace
COPY go.mod go.sum ./
Expand All @@ -15,7 +15,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o node_lab

RUN wget --progress=dot:giga https://pci-ids.ucw.cz/v2.2/pci.ids.gz -O pci.ids.gz && gunzip pci.ids.gz

FROM registry.access.redhat.com/ubi9/ubi-micro:9.5-1733126338
FROM registry.access.redhat.com/ubi9/ubi-micro:9.5-1736426761

ARG VERSION
### Required OpenShift Labels
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.sriov-fec-index
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## SPDX-License-Identifier: Apache-2.0
## Copyright (c) 2020-2024 Intel Corporation
## Copyright (c) 2020-2025 Intel Corporation

# The base image is expected to contain
# /bin/opm (with a serve subcommand) and /bin/grpc_health_probe
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020-2024 Intel Corporation
# Copyright (c) 2020-2025 Intel Corporation

# Default k8s command-line tool exec
export CLI_EXEC?=oc
# Container format for podman. Required to build containers with "ManifestType": "application/vnd.oci.image.manifest.v2+json",
export BUILDAH_FORMAT=docker
# Current Operator version
VERSION ?= 2.10.0
VERSION ?= 2.11.0
# Supported channels
CHANNELS ?= stable
# Default channel
Expand Down
2 changes: 1 addition & 1 deletion Security.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020-2024 Intel Corporation
# Copyright (c) 2020-2025 Intel Corporation

# Security Policy
Intel is committed to rapidly addressing security vulnerabilities affecting our customers and providing clear guidance on the solution, impact, severity and mitigation.
Expand Down
2 changes: 1 addition & 1 deletion api/sriovfec/v1/groupversion_info.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

/*
Expand Down
2 changes: 1 addition & 1 deletion api/sriovfec/v1/sriovfecclusterconfig_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v1

Expand Down
2 changes: 1 addition & 1 deletion api/sriovfec/v1/sriovfecnodeconfig_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v1

Expand Down
2 changes: 1 addition & 1 deletion api/sriovfec/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/sriovfec/v2/deepcopy_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v2

Expand Down
2 changes: 1 addition & 1 deletion api/sriovfec/v2/groupversion_info.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

// Package v2 contains API Schema definitions for the sriovfec v2 API group
// +kubebuilder:object:generate=true
Expand Down
2 changes: 1 addition & 1 deletion api/sriovfec/v2/helper.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v2

Expand Down
2 changes: 1 addition & 1 deletion api/sriovfec/v2/helper_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v2

Expand Down
2 changes: 1 addition & 1 deletion api/sriovfec/v2/sriovfecclusterconfig_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v2

Expand Down
2 changes: 1 addition & 1 deletion api/sriovfec/v2/sriovfecclusterconfig_types_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v2

Expand Down
2 changes: 1 addition & 1 deletion api/sriovfec/v2/sriovfecclusterconfig_webhook.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v2

Expand Down
2 changes: 1 addition & 1 deletion api/sriovfec/v2/sriovfecnodeconfig_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v2

Expand Down
2 changes: 1 addition & 1 deletion api/sriovfec/v2/webhook_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v2

Expand Down
2 changes: 1 addition & 1 deletion api/sriovfec/v2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/sriovvrb/v1/groupversion_info.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

// Package v1 contains API Schema definitions for the vrb v1 API group
// +kubebuilder:object:generate=true
Expand Down
2 changes: 1 addition & 1 deletion api/sriovvrb/v1/helper.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v1

Expand Down
10 changes: 9 additions & 1 deletion api/sriovvrb/v1/sriovvrbclusterconfig_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v1

Expand Down Expand Up @@ -160,6 +160,9 @@ type PhysicalFunctionConfigExt struct {

// BBDevConfig is a config for PF's queues
BBDevConfig BBDevConfig `json:"bbDevConfig"`

// VrbResourceName is optional for custom resource name for sriov-device-plugin
VrbResourceName string `json:"vrbResourceName"`
}

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
Expand Down Expand Up @@ -187,6 +190,11 @@ type SriovVrbClusterConfigSpec struct {
// +operator-sdk:csv:customresourcedefinitions:type=spec
// Skips drain process when true; default false. Should be true if operator is running on SNO
DrainSkip *bool `json:"drainSkip,omitempty"`

// Indicates custom resource name for sriov-device-plugin
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Pattern=`^[a-zA-Z0-9-_]+$`
VrbResourceName string `json:"vrbResourceName,omitempty"`
}

type AcceleratorSelector struct {
Expand Down
2 changes: 1 addition & 1 deletion api/sriovvrb/v1/sriovvrbclusterconfig_webhook.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v1

Expand Down
2 changes: 1 addition & 1 deletion api/sriovvrb/v1/sriovvrbnodeconfig_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v1

Expand Down
2 changes: 1 addition & 1 deletion api/sriovvrb/v1/webhook_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2020-2024 Intel Corporation
// Copyright (c) 2020-2025 Intel Corporation

package v1

Expand Down
2 changes: 1 addition & 1 deletion api/sriovvrb/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/100-labeler.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020-2024 Intel Corporation
# Copyright (c) 2020-2025 Intel Corporation

apiVersion: v1
kind: ConfigMap
Expand Down
12 changes: 6 additions & 6 deletions assets/200-device-plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020-2024 Intel Corporation
# Copyright (c) 2020-2025 Intel Corporation

apiVersion: v1
kind: ConfigMap
Expand Down Expand Up @@ -55,7 +55,7 @@ data:
{
"resourceList": [
{
"resourceName": "{{ .SRIOV_FEC_LTE_RESOURCE_NAME}}",
"resourceName": "{{ .SRIOV_FEC_LTE_RESOURCE_NAME }}",
"deviceType": "accelerator",
"selectors": {
"vendors": ["1172"],
Expand All @@ -69,7 +69,7 @@ data:
}
},
{
"resourceName": "{{ .SRIOV_FEC_5G_RESOURCE_NAME}}",
"resourceName": "{{ .SRIOV_FEC_5G_RESOURCE_NAME }}",
"deviceType": "accelerator",
"selectors": {
"vendors": ["8086"],
Expand All @@ -83,7 +83,7 @@ data:
}
},
{
"resourceName": "{{ .SRIOV_FEC_ACC100_RESOURCE_NAME}}",
"resourceName": "{{ .SRIOV_FEC_ACC100_RESOURCE_NAME }}",
"deviceType": "accelerator",
"selectors": {
"vendors": ["8086"],
Expand All @@ -97,7 +97,7 @@ data:
}
},
{
"resourceName": "{{ .SRIOV_FEC_ACC200_RESOURCE_NAME}}",
"resourceName": "{{ .SRIOV_FEC_ACC200_RESOURCE_NAME }}",
"deviceType": "accelerator",
"selectors": {
"vendors": ["8086"],
Expand All @@ -111,7 +111,7 @@ data:
}
},
{
"resourceName": "{{ .SRIOV_VRB_VRB2_RESOURCE_NAME}}",
"resourceName": "{{ .SRIOV_FEC_VRB2_RESOURCE_NAME }}",
"deviceType": "accelerator",
"selectors": {
"vendors": ["8086"],
Expand Down
Loading

0 comments on commit 0b655a9

Please sign in to comment.