Skip to content

Commit 034bcee

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

10 files changed

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

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

Lines changed: 400 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
annotations:
2+
# Core bundle annotations.
3+
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
4+
operators.operatorframework.io.bundle.manifests.v1: manifests/
5+
operators.operatorframework.io.bundle.metadata.v1: metadata/
6+
operators.operatorframework.io.bundle.package.v1: intel-network-operator
7+
operators.operatorframework.io.bundle.channels.v1: alpha
8+
operators.operatorframework.io.metrics.builder: operator-sdk-v1.41.1
9+
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
10+
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v4
11+
12+
# OpenShift annotations.
13+
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)