Skip to content

Commit

Permalink
feat: set user agent and metadata version
Browse files Browse the repository at this point in the history
Set Kubernetes client UserAgent to "kro/0.1.0" and update metadata labeler
version from "dev" to "0.1.0".
  • Loading branch information
a-hilaly committed Nov 12, 2024
1 parent 327c137 commit 19df84e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/client/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func NewSet(cfg Config) (*Set, error) {
if config.Burst == 0 {
config.Burst = cfg.Burst
}
config.UserAgent = "kro/0.1.0"

c := &Set{config: config}
if err := c.init(); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/resourcegroup/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func NewResourceGroupReconciler(
allowCRDDeletion: allowCRDDeletion,
crdManager: crdWrapper,
dynamicController: dynamicController,
metadataLabeler: metadata.NewKroMetaLabeler("dev", "pod-id"),
metadataLabeler: metadata.NewKroMetaLabeler("0.1.0", "kro-pod"),
rgBuilder: builder,
}
}
Expand Down

0 comments on commit 19df84e

Please sign in to comment.