I deployed versioned secret twice, so I have secret-v001 and secret-v002.
I deployed configmap, secret, and job by running Deploy Manifest stage and secret's version is v002.
However the version of deployed job has a volume with key secret-v001.
kubernetes v2
Spinnaker: v1.9.0
GKE
master: 1.10.6-gke.1
nodepool: 1.10.6-gke.1
Deploy Manifest stage. configmap and secret will be v001.Deploy Manifest stage.I annotated max-version-history with value 5.
I bind artifact (docker tag) by running Find Artifacts From Resource stage.
spec:
completions: 1
template:
spec:
containers:
- name: testing
image: testing
imagePullPolicy: IfNotPresent
volumes:
- name: my-secret
secret:
secretName: secret
I try to bind secret-v002 with Find Artifacts From Resource, but no matching artifact found.
Manifest section
Account: my-account
Namespace: my-app
Kind: secret
Name: secret
Produces Artifacts section
Match against: custom
Type: kubernetes/secret
Name: secret
Version:
Location: my-app
Reference: secret
UPDATE on 2018.11.05
I have the same issue with configMap, too...
I can't run jobs with correct configMap and secret.
@lwander
Could you give me some advice or any workaround?
This is critical for me to run jobs...
I currently try these configurations.
Docker image
Set artifact constraints to docker image configured on expected artifact section.
manifest yaml file on GCS.
a. It includes 1 job, 1 secret, some configmaps.
docker image
a. no use prior execution, no default artifact
First, if the job already exists, delete it.
Select manifest source from expected artifact which I described above.
Configure expected artifact, docker image as a Req.Artifacts To Bind.
Manual.
Select Docker tag then run.
It versioned, but version is incorrect.
It binds first version of the resources.
Also experiencing this problem, is there any known work around?
@lwander
I found that this is my mistake of configurations...sorry for my mistake.
I reference one secret from multiple pods, but their manifest is different.
I use helm to generate manifests, but their secret's value is not the same!
This is not spinnaker related problem, so I close this issue.
@alexsniffin
Maybe your problem is different from mine, please open another issue to solve yours.
Most helpful comment
Also experiencing this problem, is there any known work around?