Skip to content

Commit

Permalink
Update KLT Helm chart (#102)
Browse files Browse the repository at this point in the history
Co-authored-by: odubajDT <[email protected]>
  • Loading branch information
keptn-bot and odubajDT committed Sep 7, 2023
1 parent 30c01d2 commit e470bbd
Show file tree
Hide file tree
Showing 48 changed files with 1,298 additions and 639 deletions.
4 changes: 2 additions & 2 deletions charts/keptn-lifecycle-toolkit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ 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.5
version: 0.2.6

# 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: "v0.8.1" # x-release-please-version
appVersion: "v0.8.2" # x-release-please-version
104 changes: 53 additions & 51 deletions charts/keptn-lifecycle-toolkit/README.md

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions charts/keptn-lifecycle-toolkit/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## @param scheduler.scheduler.env.otelCollectorUrl sets url for open telemetry collector

## @param scheduler.scheduler.image.repository set image repository for scheduler
## @param scheduler.scheduler.image.tag set image tag for scheduler <!---x-release-please-version-->
## @param scheduler.scheduler.image.tag set image tag for scheduler
## @param scheduler.scheduler.imagePullPolicy set image pull policy for scheduler

## @extra scheduler.scheduler.livenessProbe customizable liveness probe for the scheduler
Expand Down Expand Up @@ -50,7 +50,7 @@
## @param certificateOperator.topologySpreadConstraints add topology constraints for cert manager

## @param lifecycleManagerConfig.controllerManagerConfigYaml.health.healthProbeBindAddress setup on what address to start the default health handler
## @param lifecycleManagerConfig.controllerManagerConfigYaml.leaderElection.leaderElect enable leader election for multiple replicas of the operator
## @param lifecycleManagerConfig.controllerManagerConfigYaml.leaderElection.leaderElect enable leader election for multiple replicas of the lifecycle operator
## @param lifecycleManagerConfig.controllerManagerConfigYaml.leaderElection.resourceName define LeaderElectionID
## @param lifecycleManagerConfig.controllerManagerConfigYaml.metrics.bindAddress MetricsBindAddress is the TCP address that the controller should bind to for serving prometheus metrics. It can be set to "0" to disable the metrics serving.
## @param lifecycleManagerConfig.controllerManagerConfigYaml.webhook.port setup port for the lifecycle operator admission webhook
Expand All @@ -66,7 +66,7 @@
## @skip certificateOperator.manager.containerSecurityContext.seccompProfile.type

## @param certificateOperator.manager.image.repository specify repo for manager image
## @param certificateOperator.manager.image.tag select tag for manager container <!---x-release-please-version-->
## @param certificateOperator.manager.image.tag select tag for manager container
## @param certificateOperator.manager.imagePullPolicy select image pull policy for manager container

## @param certificateOperator.manager.env.labelSelectorKey specify the label selector to find resources to generate certificates for
Expand Down Expand Up @@ -132,11 +132,11 @@
## @param lifecycleOperator.manager.env.optionsControllerLogLevel sets the log level of Keptn Options Controller

## @param lifecycleOperator.manager.env.otelCollectorUrl Sets the URL for the open telemetry collector
## @param lifecycleOperator.manager.env.functionRunnerImage specify image for deno task runtime <!---x-release-please-version-->
## @param lifecycleOperator.manager.env.pythonRunnerImage specify image for python task runtime <!---x-release-please-version-->
## @param lifecycleOperator.manager.env.functionRunnerImage specify image for deno task runtime
## @param lifecycleOperator.manager.env.pythonRunnerImage specify image for python task runtime

## @param lifecycleOperator.manager.image.repository specify registry for manager image
## @param lifecycleOperator.manager.image.tag select tag for manager image <!---x-release-please-version-->
## @param lifecycleOperator.manager.image.tag select tag for manager image
## @param lifecycleOperator.manager.imagePullPolicy specify pull policy for manager image

## @extra lifecycleOperator.manager.livenessProbe custom livenessprobe for manager container
Expand Down Expand Up @@ -206,10 +206,12 @@


## @param metricsOperator.manager.image.repository specify registry for manager image
## @param metricsOperator.manager.image.tag select tag for manager image <!---x-release-please-version-->
## @param metricsOperator.manager.image.tag select tag for manager image

## @param metricsOperator.manager.env.exposeKeptnMetrics enable metrics exporter
## @param metricsOperator.manager.env.metricsControllerLogLevel sets the log level of Metrics Controller
## @param metricsOperator.manager.env.analysisControllerLogLevel sets the log level of Analysis Controller
## @param metricsOperator.manager.env.enableKeptnAnalysis enables/disables the analysis feature

## @extra metricsOperator.manager.livenessProbe custom livenessprobe for manager container
## @skip metricsOperator.manager.livenessProbe.httpGet.path
Expand Down
142 changes: 142 additions & 0 deletions charts/keptn-lifecycle-toolkit/templates/analysis-crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: analyses.metrics.keptn.sh
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/klt-certs'
labels:
app.kubernetes.io/part-of: keptn-lifecycle-toolkit
crdGroup: metrics.keptn.sh
keptn.sh/inject-cert: "true"
{{- include "chart.labels" . | nindent 4 }}
spec:
group: metrics.keptn.sh
names:
kind: Analysis
listKind: AnalysisList
plural: analyses
singular: analysis
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .spec.analysisDefinition.name
name: AnalysisDefinition
type: string
- jsonPath: .status.warning
name: Warning
type: string
- jsonPath: .status.pass
name: Pass
type: string
name: v1alpha3
schema:
openAPIV3Schema:
description: Analysis is the Schema for the analyses API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: AnalysisSpec defines the desired state of Analysis
properties:
analysisDefinition:
description: AnalysisDefinition refers to the AnalysisDefinition,
a CRD that stores the AnalysisValuesTemplates
properties:
name:
description: Name defines the name of the referenced object
type: string
namespace:
description: Namespace defines the namespace of the referenced
object
type: string
required:
- name
type: object
args:
additionalProperties:
type: string
description: Args corresponds to a map of key/value pairs that can
be used to substitute placeholders in the AnalysisValueTemplate
query. i.e. for args foo:bar the query could be "query:percentile(95)?scope=tag(my_foo_label:{{.foo}})".
type: object
timeframe:
description: Timeframe specifies the range for the corresponding query
in the AnalysisValueTemplate
properties:
from:
description: From is the time of start for the query, this field
follows RFC3339 time format
format: date-time
type: string
to:
description: To is the time of end for the query, this field follows
RFC3339 time format
format: date-time
type: string
required:
- from
- to
type: object
required:
- analysisDefinition
- timeframe
type: object
status:
description: AnalysisStatus stores the status of the overall analysis
returns also pass or warnings
properties:
pass:
description: Pass returns whether the SLO is satisfied
type: boolean
raw:
description: Raw contains the raw result of the SLO computation
type: string
storedValues:
additionalProperties:
description: ProviderResult stores reference of already collected
provider query associated to its objective template
properties:
errMsg:
description: ErrMsg stores any possible error at retrieval time
type: string
objectiveReference:
description: Objective store reference to corresponding objective
template
properties:
name:
description: Name defines the name of the referenced object
type: string
namespace:
description: Namespace defines the namespace of the referenced
object
type: string
required:
- name
type: object
value:
description: Value is the value the provider returned
type: string
type: object
description: StoredValues contains all analysis values that have already
been retrieved successfully
type: object
warning:
description: Warning returns whether the analysis returned a warning
type: boolean
type: object
type: object
served: true
storage: true
subresources:
status: {}
Loading

0 comments on commit e470bbd

Please sign in to comment.