Skip to content

Commit

Permalink
Merge pull request Mellanox#122 from adrianchiris/change-namespaces
Browse files Browse the repository at this point in the history
Modify network-operator namespaces
  • Loading branch information
moshe010 authored Mar 9, 2021
2 parents 9735c36 + b159be0 commit b2defee
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 25 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/Mellanox/network-operator)](https://goreportcard.com/report/github.com/Mellanox/network-operator)
[![Build Status](https://travis-ci.com/Mellanox/network-operator.svg?branch=master)](https://travis-ci.com/Mellanox/network-operator)

- [Nvidia Mellanox Network Operator](#nvidia-mellanox-network-operator)
- [Nvidia Network Operator](#nvidia-network-operator)
* [Prerequisites](#prerequisites)
+ [Kubernetes Node Feature Discovery (NFD)](#kubernetes-node-feature-discovery--nfd-)
* [Resource Definitions](#resource-definitions)
Expand All @@ -20,8 +20,8 @@

<small><i><a href='http://ecotrust-canada.github.io/markdown-toc/'>Table of contents generated with markdown-toc</a></i></small>

# Nvidia Mellanox Network Operator
Nvidia Mellanox Network Operator leverages [Kubernetes CRDs](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
# Nvidia Network Operator
Nvidia Network Operator leverages [Kubernetes CRDs](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
and [Operator SDK](https://github.com/operator-framework/operator-sdk) to manage Networking related Components in order to enable Fast networking,
RDMA and GPUDirect for workloads in a Kubernetes cluster.

Expand All @@ -33,7 +33,7 @@ RDMA and GPUDirect RDMA workloads in a kubernetes cluster including:

## Prerequisites
### Kubernetes Node Feature Discovery (NFD)
Mellanox Network operator relies on Node labeling to get the cluster to the desired state.
Nvidia Network operator relies on Node labeling to get the cluster to the desired state.
[Node Feature Discovery](https://github.com/kubernetes-sigs/node-feature-discovery) `v0.6.0-233-g3e00bfb` or newer is expected to be deployed to provide the appropriate labeling:

- PCI vendor and device information
Expand Down Expand Up @@ -89,7 +89,7 @@ apiVersion: mellanox.com/v1alpha1
kind: NicClusterPolicy
metadata:
name: nic-cluster-policy
namespace: mlnx-network-operator
namespace: nvidia-network-operator
spec:
ofedDriver:
image: mofed
Expand Down
2 changes: 1 addition & 1 deletion deploy/operator-ns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: mlnx-network-operator
name: nvidia-network-operator
2 changes: 1 addition & 1 deletion deploy/operator-resources-ns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: mlnx-network-operator-resources
name: nvidia-network-operator-resources
2 changes: 1 addition & 1 deletion deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: network-operator
namespace: mlnx-network-operator
namespace: nvidia-network-operator
spec:
replicas: 1
selector:
Expand Down
4 changes: 2 additions & 2 deletions deploy/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ kind: Role
metadata:
creationTimestamp: null
name: network-operator
namespace: mlnx-network-operator
namespace: nvidia-network-operator
rules:
- apiGroups:
- events.k8s.io
Expand Down Expand Up @@ -102,7 +102,7 @@ kind: Role
metadata:
creationTimestamp: null
name: network-operator
namespace: mlnx-network-operator-resources
namespace: nvidia-network-operator-resources
rules:
- apiGroups:
- ""
Expand Down
10 changes: 5 additions & 5 deletions deploy/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: network-operator
namespace: mlnx-network-operator
namespace: nvidia-network-operator
subjects:
- kind: ServiceAccount
name: network-operator
namespace: mlnx-network-operator
namespace: nvidia-network-operator
roleRef:
kind: Role
name: network-operator
Expand All @@ -29,11 +29,11 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: network-operator
namespace: mlnx-network-operator-resources
namespace: nvidia-network-operator-resources
subjects:
- kind: ServiceAccount
name: network-operator
namespace: mlnx-network-operator
namespace: nvidia-network-operator
roleRef:
kind: Role
name: network-operator
Expand All @@ -46,7 +46,7 @@ metadata:
subjects:
- kind: ServiceAccount
name: network-operator
namespace: mlnx-network-operator
namespace: nvidia-network-operator
roleRef:
kind: ClusterRole
name: network-operator
Expand Down
2 changes: 1 addition & 1 deletion deploy/service_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: network-operator
namespace: mlnx-network-operator
namespace: nvidia-network-operator
8 changes: 4 additions & 4 deletions deployment/network-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Nvidia Mellanox Network Operator Helm Chart
# Nvidia Network Operator Helm Chart

Nvidia Mellanox Network Operator Helm Chart provides an easy way to install, configure and manage
Nvidia Network Operator Helm Chart provides an easy way to install, configure and manage
the lifecycle of Nvidia Mellanox network operator.

## Nvidia Mellanox Network Operator
Nvidia Mellanox Network Operator leverages [Kubernetes CRDs](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
## Nvidia Network Operator
Nvidia Network Operator leverages [Kubernetes CRDs](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
and [Operator SDK](https://github.com/operator-framework/operator-sdk) to manage Networking related Components in order to enable Fast networking,
RDMA and GPUDirect for workloads in a Kubernetes cluster.
Network Operator works in conjunction with [GPU-Operator](https://github.com/NVIDIA/gpu-operator) to enable GPU-Direct RDMA
Expand Down
2 changes: 1 addition & 1 deletion deployment/network-operator/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Get Network Operator deployed resources by running the following commands:

$ kubectl -n {{ .Release.Namespace }} get pods
$ kubectl -n mlnx-network-operator-resources get pods
$ kubectl -n nvidia-network-operator-resources get pods
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: mlnx-network-operator-resources
name: nvidia-network-operator-resources
2 changes: 1 addition & 1 deletion deployment/network-operator/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ kind: Role
metadata:
creationTimestamp: null
name: {{ include "network-operator.fullname" . }}
namespace: mlnx-network-operator-resources
namespace: nvidia-network-operator-resources
rules:
- apiGroups:
- ""
Expand Down
2 changes: 1 addition & 1 deletion deployment/network-operator/templates/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "network-operator.fullname" . }}
namespace: mlnx-network-operator-resources
namespace: nvidia-network-operator-resources
subjects:
- kind: ServiceAccount
name: {{ include "network-operator.fullname" . }}
Expand Down
2 changes: 1 addition & 1 deletion pkg/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const (
)

const (
NetworkOperatorResourceNamespace = "mlnx-network-operator-resources"
NetworkOperatorResourceNamespace = "nvidia-network-operator-resources"
NicClusterPolicyResourceName = "nic-cluster-policy"
)

Expand Down

0 comments on commit b2defee

Please sign in to comment.