Skip to content

Commit c6a677e

Browse files
committed
operator intel-network-operator (v1.1.1)
Signed-off-by: Tuomas Katila <[email protected]>
1 parent 459ba0b commit c6a677e

10 files changed

+690
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
creationTimestamp: null
6+
labels:
7+
app.kubernetes.io/managed-by: kustomize
8+
app.kubernetes.io/name: output-dir
9+
control-plane: controller-manager
10+
name: intel-network-controller-manager-metrics-service
11+
spec:
12+
ports:
13+
- name: https
14+
port: 8443
15+
protocol: TCP
16+
targetPort: 8443
17+
selector:
18+
control-plane: controller-manager
19+
status:
20+
loadBalancer: {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: RoleBinding
4+
metadata:
5+
creationTimestamp: null
6+
name: intel-network-manager-scc-rolebinding
7+
roleRef:
8+
apiGroup: rbac.authorization.k8s.io
9+
kind: ClusterRole
10+
name: system:openshift:scc:privileged
11+
subjects:
12+
- kind: ServiceAccount
13+
name: intel-network-controller-manager
14+
namespace: intel-network-operator
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRole
4+
metadata:
5+
creationTimestamp: null
6+
name: intel-network-metrics-reader
7+
rules:
8+
- nonResourceURLs:
9+
- /metrics
10+
verbs:
11+
- get
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRole
4+
metadata:
5+
creationTimestamp: null
6+
labels:
7+
app.kubernetes.io/managed-by: kustomize
8+
app.kubernetes.io/name: network-operator
9+
name: intel-network-networkclusterpolicy-editor-role
10+
rules:
11+
- apiGroups:
12+
- intel.com
13+
resources:
14+
- networkclusterpolicies
15+
verbs:
16+
- create
17+
- delete
18+
- get
19+
- list
20+
- patch
21+
- update
22+
- watch
23+
- apiGroups:
24+
- intel.com
25+
resources:
26+
- networkclusterpolicies/status
27+
verbs:
28+
- get
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRole
4+
metadata:
5+
creationTimestamp: null
6+
labels:
7+
app.kubernetes.io/managed-by: kustomize
8+
app.kubernetes.io/name: network-operator
9+
name: intel-network-networkclusterpolicy-viewer-role
10+
rules:
11+
- apiGroups:
12+
- intel.com
13+
resources:
14+
- networkclusterpolicies
15+
verbs:
16+
- get
17+
- list
18+
- watch
19+
- apiGroups:
20+
- intel.com
21+
resources:
22+
- networkclusterpolicies/status
23+
verbs:
24+
- get
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
creationTimestamp: null
6+
labels:
7+
app.kubernetes.io/managed-by: kustomize
8+
app.kubernetes.io/name: network-operator
9+
name: intel-network-webhook-service
10+
spec:
11+
ports:
12+
- port: 443
13+
protocol: TCP
14+
targetPort: 9443
15+
selector:
16+
control-plane: controller-manager
17+
status:
18+
loadBalancer: {}
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
cert-manager.io/inject-ca-from: intel-network-operator/intel-network-serving-cert
7+
controller-gen.kubebuilder.io/version: v0.14.0
8+
creationTimestamp: null
9+
name: networkclusterpolicies.intel.com
10+
spec:
11+
conversion:
12+
strategy: Webhook
13+
webhook:
14+
clientConfig:
15+
service:
16+
name: intel-network-webhook-service
17+
namespace: intel-network-operator
18+
path: /convert
19+
conversionReviewVersions:
20+
- v1
21+
group: intel.com
22+
names:
23+
kind: NetworkClusterPolicy
24+
listKind: NetworkClusterPolicyList
25+
plural: networkclusterpolicies
26+
singular: networkclusterpolicy
27+
scope: Cluster
28+
versions:
29+
- name: v1alpha1
30+
schema:
31+
openAPIV3Schema:
32+
description: NetworkClusterPolicy is the Schema for the networkclusterpolicies
33+
API
34+
properties:
35+
apiVersion:
36+
description: |-
37+
APIVersion defines the versioned schema of this representation of an object.
38+
Servers should convert recognized schemas to the latest internal value, and
39+
may reject unrecognized values.
40+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
41+
type: string
42+
kind:
43+
description: |-
44+
Kind is a string value representing the REST resource this object represents.
45+
Servers may infer this from the endpoint the client submits requests to.
46+
Cannot be updated.
47+
In CamelCase.
48+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
49+
type: string
50+
metadata:
51+
type: object
52+
spec:
53+
description: NetworkClusterPolicySpec defines the desired state of NetworkClusterPolicy
54+
properties:
55+
configurationType:
56+
description: |-
57+
Configuration type that the operator will configure to the nodes. Possible options: gaudi-so.
58+
TODO: plausible other options: host-nic
59+
enum:
60+
- gaudi-so
61+
type: string
62+
gaudiScaleOut:
63+
description: Gaudi Scale-Out specific settings. Only valid when configuration
64+
type is 'gaudi-so'
65+
properties:
66+
disableNetworkManager:
67+
description: |-
68+
Disable Gaudi scale-out interfaces in NetworkManager. For nodes where NetworkManager tries
69+
to configure the Gaudi interfaces, prevent it from doing so.
70+
type: boolean
71+
enableLLDPAD:
72+
description: |-
73+
Enable LLDP for Priority Flow Control in a dedicated container
74+
Keep this value as false if lldpad LLDP daemon is already present and
75+
running on the host
76+
type: boolean
77+
image:
78+
description: Container image to handle interface configurations
79+
on the worker nodes.
80+
type: string
81+
layer:
82+
description: 'Layer where the configuration should occur. Possible
83+
options: L2 and L3.'
84+
enum:
85+
- L2
86+
- L3
87+
type: string
88+
mtu:
89+
description: MTU for the scale-out interfaces.
90+
maximum: 9000
91+
minimum: 1500
92+
type: integer
93+
networkMetrics:
94+
description: Enable scale-out network metrics support.
95+
type: boolean
96+
pfcPriorities:
97+
description: |-
98+
Bitmask of Priority Flow Control priorities to enable
99+
Requires lldpad on the host, or enabling the above EnableLLDPAD boolean
100+
Currently accepted values are 00000000 or 11110000
101+
enum:
102+
- "00000000"
103+
- "11110000"
104+
type: string
105+
pullPolicy:
106+
description: Normal image pull policy used in the resulting daemonset.
107+
enum:
108+
- Never
109+
- Always
110+
- IfNotPresent
111+
type: string
112+
type: object
113+
logLevel:
114+
description: LogLevel sets the operator's log level.
115+
maximum: 8
116+
minimum: 0
117+
type: integer
118+
nodeSelector:
119+
additionalProperties:
120+
type: string
121+
description: Select which nodes the operator should target. Align
122+
with labels created by NFD.
123+
type: object
124+
required:
125+
- configurationType
126+
type: object
127+
status:
128+
description: NetworkClusterPolicyStatus defines the observed state of
129+
NetworkClusterPolicy
130+
properties:
131+
errors:
132+
items:
133+
type: string
134+
type: array
135+
ready:
136+
format: int32
137+
type: integer
138+
state:
139+
type: string
140+
targets:
141+
format: int32
142+
type: integer
143+
required:
144+
- errors
145+
- ready
146+
- state
147+
- targets
148+
type: object
149+
type: object
150+
served: true
151+
storage: true
152+
subresources:
153+
status: {}
154+
status:
155+
acceptedNames:
156+
kind: ""
157+
plural: ""
158+
conditions: null
159+
storedVersions: null

operators/intel-network-operator/1.1.1/manifests/network-operator.clusterserviceversion.yaml

Lines changed: 401 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
annotations:
3+
# Core bundle annotations.
4+
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
5+
operators.operatorframework.io.bundle.manifests.v1: manifests/
6+
operators.operatorframework.io.bundle.metadata.v1: metadata/
7+
operators.operatorframework.io.bundle.package.v1: intel-network-operator
8+
operators.operatorframework.io.bundle.channels.v1: alpha
9+
operators.operatorframework.io.metrics.builder: operator-sdk-v1.41.1
10+
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
11+
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v4
12+
13+
# OpenShift annotations.
14+
com.redhat.openshift.versions: v4.18-v4.20
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cert_project_id : 691db1da75fca9481bad8be7

0 commit comments

Comments
 (0)