Kubernetes commands to get PODS status after CronJob execution in YAML file

I have the YAML file deployed in OCP to run the kubernetes commands. I have the CronJob configured in the YAML file to start the application on the specific time frame. Though the CronJob completed its execution ,at times the PODS is not getting started on the scheduled time. In order to deal this issue, we need to read the PODS status after the CronJob execution and if the PODS is not started then we need to send the email to notify some users. Is there any commands available to get the PODS status and notify the users within the YAML file.

apiVersion: v1
kind: Template
metadata:
  creationTimestamp: null
  name: @deploymentname@
objects:        
- apiVersion: v1
  kind: ImageStream
  metadata:
    annotations:
    name: @deploymentname@
    namespace: @PROJECTNAME@
  spec:
    dockerImageRepository: 'artifactory.bell.corp.bce.ca:5001/doq/@componentname@'
    lookupPolicy:
      local: false
- apiVersion: v1
  kind: PersistentVolumeClaim
  metadata:
    annotations:
    name: @deploymentname@
  spec:
    accessModes:
    - ReadWriteMany
    resources:
      requests:
        storage: 200Mi
    storageClassName: gluster-default
  status: {}
- apiVersion: v1
  kind: ConfigMap
  metadata:
    name: dynatrace-configmap-@environment.name@
    namespace: @PROJECTNAME@
  data:
    DT_API_URL: @DT_API_URL@
    DT_PAAS_TOKEN: @DT_PAAS_TOKEN@
    DT_ONEAGENT_OPTIONS: 'all'
- apiVersion: v1
  kind: ConfigMap
  metadata:
    name: dynatrace-preloadmap-@environment.name@
    namespace: @PROJECTNAME@
  data:
    @PRELOAD@: /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so 
- apiVersion: v1
  kind: DeploymentConfig
  metadata:
    generation: 1
    labels:
      app: @deploymentname@
    name: @deploymentname@
  spec:
    replicas: @PODNUMBER@
    selector:
      app: @deploymentname@
      deploymentconfig: @deploymentname@
    strategy:
      activeDeadlineSeconds: 21600
      resources: {}
      rollingParams:
        intervalSeconds: 5
        maxSurge: 25%
        maxUnavailable: 25%
        post:
          execNewPod:
            command:
              - /bin/sh
            containerName: @deploymentname@
          failurePolicy: Abort
        timeoutSeconds: 60
        updatePeriodSeconds: 5
      type: Rolling
    template:
      metadata:
        annotations:
          openshift.io/generated-by: OpenShiftNewApp
        creationTimestamp: null
        labels:
          app: @deploymentname@
          dynatrace-appname: APP_SSOM_SS1
          deploymentconfig: @deploymentname@
      spec:
        containers:
        - image: @IMAGE@
          imagePullPolicy: Always
          name: @deploymentname@
          env:
          - name: JVM_OPTS
            value: "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=2 -Xms64M"
          - name: EMAIL_LIST_DEV
            value: "OAP_OIL@bell.ca"
          - name: EMAIL_LIST_PROD
            value: "supportofosmuim.BAN.ind@cgi.com"  
          - name: R_EMAIL
            value: "ocp-noreply@bell.ca"
          envFrom:
            - configMapRef:
                name: dynatrace-preloadmap-@environment.name@
              prefix: LD
          lifecycle:
            postStart:
                exec:    
                    command:  ['sh', '-c', 'if [[ "@environment.name@" = "prod-dorval" || "@environment.name@" = "prod-wynford" ]];then EMAIL_LIST="${EMAIL_LIST_PROD}";else EMAIL_LIST="${EMAIL_LIST_DEV}";fi; echo "[`date`] Container ${HOSTNAME%-*-*} started in env : @environment.name@" | mailx  -s "Container ${HOSTNAME%-*-*} started" -r ${R_EMAIL} -S smtp=smtp://app-mail.bell.corp.bce.ca ${EMAIL_LIST} >/dev/null']
            preStop:
                exec:
                    command:  ['sh', '-c', 'if [[ "@environment.name@" = "prod-dorval" || "@environment.name@" = "prod-wynford" ]];then EMAIL_LIST="${EMAIL_LIST_PROD}";else EMAIL_LIST="${EMAIL_LIST_DEV}";fi; echo "[`date`] Container ${HOSTNAME%-*-*} stopped in env : @environment.name@" | mailx  -s "Container ${HOSTNAME%-*-*} stopped" -r ${R_EMAIL} -S smtp=smtp://app-mail.bell.corp.bce.ca ${EMAIL_LIST} >/dev/null']
          ports:
          - containerPort: 8080
            protocol: TCP
          resources:
            limits:
              cpu: "@LCPU@m"
              memory: @LMEMSIZE@Mi
            requests:
              cpu: "@RCPU@m"
              memory: @RMEMSIZE@Mi
          securityContext:
            privileged: false
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
          volumeMounts:
            - mountPath: /config
              name: @CONFIGMAPNAME@-configmapvolume
              readOnly: true
            - mountPath: /logs
              name: log-volume-@environment.name@
            - mountPath: /opt/dynatrace/oneagent
              name: oneagent
        dnsPolicy: ClusterFirst
        restartPolicy: Always
        schedulerName: default-scheduler
        securityContext: {}
        serviceAccount: deployer
        serviceAccountName: deployer
        initContainers:
        - args:
            - '-c'
            - >-
              ARCHIVE=$(mktemp) && wget -O $ARCHIVE
              "$DT_API_URL/v1/deployment/installer/agent/unix/paas/latest?Api-Token=$DT_PAAS_TOKEN&$DT_ONEAGENT_OPTIONS"
              --no-check-certificate && unzip -o -d /opt/dynatrace/oneagent
              $ARCHIVE && rm -f $ARCHIVE
          command:
            - /bin/sh
          env:
            - name: DT_API_URL
              valueFrom:
                configMapKeyRef:
                  key: DT_API_URL
                  name: dynatrace-configmap-@environment.name@
            - name: DT_PAAS_TOKEN
              valueFrom:
                configMapKeyRef:
                  key: DT_PAAS_TOKEN
                  name: dynatrace-configmap-@environment.name@             
            - name: DT_ONEAGENT_OPTIONS
              valueFrom:
                configMapKeyRef:
                  key: DT_ONEAGENT_OPTIONS
                  name: dynatrace-configmap-@environment.name@
          image: 'alpine:3.8'
          imagePullPolicy: IfNotPresent
          name: install-oneagent
          resources: {}
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
          volumeMounts:
            - mountPath: /opt/dynatrace/oneagent
              name: oneagent
        volumes:
          - name: @CONFIGMAPNAME@-configmapvolume
            configMap:
              name: @CONFIGMAPNAME@
          - name: log-volume-@environment.name@
            persistentVolumeClaim:
              claimName: @deploymentname@
          - name: oneagent
            emptyDir: {}
    triggers:
    - type: "ImageChange" 
      imageChangeParams:
        automatic: true
        from:
          kind: "ImageStreamTag"
          name: "@deploymentname@:latest"
          namespace: "@PROJECTNAME@"
        containerNames:
          - @deploymentname@
    - type: ConfigChange
  status:
    availableReplicas: 0
    latestVersion: 0
    observedGeneration: 0
    replicas: @PODNUMBER@
    unavailableReplicas: 0
    updatedReplicas: 0
- apiVersion: batch/v1beta1
  kind: CronJob
  metadata:
    name: @deploymentname@
    namespace: @PROJECTNAME@
  spec:
    successfulJobsHistoryLimit: 60
    failedJobsHistoryLimit: 15 
    backoffLimit: 3
    schedule:  "@SCHEDULE@" 
    jobTemplate:
      spec:
        template:
         metadata:
            labels:
              dynatrace-appname: APP_SSOM_SS1
         spec:
            containers:
              - name: @deploymentname@
                image: @IMAGE@
                command: ["java",  "-jar", "/batch.voiceswitchcleanup-0.0.1-SNAPSHOT.jar","voiceSwitchCleanUpJob"]  
                env:
                - name: EMAIL_LIST_DEV
                  value: "OAP_OIL@bell.ca"
                - name: EMAIL_LIST_PROD
                  value: "supportofosmuim.BAN.ind@cgi.com"  
                - name: R_EMAIL
                  value: "ocp-noreply@bell.ca"
                envFrom:
                  - configMapRef:
                      name: dynatrace-preloadmap-@environment.name@
                    prefix: LD  
                lifecycle:
                    postStart:
                        exec:    
                            command:  ['sh', '-c', 'if [[ "@environment.name@" = "prod-dorval" || "@environment.name@" = "prod-wynford" ]];then EMAIL_LIST="${EMAIL_LIST_PROD}";else EMAIL_LIST="${EMAIL_LIST_DEV}";fi; echo "[`date`] Cron Job Container ${HOSTNAME%-*-*} started in env : @environment.name@" | mailx  -s "CRON Job Container ${HOSTNAME%-*-*} started" -r ${R_EMAIL} -S smtp=smtp://app-mail.bell.corp.bce.ca ${EMAIL_LIST} >/dev/null']
                    preStop:
                        exec:
                            command:  ['sh', '-c', 'if [[ "@environment.name@" = "prod-dorval" || "@environment.name@" = "prod-wynford" ]];then EMAIL_LIST="${EMAIL_LIST_PROD}";else EMAIL_LIST="${EMAIL_LIST_DEV}";fi; echo "[`date`] Cron Job Container ${HOSTNAME%-*-*} stopped in env : @environment.name@" | mailx  -s "CRON Job Container ${HOSTNAME%-*-*} stopped" -r ${R_EMAIL} -S smtp=smtp://app-mail.bell.corp.bce.ca ${EMAIL_LIST} >/dev/null']
                resources:
                  limits:
                    cpu: "@LCPU@m"
                    memory: @LMEMSIZE@Mi
                  requests:
                    cpu: "@RCPU@m"
                    memory: @RMEMSIZE@Mi
                volumeMounts:
                  - mountPath: /config
                    name: @CONFIGMAPNAME@-configmapvolume
                    readOnly: true
                  - mountPath: /logs
                    name: log-volume-@environment.name@ 
                  - mountPath: /opt/dynatrace/oneagent
                    name: oneagent      
            restartPolicy: OnFailure
            serviceAccount: deployer
            serviceAccountName: deployer
            initContainers:
            - args:
                - '-c'
                - >-
                  ARCHIVE=$(mktemp) && wget -O $ARCHIVE
                  "$DT_API_URL/v1/deployment/installer/agent/unix/paas/latest?Api-Token=$DT_PAAS_TOKEN&$DT_ONEAGENT_OPTIONS"
                  --no-check-certificate && unzip -o -d /opt/dynatrace/oneagent
                  $ARCHIVE && rm -f $ARCHIVE
              command:
                - /bin/sh
              env:
                - name: DT_API_URL
                  valueFrom:
                    configMapKeyRef:
                      key: DT_API_URL
                      name: dynatrace-configmap-@environment.name@
                - name: DT_PAAS_TOKEN
                  valueFrom:
                    configMapKeyRef:
                      key: DT_PAAS_TOKEN
                      name: dynatrace-configmap-@environment.name@             
                - name: DT_ONEAGENT_OPTIONS
                  valueFrom:
                    configMapKeyRef:
                      key: DT_ONEAGENT_OPTIONS
                      name: dynatrace-configmap-@environment.name@
              image: 'alpine:3.8'
              imagePullPolicy: IfNotPresent
              name: install-oneagent
              resources: {}
              terminationMessagePath: /dev/termination-log
              terminationMessagePolicy: File
              volumeMounts:
                - mountPath: /opt/dynatrace/oneagent
                  name: oneagent
            volumes:
              - configMap:
                  defaultMode: 420
                  name: @CONFIGMAPNAME@
                name: @CONFIGMAPNAME@-configmapvolume
              - name: log-volume-@environment.name@
                persistentVolumeClaim:
                  claimName: @deploymentname@
              - name: oneagent
                emptyDir: {}