From 62ad1ea2a406ac2a66f49ba93e4e1fcc5ae599aa Mon Sep 17 00:00:00 2001 From: cahe Date: Fri, 16 Feb 2024 11:36:23 -0300 Subject: [PATCH] feat: create app job --- kustomize/kustomization.yaml | 8 +------- kustomize/mycrd.yaml | 11 +++-------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml index 34ef9e0..04b4a69 100644 --- a/kustomize/kustomization.yaml +++ b/kustomize/kustomization.yaml @@ -2,10 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - mycrd.yaml -patches: - - patch: | - apiVersion: apps/v1 - kind: Deployment - metadata: - name: argocd-configplugin-tester-deployment - # empty patch + diff --git a/kustomize/mycrd.yaml b/kustomize/mycrd.yaml index e240419..7d5f620 100644 --- a/kustomize/mycrd.yaml +++ b/kustomize/mycrd.yaml @@ -1,22 +1,17 @@ --- -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: argocd-configplugin-tester-deployment labels: app: argocd-configplugin-tester spec: - selector: - matchLabels: - app: argocd-configplugin-tester - replicas: 2 - strategy: - type: RollingUpdate template: metadata: labels: app: argocd-configplugin-tester spec: + restartPolicy: "Never" containers: - name: long-running-task args: