Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete visualizations fix #12

Open
innovate-invent opened this issue Jun 10, 2021 · 0 comments
Open

Delete visualizations fix #12

innovate-invent opened this issue Jun 10, 2021 · 0 comments

Comments

@innovate-invent
Copy link
Collaborator

Delete

resource "kubernetes_job" "visualizations-fix" {
# TODO remove after https://github.com/galaxyproject/galaxy/issues/11057
depends_on = [kubernetes_job.visualizations]
metadata {
generate_name = "load-visualizations-fix-"
namespace = local.namespace.metadata.0.name
}
spec {
template {
metadata {}
spec {
security_context {
run_as_user = 0
run_as_group = local.uwsgi_gid
}
automount_service_account_token = false
container {
name = "load-visualizations-fix"
command = ["bash", "-c", "apt-get install rename && rename -v 'y/A-Z/a-z/' '${local.managed_config_dir}/visualizations/'*"]
image = "${local.galaxy_app_image}:${var.image_tag}"
image_pull_policy = var.debug ? "Always" : null
volume_mount {
mount_path = local.data_dir
name = "data"
}
}
node_selector = {
WorkClass = "service"
}
volume {
name = "data"
persistent_volume_claim {
claim_name = kubernetes_persistent_volume_claim.user_data.metadata.0.name
}
}
restart_policy = "Never"
}
}
backoff_limit = 1
}
wait_for_completion = true
timeouts {
create = "10m"
}
}

after galaxyproject/galaxy#11057 is resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant