Last active
April 26, 2018 09:13
-
-
Save ckorobov/7a1a857509fed32477385e7cddd38061 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: test-configmap-meta | |
namespace: testing | |
data: | |
host: '172.30.93.94' | |
port: '5432' | |
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: test-secret | |
namespace: testing | |
type: Opaque | |
data: | |
user: 'YWRtaW4=' | |
password: 'cGFzc3dvcmQ=' | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: test-spinnaker-deployment | |
namespace: testing | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: test-spinnaker-deployment | |
annotations: | |
moniker.spinnaker.io/application: '"test-spinnaker-deployment"' | |
spec: | |
containers: | |
- image: alpine | |
command: ["/bin/sh"] | |
args: ["-c", "while true; do echo $(date) $HOST_NAME $TEST_PORT $SECRET_USER $SECRET_PASS; sleep 10;done"] | |
name: test-spinnaker-container | |
imagePullPolicy: IfNotPresent | |
resources: | |
requests: | |
memory: "64Mi" | |
cpu: "50m" | |
limits: | |
memory: "128Mi" | |
cpu: "100m" | |
env: | |
- name: TEST_PORT | |
valueFrom: | |
configMapKeyRef: | |
name: test-configmap-meta | |
key: port | |
- name: SECRET_USER | |
valueFrom: | |
secretKeyRef: | |
name: test-secret | |
key: user | |
- name: SECRET_PASS | |
valueFrom: | |
secretKeyRef: | |
name: test-secret | |
key: password | |
--- | |
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: test-spinnaker-job | |
namespace: testing | |
spec: | |
activeDeadlineSeconds: 900 | |
template: | |
metadata: | |
name: test-spinnaker-job | |
spec: | |
containers: | |
- image: alpine | |
command: ["/bin/sh"] | |
args: ["-c", "echo $(date) $HOST_NAME $TEST_PORT $SECRET_USER $SECRET_PASS"] | |
name: test-spinnaker-container | |
imagePullPolicy: IfNotPresent | |
resources: | |
requests: | |
memory: "64Mi" | |
cpu: "50m" | |
limits: | |
memory: "128Mi" | |
cpu: "100m" | |
env: | |
- name: TEST_PORT | |
valueFrom: | |
configMapKeyRef: | |
name: test-configmap-meta | |
key: port | |
- name: SECRET_USER | |
valueFrom: | |
secretKeyRef: | |
name: test-secret | |
key: user | |
- name: SECRET_PASS | |
valueFrom: | |
secretKeyRef: | |
name: test-secret | |
key: password | |
restartPolicy: OnFailure | |
#Results after spinnaker deployment: | |
[11:03:22] ~ $ kubectl get pods -n testing | |
NAME READY STATUS RESTARTS AGE | |
test-spinnaker-deployment-1793402817-8r7n3 0/1 configmaps "test-configmap-meta" not found 0 3m | |
test-spinnaker-job-rr171 0/1 configmaps "test-configmap-meta" not found 0 3m | |
[11:06:44] ~ $ kubectl get configmap -n testing | grep test | |
test-configmap-meta-v000 2 6m | |
[11:06:49] ~ $ | |
and spinnaker output: | |
{"application":"test-spinnaker-job","authentication":{"allowedAccounts":["lab-obo-new","lab-aws"],"user":"anonymous"},"buildTime":1524733197917,"canceled":true,"canceledBy":"anonymous","cancellationReason":null,"description":null,"endTime":1524733829197,"id":"2ad05e28-c151-47d2-9903-ee44758f6319","initialConfig":{},"keepWaitingPipelines":false,"limitConcurrent":true,"name":"deploy from github","notifications":[],"origin":"deck","paused":null,"pipelineConfigId":"26b01e14-6317-4a67-9967-7ffb6c7b458e","stages":[{"context":{"account":"lab-aws","artifacts":[{"location":"testing","name":"test-configmap-meta","reference":"test-configmap-meta-v000","type":"kubernetes/configMap","version":"v000"},{"location":"testing","name":"test-spinnaker-job","reference":"test-spinnaker-job","type":"kubernetes/job"},{"location":"testing","name":"test-secret","reference":"test-secret-v000","type":"kubernetes/secret","version":"v000"},{"location":"testing","name":"test-spinnaker-deployment","reference":"test-spinnaker-deployment","type":"kubernetes/deployment"}],"cloudProvider":"kubernetes","deploy.account.name":"lab-aws","deploy.server.groups":{},"errors":[],"kato.last.task.id":{"id":"dd03410a-5cb9-4634-9e97-0fd52c4b7955"},"kato.result.expected":true,"kato.task.firstNotFoundRetry":-1,"kato.task.notFoundRetryCount":0,"kato.tasks":[{"history":[{"phase":"ORCHESTRATION","status":"Initializing Orchestration Task..."},{"phase":"ORCHESTRATION","status":"Processing op: KubernetesDeployManifestOperation"},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Beginning deployment of manifest..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for configMap..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Swapping out artifacts in configMap test-configmap-meta from context..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for secret..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Swapping out artifacts in secret test-secret from context..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for deployment..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Swapping out artifacts in deployment test-spinnaker-deployment from context..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for job..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Swapping out artifacts in job test-spinnaker-job from context..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Checking if all requested artifacts were bound..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Sorting manifests by priority..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for secret..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for configMap..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for deployment..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for secret..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for job..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for deployment..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Deploy order is: configMap test-configmap-meta, secret test-secret, deployment test-spinnaker-deployment, job test-spinnaker-job"},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for configMap..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Annotating manifest configMap test-configmap-meta with artifact, relationships & moniker..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Swapping out artifacts in configMap test-configmap-meta-v000 from other deployments..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Submitting manifest configMap test-configmap-meta-v000 to kubernetes master..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for secret..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Annotating manifest secret test-secret with artifact, relationships & moniker..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Swapping out artifacts in secret test-secret-v000 from other deployments..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Submitting manifest secret test-secret-v000 to kubernetes master..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for deployment..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Annotating manifest deployment test-spinnaker-deployment with artifact, relationships & moniker..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Swapping out artifacts in deployment test-spinnaker-deployment from other deployments..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Submitting manifest deployment test-spinnaker-deployment to kubernetes master..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Finding deployer for job..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Annotating manifest job test-spinnaker-job with artifact, relationships & moniker..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Swapping out artifacts in job test-spinnaker-job from other deployments..."},{"phase":"DEPLOY_KUBERNETES_MANIFEST","status":"Submitting manifest job test-spinnaker-job to kubernetes master..."},{"phase":"ORCHESTRATION","status":"Orchestration completed."}],"id":"dd03410a-5cb9-4634-9e97-0fd52c4b7955","resultObjects":[{"boundArtifacts":[],"createdArtifacts":[{"location":"testing","name":"test-configmap-meta","reference":"test-configmap-meta-v000","type":"kubernetes/configMap","version":"v000"},{"location":"testing","name":"test-spinnaker-job","reference":"test-spinnaker-job","type":"kubernetes/job"},{"location":"testing","name":"test-secret","reference":"test-secret-v000","type":"kubernetes/secret","version":"v000"},{"location":"testing","name":"test-spinnaker-deployment","reference":"test-spinnaker-deployment","type":"kubernetes/deployment"}],"manifestNamesByNamespace":{"testing":["job test-spinnaker-job","deployment test-spinnaker-deployment","secret test-secret-v000","configMap test-configmap-meta-v000"]},"manifests":[{"apiVersion":"v1","kind":"Secret","metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-secret\"","artifact.spinnaker.io/type":"\"kubernetes/secret\"","artifact.spinnaker.io/version":"\"v000\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-secret-v000","namespace":"testing"},"type":"Opaque"},{"apiVersion":"extensions/v1beta1","kind":"Deployment","metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-spinnaker-deployment\"","artifact.spinnaker.io/type":"\"kubernetes/deployment\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-spinnaker-deployment","namespace":"testing"},"spec":{"replicas":1,"template":{"metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-spinnaker-deployment\"","artifact.spinnaker.io/type":"\"kubernetes/deployment\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"labels":{"app":"test-spinnaker-deployment"}},"spec":{"containers":[{"args":["-c","while true; do echo $(date) $HOST_NAME $TEST_PORT $SECRET_USER $SECRET_PASS; sleep 10;done"],"command":["/bin/sh"],"env":[{"name":"TEST_PORT","valueFrom":{"configMapKeyRef":{"key":"port","name":"test-configmap-meta"}}},{"name":"SECRET_USER","valueFrom":{"secretKeyRef":{"key":"user","name":"test-secret"}}},{"name":"SECRET_PASS","valueFrom":{"secretKeyRef":{"key":"password","name":"test-secret"}}}],"image":"alpine","imagePullPolicy":"IfNotPresent","name":"test-spinnaker-container","resources":{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"50m","memory":"64Mi"}}}]}}}},{"apiVersion":"v1","data":{"host":"172.30.93.94","port":"5432"},"kind":"ConfigMap","metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-configmap-meta\"","artifact.spinnaker.io/type":"\"kubernetes/configMap\"","artifact.spinnaker.io/version":"\"v000\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-configmap-meta-v000","namespace":"testing"}},{"apiVersion":"batch/v1","kind":"Job","metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-spinnaker-job\"","artifact.spinnaker.io/type":"\"kubernetes/job\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-spinnaker-job","namespace":"testing"},"spec":{"activeDeadlineSeconds":900,"template":{"metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-spinnaker-job\"","artifact.spinnaker.io/type":"\"kubernetes/job\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-spinnaker-job"},"spec":{"containers":[{"args":["-c","echo $(date) $HOST_NAME $TEST_PORT $SECRET_USER $SECRET_PASS"],"command":["/bin/sh"],"env":[{"name":"TEST_PORT","valueFrom":{"configMapKeyRef":{"key":"port","name":"test-configmap-meta"}}},{"name":"SECRET_USER","valueFrom":{"secretKeyRef":{"key":"user","name":"test-secret"}}},{"name":"SECRET_PASS","valueFrom":{"secretKeyRef":{"key":"password","name":"test-secret"}}}],"image":"alpine","imagePullPolicy":"IfNotPresent","name":"test-spinnaker-container","resources":{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"50m","memory":"64Mi"}}}],"restartPolicy":"OnFailure"}}}}]}],"status":{"completed":true,"failed":false}}],"manifestArtifactAccount":"my-github-artifact-account","manifestArtifactId":"210a4083-8680-49e7-b106-398b8ddd925b","moniker":{"app":"test-spinnaker-job","cluster":"test-job-cluster"},"outputs.boundArtifacts":[],"outputs.createdArtifacts":[{"location":"testing","name":"test-configmap-meta","reference":"test-configmap-meta-v000","type":"kubernetes/configMap","version":"v000"},{"location":"testing","name":"test-spinnaker-job","reference":"test-spinnaker-job","type":"kubernetes/job"},{"location":"testing","name":"test-secret","reference":"test-secret-v000","type":"kubernetes/secret","version":"v000"},{"location":"testing","name":"test-spinnaker-deployment","reference":"test-spinnaker-deployment","type":"kubernetes/deployment"}],"outputs.manifestNamesByNamespace":{"testing":["job test-spinnaker-job","deployment test-spinnaker-deployment","secret test-secret-v000","configMap test-configmap-meta-v000"]},"outputs.manifests":[{"apiVersion":"v1","kind":"Secret","metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-secret\"","artifact.spinnaker.io/type":"\"kubernetes/secret\"","artifact.spinnaker.io/version":"\"v000\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-secret-v000","namespace":"testing"},"type":"Opaque"},{"apiVersion":"extensions/v1beta1","kind":"Deployment","metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-spinnaker-deployment\"","artifact.spinnaker.io/type":"\"kubernetes/deployment\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-spinnaker-deployment","namespace":"testing"},"spec":{"replicas":1,"template":{"metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-spinnaker-deployment\"","artifact.spinnaker.io/type":"\"kubernetes/deployment\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"labels":{"app":"test-spinnaker-deployment"}},"spec":{"containers":[{"args":["-c","while true; do echo $(date) $HOST_NAME $TEST_PORT $SECRET_USER $SECRET_PASS; sleep 10;done"],"command":["/bin/sh"],"env":[{"name":"TEST_PORT","valueFrom":{"configMapKeyRef":{"key":"port","name":"test-configmap-meta"}}},{"name":"SECRET_USER","valueFrom":{"secretKeyRef":{"key":"user","name":"test-secret"}}},{"name":"SECRET_PASS","valueFrom":{"secretKeyRef":{"key":"password","name":"test-secret"}}}],"image":"alpine","imagePullPolicy":"IfNotPresent","name":"test-spinnaker-container","resources":{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"50m","memory":"64Mi"}}}]}}}},{"apiVersion":"v1","data":{"host":"172.30.93.94","port":"5432"},"kind":"ConfigMap","metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-configmap-meta\"","artifact.spinnaker.io/type":"\"kubernetes/configMap\"","artifact.spinnaker.io/version":"\"v000\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-configmap-meta-v000","namespace":"testing"}},{"apiVersion":"batch/v1","kind":"Job","metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-spinnaker-job\"","artifact.spinnaker.io/type":"\"kubernetes/job\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-spinnaker-job","namespace":"testing"},"spec":{"activeDeadlineSeconds":900,"template":{"metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-spinnaker-job\"","artifact.spinnaker.io/type":"\"kubernetes/job\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-spinnaker-job"},"spec":{"containers":[{"args":["-c","echo $(date) $HOST_NAME $TEST_PORT $SECRET_USER $SECRET_PASS"],"command":["/bin/sh"],"env":[{"name":"TEST_PORT","valueFrom":{"configMapKeyRef":{"key":"port","name":"test-configmap-meta"}}},{"name":"SECRET_USER","valueFrom":{"secretKeyRef":{"key":"user","name":"test-secret"}}},{"name":"SECRET_PASS","valueFrom":{"secretKeyRef":{"key":"password","name":"test-secret"}}}],"image":"alpine","imagePullPolicy":"IfNotPresent","name":"test-spinnaker-container","resources":{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"50m","memory":"64Mi"}}}],"restartPolicy":"OnFailure"}}}}],"processed.manifests":[],"refreshed.manifests":["testing:secret test-secret-v000","testing:job test-spinnaker-job","testing:configMap test-configmap-meta-v000","testing:deployment test-spinnaker-deployment"],"relationships":{"loadBalancers":[],"securityGroups":[]},"source":"artifact"},"endTime":1524733834066,"id":"f742f409-1cf0-4203-a448-3f65013571a1","lastModified":null,"name":"deploy to lab-aws","outputs":{"artifacts":[{"location":"testing","name":"test-configmap-meta","reference":"test-configmap-meta-v000","type":"kubernetes/configMap","version":"v000"},{"location":"testing","name":"test-spinnaker-job","reference":"test-spinnaker-job","type":"kubernetes/job"},{"location":"testing","name":"test-secret","reference":"test-secret-v000","type":"kubernetes/secret","version":"v000"},{"location":"testing","name":"test-spinnaker-deployment","reference":"test-spinnaker-deployment","type":"kubernetes/deployment"}],"outputs.boundArtifacts":[],"outputs.createdArtifacts":[{"location":"testing","name":"test-configmap-meta","reference":"test-configmap-meta-v000","type":"kubernetes/configMap","version":"v000"},{"location":"testing","name":"test-spinnaker-job","reference":"test-spinnaker-job","type":"kubernetes/job"},{"location":"testing","name":"test-secret","reference":"test-secret-v000","type":"kubernetes/secret","version":"v000"},{"location":"testing","name":"test-spinnaker-deployment","reference":"test-spinnaker-deployment","type":"kubernetes/deployment"}],"outputs.manifestNamesByNamespace":{"testing":["job test-spinnaker-job","deployment test-spinnaker-deployment","secret test-secret-v000","configMap test-configmap-meta-v000"]},"outputs.manifests":[{"apiVersion":"v1","kind":"Secret","metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-secret\"","artifact.spinnaker.io/type":"\"kubernetes/secret\"","artifact.spinnaker.io/version":"\"v000\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-secret-v000","namespace":"testing"},"type":"Opaque"},{"apiVersion":"extensions/v1beta1","kind":"Deployment","metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-spinnaker-deployment\"","artifact.spinnaker.io/type":"\"kubernetes/deployment\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-spinnaker-deployment","namespace":"testing"},"spec":{"replicas":1,"template":{"metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-spinnaker-deployment\"","artifact.spinnaker.io/type":"\"kubernetes/deployment\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"labels":{"app":"test-spinnaker-deployment"}},"spec":{"containers":[{"args":["-c","while true; do echo $(date) $HOST_NAME $TEST_PORT $SECRET_USER $SECRET_PASS; sleep 10;done"],"command":["/bin/sh"],"env":[{"name":"TEST_PORT","valueFrom":{"configMapKeyRef":{"key":"port","name":"test-configmap-meta"}}},{"name":"SECRET_USER","valueFrom":{"secretKeyRef":{"key":"user","name":"test-secret"}}},{"name":"SECRET_PASS","valueFrom":{"secretKeyRef":{"key":"password","name":"test-secret"}}}],"image":"alpine","imagePullPolicy":"IfNotPresent","name":"test-spinnaker-container","resources":{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"50m","memory":"64Mi"}}}]}}}},{"apiVersion":"v1","data":{"host":"172.30.93.94","port":"5432"},"kind":"ConfigMap","metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-configmap-meta\"","artifact.spinnaker.io/type":"\"kubernetes/configMap\"","artifact.spinnaker.io/version":"\"v000\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-configmap-meta-v000","namespace":"testing"}},{"apiVersion":"batch/v1","kind":"Job","metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-spinnaker-job\"","artifact.spinnaker.io/type":"\"kubernetes/job\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-spinnaker-job","namespace":"testing"},"spec":{"activeDeadlineSeconds":900,"template":{"metadata":{"annotations":{"artifact.spinnaker.io/location":"\"testing\"","artifact.spinnaker.io/name":"\"test-spinnaker-job\"","artifact.spinnaker.io/type":"\"kubernetes/job\"","moniker.spinnaker.io/application":"\"test-spinnaker-job\"","moniker.spinnaker.io/cluster":"\"test-job-cluster\""},"name":"test-spinnaker-job"},"spec":{"containers":[{"args":["-c","echo $(date) $HOST_NAME $TEST_PORT $SECRET_USER $SECRET_PASS"],"command":["/bin/sh"],"env":[{"name":"TEST_PORT","valueFrom":{"configMapKeyRef":{"key":"port","name":"test-configmap-meta"}}},{"name":"SECRET_USER","valueFrom":{"secretKeyRef":{"key":"user","name":"test-secret"}}},{"name":"SECRET_PASS","valueFrom":{"secretKeyRef":{"key":"password","name":"test-secret"}}}],"image":"alpine","imagePullPolicy":"IfNotPresent","name":"test-spinnaker-container","resources":{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"50m","memory":"64Mi"}}}],"restartPolicy":"OnFailure"}}}}]},"parentStageId":null,"refId":"1","requisiteStageRefIds":[],"scheduledTime":null,"startTime":1524733197941,"startTimeExpiry":null,"status":"CANCELED","syntheticStageOwner":null,"tasks":[{"endTime":1524733199274,"id":"1","implementingClass":"com.netflix.spinnaker.orca.clouddriver.tasks.manifest.DeployManifestTask","loopEnd":false,"loopStart":false,"name":"deployManifest","stageEnd":false,"stageStart":true,"startTime":1524733197948,"status":"SUCCEEDED"},{"endTime":1524733204368,"id":"2","implementingClass":"com.netflix.spinnaker.orca.clouddriver.tasks.MonitorKatoTask","loopEnd":false,"loopStart":false,"name":"monitorDeploy","stageEnd":false,"stageStart":false,"startTime":1524733199282,"status":"SUCCEEDED"},{"endTime":1524733204401,"id":"3","implementingClass":"com.netflix.spinnaker.orca.clouddriver.tasks.manifest.PromoteManifestKatoOutputsTask","loopEnd":false,"loopStart":false,"name":"promoteOutputs","stageEnd":false,"stageStart":false,"startTime":1524733204376,"status":"SUCCEEDED"},{"endTime":1524733216691,"id":"4","implementingClass":"com.netflix.spinnaker.orca.clouddriver.tasks.manifest.ManifestForceCacheRefreshTask","loopEnd":false,"loopStart":false,"name":"forceCacheRefresh","stageEnd":false,"stageStart":false,"startTime":1524733204408,"status":"SUCCEEDED"},{"endTime":1524733834052,"id":"5","implementingClass":"com.netflix.spinnaker.orca.clouddriver.tasks.manifest.WaitForManifestStableTask","loopEnd":false,"loopStart":false,"name":"waitForManifestToStabilize","stageEnd":false,"stageStart":false,"startTime":1524733216697,"status":"CANCELED"},{"endTime":null,"id":"6","implementingClass":"com.netflix.spinnaker.orca.pipeline.tasks.artifacts.BindProducedArtifactsTask","loopEnd":false,"loopStart":false,"name":"bindProducedArtifacts","stageEnd":true,"stageStart":false,"startTime":null,"status":"NOT_STARTED"}],"type":"deployManifest"}],"startTime":1524733197931,"startTimeExpiry":null,"status":"CANCELED","trigger":{"artifacts":[{"metadata":{"kind":"default.github"},"name":"test-job-spinnaker.yaml","reference":"https://api.github.com/XXXX/test-job-spinnaker.yaml","type":"github/file"}],"correlationId":null,"dryRun":false,"notifications":[],"parameters":{},"rebake":false,"resolvedExpectedArtifacts":[{"boundArtifact":{"metadata":{"kind":"default.github"},"name":"test-job-spinnaker.yaml","reference":"https://api.github.com/repos/XsXX/pinnaker/contents/test-job-spinnaker.yaml","type":"github/file"},"defaultArtifact":{"metadata":{"kind":"default.github"},"name":"test-job-spinnaker.yaml","reference":"https://api.github.com/repos/XXX/spinnaker/contents/test-job-spinnaker.yaml","type":"github/file"},"id":"210a4083-8680-49e7-b106-398b8ddd925b","matchArtifact":{"metadata":{"kind":"github"},"name":"spinnaker/test-job-spinnaker.yaml","type":"github/file"},"useDefaultArtifact":true,"usePriorArtifact":false}],"strategy":false,"type":"manual","user":"[anonymous]"},"type":"PIPELINE"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment