Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/moving-local-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus49 committed Dec 9, 2024
2 parents 32330eb + a9b3283 commit dc17c95
Show file tree
Hide file tree
Showing 50 changed files with 212 additions and 287 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/infra.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build infra Workflow
on:
push:
paths:
- 'charts/infra/**'
- '.github/workflows/infra.yaml'

jobs:
pipeline:
concurrency:
group: infra-${{ github.ref }}
cancel-in-progress: true
uses: openmfp/gha/.github/workflows/pipeline-chart.yml@main
with:
chartFolder: charts
chartName: infra
additionalTestFilesCommand: ''
chartRepos: 'bitnami=https://charts.bitnami.com/bitnami,openfga=https://openfga.github.io/helm-charts'
secrets: inherit

updateVersionFile:
if: ${{ github.ref == 'refs/heads/main' }}
needs: [pipeline]
uses: openmfp/gha/.github/workflows/job-update-version-file.yml@main
secrets: inherit
with:
componentVersionKey: "infra"
version: ${{ needs.pipeline.outputs.version }}
6 changes: 3 additions & 3 deletions charts/account-operator/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ dependencies:
version: 0.1.8
- name: common
repository: oci://ghcr.io/openmfp/helm-charts
version: 0.1.7
digest: sha256:702670046f635dd04bb39783618e73066235c013bbcf3a09e37900bdddcd087e
generated: "2024-12-06T10:04:56.694119835Z"
version: 0.1.8
digest: sha256:400dc66500f82dce172eee4a2cabc52490f2c61213dc743b63346a6ded133841
generated: "2024-12-09T15:52:46.44887344Z"
4 changes: 2 additions & 2 deletions charts/account-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ apiVersion: v2
name: account-operator
description: A Helm chart for Kubernetes
type: application
version: 0.5.6
version: 0.5.7
appVersion: "0.111.0"
dependencies:
- name: account-operator-crds
version: 0.1.8
condition: crds.enabled
repository: oci://ghcr.io/openmfp/helm-charts
- name: common
version: 0.1.7
version: 0.1.8
repository: oci://ghcr.io/openmfp/helm-charts
4 changes: 2 additions & 2 deletions charts/account-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Helm chart for Kubernetes

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

## Additional Information

Expand All @@ -13,7 +13,7 @@ The `common` chart is a library of common resources that are shared across all o
| Repository | Name | Version |
|------------|------|---------|
| oci://ghcr.io/openmfp/helm-charts | account-operator-crds | 0.1.8 |
| oci://ghcr.io/openmfp/helm-charts | common | 0.1.7 |
| oci://ghcr.io/openmfp/helm-charts | common | 0.1.8 |

## Values

Expand Down
Binary file removed charts/account-operator/charts/common-0.1.7.tgz
Binary file not shown.
Binary file added charts/account-operator/charts/common-0.1.8.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion charts/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description: A Helm chart for Kubernetes

type: library

version: 0.1.7
version: 0.1.8
3 changes: 2 additions & 1 deletion charts/common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Helm chart for Kubernetes

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

## Additional Information

Expand Down Expand Up @@ -37,6 +37,7 @@ Example
| defaults.deployment.revisionHistoryLimit | int | `3` | deployment revision history limit |
| defaults.deployment.strategy | string | `"RollingUpdate"` | deployment strategy |
| defaults.externalSecrets.enabled | bool | `true` | toggle to enable/disable external-secrets |
| defaults.fga.enabled | bool | `false` | toggle to enable/disable experimental FGA features |
| defaults.health.liveness | object | `{"failureThreshold":1,"path":"/healthz"}` | liveness probe parameters |
| defaults.health.periodSeconds | int | `10` | health period |
| defaults.health.port | int | `8081` | health port |
Expand Down
6 changes: 3 additions & 3 deletions charts/common/test-chart/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://..
version: 0.1.5
digest: sha256:4922b07dc901a2efda0b3d40954a68fa4dc360421bffdcaf96889b31a972f9b4
generated: "2024-11-26T14:45:17.586883648+02:00"
version: 0.1.8
digest: sha256:eee7e1ccb5821b28c6d01a54bdc5ff4a12887b1306b137d6a8b4610f71ed619a
generated: "2024-12-09T16:40:26.404366+01:00"
2 changes: 1 addition & 1 deletion charts/common/test-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ appVersion: "1.16.0"

dependencies:
- name: common
version: 0.1.5
version: 0.1.8
repository: file://..
Binary file removed charts/common/test-chart/charts/common-0.1.5.tgz
Binary file not shown.
Binary file added charts/common/test-chart/charts/common-0.1.8.tgz
Binary file not shown.
4 changes: 4 additions & 0 deletions charts/common/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ defaults:
# -- name of the gateway
name: gateway

fga:
# -- toggle to enable/disable experimental FGA features
enabled: false

securityContext:
# -- user id to run the container
runAsUser: 1000
Expand Down
6 changes: 3 additions & 3 deletions charts/example-content/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: oci://ghcr.io/openmfp/helm-charts
version: 0.1.7
digest: sha256:45fcb4149403eb8b2774797e82e49d0e3969274393c8958ee6d3a0268e99ef76
generated: "2024-12-06T10:05:08.678131559Z"
version: 0.1.8
digest: sha256:e4718b08670cce49ce9d031fb9a00b5e7b706c6629a4392b1244e501e42866a5
generated: "2024-12-09T15:53:00.754558771Z"
4 changes: 2 additions & 2 deletions charts/example-content/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
appVersion: "0.126.0"
description: Helm Chart for the openmfp Portal
name: example-content
version: 0.110.13
version: 0.110.14
dependencies:
- name: common
version: 0.1.7
version: 0.1.8
repository: oci://ghcr.io/openmfp/helm-charts
4 changes: 2 additions & 2 deletions charts/example-content/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Helm Chart for the openmfp Portal

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

## Additional Information

Expand All @@ -12,7 +12,7 @@ The `common` chart is a library of common resources that are shared across all o

| Repository | Name | Version |
|------------|------|---------|
| oci://ghcr.io/openmfp/helm-charts | common | 0.1.7 |
| oci://ghcr.io/openmfp/helm-charts | common | 0.1.8 |

## Values

Expand Down
Binary file removed charts/example-content/charts/common-0.1.7.tgz
Binary file not shown.
Binary file added charts/example-content/charts/common-0.1.8.tgz
Binary file not shown.
6 changes: 3 additions & 3 deletions charts/extension-manager-operator/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ dependencies:
version: 0.1.5
- name: common
repository: oci://ghcr.io/openmfp/helm-charts
version: 0.1.7
digest: sha256:3d8e047be64a5c0508678d38b4e2f76726351d3c9740ec015e6e4c9f7bd719dc
generated: "2024-12-06T12:02:55.929028216Z"
version: 0.1.8
digest: sha256:a47dbbbe7dcb907e7dae77a1779f96bd99d0daf1f7b6e3f86deff81f0adeddc7
generated: "2024-12-09T15:53:15.298241138Z"
4 changes: 2 additions & 2 deletions charts/extension-manager-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ apiVersion: v2
name: extension-manager-operator
description: A Helm chart for extension-manager-operator
type: application
version: 0.22.42
version: 0.22.43
appVersion: "0.77.0"
dependencies:
- name: extension-manager-operator-crds
version: 0.1.5
condition: crds.enabled
repository: oci://ghcr.io/openmfp/helm-charts
- name: common
version: 0.1.7
version: 0.1.8
repository: oci://ghcr.io/openmfp/helm-charts
4 changes: 2 additions & 2 deletions charts/extension-manager-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Helm chart for extension-manager-operator

![Version: 0.22.42](https://img.shields.io/badge/Version-0.22.42-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)
![Version: 0.22.43](https://img.shields.io/badge/Version-0.22.43-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

Expand All @@ -12,7 +12,7 @@ The `common` chart is a library of common resources that are shared across all o

| Repository | Name | Version |
|------------|------|---------|
| oci://ghcr.io/openmfp/helm-charts | common | 0.1.7 |
| oci://ghcr.io/openmfp/helm-charts | common | 0.1.8 |
| oci://ghcr.io/openmfp/helm-charts | extension-manager-operator-crds | 0.1.5 |

## Values
Expand Down
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions charts/infra/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: oci://ghcr.io/openmfp/helm-charts
version: 0.1.7
digest: sha256:45fcb4149403eb8b2774797e82e49d0e3969274393c8958ee6d3a0268e99ef76
generated: "2024-12-06T10:05:31.423849254Z"
version: 0.1.8
digest: sha256:e4718b08670cce49ce9d031fb9a00b5e7b706c6629a4392b1244e501e42866a5
generated: "2024-12-09T16:46:41.582356+01:00"
6 changes: 3 additions & 3 deletions charts/infra/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: v2
name: infra
description: OpenMFP network infrastructure
description: The infra openmfp chart configures a number of common infrastructure components for the OpenMFP platform.
type: application
version: 0.57.7
version: 0.59.0
appVersion: "1.16.0"

dependencies:
- name: common
version: 0.1.7
version: 0.1.8
repository: oci://ghcr.io/openmfp/helm-charts
39 changes: 17 additions & 22 deletions charts/infra/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# infra

OpenMFP network infrastructure
The infra openmfp chart configures a number of common infrastructure components for the OpenMFP platform.

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

## Additional Information

Expand All @@ -12,9 +12,23 @@ The `common` chart is a library of common resources that are shared across all o

| Repository | Name | Version |
|------------|------|---------|
| oci://ghcr.io/openmfp/helm-charts | common | 0.1.7 |
| oci://ghcr.io/openmfp/helm-charts | common | 0.1.8 |

## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| fga.enabled | bool | `true` | An experimental toggle to enable the FGA integration |
| fga.stores | list | `[]` | The list of FGA stores to be created |
| istio.gateway.annotations | object | `{}` | Annotations to be applied to the istio gateway |
| istio.gateway.apiVersion | string | `nil` | The istio apiVersion of the gateway resource eg, networking.istio.io/v1, networking.istio.io/v1beta1 |
| istio.gateway.name | string | `"gateway"` | The name of the istio gateway resource |
| istio.gateway.selector.istio | string | `"gateway"` | The istio ingress gateway selector |
| istio.gateway.servers | list | `[{"hosts":["*"],"port":{"name":"http","number":8080,"protocol":"HTTP"}}]` | The "servers" section of the istio gateway. By default it is configured for a local kind setup. Adjust to be a https port for productive deployments |
| istio.networking.apiVersion | string | `"networking.istio.io/v1"` | The istio apiVersion used for networking resources in this chart eg. networking.istio.io/v1, networking.istio.io/v1beta1 |
| istio.serviceEntries.https.enabled | bool | `false` | A toggle to enable the service entries for external https communication |
| istio.serviceEntries.https.hosts | list | `[]` | The list of hosts to be added to the service entry |

## Overriding Values

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:

Expand All @@ -32,22 +46,3 @@ Example
3) .Values.deployment.resources.limits.memory = 1024MB
4) .Values.common.defaults.deployment.resources.limits.memory = default 512MB
```

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| certificate.gardener.enabled | bool | `false` | |
| externalSecrets.accountOperatorSaKubeconfig | string | `"account-operator-sa-kubeconfig"` | |
| fga.enabled | bool | `true` | |
| fga.stores | list | `[]` | |
| gateway.annotations | object | `{}` | |
| gateway.apiVersion | string | `"networking.istio.io/v1"` | |
| gateway.name | string | `"gateway"` | |
| gateway.selector.istio | string | `"gateway"` | |
| gateway.servers[0].hosts[0] | string | `"*"` | |
| gateway.servers[0].port.name | string | `"http"` | |
| gateway.servers[0].port.number | int | `8080` | |
| gateway.servers[0].port.protocol | string | `"HTTP"` | |
| kcp.enabled | bool | `false` | |
| keycloak.enabled | bool | `false` | |
| keycloak.hosts[0] | string | `"login.microsoftonline.com"` | |
| rbac.clusterRole.enabled | bool | `false` | |
7 changes: 4 additions & 3 deletions charts/infra/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ The `common` chart is a library of common resources that are shared across all o
{{ template "chart.requirementsSection" . }}

{{ template "chart.valuesHeader" . }}
{{ template "chart.valuesTable" . }}

## Overriding Values

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:

Expand All @@ -20,12 +23,10 @@ The values in the `defaults:` section can be reused from other charts by using t

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
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" . }}
Binary file removed charts/infra/charts/common-0.1.7.tgz
Binary file not shown.
Binary file added charts/infra/charts/common-0.1.8.tgz
Binary file not shown.
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.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (.Values.fga).enabled }}
{{- if eq (include "common.getNestedValue" (dict "Values" .Values "key" "fga.enabled")) "true" -}}
{{- range .Values.fga.stores }}
---
apiVersion: core.openmfp.io/v1alpha1
Expand Down
14 changes: 8 additions & 6 deletions charts/infra/templates/gateway.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +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.gateway.servers | indent 4 }}
{{ toYaml .Values.istio.gateway.servers | indent 4 }}
{{- end -}}
Loading

0 comments on commit dc17c95

Please sign in to comment.