Skip to content

Commit 5b0e28d

Browse files
author
Benjamin Huo
authored
Merge pull request #41 from daniel-hutao/patch-1
Add shortNames for FluentBit FluentBitConfig CRDs
2 parents 497ecfe + 2c26788 commit 5b0e28d

5 files changed

+439
-1203
lines changed

api/v1alpha2/fluentbit_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ type FluentBitStatus struct {
5151
}
5252

5353
// +kubebuilder:object:root=true
54+
// +kubebuilder:resource:shortName=fb
5455

5556
// FluentBit is the Schema for the fluentbits API
5657
type FluentBit struct {

api/v1alpha2/fluentbitconfig_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ type Service struct {
6565
}
6666

6767
// +kubebuilder:object:root=true
68+
// +kubebuilder:resource:shortName=fbc
6869

6970
// FluentBitConfig is the Schema for the fluentbitconfigs API
7071
type FluentBitConfig struct {

config/crd/bases/logging.kubesphere.io_fluentbitconfigs.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ spec:
1313
kind: FluentBitConfig
1414
listKind: FluentBitConfigList
1515
plural: fluentbitconfigs
16+
shortNames:
17+
- fbc
1618
singular: fluentbitconfig
1719
scope: Namespaced
1820
validation:

config/crd/bases/logging.kubesphere.io_fluentbits.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ spec:
1313
kind: FluentBit
1414
listKind: FluentBitList
1515
plural: fluentbits
16+
shortNames:
17+
- fb
1618
singular: fluentbit
1719
scope: Namespaced
1820
validation:

0 commit comments

Comments
 (0)