-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add legacy vm to mad_roadshow (#7227)
* Add legacy vm to mad_roadshow * Fix mad rdshow readme
- Loading branch information
Showing
5 changed files
with
58 additions
and
2 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
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
42 changes: 42 additions & 0 deletions
42
...es_ocp_workloads/ocp4_workload_mad_roadshow/templates/kubevirt/legacy-application.yaml.j2
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: postgresql-legacy | ||
namespace: openshift-gitops | ||
spec: | ||
project: default | ||
destination: | ||
namespace: "{{ ocp4_workload_mad_roadshow_legacy_namespace }}" | ||
server: 'https://kubernetes.default.svc' | ||
syncPolicy: | ||
automated: {} | ||
source: | ||
repoURL: {{ ocp4_workload_mad_roadshow_kubevirt_vm_repo }} | ||
targetRevision: {{ ocp4_workload_mad_roadshow_kubevirt_psql_vm_repo_tag }} | ||
path: {{ ocp4_workload_mad_roadshow_kubevirt_psql_vm_repo_path }} | ||
helm: | ||
values: | | ||
fullnameOverride: postgresql-legacy | ||
staticIP: {{ ocp4_workload_mad_roadshow_legacy_static_ip }} | ||
storage: | ||
pvcSize: {{ ocp4_workload_mad_roadshow_kubevirt_image_size }} | ||
{% if ocp4_workload_mad_roadshow_kubevirt_image_storage_class | default("") | length > 0 %} | ||
storageClass: {{ ocp4_workload_mad_roadshow_kubevirt_image_storage_class }} | ||
{% endif %} | ||
resources: | ||
requests: | ||
memory: {{ ocp4_workload_mad_roadshow_kubevirt_vm_memory }} | ||
cpu: '{{ ocp4_workload_mad_roadshow_kubevirt_vm_cpu }}' | ||
dataVolumeSource: | ||
namespace: {{ ocp4_workload_mad_roadshow_kubevirt_image_namespace }} | ||
name: {{ ocp4_workload_mad_roadshow_kubevirt_psql_image_name }} | ||
clusterRole: datavolume-cloner | ||
{% if ocp4_workload_mad_roadshow_kubevirt_vm_node_selector | length > 0 %} | ||
nodeSelector: | ||
{{ ocp4_workload_mad_roadshow_kubevirt_vm_node_selector | to_yaml }} | ||
{% endif %} | ||
{% if ocp4_workload_mad_roadshow_kubevirt_vm_tolerations | length > 0 %} | ||
tolerations: | ||
{{ ocp4_workload_mad_roadshow_kubevirt_vm_tolerations | to_yaml }} | ||
{% endif %} |
5 changes: 5 additions & 0 deletions
5
...oles_ocp_workloads/ocp4_workload_mad_roadshow/templates/kubevirt/legacy-namespace.yaml.j2
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: "{{ ocp4_workload_mad_roadshow_legacy_namespace }}" |