Parameter namespace not working correctly

#1

I have a parametized deployment. When I look at the output from the deplolyment I see that it has set the namespace parameter to the correct value qa however it gets deployed to the `default namespace. All of the other objects (svc,gateway,virtualservice etc) get deployed to the correct qa namespace, its just the deployment that is deployed to default.

If i change my manifest to

namespace: qa #’${ parameters.namespace }’

It works , so that says to me its something Spinnaker side.

tcx-ui",“moniker.spinnaker.io/cluster":"deployment
tcx-ui”},“labels”:{“app”:“tcx-ui”,“app.kubernetes.io/managed-by":“spinnaker”,“app.kubernetes.io/name”:“tcx-ui”,“version”:“latest”},"namespace":"qa”},“spec”:{“containers”:[{“image”:“tcxcontainers.azurecr.io/tcxedi/ui:59",“name”:“tcx-ui”,"ports”:

however further down the log i see this

labels:
app.kubernetes.io/managed-by: spinnaker
app.kubernetes.io/name: tcx-ui
name: tcx-ui
namespace: default

HERE is the full log for that deployment object

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
artifact.spinnaker.io/location: default
artifact.spinnaker.io/name: tcx-ui
artifact.spinnaker.io/type: kubernetes/deployment
deployment.kubernetes.io/revision: ‘12’
kubectl.kubernetes.io/last-applied-configuration: >
{“apiVersion”:“apps/v1beta1”,“kind”:“Deployment”,“metadata”:{“annotations”:{“artifact.spinnaker.io/location":“default”,“artifact.spinnaker.io/name”:“tcx-ui”,“artifact.spinnaker.io/type”:“kubernetes/deployment”,“moniker.spinnaker.io/application”:“tcx-ui”,“moniker.spinnaker.io/cluster”:"deployment
tcx-ui”},“labels”:{“app.kubernetes.io/managed-by":“spinnaker”,“app.kubernetes.io/name”:“tcx-ui”},“name”:“tcx-ui”,“namespace”:“default”},“spec”:{“replicas”:1,“revisionHistoryLimit”:2,“template”:{“metadata”:{“annotations”:{“artifact.spinnaker.io/location”:“default”,“artifact.spinnaker.io/name”:“tcx-ui”,“artifact.spinnaker.io/type”:“kubernetes/deployment”,“moniker.spinnaker.io/application”:“tcx-ui”,“moniker.spinnaker.io/cluster”:"deployment
tcx-ui”},“labels”:{“app”:“tcx-ui”,“app.kubernetes.io/managed-by":“spinnaker”,“app.kubernetes.io/name”:“tcx-ui”,“version”:“latest”},“namespace”:“qa”},“spec”:{“containers”:[{“image”:“tcxcontainers.azurecr.io/tcxedi/ui:59”,“name”:“tcx-ui”,“ports”:[{“containerPort”:80,“name”:“http”}],“resources”:{“requests”:{“cpu”:“625m”,“memory”:“750Mi”}}}],“imagePullSecrets”:[{“name”:“tcxregsecret”}],“nodeSelector”:{“beta.kubernetes.io/os”:"linux”}}}}}
moniker.spinnaker.io/application: tcx-ui
moniker.spinnaker.io/cluster: deployment tcx-ui
creationTimestamp: ‘2019-04-12T00:18:31Z’
generation: 27
labels:
app.kubernetes.io/managed-by: spinnaker
app.kubernetes.io/name: tcx-ui
name: tcx-ui
namespace: default
resourceVersion: ‘4946413’
selfLink: /apis/extensions/v1beta1/namespaces/default/deployments/tcx-ui
uid: 80f34d50-5cb8-11e9-b330-72e971baf9cd
spec:
progressDeadlineSeconds: 600
replicas: 4
revisionHistoryLimit: 2
selector:
matchLabels:
app: tcx-ui
app.kubernetes.io/managed-by: spinnaker
app.kubernetes.io/name: tcx-ui
version: latest
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
artifact.spinnaker.io/location: default
artifact.spinnaker.io/name: tcx-ui
artifact.spinnaker.io/type: kubernetes/deployment
moniker.spinnaker.io/application: tcx-ui
moniker.spinnaker.io/cluster: deployment tcx-ui
labels:
app: tcx-ui
app.kubernetes.io/managed-by: spinnaker
app.kubernetes.io/name: tcx-ui
version: latest
namespace: qa
spec:
containers:
- image: ‘tcxcontainers.azurecr.io/tcxedi/ui:59
imagePullPolicy: IfNotPresent
name: tcx-ui
ports:
- containerPort: 80
name: http
protocol: TCP
resources:
requests:
cpu: 625m
memory: 750Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: tcxregsecret
nodeSelector:
beta.kubernetes.io/os: linux
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status:
availableReplicas: 4
conditions:
- lastTransitionTime: ‘2019-04-12T00:18:31Z’
lastUpdateTime: ‘2019-04-12T01:49:16Z’
message: ReplicaSet “tcx-ui-cfcbc9d4” has successfully progressed.
reason: NewReplicaSetAvailable
status: ‘True’
type: Progressing
- lastTransitionTime: ‘2019-04-12T01:50:22Z’
lastUpdateTime: ‘2019-04-12T01:50:22Z’
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: ‘True’
type: Available
observedGeneration: 27
readyReplicas: 4
replicas: 4
updatedReplicas: 4

0 Likes