Skip to content

Commit

Permalink
fix(doc): deprecated badge
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed Nov 14, 2024
1 parent f6fb674 commit 24dc12b
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 11 deletions.
2 changes: 2 additions & 0 deletions addons/keda/keda.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ const (
kameletAnnotationAuthenticationPrefix = "camel.apache.org/keda.authentication."
)

// WARNING: The KEDA trait is experimental and may not be suitable for production grade use cases.
//
// The KEDA trait can be used for automatic integration with KEDA autoscalers.
// The trait can be either manually configured using the `triggers` option or automatically configured
// via markers in the Kamelets.
Expand Down
4 changes: 2 additions & 2 deletions cmd/util/doc-gen/generators/traitdocgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ func writeTitle(traitID string, content *[]string) {
}

// Write badges
// https://shields.io/badges/static-badge
func writeBadges(t *types.Type, content *[]string) {
pre, post := split(*content, adocBadgesMarkerStart, adocBadgesMarkerEnd)
// When there are no badges in the generated output already
Expand All @@ -185,7 +184,8 @@ func writeBadges(t *types.Type, content *[]string) {
res := append([]string(nil), pre...)
res = append(res, adocBadgesMarkerStart)
if ver := getDeprecatedVersion(t); ver != "" {
res = append(res, "image:https://img.shields.io/badge/"+ver+"-white?label=Deprecated&labelColor=C40C0C&color=gray[Deprecated Badge]")
res = append(res, "[.badges]")
res = append(res, "[.badge-key]##Deprecated since##[.badge-unsupported]##"+ver+"##")
}
res = append(res, adocBadgesMarkerEnd)
res = append(res, post...)
Expand Down
1 change: 0 additions & 1 deletion docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ kubectl -f helloworld.yaml
----

The integration code will immediately run in the cloud. Continue reading the documentation to xref:installation/installation.adoc[install and get started with Camel K].

3 changes: 2 additions & 1 deletion docs/modules/traits/pages/3scale.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
= 3scale Trait

// Start of autogenerated code - DO NOT EDIT! (badges)
image:https://img.shields.io/badge/2.5.0-white?label=Deprecated&labelColor=C40C0C&color=gray[Deprecated Badge]
[.badges]
[.badge-key]##Deprecated since##[.badge-unsupported]##2.5.0##
// End of autogenerated code - DO NOT EDIT! (badges)
// Start of autogenerated code - DO NOT EDIT! (description)
The 3scale trait can be used to automatically create annotations that allow
Expand Down
3 changes: 2 additions & 1 deletion docs/modules/traits/pages/aws-secrets-manager.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
= Aws Secrets Manager Trait

// Start of autogenerated code - DO NOT EDIT! (badges)
image:https://img.shields.io/badge/2.5.0-white?label=Deprecated&labelColor=C40C0C&color=gray[Deprecated Badge]
[.badges]
[.badge-key]##Deprecated since##[.badge-unsupported]##2.5.0##
// End of autogenerated code - DO NOT EDIT! (badges)
// Start of autogenerated code - DO NOT EDIT! (description)
The Secrets Manager trait can be used to use secrets from AWS Secrets Manager
Expand Down
3 changes: 2 additions & 1 deletion docs/modules/traits/pages/azure-key-vault.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
= Azure Key Vault Trait

// Start of autogenerated code - DO NOT EDIT! (badges)
image:https://img.shields.io/badge/2.5.0-white?label=Deprecated&labelColor=C40C0C&color=gray[Deprecated Badge]
[.badges]
[.badge-key]##Deprecated since##[.badge-unsupported]##2.5.0##
// End of autogenerated code - DO NOT EDIT! (badges)
// Start of autogenerated code - DO NOT EDIT! (description)
The Azure Key Vault trait can be used to use secrets from Azure Key Vault service
Expand Down
3 changes: 2 additions & 1 deletion docs/modules/traits/pages/gcp-secret-manager.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
= Gcp Secret Manager Trait

// Start of autogenerated code - DO NOT EDIT! (badges)
image:https://img.shields.io/badge/2.5.0-white?label=Deprecated&labelColor=C40C0C&color=gray[Deprecated Badge]
[.badges]
[.badge-key]##Deprecated since##[.badge-unsupported]##2.5.0##
// End of autogenerated code - DO NOT EDIT! (badges)
// Start of autogenerated code - DO NOT EDIT! (description)
The Google Secret Manager trait can be used to use secrets from Google Secret Manager
Expand Down
3 changes: 2 additions & 1 deletion docs/modules/traits/pages/hashicorp-vault.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
= Hashicorp Vault Trait

// Start of autogenerated code - DO NOT EDIT! (badges)
image:https://img.shields.io/badge/2.5.0-white?label=Deprecated&labelColor=C40C0C&color=gray[Deprecated Badge]
[.badges]
[.badge-key]##Deprecated since##[.badge-unsupported]##2.5.0##
// End of autogenerated code - DO NOT EDIT! (badges)
// Start of autogenerated code - DO NOT EDIT! (description)
The Hashicorp Vault trait can be used to use secrets from Hashicorp Vault
Expand Down
2 changes: 2 additions & 0 deletions docs/modules/traits/pages/keda.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// Start of autogenerated code - DO NOT EDIT! (badges)
// End of autogenerated code - DO NOT EDIT! (badges)
// Start of autogenerated code - DO NOT EDIT! (description)
WARNING: The KEDA trait is experimental and may not be suitable for production grade use cases.

The KEDA trait can be used for automatic integration with KEDA autoscalers.
The trait can be either manually configured using the `triggers` option or automatically configured
via markers in the Kamelets.
Expand Down
3 changes: 2 additions & 1 deletion docs/modules/traits/pages/openapi.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
= Openapi Trait

// Start of autogenerated code - DO NOT EDIT! (badges)
image:https://img.shields.io/badge/2.5.0-white?label=Deprecated&labelColor=C40C0C&color=gray[Deprecated Badge]
[.badges]
[.badge-key]##Deprecated since##[.badge-unsupported]##2.5.0##
// End of autogenerated code - DO NOT EDIT! (badges)
// Start of autogenerated code - DO NOT EDIT! (description)
The OpenAPI DSL trait is internally used to allow creating integrations from a OpenAPI specs.
Expand Down
3 changes: 2 additions & 1 deletion docs/modules/traits/pages/resume.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
= Resume Trait

// Start of autogenerated code - DO NOT EDIT! (badges)
image:https://img.shields.io/badge/2.5.0-white?label=Deprecated&labelColor=C40C0C&color=gray[Deprecated Badge]
[.badges]
[.badge-key]##Deprecated since##[.badge-unsupported]##2.5.0##
// End of autogenerated code - DO NOT EDIT! (badges)
// Start of autogenerated code - DO NOT EDIT! (description)
The Resume trait can be used to manage and configure resume strategies.
Expand Down
3 changes: 2 additions & 1 deletion docs/modules/traits/pages/service-binding.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
= Service Binding Trait

// Start of autogenerated code - DO NOT EDIT! (badges)
image:https://img.shields.io/badge/2.5.0-white?label=Deprecated&labelColor=C40C0C&color=gray[Deprecated Badge]
[.badges]
[.badge-key]##Deprecated since##[.badge-unsupported]##2.5.0##
// End of autogenerated code - DO NOT EDIT! (badges)
// Start of autogenerated code - DO NOT EDIT! (description)
The Service Binding trait allows users to connect to Services in Kubernetes:
Expand Down

0 comments on commit 24dc12b

Please sign in to comment.