Skip to content

Commit

Permalink
Renaming example, improving testbed documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cannarelladev committed Oct 24, 2023
1 parent f8583ed commit f0a22dd
Show file tree
Hide file tree
Showing 20 changed files with 258 additions and 144 deletions.
3 changes: 2 additions & 1 deletion .markdownlintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
deployments
docs/_legacy
docs/_legacy
testbed
9 changes: 9 additions & 0 deletions apis/nodecore/v1alpha1/flavour_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ type FlavourStatus struct {
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status

// +kubebuilder:printcolumn:name="Provider ID",type=string,JSONPath=`.spec.providerID`
// +kubebuilder:printcolumn:name="Type",type=string,JSONPath=`.spec.type`
// +kubebuilder:printcolumn:name="CPU",type=string,priority=1,JSONPath=`.spec.characteristics.cpu`
// +kubebuilder:printcolumn:name="Memory",type=string,priority=1,JSONPath=`.spec.characteristics.memory`
// +kubebuilder:printcolumn:name="Owner Name",type=string,priority=1,JSONPath=`.spec.owner.nodeID`
// +kubebuilder:printcolumn:name="Owner Domain",type=string,priority=1,JSONPath=`.spec.owner.domain`
// +kubebuilder:printcolumn:name="Available",type=boolean,JSONPath=`.spec.optionalFields.availability`
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

// Flavour is the Schema for the flavours API
type Flavour struct {
metav1.TypeMeta `json:",inline"`
Expand Down
8 changes: 0 additions & 8 deletions apis/nodecore/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 apis/reservation/v1alpha1/contract_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ type ContractStatus struct {
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status

// +kubebuilder:printcolumn:name="Flavour ID",type=string,JSONPath=`.spec.flavour.metadata.name`
// +kubebuilder:printcolumn:name="Buyer Name",type=string,JSONPath=`.spec.buyer.nodeID`
// +kubebuilder:printcolumn:name="Buyer Domain",type=string,priority=1,JSONPath=`.spec.buyer.domain`
// +kubebuilder:printcolumn:name="Seller Name",type=string,JSONPath=`.spec.seller.nodeID`
// +kubebuilder:printcolumn:name="Seller Domain",type=string,priority=1,JSONPath=`.spec.seller.domain`
// +kubebuilder:printcolumn:name="Transaction ID",type=string,priority=1,JSONPath=`.spec.transactionID`
// +kubebuilder:printcolumn:name="Buyer Liqo ID",type=string,priority=1,JSONPath=`.spec.buyerClusterID`
// +kubebuilder:printcolumn:name="Expiration Time",type=string,priority=1,JSONPath=`.spec.expirationTime`

// Contract is the Schema for the contracts API
type Contract struct {
metav1.TypeMeta `json:",inline"`
Expand Down
7 changes: 4 additions & 3 deletions apis/reservation/v1alpha1/reservation_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,12 @@ type ReservationStatus struct {
// +kubebuilder:printcolumn:name="Solver ID",type=string,JSONPath=`.spec.solverID`
// +kubebuilder:printcolumn:name="Reserve",type=boolean,JSONPath=`.spec.reserve`
// +kubebuilder:printcolumn:name="Purchase",type=boolean,JSONPath=`.spec.purchase`
// +kubebuilder:printcolumn:name="Seller",type=string,JSONPath=`.spec.seller.name`
// +kubebuilder:printcolumn:name="Seller Name",type=string,JSONPath=`.spec.seller.nodeID`
// +kubebuilder:printcolumn:name="Seller Domain",type=string,priority=1,JSONPath=`.spec.buyer.domain`
// +kubebuilder:printcolumn:name="Peering Candidate",type=string,priority=1,JSONPath=`.spec.peeringCandidate.name`
// +kubebuilder:printcolumn:name="Transaction ID",type=string,JSONPath=`.status.transactionID`
// +kubebuilder:printcolumn:name="Reserve Phase",type=string,priority=1,JSONPath=`.status.reservePhase.phase`
// +kubebuilder:printcolumn:name="Purchase Phase",type=string,priority=1,JSONPath=`.status.purchasePhase.phase`
// +kubebuilder:printcolumn:name="Reserve Phase",type=string,priority=1,JSONPath=`.status.reservePhase`
// +kubebuilder:printcolumn:name="Purchase Phase",type=string,priority=1,JSONPath=`.status.purchasePhase`
// +kubebuilder:printcolumn:name="Contract Name",type=string,JSONPath=`.status.contract.name`
// +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.phase.phase`
// +kubebuilder:printcolumn:name="Message",type=string,priority=1,JSONPath=`.status.phase.message`
Expand Down
7 changes: 7 additions & 0 deletions apis/reservation/v1alpha1/transaction_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ type TransactionStatus struct {
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status

// +kubebuilder:printcolumn:name="Flavour ID",type="string",JSONPath=".spec.flavourID"
// +kubebuilder:printcolumn:name="Buyer Name",type="string",JSONPath=".spec.buyer.nodeID"
// +kubebuilder:printcolumn:name="Buyer IP",type="string",priority=1,JSONPath=".spec.buyer.ip"
// +kubebuilder:printcolumn:name="Buyer Domain",type="string",priority=1,JSONPath=".spec.buyer.domain"
// +kubebuilder:printcolumn:name="Cluster ID",type="string",JSONPath=".spec.clusterID"
// +kubebuilder:printcolumn:name="Start Time",type="string",JSONPath=".spec.startTime"

// Transaction is the Schema for the transactions API
type Transaction struct {
metav1.TypeMeta `json:",inline"`
Expand Down
16 changes: 0 additions & 16 deletions apis/reservation/v1alpha1/zz_generated.deepcopy.go

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

34 changes: 31 additions & 3 deletions deployments/node/crds/nodecore.fluidos.eu_flavours.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,36 @@ spec:
singular: flavour
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .spec.providerID
name: Provider ID
type: string
- jsonPath: .spec.type
name: Type
type: string
- jsonPath: .spec.characteristics.cpu
name: CPU
priority: 1
type: string
- jsonPath: .spec.characteristics.memory
name: Memory
priority: 1
type: string
- jsonPath: .spec.owner.nodeID
name: Owner Name
priority: 1
type: string
- jsonPath: .spec.owner.domain
name: Owner Domain
priority: 1
type: string
- jsonPath: .spec.optionalFields.availability
name: Available
type: boolean
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: Flavour is the Schema for the flavours API
Expand Down Expand Up @@ -236,5 +265,4 @@ spec:
type: object
served: true
storage: true
subresources:
status: {}
subresources: {}
35 changes: 32 additions & 3 deletions deployments/node/crds/reservation.fluidos.eu_contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,37 @@ spec:
singular: contract
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .spec.flavour.metadata.name
name: Flavour ID
type: string
- jsonPath: .spec.buyer.nodeID
name: Buyer Name
type: string
- jsonPath: .spec.buyer.domain
name: Buyer Domain
priority: 1
type: string
- jsonPath: .spec.seller.nodeID
name: Seller Name
type: string
- jsonPath: .spec.seller.domain
name: Seller Domain
priority: 1
type: string
- jsonPath: .spec.transactionID
name: Transaction ID
priority: 1
type: string
- jsonPath: .spec.buyerClusterID
name: Buyer Liqo ID
priority: 1
type: string
- jsonPath: .spec.expirationTime
name: Expiration Time
priority: 1
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: Contract is the Schema for the contracts API
Expand Down Expand Up @@ -418,5 +448,4 @@ spec:
type: object
served: true
storage: true
subresources:
status: {}
subresources: {}
12 changes: 8 additions & 4 deletions deployments/node/crds/reservation.fluidos.eu_reservations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ spec:
- jsonPath: .spec.purchase
name: Purchase
type: boolean
- jsonPath: .spec.seller.name
name: Seller
- jsonPath: .spec.seller.nodeID
name: Seller Name
type: string
- jsonPath: .spec.buyer.domain
name: Seller Domain
priority: 1
type: string
- jsonPath: .spec.peeringCandidate.name
name: Peering Candidate
Expand All @@ -34,11 +38,11 @@ spec:
- jsonPath: .status.transactionID
name: Transaction ID
type: string
- jsonPath: .status.reservePhase.phase
- jsonPath: .status.reservePhase
name: Reserve Phase
priority: 1
type: string
- jsonPath: .status.purchasePhase.phase
- jsonPath: .status.purchasePhase
name: Purchase Phase
priority: 1
type: string
Expand Down
26 changes: 23 additions & 3 deletions deployments/node/crds/reservation.fluidos.eu_transactions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,28 @@ spec:
singular: transaction
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .spec.flavourID
name: Flavour ID
type: string
- jsonPath: .spec.buyer.nodeID
name: Buyer Name
type: string
- jsonPath: .spec.buyer.ip
name: Buyer IP
priority: 1
type: string
- jsonPath: .spec.buyer.domain
name: Buyer Domain
priority: 1
type: string
- jsonPath: .spec.clusterID
name: Cluster ID
type: string
- jsonPath: .spec.startTime
name: Start Time
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: Transaction is the Schema for the transactions API
Expand Down Expand Up @@ -131,5 +152,4 @@ spec:
type: object
served: true
storage: true
subresources:
status: {}
subresources: {}
92 changes: 0 additions & 92 deletions examples/kind/README.md

This file was deleted.

Loading

0 comments on commit f0a22dd

Please sign in to comment.