Skip to content

Commit

Permalink
release 0.10.0 - update manifests
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Horacek <[email protected]>
  • Loading branch information
phoracek committed Jun 24, 2019
1 parent 7448db6 commit f2a727a
Show file tree
Hide file tree
Showing 8 changed files with 475 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,16 @@ spec:
First install the operator itself:

```shell
kubectl apply -f https://raw.githubusercontent.com/kubevirt/cluster-network-addons-operator/master/manifests/cluster-network-addons/0.9.0/namespace.yaml
kubectl apply -f https://raw.githubusercontent.com/kubevirt/cluster-network-addons-operator/master/manifests/cluster-network-addons/0.9.0/network-addons-config.crd.yaml
kubectl apply -f https://raw.githubusercontent.com/kubevirt/cluster-network-addons-operator/master/manifests/cluster-network-addons/0.9.0/operator.yaml
kubectl apply -f https://raw.githubusercontent.com/kubevirt/cluster-network-addons-operator/master/manifests/cluster-network-addons/0.10.0/namespace.yaml
kubectl apply -f https://raw.githubusercontent.com/kubevirt/cluster-network-addons-operator/master/manifests/cluster-network-addons/0.10.0/network-addons-config.crd.yaml
kubectl apply -f https://raw.githubusercontent.com/kubevirt/cluster-network-addons-operator/master/manifests/cluster-network-addons/0.10.0/operator.yaml
```

Then you need to create a configuration for the operator [example
CR](manifests/cluster-network-addons/0.4.0/network-addons-config-example.cr.yaml):

```shell
kubectl apply -f https://raw.githubusercontent.com/kubevirt/cluster-network-addons-operator/master/manifests/cluster-network-addons/0.9.0/network-addons-config-example.cr.yaml
kubectl apply -f https://raw.githubusercontent.com/kubevirt/cluster-network-addons-operator/master/manifests/cluster-network-addons/0.10.0/network-addons-config-example.cr.yaml
```

Finally you can wait for the operator to finish deployment:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
name: cluster-network-addons-operator.0.10.0
namespace: placeholder
annotations:
capabilities: "Full Lifecycle"
categories: "Networking"
alm-examples: |
[
{
"apiVersion":"networkaddonsoperator.network.kubevirt.io/v1alpha1",
"kind":"NetworkAddonsConfig",
"metadata": {
"name":"cluster"
},
"spec": {
"multus":{},
"linuxBridge":{},
"sriov":{},
"kubeMacPool": {
"rangeStart": "02:00:00:00:00:00",
"rangeEnd": "FD:FF:FF:FF:FF:FF"
},
"nmstate":{},
"imagePullPolicy": "IfNotPresent"
}
}
]
description: Additional networking components for Kubernetes
spec:
displayName: Cluster Network Addons
description: Deploy additional networking components for Kubernetes
keywords:
- Networking
- Multus
- CNI
- macpool
- SR-IOV
- Bridge
- nmstate
- KubeVirt
- Virtualization
version: 0.10.0
minKubeVersion: 1.10.0
maturity: alpha

replaces: cluster-network-addons-operator.0.9.0

maintainers:
- name: KubeVirt project
email: [email protected]
provider:
name: KubeVirt project
links:
- name: Cluster Network Addons Operator
url: https://github.com/kubevirt/cluster-network-addons-operator
icon: []
labels:
alm-owner-kubevirt: cluster-network-addons
operated-by: cluster-network-addons
selector:
matchLabels:
alm-owner-kubevirt: cluster-network-addons
operated-by: cluster-network-addons
installModes:
- type: OwnNamespace
supported: true
- type: SingleNamespace
supported: true
- type: MultiNamespace
supported: true
- type: AllNamespaces
supported: true
install:
strategy: deployment
spec:
permissions:
- serviceAccountName: cluster-network-addons-operator
rules:
- apiGroups:
- ""
resources:
- pods
- configmaps
verbs:
- get
- list
- watch
- create
- patch
- update
- delete
- apiGroups:
- apps
resources:
- deployments
- replicasets
verbs:
- get
- list
- watch
- create
- patch
- update
- delete

clusterPermissions:
- serviceAccountName: cluster-network-addons-operator
rules:
- apiGroups:
- security.openshift.io
resourceNames:
- privileged
resources:
- securitycontextconstraints
verbs:
- get
- list
- watch
- apiGroups:
- networkaddonsoperator.network.kubevirt.io
resources:
- networkaddonsconfigs
verbs:
- get
- list
- watch
- apiGroups:
- '*'
resources:
- '*'
verbs:
- '*'

deployments:
- name: cluster-network-addons-operator
spec:
replicas: 1
selector:
matchLabels:
name: cluster-network-addons-operator
strategy: {}
template:
metadata:
labels:
name: cluster-network-addons-operator
spec:
containers:
- env:
- name: MULTUS_IMAGE
value: quay.io/kubevirt/cluster-network-addon-multus:v3.2.0-1.gitbf61002
- name: LINUX_BRIDGE_IMAGE
value: quay.io/kubevirt/cni-default-plugins:v0.8.0
- name: LINUX_BRIDGE_MARKER_IMAGE
value: quay.io/kubevirt/bridge-marker:0.1.0
- name: SRIOV_DP_IMAGE
value: quay.io/kubevirt/cluster-network-addon-sriov-device-plugin:v2.0.0-1.git9a20829
- name: SRIOV_CNI_IMAGE
value: quay.io/kubevirt/cluster-network-addon-sriov-cni:v1.1.0-1.git9e4c973
- name: NMSTATE_STATE_HANDLER_IMAGE
value: quay.io/nmstate/kubernetes-nmstate-state-handler:v0.2.0
- name: SRIOV_ROOT_DEVICES
- name: SRIOV_NETWORK_NAME
value: sriov-network
- name: SRIOV_NETWORK_TYPE
value: sriov
- name: KUBEMACPOOL_IMAGE
value: quay.io/kubevirt/kubemacpool:v0.3.0
- name: OPERATOR_IMAGE
value: quay.io/kubevirt/cluster-network-addons-operator:0.10.0
- name: OPERATOR_NAME
value: cluster-network-addons-operator
- name: OPERATOR_VERSION
value: 0.10.0
- name: OPERATOR_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: WATCH_NAMESPACE
image: quay.io/kubevirt/cluster-network-addons-operator:0.10.0
imagePullPolicy: Always
name: cluster-network-addons-operator
resources: {}
serviceAccountName: cluster-network-addons-operator

customresourcedefinitions:
owned:
- name: networkaddonsconfigs.networkaddonsoperator.network.kubevirt.io
version: v1alpha1
group: networkaddonsoperator.network.kubevirt.io
kind: NetworkAddonsConfig
displayName: Cluster Network Addons
description: Cluster Network Addons
7 changes: 7 additions & 0 deletions manifests/cluster-network-addons/0.10.0/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: cluster-network-addons-operator
labels:
name: cluster-network-addons-operator
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
apiVersion: networkaddonsoperator.network.kubevirt.io/v1alpha1
kind: NetworkAddonsConfig
metadata:
name: cluster
spec:
imagePullPolicy: IfNotPresent
kubeMacPool: {}
linuxBridge: {}
multus: {}
nmstate: {}
sriov: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: networkaddonsconfigs.networkaddonsoperator.network.kubevirt.io
spec:
group: networkaddonsoperator.network.kubevirt.io
names:
kind: NetworkAddonsConfig
listKind: NetworkAddonsConfigList
plural: networkaddonsconfigs
singular: networkaddonsconfig
scope: Cluster
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
type: object
status:
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
Loading

0 comments on commit f2a727a

Please sign in to comment.