Skip to content

Commit

Permalink
adding shortcuts for CRDs (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
fracappa authored Aug 1, 2024
1 parent ec3d82f commit 8abfdbf
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/advertisement/v1alpha1/discovery_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type DiscoveryStatus struct {
// +kubebuilder:printcolumn:name="PC Name",type=string,JSONPath=`.status.peeringCandidate.name`
// +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.phase.phase`
// +kubebuilder:printcolumn:name="Message",type=string,JSONPath=`.status.phase.message`
// +kubebuilder:resource:shortName=dis
type Discovery struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions apis/nodecore/v1alpha1/allocation_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type AllocationStatus struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:shortName=alloc;allocs

// Allocation is the Schema for the allocations API.
type Allocation struct {
Expand Down
1 change: 1 addition & 0 deletions apis/nodecore/v1alpha1/solver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ type SolverStatus struct {
// +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.solverPhase.phase`
// +kubebuilder:printcolumn:name="Message",type=string,JSONPath=`.status.solverPhase.message`
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
// +kubebuilder:resource:shortName=sol
// Solver is the Schema for the solvers API.
type Solver struct {
metav1.TypeMeta `json:",inline"`
Expand Down
1 change: 1 addition & 0 deletions apis/reservation/v1alpha1/contract_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ type ContractStatus struct {
// +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`
// +kubebuilder:resource:shortName=contr
type Contract struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions apis/reservation/v1alpha1/reservation_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ type ReservationStatus struct {
// +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`
// +kubebuilder:resource:shortName=res
type Reservation struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions apis/reservation/v1alpha1/transaction_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type TransactionStatus struct {
// +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"
// +kubebuilder:resource:shortName=tr
type Transaction struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: Discovery
listKind: DiscoveryList
plural: discoveries
shortNames:
- dis
singular: discovery
scope: Namespaced
versions:
Expand Down
3 changes: 3 additions & 0 deletions deployments/node/crds/nodecore.fluidos.eu_allocations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ spec:
kind: Allocation
listKind: AllocationList
plural: allocations
shortNames:
- alloc
- allocs
singular: allocation
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions deployments/node/crds/nodecore.fluidos.eu_solvers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: Solver
listKind: SolverList
plural: solvers
shortNames:
- sol
singular: solver
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions deployments/node/crds/reservation.fluidos.eu_contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: Contract
listKind: ContractList
plural: contracts
shortNames:
- contr
singular: contract
scope: Namespaced
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: Reservation
listKind: ReservationList
plural: reservations
shortNames:
- res
singular: reservation
scope: Namespaced
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: Transaction
listKind: TransactionList
plural: transactions
shortNames:
- tr
singular: transaction
scope: Namespaced
versions:
Expand Down
Empty file modified tools/scripts/setup.sh
100755 → 100644
Empty file.

0 comments on commit 8abfdbf

Please sign in to comment.