Skip to content

Commit

Permalink
Added adv print columns
Browse files Browse the repository at this point in the history
Fixed dead link in contributing
  • Loading branch information
fraborg authored and adamjensenbot committed Dec 21, 2020
1 parent d0cecd2 commit cb6f4d0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -2,7 +2,7 @@

## Coding guidelines

When creating PRs and issues follow the repo's guidelines presented in our [documentation website](https://doc.liqo.io/contributing/guidelines/).
When creating PRs and issues follow the repo's guidelines presented in our [documentation website](https://doc.liqo.io/contributing/).



3 changes: 3 additions & 0 deletions apis/sharing/v1alpha1/advertisement_types.go
Expand Up @@ -77,6 +77,9 @@ type AdvertisementStatus struct {
// +kubebuilder:resource:scope=Cluster

// Advertisement is the Schema for the advertisements API
// +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.advertisementStatus`
// +kubebuilder:printcolumn:name="Expiration",type=string,JSONPath=`.spec.timeToLive`
// +kubebuilder:printcolumn:name="VkCreated",type=boolean,JSONPath=`.status.vkCreated`
type Advertisement struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
14 changes: 13 additions & 1 deletion deployments/liqo/crds/sharing.liqo.io_advertisements.yaml
Expand Up @@ -14,9 +14,21 @@ spec:
listKind: AdvertisementList
plural: advertisements
singular: advertisement
shortNames:
- adv
scope: Cluster
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .status.advertisementStatus
name: Status
type: string
- jsonPath: .spec.timeToLive
name: Expiration
type: string
- jsonPath: .status.vkCreated
name: VkCreated
type: boolean
name: v1alpha1
schema:
openAPIV3Schema:
description: Advertisement is the Schema for the advertisements API
Expand Down

0 comments on commit cb6f4d0

Please sign in to comment.