apiVersion: v1
kind: DeploymentConfig
metadata:
  name: ${project.artifactId}
spec:
  replicas: 1
  strategy:
    rollingParams:
      timeoutSeconds: 10800
    type: Rolling
  template:
    spec:
      containers:
        - readinessProbe:
            httpGet:
              path: /health
              port: 8080
            initialDelaySeconds: 10
            periodSeconds: 5
          env:
            - name: KUBERNETES_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: JAVA_APP_DIR
              value: /deployments
            - name: SSO_URL
              value: ${SSO_URL}/auth
            - name: SSO_REALM
              value: ${REALM}
            - name: SSO_REALM_PUBLIC_KEY
              value: ${REALM_PUBLIC_KEY}
            - name: SSO_CLIENT_ID
              value: ${CLIENT_ID}
            - name: SSO_SECRET
              value: ${SECRET}
            - name: JAVA_OPTIONS
              value: -Dsso.realm=$(SSO_REALM) -Dsso.auth-server-url=$(SSO_AUTH_SERVER_URL)


apiVersion: v1
kind: DeploymentConfig
metadata:
  name: ${project.artifactId}
spec:
  replicas: 1
  strategy:
    rollingParams:
      timeoutSeconds: 10800
    type: Rolling
  template:
    spec:
      containers:
        - env:
            - name: KUBERNETES_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: JAVA_APP_DIR
              value: /deployments
            - name: SSO_URL
              value: ${SSO_URL}/auth
            - name: SSO_REALM
              value: ${REALM}
            - name: SSO_REALM_PUBLIC_KEY
              value: ${REALM_PUBLIC_KEY}
            - name: SSO_CLIENT_ID
              value: ${CLIENT_ID}
            - name: SSO_SECRET
              value: ${SECRET}
            - name: JAVA_OPTIONS
              value: -Dsso.realm=$(SSO_REALM) -Dsso.auth-server-url=$(SSO_AUTH_SERVER_URL)
        image: secured-swarm-rest:latest
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 8080
          name: http
          protocol: TCP
        readinessProbe:
          httpGet:
            path: /health
            port: 8080
          initialDelaySeconds: 10
          periodSeconds: 5
  triggers:
  - type: ConfigChange
  - imageChangeParams:
      automatic: true
      containerNames:
      - secured-swarm-rest
      from:
        kind: ImageStreamTag
        name: secured-swarm-rest:latest
    type: ImageChange

Add trigger, imae name & policy
Add trigger, imae name & policy
