k8sclient: Network -> NetworkAttachmentDefinition

To align with latest spec change clarifying the name of the CRD object.
This commit is contained in:
Dan Williams
2018-07-12 08:42:56 -05:00
committed by Kuralamudhan Ramakrishnan
parent c8fbcf3358
commit 4f8c285520
7 changed files with 42 additions and 44 deletions

View File

@@ -52,7 +52,7 @@ type DelegateNetConf struct {
Bytes []byte
}
type Network struct {
type NetworkAttachmentDefinition struct {
metav1.TypeMeta `json:",inline"`
// Note that ObjectMeta is mandatory, as an object
// name is required
@@ -65,10 +65,10 @@ type Network struct {
// or .config (in that order) file on-disk whose JSON
// “name” key matches this Network objects name.
// +optional
Spec NetworkSpec `json:"spec"`
Spec NetworkAttachmentDefinitionSpec `json:"spec"`
}
type NetworkSpec struct {
type NetworkAttachmentDefinitionSpec struct {
// Config contains a standard JSON-encoded CNI configuration
// or configuration list which defines the plugin chain to
// execute. If present, this key takes precedence over