Skip to content

Commit 256b6d1

Browse files
authored
Use new Flux package (#32)
Fixes gh-30
1 parent 121f7fc commit 256b6d1

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Each Kadras package included in the platform can be configured independently.
132132
| `cert_manager.issuers` | `{}` | Configuration for the Cert Manager Issuers package. |
133133
| `contour` | `{}` | Configuration for the Contour package. |
134134
| `conventions.spring_boot` | `{}` | Configuration for the Spring Boot Conventions package. |
135-
| `flux.source_controller` | `{}` | Configuration for the FluxCD Source Controller package. |
135+
| `flux` | `{}` | Configuration for the Flux package. |
136136
| `knative.serving` | `{}` | Configuration for the Knative Serving package. |
137137
| `kyverno.core` | `{}` | Configuration for the Kyverno package. |
138138
| `metrics_server` | `{}` | Configuration for the Metrics Server package. |

package/config/fluxcd-source.controller.yml renamed to package/config/flux.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@
33
#@ load("@ytt:yaml", "yaml")
44
#@ load("/helpers.star", "is_any_profile_enabled", "is_package_enabled", "profiles")
55

6-
#@ if is_package_enabled("fluxcd-source-controller") and is_any_profile_enabled([profiles.full]):
6+
#@ if is_package_enabled("flux") and is_any_profile_enabled([profiles.full, profiles.serving]):
77

88
#@ def compute_package_values():
9-
#@ return data.values.flux.source_controller
9+
#@ return data.values.flux
1010
#@ end
1111

1212
---
1313
apiVersion: packaging.carvel.dev/v1alpha1
1414
kind: PackageInstall
1515
metadata:
16-
name: fluxcd-source-controller
16+
name: flux
1717
namespace: #@ data.values.platform.namespace
1818
annotations:
19-
kapp.k14s.io/change-group: fluxcd
19+
kapp.k14s.io/change-group: flux
2020
kapp.k14s.io/change-rule.serviceaccount: delete before deleting serviceaccount
2121
spec:
2222
serviceAccountName: kadras-install-sa
2323
packageRef:
24-
refName: fluxcd-source-controller.packages.kadras.io
24+
refName: flux.packages.kadras.io
2525
versionSelection:
26-
constraints: 1.0.1+kadras.1
26+
constraints: 2.1.0+kadras.1
2727
values:
2828
- secretRef:
29-
name: fluxcd-source-controller-values
29+
name: flux-values
3030
---
3131
apiVersion: v1
3232
kind: Secret
3333
metadata:
34-
name: fluxcd-source-controller-values
34+
name: flux-values
3535
namespace: #@ data.values.platform.namespace
3636
stringData:
3737
values.yaml: #@ yaml.encode(compute_package_values())

package/config/values-schema.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,9 @@ conventions:
119119
#@schema/type any=True
120120
spring_boot: {}
121121

122-
#@schema/desc "Configuration for Flux related packages."
123-
flux:
124-
#@schema/desc "Configuration for the FluxCD Source Controller package."
125-
#@schema/type any=True
126-
source_controller: {}
122+
#@schema/desc "Configuration for the Flux package."
123+
#@schema/type any=True
124+
flux: {}
127125

128126
#@schema/desc "Configuration for Knative related packages."
129127
knative:

test/integration/serving/config/values.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ stringData:
1212
ingress:
1313
domain: 127.0.0.1.sslip.io
1414
excluded_packages:
15+
- flux
1516
- kyverno

0 commit comments

Comments
 (0)