Skip to content

Commit

Permalink
ci: update Core Operator chart from latest version internally
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
patrick-stephens authored Dec 13, 2023
1 parent ab9357a commit cd18127
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 10 deletions.
4 changes: 2 additions & 2 deletions charts/core-crd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: core-crd
description: A Helm chart for Kubernetes
type: application
version: 2.1.2
appVersion: "v2.1.1"
version: 2.2.0
appVersion: "v2.2.0"
maintainers:
- name: Calyptia
email: [email protected]
Expand Down
10 changes: 10 additions & 0 deletions charts/core-crd/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,14 @@

{{- define "ingestCheck.image" -}}
{{ include "common.images.image" (dict "imageRoot" .Values.images.ingestCheck "global" .Values.global) }}
{{- end -}}

{{- define "validateServiceType" -}}
{{- $validTypes := list "NodePort" "LoadBalancer" "ClusterIP" -}}
{{- $type := .Values.pipelineServiceType | default "LoadBalancer" -}}
{{- if has $type $validTypes -}}
{{- $type -}}
{{- else -}}
LoadBalancer
{{- end -}}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/core-crd/templates/pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ spec:
protocol:
type: string
serviceType:
default: LoadBalancer
default: {{ include "validateServiceType" . }}
description: Service Type string describes ingress methods for a service
type: string
type: object
Expand Down
17 changes: 17 additions & 0 deletions charts/core-crd/tests/core-crd_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
suite: Test core crd
release:
namespace: test
templates:
- pipelines.yaml

tests:
- it: checks kind
set:
pipelineServiceType: ClusterIP
asserts:
- isKind:
of: CustomResourceDefinition
- equal:
path: spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.ports.items.properties.serviceType.default
value: ClusterIP

1 change: 1 addition & 0 deletions charts/core-crd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ images:
tag: 0.0.7
pullSecrets: []
cloudUrl: https://cloud-api.calyptia.com
pipelineServiceType: LoadBalancer
4 changes: 2 additions & 2 deletions charts/core-instance/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: Calyptia Core Instance chart
home: https://calyptia.com/products/core/
icon: https://storage.googleapis.com/calyptia_public_resources_bucket/logo-darkmode.svg
type: application
version: 2.1.2
appVersion: "v2.1.1"
version: 2.2.0
appVersion: "v2.2.0"
maintainers:
- name: Calyptia
email: [email protected]
Expand Down
4 changes: 2 additions & 2 deletions charts/core-instance/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ images:
fromCloud:
registry: ghcr.io
repository: calyptia/core-operator/sync-from-cloud
tag: 2.1.1
tag: 2.2.0
pullSecrets: []
toCloud:
registry: ghcr.io
repository: calyptia/core-operator/sync-to-cloud
tag: 2.1.1
tag: 2.2.0
pullSecrets: []
hotReload:
registry: ghcr.io
Expand Down
4 changes: 2 additions & 2 deletions charts/core-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: Calyptia Core Operator chart
home: https://calyptia.com/products/core/
icon: https://storage.googleapis.com/calyptia_public_resources_bucket/logo-darkmode.svg
type: application
version: 2.1.2
appVersion: "v2.1.1"
version: 2.2.0
appVersion: "v2.2.0"
maintainers:
- name: Calyptia
email: [email protected]
Expand Down
1 change: 1 addition & 0 deletions charts/core-operator/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ rules:
- rbac.authorization.k8s.io
- security.openshift.io
resources:
- events
- namespaces
- serviceaccounts
- deployments
Expand Down
2 changes: 1 addition & 1 deletion charts/core-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ images:
operator:
registry: ghcr.io
repository: calyptia/core-operator
tag: 2.1.1
tag: 2.2.0
pullSecrets: []
hotReload:
registry: ghcr.io
Expand Down

0 comments on commit cd18127

Please sign in to comment.