Skip to content

Commit

Permalink
Bug 2173742 - Remove null oadp images and use apply for DPA creation (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
dymurray committed Feb 27, 2023
1 parent eef867b commit 56f073d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion roles/migrationcontroller/tasks/main.yml
Expand Up @@ -220,7 +220,7 @@
k8s:
state: "{{ velero_state }}"
definition: "{{ lookup('template', 'velero.yml.j2') }}"
merge_type: merge
apply: true

- name: "Set up rsync-anyuid SCC"
k8s:
Expand Down
14 changes: 0 additions & 14 deletions roles/migrationcontroller/templates/velero.yml.j2
Expand Up @@ -9,40 +9,26 @@ spec:
operator-type: mtc
{% if oadp_velero_image_fqin is defined %}
veleroImageFqin: "{{ oadp_velero_image_fqin }}"
{% else %}
veleroImageFqin: null
{% endif %}
{% if oadp_openshift_plugin_fqin is defined %}
openshiftPluginImageFqin: "{{ oadp_openshift_plugin_fqin }}"
{% else %}
openshiftPluginImageFqin: null
{% endif %}
{% if oadp_restic_restore_helper_fqin is defined %}
resticRestoreImageFqin: "{{ oadp_restic_restore_helper_fqin }}"
{% else %}
resticRestoreImageFqin: null
{% endif %}
{% if oadp_aws_plugin_fqin is defined %}
awsPluginImageFqin: "{{ oadp_aws_plugin_fqin }}"
{% else %}
awsPluginImageFqin: null
{% endif %}
{% if oadp_azure_plugin_fqin is defined %}
azurePluginImageFqin: "{{ oadp_azure_plugin_fqin }}"
{% else %}
azurePluginImageFqin: null
{% endif %}
{% if oadp_gcp_plugin_fqin is defined %}
gcpPluginImageFqin: "{{ oadp_gcp_plugin_fqin }}"
{% else %}
gcpPluginImageFqin: null
{% endif %}
configuration:
velero:
{% if velero_log_level is defined %}
logLevel: "{{ velero_log_level }}"
{% else %}
logLevel: null
{% endif %}
defaultPlugins:
- openshift
Expand Down

0 comments on commit 56f073d

Please sign in to comment.