Merge "Added missing properties to catalogues"

This commit is contained in:
Zuul 2021-05-14 22:30:13 +00:00 committed by Gerrit Code Review
commit 655fdb2661
5 changed files with 54 additions and 19 deletions

View File

@ -53,6 +53,8 @@ spec:
type: integer type: integer
bond_mode: bond_mode:
type: string type: string
bond_xmit_hash_policy:
type: string
id: id:
type: string type: string
mtu: mtu:

View File

@ -92,10 +92,22 @@ spec:
charts: charts:
additionalProperties: additionalProperties:
description: ChartProperties defines the properties of the chart description: ChartProperties defines the properties of the chart
like Chart and vesrion like Chart and version
properties: properties:
chart: chart:
type: string type: string
sourceRef:
description: ChartSourceRef defines the properties of the Chart
SourceRef like Kind and Name
properties:
kind:
type: string
name:
type: string
required:
- kind
- name
type: object
version: version:
type: string type: string
required: required:
@ -215,9 +227,6 @@ spec:
description: Allows for the specification of the kubernetes version description: Allows for the specification of the kubernetes version
being used. being used.
type: string type: string
required:
- capi_images
- images
type: object type: object
type: object type: object
served: true served: true

View File

@ -42,6 +42,7 @@ type Link struct {
BondLinks []string `json:"bond_links,omitempty"` BondLinks []string `json:"bond_links,omitempty"`
BondMode string `json:"bond_mode,omitempty"` BondMode string `json:"bond_mode,omitempty"`
BondMiimon int `json:"bond_miimon,omitempty"` BondMiimon int `json:"bond_miimon,omitempty"`
BondXmitHashPolicy string `json:"bond_xmit_hash_policy,omitempty"`
VlanLink string `json:"vlan_link,omitempty"` VlanLink string `json:"vlan_link,omitempty"`
VlanID int `json:"vlan_id,omitempty"` VlanID int `json:"vlan_id,omitempty"`
VlanMacAddress string `json:"vlan_mac_address,omitempty"` VlanMacAddress string `json:"vlan_mac_address,omitempty"`

View File

@ -31,10 +31,17 @@ type RepoProperties struct {
// RepositorySpec defines the additional properties for repository // RepositorySpec defines the additional properties for repository
type RepositorySpec map[string]RepoProperties type RepositorySpec map[string]RepoProperties
// ChartProperties defines the properties of the chart like Chart and vesrion // ChartSourceRef defines the properties of the Chart SourceRef like Kind and Name
type ChartSourceRef struct {
Kind string `json:"kind"`
Name string `json:"name"`
}
// ChartProperties defines the properties of the chart like Chart and version
type ChartProperties struct { type ChartProperties struct {
Chart string `json:"chart"` Chart string `json:"chart"`
Version string `json:"version"` Version string `json:"version"`
SourceRef ChartSourceRef `json:"sourceRef,omitempty"`
} }
// ChartSpec defines the spec for charts // ChartSpec defines the spec for charts
@ -140,13 +147,13 @@ type VersionsCatalogueSpec struct {
// "repository" and "tag" properties defined. capi_images may also include an // "repository" and "tag" properties defined. capi_images may also include an
// optional "ipam-manager" object, which must also have "repository" and "tag" // optional "ipam-manager" object, which must also have "repository" and "tag"
// properties defined. // properties defined.
CAPIImages CAPIImageSpec `json:"capi_images,omtiempty"` CAPIImages CAPIImageSpec `json:"capi_images,omitempty"`
// images defines collections of images that are declared as complete // images defines collections of images that are declared as complete
// URLs rather than as a collection of discrete parts, such as "repository" and // URLs rather than as a collection of discrete parts, such as "repository" and
// "tag" or "sha". This section of the catalog is organized by // "tag" or "sha". This section of the catalog is organized by
// airshipctl function -> Deployments in function -> images in Deployment. // airshipctl function -> Deployments in function -> images in Deployment.
Images ImageSpec `json:"images,omtiempty"` Images ImageSpec `json:"images,omitempty"`
// image_components defines images that are declared using the Helm-style // image_components defines images that are declared using the Helm-style
// format that breaks image URLs into discrete parts, such as "repository" and "tag". // format that breaks image URLs into discrete parts, such as "repository" and "tag".

View File

@ -322,6 +322,7 @@ func (in CAPIImageSpec) DeepCopy() CAPIImageSpec {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ChartProperties) DeepCopyInto(out *ChartProperties) { func (in *ChartProperties) DeepCopyInto(out *ChartProperties) {
*out = *in *out = *in
out.SourceRef = in.SourceRef
} }
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartProperties. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartProperties.
@ -334,6 +335,21 @@ func (in *ChartProperties) DeepCopy() *ChartProperties {
return out return out
} }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ChartSourceRef) DeepCopyInto(out *ChartSourceRef) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartSourceRef.
func (in *ChartSourceRef) DeepCopy() *ChartSourceRef {
if in == nil {
return nil
}
out := new(ChartSourceRef)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in ChartSpec) DeepCopyInto(out *ChartSpec) { func (in ChartSpec) DeepCopyInto(out *ChartSpec) {
{ {