diff --git a/charts/kubecache/Chart.yaml b/charts/kubecache/Chart.yaml index 07a2a42..e96f17a 100644 --- a/charts/kubecache/Chart.yaml +++ b/charts/kubecache/Chart.yaml @@ -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 diff --git a/charts/kubecache/values.yaml b/charts/kubecache/values.yaml index 9a16e97..9ce93f5 100644 --- a/charts/kubecache/values.yaml +++ b/charts/kubecache/values.yaml @@ -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 diff --git a/cmd/kubecache/app.go b/cmd/kubecache/app.go index 5e78c16..1556615 100644 --- a/cmd/kubecache/app.go +++ b/cmd/kubecache/app.go @@ -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") @@ -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), diff --git a/cmd/kubecache/fetch.go b/cmd/kubecache/fetch.go index 56d4315..b5fcffb 100644 --- a/cmd/kubecache/fetch.go +++ b/cmd/kubecache/fetch.go @@ -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()), ) diff --git a/cmd/kubecache/version.go b/cmd/kubecache/version.go index df39dee..3cf0a7c 100644 --- a/cmd/kubecache/version.go +++ b/cmd/kubecache/version.go @@ -1,3 +1,3 @@ package main -const version = "0.2.0" +const version = "0.2.1" diff --git a/docs/index.yaml b/docs/index.yaml index 60dd9d0..11d2c8b 100644 --- a/docs/index.yaml +++ b/docs/index.yaml @@ -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" @@ -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" diff --git a/docs/kubecache-0.2.1.tgz b/docs/kubecache-0.2.1.tgz new file mode 100644 index 0000000..3c63101 Binary files /dev/null and b/docs/kubecache-0.2.1.tgz differ