Skip to content

Commit

Permalink
Update keptn-lifecycle-operator Helm chart (#123)
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: odubajDT <[email protected]>
Co-authored-by: odubajDT <[email protected]>
Co-authored-by: odubajDT <[email protected]>
  • Loading branch information
3 people authored Feb 8, 2024
1 parent e3e6038 commit 2e505fe
Show file tree
Hide file tree
Showing 30 changed files with 4,426 additions and 2,035 deletions.
6 changes: 6 additions & 0 deletions charts/keptn-lifecycle-operator/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: common
repository: https://charts.lifecycle.keptn.sh
version: 0.1.3
digest: sha256:babbda5a2547939acb7ff5ddba4d516d5e59377ca2b02b597fa77c8ce2640b54
generated: "2024-01-18T14:42:51.075008+01:00"
6 changes: 3 additions & 3 deletions charts/keptn-lifecycle-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ 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.1.0
version: 0.2.0

# 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.3" # x-release-please-version
appVersion: "v0.9.0" # x-release-please-version
dependencies:
- name: common
repository: "https://charts.lifecycle.keptn.sh"
version: 0.1.0
version: 0.1.3
92 changes: 47 additions & 45 deletions charts/keptn-lifecycle-operator/README.md

Large diffs are not rendered by default.

26 changes: 9 additions & 17 deletions charts/keptn-lifecycle-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ kind: ServiceAccount
metadata:
name: keptn-scheduler
namespace: {{ .Release.Namespace | quote }}
{{- $annotations := include "common.annotations" (dict "context" .) }}
{{- with $annotations }}
annotations: {{- . -}}
{{- end }}
labels:
{{- include "common.labels.standard" ( dict "context" . ) | nindent 4 }}
{{- include "common.annotations" ( dict "context" . ) }}
{{- end }}
---
apiVersion: v1
Expand All @@ -25,7 +28,7 @@ metadata:
name: lifecycle-operator
namespace: {{ .Release.Namespace | quote }}
labels:
app.kubernetes.io/part-of: keptn-lifecycle-toolkit
app.kubernetes.io/part-of: keptn
control-plane: lifecycle-operator
keptn.sh/inject-cert: "true"
{{- include "common.labels.standard" ( dict "context" . ) | nindent 4 }}
Expand Down Expand Up @@ -67,8 +70,6 @@ spec:
value: {{ .Values.lifecycleOperator.env.functionRunnerImage | quote }}
- name: PYTHON_RUNNER_IMAGE
value: {{ .Values.lifecycleOperator.env.pythonRunnerImage | quote }}
- name: OTEL_COLLECTOR_URL
value: {{ .Values.lifecycleOperator.env.otelCollectorUrl | quote }}
- name: KEPTN_APP_CONTROLLER_LOG_LEVEL
value: {{ .Values.lifecycleOperator.env.keptnAppControllerLogLevel | quote
}}
Expand All @@ -93,9 +94,8 @@ spec:
- name: KEPTN_WORKLOAD_VERSION_CONTROLLER_LOG_LEVEL
value: {{ .Values.lifecycleOperator.env.keptnWorkloadVersionControllerLogLevel
| quote }}
- name: KEPTN_WORKLOAD_INSTANCE_CONTROLLER_LOG_LEVEL
value: {{ .Values.lifecycleOperator.env.keptnWorkloadInstanceControllerLogLevel
| quote }}
- name: KEPTN_DORA_METRICS_PORT
value: {{ .Values.lifecycleOperator.env.keptnDoraMetricsPort | quote }}
- name: OPTIONS_CONTROLLER_LOG_LEVEL
value: {{ .Values.lifecycleOperator.env.optionsControllerLogLevel | quote
}}
Expand All @@ -104,6 +104,8 @@ spec:
}}
- name: KUBERNETES_CLUSTER_DOMAIN
value: {{ .Values.kubernetesClusterDomain }}
- name: CERT_MANAGER_ENABLED
value: {{ .Values.global.certManagerEnabled | quote }}
image: {{ include "common.images.image" ( dict "imageRoot" .Values.lifecycleOperator.image "global" .Values.global ) }}
imagePullPolicy: {{ .Values.lifecycleOperator.imagePullPolicy }}
name: lifecycle-operator
Expand All @@ -130,11 +132,6 @@ spec:
}}
seccompProfile: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleOperator.containerSecurityContext.seccompProfile
"context" $) | nindent 12 }}
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs/
name: certs-dir
- mountPath: /tmp/metrics-adapter/serving-certs
name: adapter-certs-dir
{{- if .Values.lifecycleOperator.livenessProbe }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleOperator.livenessProbe "context" $) | nindent 10 }}
{{- else }}
Expand All @@ -160,11 +157,6 @@ spec:
runAsNonRoot: true
serviceAccountName: lifecycle-operator
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: certs-dir
- emptyDir: {}
name: adapter-certs-dir
{{- if .Values.lifecycleOperator.topologySpreadConstraints }}
topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleOperator.topologySpreadConstraints "context" $) | nindent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ kind: RoleBinding
metadata:
name: extension-apiserver-authentication-reader
namespace: {{ .Release.Namespace | quote }}
{{- $annotations := include "common.annotations" (dict "context" .) }}
{{- with $annotations }}
annotations: {{- . -}}
{{- end }}
labels:
{{- include "common.labels.standard" ( dict "context" . ) | nindent 4 }}
{{- include "common.annotations" ( dict "context" . ) }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ kind: ClusterRole
metadata:
name: keptn-scheduler
namespace: {{ .Release.Namespace | quote }}
{{- $annotations := include "common.annotations" (dict "context" .) }}
{{- with $annotations }}
annotations: {{- . -}}
{{- end }}
labels:
{{- include "common.labels.standard" ( dict "context" . ) | nindent 4 }}
{{- include "common.annotations" ( dict "context" . ) }}
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -191,9 +194,11 @@ kind: ClusterRoleBinding
metadata:
name: keptn-scheduler
namespace: {{ .Release.Namespace | quote }}
{{- with $annotations }}
annotations: {{- . -}}
{{- end }}
labels:
{{- include "common.labels.standard" ( dict "context" . ) | nindent 4 }}
{{- include "common.annotations" ( dict "context" . ) }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
173 changes: 132 additions & 41 deletions charts/keptn-lifecycle-operator/templates/keptnapp-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ kind: CustomResourceDefinition
metadata:
name: keptnapps.lifecycle.keptn.sh
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/keptn-certs'
controller-gen.kubebuilder.io/version: v0.14.0
{{- with .Values.global.caInjectionAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- include "common.annotations" (dict "context" .) }}
labels:
app.kubernetes.io/part-of: keptn-lifecycle-toolkit
app.kubernetes.io/part-of: keptn
crdGroup: lifecycle.keptn.sh
keptn.sh/inject-cert: "true"
{{- include "common.labels.standard" ( dict "context" . ) | nindent 4 }}
{{- include "common.annotations" ( dict "context" . ) }}
spec:
conversion:
strategy: Webhook
Expand All @@ -36,14 +38,19 @@ spec:
description: KeptnApp is the Schema for the keptnapps 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'
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'
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
Expand Down Expand Up @@ -100,14 +107,19 @@ spec:
description: KeptnApp is the Schema for the keptnapps 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'
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'
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
Expand Down Expand Up @@ -167,62 +179,141 @@ spec:
description: KeptnApp is the Schema for the keptnapps 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'
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'
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: Spec describes the desired state of the KeptnApp.
properties:
postDeploymentEvaluations:
description: PostDeploymentEvaluations is a list of all evaluations
to be performed during the post-deployment phase of the KeptnApp.
description: |-
PostDeploymentEvaluations is a list of all evaluations to be performed
during the post-deployment phase of the KeptnApp.
The items of this list refer to the names of KeptnEvaluationDefinitions
located in the same namespace as the KeptnApp, or in the Keptn namespace.
items:
type: string
type: array
postDeploymentTasks:
description: PostDeploymentTasks is a list of all tasks to be performed
during the post-deployment phase of the KeptnApp. The items of this
list refer to the names of KeptnTaskDefinitions located in the same
namespace as the KeptnApp, or in the Keptn namespace.
description: |-
PostDeploymentTasks is a list of all tasks to be performed during the post-deployment phase of the KeptnApp.
The items of this list refer to the names of KeptnTaskDefinitions
located in the same namespace as the KeptnApp, or in the Keptn namespace.
items:
type: string
type: array
preDeploymentEvaluations:
description: PreDeploymentEvaluations is a list of all evaluations
to be performed during the pre-deployment phase of the KeptnApp.
description: |-
PreDeploymentEvaluations is a list of all evaluations to be performed
during the pre-deployment phase of the KeptnApp.
The items of this list refer to the names of KeptnEvaluationDefinitions
located in the same namespace as the KeptnApp, or in the Keptn namespace.
items:
type: string
type: array
preDeploymentTasks:
description: PreDeploymentTasks is a list of all tasks to be performed
during the pre-deployment phase of the KeptnApp. The items of this
list refer to the names of KeptnTaskDefinitions located in the same
namespace as the KeptnApp, or in the Keptn namespace.
description: |-
PreDeploymentTasks is a list of all tasks to be performed during the pre-deployment phase of the KeptnApp.
The items of this list refer to the names of KeptnTaskDefinitions
located in the same namespace as the KeptnApp, or in the Keptn namespace.
items:
type: string
type: array
revision:
default: 1
description: Revision can be modified to trigger another deployment
of a KeptnApp of the same version. This can be used for restarting
a KeptnApp which failed to deploy, e.g. due to a failed preDeploymentEvaluation/preDeploymentTask.
description: |-
Revision can be modified to trigger another deployment of a KeptnApp of the same version.
This can be used for restarting a KeptnApp which failed to deploy,
e.g. due to a failed preDeploymentEvaluation/preDeploymentTask.
type: integer
version:
description: Version defines the version of the application. For automatically
created KeptnApps, the version is a function of all KeptnWorkloads
that are part of the KeptnApp.
description: |-
Version defines the version of the application. For automatically created KeptnApps,
the version is a function of all KeptnWorkloads that are part of the KeptnApp.
type: string
workloads:
description: Workloads is a list of all KeptnWorkloads that are part
of the KeptnApp.
items:
description: KeptnWorkloadRef refers to a KeptnWorkload that is
part of a KeptnApp
properties:
name:
description: Name is the name of the KeptnWorkload.
type: string
version:
description: Version is the version of the KeptnWorkload.
type: string
required:
- name
- version
type: object
type: array
required:
- version
type: object
status:
description: Status describes the current state of the KeptnApp.
properties:
currentVersion:
description: CurrentVersion indicates the version that is currently
deployed or being reconciled.
type: string
type: object
type: object
served: true
storage: false
subresources:
status: {}
- name: v1beta1
schema:
openAPIV3Schema:
description: KeptnApp is the Schema for the keptnapps 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: Spec describes the desired state of the KeptnApp.
properties:
revision:
default: 1
description: |-
Revision can be modified to trigger another deployment of a KeptnApp of the same version.
This can be used for restarting a KeptnApp which failed to deploy,
e.g. due to a failed preDeploymentEvaluation/preDeploymentTask.
type: integer
version:
description: |-
Version defines the version of the application. For automatically created KeptnApps,
the version is a function of all KeptnWorkloads that are part of the KeptnApp.
type: string
workloads:
description: Workloads is a list of all KeptnWorkloads that are part
Expand Down Expand Up @@ -257,4 +348,4 @@ spec:
served: true
storage: true
subresources:
status: {}
status: {}
Loading

0 comments on commit 2e505fe

Please sign in to comment.