Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update KLT chart
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <noreply@github.com>
thisthat authored Mar 16, 2023
1 parent dd1b1c3 commit b700d65
Showing 10 changed files with 143 additions and 79 deletions.
2 changes: 1 addition & 1 deletion charts/keptn-lifecycle-toolkit/Chart.yaml
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ annotations:
artifacthub.io/operator: "true"
artifacthub.io/operatorCapabilities: "Full Lifecycle"

kubeVersion: ">= 1.24.0"
kubeVersion: ">= 1.24.0-0"
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
101 changes: 53 additions & 48 deletions charts/keptn-lifecycle-toolkit/README.md

Large diffs are not rendered by default.

41 changes: 23 additions & 18 deletions charts/keptn-lifecycle-toolkit/doc.yaml
Original file line number Diff line number Diff line change
@@ -48,10 +48,10 @@
## @param certificateOperator.tolerations customize tolerations for cert manager
## @param certificateOperator.topologySpreadConstraints add topology constraints for cert manager

## @param lifecycleManagerConfig.controllerManagerConfigYaml.health.healthProbeBindAddress TODO TODO TODO
## @param lifecycleManagerConfig.controllerManagerConfigYaml.leaderElection.leaderElect TODO TODO TODO
## @param lifecycleManagerConfig.controllerManagerConfigYaml.leaderElection.resourceName TODO TODO TODO
## @param lifecycleManagerConfig.controllerManagerConfigYaml.metrics.bindAddress TODO TODO TODO
## @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.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


@@ -90,10 +90,11 @@

## @param lifecycleOperator.replicas customize number of installed lifecycle operator replicas

## @param lifecycleWebhookService.ports[0].port TODO TODO TODO
## @param lifecycleWebhookService.ports[0].protocol TODO TODO TODO
## @param lifecycleWebhookService.ports[0].targetPort TODO TODO TODO
## @param lifecycleWebhookService.type TODO TODO TODO
## @extra Mutating Webhook Configurations for lifecycle Operator
## @param lifecycleWebhookService.ports[0].port
## @param lifecycleWebhookService.ports[0].protocol
## @param lifecycleWebhookService.ports[0].targetPort
## @param lifecycleWebhookService.type

## @param lifecycleOperator.nodeSelector add custom nodes selector to lifecycle operator
## @param lifecycleOperator.tolerations add custom tolerations to lifecycle operator
@@ -148,29 +149,33 @@

## @param metricsOperator.replicas customize number of installed metrics operator replicas

## @extra metricsOperatorService.ports[0] webhook port (must correspond to Mutating Webhook Configurations)
## @param metricsOperatorService.ports[0].name
## @param metricsOperatorService.ports[0].port
## @param metricsOperatorService.ports[0].protocol
## @param metricsOperatorService.ports[0].targetPort
## @extra metricsOperatorService.ports[1] port to integrate with the K8s custom metrics API
## @param metricsOperatorService.ports[1].name
## @param metricsOperatorService.ports[1].port
## @param metricsOperatorService.ports[1].targetPort
## @extra metricsOperatorService.ports[2] port to integrate with metrics API (e.g. Keda)
## @param metricsOperatorService.ports[2].name
## @param metricsOperatorService.ports[2].port
## @param metricsOperatorService.ports[2].protocol
## @param metricsOperatorService.ports[2].targetPort
## @param metricsOperatorService.type

## @param metricsManagerConfig.controllerManagerConfigYaml.health.healthProbeBindAddress TODO TODO TODO
## @param metricsManagerConfig.controllerManagerConfigYaml.leaderElection.leaderElect TODO TODO TODO
## @param metricsManagerConfig.controllerManagerConfigYaml.leaderElection.resourceName TODO TODO TODO
## @param metricsManagerConfig.controllerManagerConfigYaml.metrics.bindAddress TODO TODO TODO
## @param metricsManagerConfig.controllerManagerConfigYaml.webhook.port TODO TODO TODO

## @param metricsWebhookService.ports[0].port TODO TODO TODO
## @param metricsWebhookService.ports[0].protocol TODO TODO TODO
## @param metricsWebhookService.ports[0].targetPort TODO TODO TODO
## @param metricsWebhookService.type TODO TODO TODO
## @param metricsManagerConfig.controllerManagerConfigYaml.health.healthProbeBindAddress setup on what address to start the default health handler
## @param metricsManagerConfig.controllerManagerConfigYaml.leaderElection.leaderElect decides whether to enable leader election with multiple replicas
## @param metricsManagerConfig.controllerManagerConfigYaml.leaderElection.resourceName defines LeaderElectionID
## @param metricsManagerConfig.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 metricsManagerConfig.controllerManagerConfigYaml.webhook.port

## @extra Mutating Webhook Configurations for metrics Operator
## @param metricsWebhookService.ports[0].port
## @param metricsWebhookService.ports[0].protocol
## @param metricsWebhookService.ports[0].targetPort
## @param metricsWebhookService.type

## @param metricsOperator.nodeSelector add custom nodes selector to metrics operator
## @param metricsOperator.tolerations add custom tolerations to metrics operator
Original file line number Diff line number Diff line change
@@ -32,6 +32,10 @@ webhooks:
- keptn-lifecycle-toolkit-system
- observability
- monitoring
- key: kubernetes.io/metadata.name
operator: NotIn
values:
- '{{ .Release.Namespace }}'
rules:
- apiGroups:
- ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "chart.fullname" . }}-lifecycle-operator-metrics-service
namespace: {{ .Release.Namespace | quote }}
labels:
{{- include "chart.labels" . | nindent 4 }}
spec:
type: {{ .Values.lifecycleOperatorMetricsService.type }}
selector:
control-plane: lifecycle-operator
{{- include "chart.selectorLabels" . | nindent 4 }}
ports:
{{- .Values.lifecycleOperatorMetricsService.ports | toYaml | nindent 2 -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "chart.fullname" . }}-metrics-operator-hpa-controller
namespace: {{ .Release.Namespace | quote }}
labels:
{{- include "chart.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: '{{ include "chart.fullname" . }}-metrics-operator-server-resources'
subjects:
- kind: ServiceAccount
name: horizontal-pod-autoscaler
namespace: '{{ .Release.Namespace }}'
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "chart.fullname" . }}-metrics-operator-server-resources
namespace: {{ .Release.Namespace | quote }}
labels:
{{- include "chart.labels" . | nindent 4 }}
rules:
- apiGroups:
- custom.metrics.k8s.io
resources:
- '*'
verbs:
- '*'
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ spec:
groupPriorityMinimum: 100
insecureSkipTLSVerify: true
service:
name: metrics-operator-service
namespace: keptn-lifecycle-toolkit-system
name: '{{ include "chart.fullname" . }}-metrics-operator-service'
namespace: '{{ .Release.Namespace }}'
version: v1beta1
versionPriority: 100
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ spec:
groupPriorityMinimum: 100
insecureSkipTLSVerify: true
service:
name: metrics-operator-service
namespace: keptn-lifecycle-toolkit-system
name: '{{ include "chart.fullname" . }}-metrics-operator-service'
namespace: '{{ .Release.Namespace }}'
version: v1beta2
versionPriority: 200
23 changes: 15 additions & 8 deletions charts/keptn-lifecycle-toolkit/values.yaml
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@ certificateOperator:
seccompProfile:
type: RuntimeDefault
image:
repository: ghcr.io/keptn/certificate-operator
tag: "202303071678177753"
repository: ghcr.keptn.sh/keptn/certificate-operator
tag: "202303161678962058"
imagePullPolicy: Always
livenessProbe:
httpGet:
@@ -75,8 +75,8 @@ lifecycleOperator:
optionsControllerLogLevel: "0"
otelCollectorUrl: otel-collector:4317
image:
repository: ghcr.io/keptn/lifecycle-operator
tag: "202303071678177753"
repository: ghcr.keptn.sh/keptn/lifecycle-operator
tag: "202303161678962058"
imagePullPolicy: Always
livenessProbe:
httpGet:
@@ -101,6 +101,13 @@ lifecycleOperator:
replicas: 1
tolerations: []
topologySpreadConstraints: []
lifecycleOperatorMetricsService:
ports:
- name: metrics
port: 2222
protocol: TCP
targetPort: metrics
type: ClusterIP
lifecycleWebhookService:
ports:
- port: 443
@@ -129,8 +136,8 @@ metricsOperator:
exposeKeptnMetrics: "true"
metricsControllerLogLevel: "0"
image:
repository: ghcr.io/keptn/metrics-operator
tag: "202303071678177753"
repository: ghcr.keptn.sh/keptn/metrics-operator
tag: "202303161678962058"
livenessProbe:
httpGet:
path: /healthz
@@ -192,8 +199,8 @@ scheduler:
env:
otelCollectorUrl: otel-collector:4317
image:
repository: ghcr.io/keptn/scheduler
tag: "202303071678177753"
repository: ghcr.keptn.sh/keptn/scheduler
tag: "202303161678962058"
imagePullPolicy: Always
livenessProbe:
httpGet:

0 comments on commit b700d65

Please sign in to comment.