Skip to content

Commit

Permalink
Merge pull request fluent#269 from wenchajun/shortname
Browse files Browse the repository at this point in the history
add its shortname for each CRD
  • Loading branch information
benjaminhuo authored Apr 25, 2022
2 parents 09563bb + c738592 commit 8a06643
Show file tree
Hide file tree
Showing 26 changed files with 72 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apis/fluentbit/v1alpha2/clusterfilter_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type FilterItem struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Cluster
// +kubebuilder:resource:shortName=cfbf,scope=Cluster
// +genclient
// +genclient:nonNamespaced

Expand Down
2 changes: 1 addition & 1 deletion apis/fluentbit/v1alpha2/clusterinput_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type InputSpec struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Cluster
// +kubebuilder:resource:shortName=cfbi,scope=Cluster
// +genclient
// +genclient:nonNamespaced

Expand Down
2 changes: 1 addition & 1 deletion apis/fluentbit/v1alpha2/clusteroutput_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type OutputSpec struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Cluster
// +kubebuilder:resource:shortName=cfbo,scope=Cluster
// +genclient
// +genclient:nonNamespaced

Expand Down
2 changes: 1 addition & 1 deletion apis/fluentbit/v1alpha2/clusterparser_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type Decorder struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Cluster
// +kubebuilder:resource:shortName=cfbp,scope=Cluster
// +genclient
// +genclient:nonNamespaced

Expand Down
2 changes: 1 addition & 1 deletion apis/fluentd/v1alpha1/clusterfilter_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type ClusterFilterStatus struct {

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster
// +kubebuilder:resource:shortName=cfdf,scope=Cluster
// +genclient
// +genclient:nonNamespaced

Expand Down
2 changes: 1 addition & 1 deletion apis/fluentd/v1alpha1/clusteroutput_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type ClusterOutputStatus struct {

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster
// +kubebuilder:resource:shortName=cfdo,scope=Cluster
// +genclient
// +genclient:nonNamespaced

Expand Down
1 change: 1 addition & 0 deletions apis/fluentd/v1alpha1/filter_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type FilterStatus struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:shortName=fdf
//+genclient

// Filter is the Schema for the filters API
Expand Down
1 change: 1 addition & 0 deletions apis/fluentd/v1alpha1/output_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type OutputStatus struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:shortName=fdo
//+genclient

// Output is the Schema for the outputs API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: ClusterFilter
listKind: ClusterFilterList
plural: clusterfilters
shortNames:
- cfbf
singular: clusterfilter
scope: Cluster
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: ClusterInput
listKind: ClusterInputList
plural: clusterinputs
shortNames:
- cfbi
singular: clusterinput
scope: Cluster
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: ClusterOutput
listKind: ClusterOutputList
plural: clusteroutputs
shortNames:
- cfbo
singular: clusteroutput
scope: Cluster
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: ClusterParser
listKind: ClusterParserList
plural: clusterparsers
shortNames:
- cfbp
singular: clusterparser
scope: Cluster
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: ClusterFilter
listKind: ClusterFilterList
plural: clusterfilters
shortNames:
- cfdf
singular: clusterfilter
scope: Cluster
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: ClusterOutput
listKind: ClusterOutputList
plural: clusteroutputs
shortNames:
- cfdo
singular: clusteroutput
scope: Cluster
versions:
Expand Down
2 changes: 2 additions & 0 deletions charts/fluent-operator/crds/fluentd.fluent.io_filters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: Filter
listKind: FilterList
plural: filters
shortNames:
- fdf
singular: filter
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions charts/fluent-operator/crds/fluentd.fluent.io_outputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: Output
listKind: OutputList
plural: outputs
shortNames:
- fdo
singular: output
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_clusterfilters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: ClusterFilter
listKind: ClusterFilterList
plural: clusterfilters
shortNames:
- cfbf
singular: clusterfilter
scope: Cluster
versions:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_clusterinputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: ClusterInput
listKind: ClusterInputList
plural: clusterinputs
shortNames:
- cfbi
singular: clusterinput
scope: Cluster
versions:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_clusteroutputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: ClusterOutput
listKind: ClusterOutputList
plural: clusteroutputs
shortNames:
- cfbo
singular: clusteroutput
scope: Cluster
versions:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_clusterparsers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: ClusterParser
listKind: ClusterParserList
plural: clusterparsers
shortNames:
- cfbp
singular: clusterparser
scope: Cluster
versions:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/fluentd.fluent.io_clusterfilters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: ClusterFilter
listKind: ClusterFilterList
plural: clusterfilters
shortNames:
- cfdf
singular: clusterfilter
scope: Cluster
versions:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/fluentd.fluent.io_clusteroutputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: ClusterOutput
listKind: ClusterOutputList
plural: clusteroutputs
shortNames:
- cfdo
singular: clusteroutput
scope: Cluster
versions:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/fluentd.fluent.io_filters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: Filter
listKind: FilterList
plural: filters
shortNames:
- fdf
singular: filter
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/fluentd.fluent.io_outputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: Output
listKind: OutputList
plural: outputs
shortNames:
- fdo
singular: output
scope: Namespaced
versions:
Expand Down
16 changes: 16 additions & 0 deletions manifests/setup/fluent-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spec:
kind: ClusterFilter
listKind: ClusterFilterList
plural: clusterfilters
shortNames:
- cfbf
singular: clusterfilter
scope: Cluster
versions:
Expand Down Expand Up @@ -526,6 +528,8 @@ spec:
kind: ClusterFilter
listKind: ClusterFilterList
plural: clusterfilters
shortNames:
- cfdf
singular: clusterfilter
scope: Cluster
versions:
Expand Down Expand Up @@ -1421,6 +1425,8 @@ spec:
kind: ClusterInput
listKind: ClusterInputList
plural: clusterinputs
shortNames:
- cfbi
singular: clusterinput
scope: Cluster
versions:
Expand Down Expand Up @@ -1703,6 +1709,8 @@ spec:
kind: ClusterOutput
listKind: ClusterOutputList
plural: clusteroutputs
shortNames:
- cfbo
singular: clusteroutput
scope: Cluster
versions:
Expand Down Expand Up @@ -3032,6 +3040,8 @@ spec:
kind: ClusterOutput
listKind: ClusterOutputList
plural: clusteroutputs
shortNames:
- cfdo
singular: clusteroutput
scope: Cluster
versions:
Expand Down Expand Up @@ -4221,6 +4231,8 @@ spec:
kind: ClusterParser
listKind: ClusterParserList
plural: clusterparsers
shortNames:
- cfbp
singular: clusterparser
scope: Cluster
versions:
Expand Down Expand Up @@ -4334,6 +4346,8 @@ spec:
kind: Filter
listKind: FilterList
plural: filters
shortNames:
- fdf
singular: filter
scope: Namespaced
versions:
Expand Down Expand Up @@ -10615,6 +10629,8 @@ spec:
kind: Output
listKind: OutputList
plural: outputs
shortNames:
- fdo
singular: output
scope: Namespaced
versions:
Expand Down
16 changes: 16 additions & 0 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spec:
kind: ClusterFilter
listKind: ClusterFilterList
plural: clusterfilters
shortNames:
- cfbf
singular: clusterfilter
scope: Cluster
versions:
Expand Down Expand Up @@ -526,6 +528,8 @@ spec:
kind: ClusterFilter
listKind: ClusterFilterList
plural: clusterfilters
shortNames:
- cfdf
singular: clusterfilter
scope: Cluster
versions:
Expand Down Expand Up @@ -1421,6 +1425,8 @@ spec:
kind: ClusterInput
listKind: ClusterInputList
plural: clusterinputs
shortNames:
- cfbi
singular: clusterinput
scope: Cluster
versions:
Expand Down Expand Up @@ -1703,6 +1709,8 @@ spec:
kind: ClusterOutput
listKind: ClusterOutputList
plural: clusteroutputs
shortNames:
- cfbo
singular: clusteroutput
scope: Cluster
versions:
Expand Down Expand Up @@ -3032,6 +3040,8 @@ spec:
kind: ClusterOutput
listKind: ClusterOutputList
plural: clusteroutputs
shortNames:
- cfdo
singular: clusteroutput
scope: Cluster
versions:
Expand Down Expand Up @@ -4221,6 +4231,8 @@ spec:
kind: ClusterParser
listKind: ClusterParserList
plural: clusterparsers
shortNames:
- cfbp
singular: clusterparser
scope: Cluster
versions:
Expand Down Expand Up @@ -4334,6 +4346,8 @@ spec:
kind: Filter
listKind: FilterList
plural: filters
shortNames:
- fdf
singular: filter
scope: Namespaced
versions:
Expand Down Expand Up @@ -10615,6 +10629,8 @@ spec:
kind: Output
listKind: OutputList
plural: outputs
shortNames:
- fdo
singular: output
scope: Namespaced
versions:
Expand Down

0 comments on commit 8a06643

Please sign in to comment.