Skip to content

Commit

Permalink
Fix chart example env var.
Browse files Browse the repository at this point in the history
  • Loading branch information
udhos committed Feb 22, 2024
1 parent b3a2068 commit bd7e1c9
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 8 deletions.
4 changes: 2 additions & 2 deletions charts/kubecache/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.0
version: 0.2.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.2.0"
appVersion: "0.2.1"

# Optional fields

Expand Down
2 changes: 1 addition & 1 deletion charts/kubecache/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ configMapProperties:
# *empty* list means match *anything*.
#
#RESTRICT_ROUTE_REGEXP: '["^/develop", "^/homolog", "^/prod", "/develop/?$", "/homolog/?$", "/prod/?$"]'
#RESTRICT_METHOD: '["GET", "HEAD"]`'
#RESTRICT_METHOD: '["GET", "HEAD"]'
#
#BACKEND_TIMEOUT: 300s
#CACHE_TTL: 300s
Expand Down
4 changes: 2 additions & 2 deletions cmd/kubecache/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func mustCache(method, uri string, restrictMethods []string, restrictRoutes []*r
}

var traceMethod = attribute.Key("method")
var traceUri = attribute.Key("uri")
var traceURI = attribute.Key("uri")
var traceResponseStatus = attribute.Key("response_status")
var traceResponseError = attribute.Key("response_error")
var traceElapsed = attribute.Key("elapsed")
Expand Down Expand Up @@ -250,7 +250,7 @@ func (app *application) ServeHTTP(w http.ResponseWriter, r *http.Request) {

span.SetAttributes(
traceMethod.String(method),
traceUri.String(uri),
traceURI.String(uri),
traceResponseStatus.Int(resp.Status),
traceElapsed.String(elap.String()),
traceUseCache.Bool(useCache),
Expand Down
2 changes: 1 addition & 1 deletion cmd/kubecache/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func doFetch(c context.Context, tracer trace.Tracer, httpClient *http.Client,

span.SetAttributes(
traceMethod.String(method),
traceUri.String(u),
traceURI.String(u),
traceResponseStatus.Int(resp.Status),
traceElapsed.String(elap.String()),
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/kubecache/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package main

const version = "0.2.0"
const version = "0.2.1"
14 changes: 13 additions & 1 deletion docs/index.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
apiVersion: v1
entries:
kubecache:
- apiVersion: v2
appVersion: 0.2.1
created: "2024-02-22T01:04:01.527124769-03:00"
description: Helm chart to install kubecache on kubernetes
digest: cccefa221c45e86212012e1ebed1c295d860648e521533a46103a78d20a91e9d
name: kubecache
sources:
- https://github.com/udhos/kubecache
type: application
urls:
- https://udhos.github.io/kubecache/kubecache-0.2.1.tgz
version: 0.2.1
- apiVersion: v2
appVersion: 0.2.0
created: "2024-02-22T00:54:57.132062709-03:00"
Expand Down Expand Up @@ -85,4 +97,4 @@ entries:
urls:
- https://udhos.github.io/kubecache/kubecache-0.0.0.tgz
version: 0.0.0
generated: "2024-02-22T00:54:57.129128227-03:00"
generated: "2024-02-22T01:04:01.525476201-03:00"
Binary file added docs/kubecache-0.2.1.tgz
Binary file not shown.

0 comments on commit bd7e1c9

Please sign in to comment.