forked from sriumcp/hub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* AutoX and ArgoCD Signed-off-by: Alan Cha <[email protected]> * Rename chartGroup to releaseGroupSpec Signed-off-by: Alan Cha <[email protected]> * Rename files Signed-off-by: Alan Cha <[email protected]> * Change name Signed-off-by: Alan Cha <[email protected]> * Change name of config file Signed-off-by: Alan Cha <[email protected]> Signed-off-by: Alan Cha <[email protected]>
- Loading branch information
Showing
3 changed files
with
34 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,35 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
kind: Secret | ||
metadata: | ||
name: {{ .Release.Name }} | ||
{{ template "iter8-autox.labels" . }} | ||
data: | ||
resource-config.yaml: | | ||
resources: | ||
{{- range $r := .Values.resources }} | ||
{{- if eq $r "deployments" }} | ||
- group: apps | ||
version: v1 | ||
resource: deployments | ||
{{- end }} | ||
{{- if eq $r "services" }} | ||
- version: v1 | ||
resource: services | ||
{{- end }} | ||
{{- if eq $r "ksvcs" }} | ||
- group: serving.knative.dev | ||
version: v1 | ||
resource: services | ||
{{- end }} | ||
{{- end }} | ||
namespaces: | ||
{{ toYaml .Values.namespaces | indent 4 }} | ||
chart-group-config.yaml: | | ||
{{- range $name, $chartGroups := .Values.chartGroups }} | ||
- name: {{ $name }} | ||
charts: | ||
{{- range $cg := $chartGroups }} | ||
- repo: {{ $cg.repo }} | ||
name: {{ $cg.chartName }} | ||
valuesFileURL: {{ $cg.valuesFileURL }} | ||
{{- end }} | ||
stringData: | ||
config.yaml: | | ||
specs: | ||
{{- range $releaseGroupSpecName, $releaseGroupSpec := .Values.releaseGroupSpecs }} | ||
{{ $releaseGroupSpecName }}: | ||
trigger: | ||
group: {{ $releaseGroupSpec.trigger.group }} | ||
version: {{ $releaseGroupSpec.trigger.version }} | ||
resource: {{ $releaseGroupSpec.trigger.resource }} | ||
name: {{ $releaseGroupSpec.trigger.name }} | ||
namespace: {{ $releaseGroupSpec.trigger.namespace }} | ||
releaseSpecs: | ||
{{- range $releaseSpecName, $releaseSpec := $releaseGroupSpec.releaseSpecs }} | ||
{{ $releaseSpecName }}: | ||
repoURL: {{ $releaseSpec.repoURL }} | ||
name: {{ $releaseSpec.name }} | ||
values: {{ $releaseSpec.values }} | ||
version: {{ $releaseSpec.version }} | ||
{{- end }} | ||
{{- end }} | ||
{{- range $releaseGroupSpecName, $releaseGroupSpec := .Values.releaseGroupSpecs }} | ||
{{ $hash := print $releaseGroupSpec | sha256sum | trunc 5 }} | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: autox-{{ $releaseGroupSpecName }}-{{ $hash }} | ||
labels: | ||
iter8.tools/autox-group: {{ $releaseGroupSpecName }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters