Skip to content

Commit

Permalink
Update openmfp chart and local-setup
Browse files Browse the repository at this point in the history
---
On-behalf-of: @SAP angel.kafazov@sap.com
Signed-off-by: Angel Kafazov <akafazov@cst-bg.net>
  • Loading branch information
akafazov committed Feb 13, 2025
1 parent 1effc79 commit d8ec075
Show file tree
Hide file tree
Showing 31 changed files with 23 additions and 345 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/helm-docs.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/kind-localsetup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
echo "Describe all helmreleases which are not Ready yet"
kubectl get helmreleases -A -o json | jq -r '.items[] | select(.status.conditions[]? | select(.type == "Ready" and .status != "True")) | "\(.metadata.namespace) \(.metadata.name)"' | while read namespace name; do kubectl describe helmrelease $name -n $namespace; done
echo "Print imagePullSecret"
kubectl get secret ghcr-credentials -n openmfp-system -o yaml
kubectl get secret github -n openmfp-system -o yaml
echo "Test docker login and pull"
docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ steps.generate-token.outputs.token }}
docker pull ghcr.io/openmfp/portal:0.287.0
Expand Down
11 changes: 8 additions & 3 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ tasks:
- "for chart in $(echo {{.CHARTS}} | tr ',' ' '); do helm dependency update $chart; done"
validate:
cmds:
- task: lint
# - task: package
- task: test
- task: vulnerability
- task: helm-docs
- task: update
- task: lint
- task: oci
vulnerability:
deps:
- task: setup:kube-lint
Expand All @@ -65,3 +66,7 @@ tasks:
- task: helmpackage
cmds:
- "for chart in $(echo {{.PACKAGED_CHARTS}} | tr ',' ' '); do helm push $chart oci://localhost:5000/openmfp; done"
oci:
cmds:
- "rm oci/* || true"
- task: helmpackage
33 changes: 0 additions & 33 deletions charts/account-operator-crds/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -1,33 +0,0 @@
{{ template "chart.header" . }}
{{ template "chart.description" . }}

{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}

## Additional Information

The `common` chart is a library of common resources that are shared across all other charts in the repository. It has no templates, but provides helm template functions and default values that can be used by other charts.

{{ template "chart.requirementsSection" . }}

{{ template "chart.valuesHeader" . }}

The values in the `defaults:` section can be reused from other charts by using the lookup function "common.getKeyValue". It implements lookup on three levels:

1. Looks for `keyOverride` in the chart's values.yaml
2. Looks for `global.key` in the chart's or parent chart's values.yaml
3. Uses the `key` in the chart's values.yaml
4. Uses the `common.defaults.key` value from the table below.

1 has precendence over 2 over 3 over 4 respectively. This approach allows for individual charts to have minimal configuration, while still being able to override parameters locally.

Example
```
1) .Values.deployment.resources.limits.memoryOveride = 4096MB
2) .Values.global.deployment.resources.limits.memory = 2048MB
3) .Values.deployment.resources.limits.memory = 1024MB
4) .Values.common.defaults.deployment.resources.limits.memory = default 512MB
```

{{ template "chart.valuesTable" . }}

{{ template "helm-docs.versionFooter" . }}
6 changes: 0 additions & 6 deletions charts/account-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ A Helm chart to deploy OpenMFP Account-Operator

![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

![Version: 0.4.25](https://img.shields.io/badge/Version-0.4.25-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.109.0](https://img.shields.io/badge/AppVersion-0.109.0-informational?style=flat-square)

## Additional Information

The `common` chart is a library of common resources that are shared across all other charts in the repository. It has no templates, but provides helm template functions and default values that can be used by other charts.

## Requirements

| Repository | Name | Description | Sources |
Expand Down
6 changes: 0 additions & 6 deletions charts/example-content/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

Helm Chart for the openmfp Portal

![Version: 0.110.9](https://img.shields.io/badge/Version-0.110.9-informational?style=flat-square) ![AppVersion: 0.126.0](https://img.shields.io/badge/AppVersion-0.126.0-informational?style=flat-square)

## Additional Information

The `common` chart is a library of common resources that are shared across all other charts in the repository. It has no templates, but provides helm template functions and default values that can be used by other charts.

## Requirements

| Repository | Name | Description | Sources |
Expand Down
33 changes: 0 additions & 33 deletions charts/extension-manager-operator-crds/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -1,33 +0,0 @@
{{ template "chart.header" . }}
{{ template "chart.description" . }}

{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}

## Additional Information

The `common` chart is a library of common resources that are shared across all other charts in the repository. It has no templates, but provides helm template functions and default values that can be used by other charts.

{{ template "chart.requirementsSection" . }}

{{ template "chart.valuesHeader" . }}

The values in the `defaults:` section can be reused from other charts by using the lookup function "common.getKeyValue". It implements lookup on three levels:

1. Looks for `keyOverride` in the chart's values.yaml
2. Looks for `global.key` in the chart's or parent chart's values.yaml
3. Uses the `key` in the chart's values.yaml
4. Uses the `common.defaults.key` value from the table below.

1 has precendence over 2 over 3 over 4 respectively. This approach allows for individual charts to have minimal configuration, while still being able to override parameters locally.

Example
```
1) .Values.deployment.resources.limits.memoryOveride = 4096MB
2) .Values.global.deployment.resources.limits.memory = 2048MB
3) .Values.deployment.resources.limits.memory = 1024MB
4) .Values.common.defaults.deployment.resources.limits.memory = default 512MB
```

{{ template "chart.valuesTable" . }}

{{ template "helm-docs.versionFooter" . }}
6 changes: 0 additions & 6 deletions charts/extension-manager-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ A Helm chart for extension-manager-operator which manages resources like Content

![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

![Version: 0.22.36](https://img.shields.io/badge/Version-0.22.36-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.77.0](https://img.shields.io/badge/AppVersion-0.77.0-informational?style=flat-square)

## Additional Information

The `common` chart is a library of common resources that are shared across all other charts in the repository. It has no templates, but provides helm template functions and default values that can be used by other charts.

## Requirements

| Repository | Name | Description | Sources |
Expand Down
30 changes: 0 additions & 30 deletions charts/infra/templates/cluster-role.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions charts/infra/templates/external-secret-account-operator.yaml

This file was deleted.

13 changes: 7 additions & 6 deletions charts/infra/templates/gateway.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
apiVersion: {{ .Values.gateway.apiVersion }}
{{- if eq (include "common.getKeyValue" (dict "Values" .Values "key" "istio.enabled")) "true" -}}
apiVersion: {{ .Values.istio.networking.apiVersion }}
kind: Gateway
metadata:
name: {{ .Values.gateway.name}}
name: {{ .Values.istio.gateway.name}}
namespace: {{ .Release.Namespace }}
{{- if .Values.gateway.annotations }}
{{- if .Values.istio.gateway.annotations }}
annotations:
{{- toYaml .Values.gateway.annotations | nindent 4 }}
{{- toYaml .Values.istio.gateway.annotations | nindent 4 }}
{{- end }}
spec:
selector:
{{ .Values.gateway.selector | toYaml | indent 4 }}
{{ .Values.istio.gateway.selector | toYaml | indent 4 }}
servers:
{{ toYaml .Values.istio.gateway.servers | indent 4 }}
{{- end -}}
{{- end -}}
16 changes: 0 additions & 16 deletions charts/infra/templates/kcp-service-entry.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions charts/infra/templates/keycloak-service-entry.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions charts/infra/templates/store.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion charts/keycloak/templates/istio-virtualservice.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if eq (include "common.getNestedValue" (dict "Values" .Values "key" "istio.enabled")) "true" -}}
{{- if eq (include "common.getKeyValue" (dict "Values" .Values "key" "istio.enabled")) "true" -}}
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
Expand Down
Binary file modified charts/openmfp-crds/charts/account-operator-crds-0.1.11.tgz
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion charts/openmfp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: openmfp
description: The OpenMFP chart for Kubernetes
type: application
version: 0.0.235
version: 0.1.0
appVersion: "0.0.0"

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion charts/openmfp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The OpenMFP chart for Kubernetes
## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| components.example-content.enabled | bool | `false` | enable example-content component |
| components.example-content.enabled | bool | `true` | enable example-content component |
| components.extension-manager-operator.enabled | bool | `true` | enable extension-manager-operator component |
| components.infra.enabled | bool | `true` | enable infra component |
| components.keycloak.enabled | bool | `true` | enable keycloak component |
Expand Down
Binary file not shown.
Binary file not shown.
Binary file added charts/openmfp/tmpcharts-1369650/infra-0.61.0.tgz
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion charts/openmfp/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
components:
example-content:
# -- enable example-content component
enabled: false
enabled: true
portal:
# -- enable portal component
enabled: true
Expand Down
6 changes: 0 additions & 6 deletions charts/portal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

Helm Chart for the openmfp Portal

![Version: 0.69.150](https://img.shields.io/badge/Version-0.69.150-informational?style=flat-square) ![AppVersion: 0.227.0](https://img.shields.io/badge/AppVersion-0.227.0-informational?style=flat-square)

## Additional Information

The `common` chart is a library of common resources that are shared across all other charts in the repository. It has no templates, but provides helm template functions and default values that can be used by other charts.

## Requirements

| Repository | Name | Description | Sources |
Expand Down
2 changes: 0 additions & 2 deletions local-setup/kustomize/components/openmfp-crds/repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ spec:
ref:
# renovate: datasource=docker registryUrl=https://ghcr.io depName=ghcr.io/openmfp/helm-charts/openmfp-crds
semver: 0.0.16
secretRef:
name: ghcr-credentials
Loading

0 comments on commit d8ec075

Please sign in to comment.