Merge pull request #785 from cappyzawa/feature/add-shortnames
Add shortNames aliases for ImageRepository and ImagePolicy CRDs
This commit is contained in:
commit
fc95ba97af
|
|
@ -205,6 +205,7 @@ func (in *ImagePolicy) SetConditions(conditions []metav1.Condition) {
|
|||
// +kubebuilder:storageversion
|
||||
// +kubebuilder:object:root=true
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:resource:shortName=imgpol;imagepol
|
||||
// +kubebuilder:printcolumn:name="LatestImage",type=string,JSONPath=`.status.latestImage`
|
||||
|
||||
// ImagePolicy is the Schema for the imagepolicies API
|
||||
|
|
|
|||
|
|
@ -197,6 +197,7 @@ func (in ImageRepository) GetRequeueAfter() time.Duration {
|
|||
// +kubebuilder:storageversion
|
||||
// +kubebuilder:object:root=true
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:resource:shortName=imgrepo;imagerepo
|
||||
// +kubebuilder:printcolumn:name="Last scan",type=string,JSONPath=`.status.lastScanResult.scanTime`
|
||||
// +kubebuilder:printcolumn:name="Tags",type=string,JSONPath=`.status.lastScanResult.tagCount`
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@ spec:
|
|||
kind: ImagePolicy
|
||||
listKind: ImagePolicyList
|
||||
plural: imagepolicies
|
||||
shortNames:
|
||||
- imgpol
|
||||
- imagepol
|
||||
singular: imagepolicy
|
||||
scope: Namespaced
|
||||
versions:
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@ spec:
|
|||
kind: ImageRepository
|
||||
listKind: ImageRepositoryList
|
||||
plural: imagerepositories
|
||||
shortNames:
|
||||
- imgrepo
|
||||
- imagerepo
|
||||
singular: imagerepository
|
||||
scope: Namespaced
|
||||
versions:
|
||||
|
|
|
|||
Loading…
Reference in New Issue