Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update samples #315

Merged
merged 1 commit into from
Feb 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apis/network/v1alpha1/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ import (
// * a v1alpha1.Machine
// * a Gateway
// * a ReservedIP
// * a Subnet
// * a raw IP
// * a raw CIDR.
type Target struct {
Machine *MachineRouteTarget `json:"machine,omitempty"`
Gateway *corev1.LocalObjectReference `json:"gateway,omitempty"`
ReservedIP *corev1.LocalObjectReference `json:"reservedIP,omitempty"`
Subnet *corev1.LocalObjectReference `json:"subnet,omitempty"`
IP string `json:"ip,omitempty"`
CIDR string `json:"cidr,omitempty"`
}
5 changes: 5 additions & 0 deletions apis/network/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions config/crd/bases/network.onmetal.de_gateways.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,15 @@ spec:
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
subnet:
description: LocalObjectReference contains enough information
to let you locate the referenced object inside the same namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
type: object
required:
- mode
Expand Down
10 changes: 10 additions & 0 deletions config/crd/bases/network.onmetal.de_routingdomains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ spec:
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
subnet:
description: LocalObjectReference contains enough information
to let you locate the referenced object inside the same
namespace.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
type: object
type: object
type: array
Expand Down
2 changes: 1 addition & 1 deletion config/samples/compute_v1alpha1_machine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
- name: myinterface
priority: 0 # optional
target:
name: mySubnetName
name: subnet-sample
securityGroups:
- name: mysecgroup1
volumeAttachments:
Expand Down
7 changes: 2 additions & 5 deletions config/samples/network_v1alpha1_gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,5 @@ spec:
uplink:
subnet:
name: subnet-sample
#status:
# state: Up
# ips:
# - 35.0.0.1

subnet:
name: subnet-sample-1
2 changes: 1 addition & 1 deletion config/samples/storage_v1alpha1_volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Volume
metadata:
name: volume-sample
spec:
storageClass:
storageClassRef:
name: storageclass-sample
storagePool:
name: storagepool-sample
Expand Down
4 changes: 4 additions & 0 deletions config/samples/storage_v1alpha1_volumeclaim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ kind: VolumeClaim
metadata:
name: volumeclaim-sample
spec:
storageClassRef:
name: storageclass-sample
volumeRef:
name: volume-sample
resources:
storage: 100Gi
14 changes: 7 additions & 7 deletions config/samples/subnet_machine_interface_flow.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
apiVersion: network.onmetal.de/v1alpha1
kind: RoutingDomain
metadata:
name: routingdomain-sample
name: routingdomain-sample-1
---
apiVersion: network.onmetal.de/v1alpha1
kind: Subnet
metadata:
name: subnet-sample
name: subnet-sample-1
spec:
routingDomain:
name: routingdomain-sample
name: routingdomain-sample-1
ranges:
- cidr: 192.168.0.0/24
---
Expand All @@ -24,7 +24,7 @@ data:
apiVersion: compute.onmetal.de/v1alpha1
kind: Machine
metadata:
name: machine-sample
name: machine-sample-1
spec:
hostname: myhost
machineClass:
Expand All @@ -38,10 +38,10 @@ spec:
- name: myinterface
priority: 0 # optional
target:
name: subnet-sample
name: subnet-sample-1
- name: myotherinterface
target:
name: subnet-sample
name: subnet-sample-1
securityGroups:
- name: mysecgroup1
ignition:
Expand All @@ -68,7 +68,7 @@ spec:
- name: myinterface
priority: 0 # optional
target:
name: subnet-sample
name: subnet-sample-1
securityGroups:
- name: mysecgroup1
ignition:
Expand Down