-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update deployment files to operator-sdk 1.3.0
Signed-off-by: Mamduh Alassi <mamduhala@mellanox.com>
- Loading branch information
Showing
48 changed files
with
1,692 additions
and
687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
domain: mellanox.com | ||
layout: go.kubebuilder.io/v3 | ||
projectName: network-operator | ||
repo: github.com/Mellanox/network-operator | ||
resources: | ||
- crdVersion: v1 | ||
kind: NicClusterPolicy | ||
version: v1alpha1 | ||
- crdVersion: v1 | ||
kind: MacvlanNetwork | ||
version: v1alpha1 | ||
version: 3-alpha | ||
plugins: | ||
manifests.sdk.operatorframework.io/v2: {} | ||
scorecard.sdk.operatorframework.io/v2: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# The following manifests contain a self-signed issuer CR and a certificate CR. | ||
# More document can be found at https://docs.cert-manager.io | ||
# WARNING: Targets CertManager v1.0. Check https://cert-manager.io/docs/installation/upgrading/ for breaking changes. | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: selfsigned-issuer | ||
namespace: system | ||
spec: | ||
selfSigned: {} | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: serving-cert # this name should match the one appeared in kustomizeconfig.yaml | ||
namespace: system | ||
spec: | ||
# $(SERVICE_NAME) and $(SERVICE_NAMESPACE) will be substituted by kustomize | ||
dnsNames: | ||
- $(SERVICE_NAME).$(SERVICE_NAMESPACE).svc | ||
- $(SERVICE_NAME).$(SERVICE_NAMESPACE).svc.cluster.local | ||
issuerRef: | ||
kind: Issuer | ||
name: selfsigned-issuer | ||
secretName: webhook-server-cert # this secret will not be prefixed, since it's not managed by kustomize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
resources: | ||
- certificate.yaml | ||
|
||
configurations: | ||
- kustomizeconfig.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This configuration is for teaching kustomize how to update name ref and var substitution | ||
nameReference: | ||
- kind: Issuer | ||
group: cert-manager.io | ||
fieldSpecs: | ||
- kind: Certificate | ||
group: cert-manager.io | ||
path: spec/issuerRef/name | ||
|
||
varReference: | ||
- kind: Certificate | ||
group: cert-manager.io | ||
path: spec/commonName | ||
- kind: Certificate | ||
group: cert-manager.io | ||
path: spec/dnsNames |
57 changes: 57 additions & 0 deletions
57
config/crd/bases/k8s.cni.cncf.io_networkattachmentdefinitions_crd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Copyright 2020 NVIDIA | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: network-attachment-definitions.k8s.cni.cncf.io | ||
spec: | ||
group: k8s.cni.cncf.io | ||
scope: Namespaced | ||
names: | ||
plural: network-attachment-definitions | ||
singular: network-attachment-definition | ||
kind: NetworkAttachmentDefinition | ||
shortNames: | ||
- net-attach-def | ||
versions: | ||
- name: v1 | ||
served: true | ||
storage: true | ||
schema: | ||
openAPIV3Schema: | ||
description: 'NetworkAttachmentDefinition is a CRD schema specified by the Network Plumbing | ||
Working Group to express the intent for attaching pods to one or more logical or physical | ||
networks. More information available at: https://github.com/k8snetworkplumbingwg/multi-net-spec' | ||
type: object | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this represen | ||
tation of an object. Servers should convert recognized schemas to the | ||
latest internal value, and may reject unrecognized values. More info: | ||
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: 'NetworkAttachmentDefinition spec defines the desired state of a network attachment' | ||
type: object | ||
properties: | ||
config: | ||
description: 'NetworkAttachmentDefinition config is a JSON-formatted CNI configuration' | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.4.1 | ||
creationTimestamp: null | ||
name: macvlannetworks.mellanox.com | ||
spec: | ||
group: mellanox.com | ||
names: | ||
kind: MacvlanNetwork | ||
listKind: MacvlanNetworkList | ||
plural: macvlannetworks | ||
singular: macvlannetwork | ||
scope: Cluster | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: MacvlanNetwork is the Schema for the macvlannetworks API | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: MacvlanNetworkSpec defines the desired state of MacvlanNetwork | ||
properties: | ||
ipam: | ||
description: IPAM configuration to be used for this network. | ||
type: string | ||
master: | ||
description: Name of the host interface to enslave. Defaults to default | ||
route interface | ||
type: string | ||
mode: | ||
description: Mode of interface one of "bridge", "private", "vepa", | ||
"passthru" | ||
enum: | ||
- bridge | ||
- private | ||
- vepa | ||
- passthru | ||
type: string | ||
mtu: | ||
description: MTU of interface to the specified value. 0 for master's | ||
MTU | ||
minimum: 0 | ||
type: integer | ||
networkNamespace: | ||
description: Namespace of the NetworkAttachmentDefinition custom resource | ||
type: string | ||
type: object | ||
status: | ||
description: MacvlanNetworkStatus defines the observed state of MacvlanNetwork | ||
properties: | ||
macvlanNetworkAttachmentDef: | ||
description: Network attachment definition generated from MacvlanNetworkSpec | ||
type: string | ||
reason: | ||
description: Informative string in case the observed state is error | ||
type: string | ||
state: | ||
description: Reflects the state of the MacvlanNetwork | ||
enum: | ||
- notReady | ||
- ready | ||
- error | ||
type: string | ||
required: | ||
- state | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
Oops, something went wrong.