-
Notifications
You must be signed in to change notification settings - Fork 104
Kubediff find differences on missing defaults #84
Comments
Here is what
|
Related to #37 |
Or maybe this is a repeat of #37 , since all errors are those "missing" elements in the array. Anyhow using |
+1, looking for a response to this as well. |
Can you give an example of some input data that causes this? |
Actually here you go:
And the yaml file: apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: gitlab-gitlab-runner
labels:
app: gitlab-gitlab-runner
chart: gitlab-runner-0.3.0
release: gitlab
heritage: Tiller
namespace: devtools
spec:
replicas: 1
template:
metadata:
labels:
app: gitlab-gitlab-runner
annotations:
checksum/configmap: dcf8b57898c96448dec3b044e2e528dc25fb8b75583f186b86fb8ad54f8f34d7
checksum/secrets: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
prometheus.io/scrape: "true"
prometheus.io/port: "9252"
spec:
securityContext:
runAsUser: 100
fsGroup: 65533
initContainers:
- name: configure
command:
- sh
- /config/configure
image: gitlab/gitlab-runner:alpine-v11.9.0
env:
- name: CI_SERVER_URL
value: https://gitlab.fashionnetwork.com
- name: CLONE_URL
value: ""
- name: RUNNER_EXECUTOR
value: kubernetes
- name: REGISTER_LOCKED
value: "false"
- name: RUNNER_TAG_LIST
value: docker
- name: KUBERNETES_IMAGE
value: ubuntu:16.04
- name: KUBERNETES_PRIVILEGED
value: "true"
- name: KUBERNETES_NAMESPACE
value: gitlab-jobs
- name: KUBERNETES_CPU_LIMIT
value: 200m
- name: KUBERNETES_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_CPU_REQUEST
value: 100m
- name: KUBERNETES_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_SERVICE_ACCOUNT
value: ""
- name: KUBERNETES_SERVICE_CPU_LIMIT
value: 200m
- name: KUBERNETES_SERVICE_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_SERVICE_CPU_REQUEST
value: 100m
- name: KUBERNETES_SERVICE_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_HELPER_CPU_LIMIT
value: 200m
- name: KUBERNETES_HELPER_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_HELPER_CPU_REQUEST
value: 100m
- name: KUBERNETES_HELPER_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_HELPER_IMAGE
value: ""
- name: KUBERNETES_PULL_POLICY
value: always
- name: CACHE_TYPE
value: s3
- name: CACHE_PATH
value: gitlab_runner
- name: CACHE_SHARED
value: "true"
- name: CACHE_S3_SERVER_ADDRESS
value: s3.amazonaws.com
- name: CACHE_S3_BUCKET_NAME
value: gitlab-fn-runner-cache
- name: CACHE_S3_BUCKET_LOCATION
value: eu-central-1
volumeMounts:
- name: runner-secrets
mountPath: /secrets
readOnly: false
- name: scripts
mountPath: /config
readOnly: true
- name: init-runner-secrets
mountPath: /init-secrets
readOnly: true
resources: {}
serviceAccountName: gitlab-gitlab-runner
containers:
- name: gitlab-gitlab-runner
image: gitlab/gitlab-runner:alpine-v11.9.0
imagePullPolicy: IfNotPresent
command:
- /bin/bash
- /scripts/entrypoint
env:
- name: CI_SERVER_URL
value: https://gitlab.fashionnetwork.com
- name: CLONE_URL
value: ""
- name: RUNNER_EXECUTOR
value: kubernetes
- name: REGISTER_LOCKED
value: "false"
- name: RUNNER_TAG_LIST
value: docker
- name: KUBERNETES_IMAGE
value: ubuntu:16.04
- name: KUBERNETES_PRIVILEGED
value: "true"
- name: KUBERNETES_NAMESPACE
value: gitlab-jobs
- name: KUBERNETES_CPU_LIMIT
value: 200m
- name: KUBERNETES_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_CPU_REQUEST
value: 100m
- name: KUBERNETES_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_SERVICE_ACCOUNT
value: ""
- name: KUBERNETES_SERVICE_CPU_LIMIT
value: 200m
- name: KUBERNETES_SERVICE_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_SERVICE_CPU_REQUEST
value: 100m
- name: KUBERNETES_SERVICE_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_HELPER_CPU_LIMIT
value: 200m
- name: KUBERNETES_HELPER_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_HELPER_CPU_REQUEST
value: 100m
- name: KUBERNETES_HELPER_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_HELPER_IMAGE
value: ""
- name: KUBERNETES_PULL_POLICY
value: always
- name: CACHE_TYPE
value: s3
- name: CACHE_PATH
value: gitlab_runner
- name: CACHE_SHARED
value: "true"
- name: CACHE_S3_SERVER_ADDRESS
value: s3.amazonaws.com
- name: CACHE_S3_BUCKET_NAME
value: gitlab-fn-runner-cache
- name: CACHE_S3_BUCKET_LOCATION
value: eu-central-1
livenessProbe:
exec:
command:
- /bin/bash
- /scripts/check-live
initialDelaySeconds: 60
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
readinessProbe:
exec:
command:
- /usr/bin/pgrep
- gitlab.*runner
initialDelaySeconds: 10
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
ports:
- name: metrics
containerPort: 9252
volumeMounts:
- name: runner-secrets
mountPath: /secrets
- name: etc-gitlab-runner
mountPath: /home/gitlab-runner/.gitlab-runner
- name: scripts
mountPath: /scripts
resources: {}
volumes:
- name: runner-secrets
emptyDir:
medium: Memory
- name: etc-gitlab-runner
emptyDir:
medium: Memory
- name: init-runner-secrets
projected:
sources:
- secret:
name: gitlab-aws-s3
- secret:
name: gitlab-gitlab-runner-secret
items:
- key: runner-registration-token
path: runner-registration-token
- key: runner-token
path: runner-token
- name: scripts
configMap:
name: gitlab-gitlab-runner
|
Can you post what |
Within a dictionary, |
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "11"
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"extensions/v1beta1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"gitlab-gitlab-runner","chart":"gitlab-runner-0.3.0","heritage":"Tiller","release":"gitlab"},"name":"gitlab-gitlab-runner","namespace":"devtools"},"spec":{"replicas":1,"template":{"metadata":{"annotations":{"checksum/configmap":"dcf8b57898c96448dec3b044e2e528dc25fb8b75583f186b86fb8ad54f8f34d7","checksum/secrets":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","prometheus.io/port":"9252","prometheus.io/scrape":"true"},"labels":{"app":"gitlab-gitlab-runner"}},"spec":{"containers":[{"command":["/bin/bash","/scripts/entrypoint"],"env":[{"name":"CI_SERVER_URL","value":"https://gitlab.fashionnetwork.com"},{"name":"CLONE_URL","value":""},{"name":"RUNNER_EXECUTOR","value":"kubernetes"},{"name":"REGISTER_LOCKED","value":"false"},{"name":"RUNNER_TAG_LIST","value":"docker"},{"name":"KUBERNETES_IMAGE","value":"ubuntu:16.04"},{"name":"KUBERNETES_PRIVILEGED","value":"true"},{"name":"KUBERNETES_NAMESPACE","value":"gitlab-jobs"},{"name":"KUBERNETES_CPU_LIMIT","value":"200m"},{"name":"KUBERNETES_MEMORY_LIMIT","value":"256Mi"},{"name":"KUBERNETES_CPU_REQUEST","value":"100m"},{"name":"KUBERNETES_MEMORY_REQUEST","value":"128Mi"},{"name":"KUBERNETES_SERVICE_ACCOUNT","value":""},{"name":"KUBERNETES_SERVICE_CPU_LIMIT","value":"200m"},{"name":"KUBERNETES_SERVICE_MEMORY_LIMIT","value":"256Mi"},{"name":"KUBERNETES_SERVICE_CPU_REQUEST","value":"100m"},{"name":"KUBERNETES_SERVICE_MEMORY_REQUEST","value":"128Mi"},{"name":"KUBERNETES_HELPER_CPU_LIMIT","value":"200m"},{"name":"KUBERNETES_HELPER_MEMORY_LIMIT","value":"256Mi"},{"name":"KUBERNETES_HELPER_CPU_REQUEST","value":"100m"},{"name":"KUBERNETES_HELPER_MEMORY_REQUEST","value":"128Mi"},{"name":"KUBERNETES_HELPER_IMAGE","value":""},{"name":"KUBERNETES_PULL_POLICY","value":"always"},{"name":"CACHE_TYPE","value":"s3"},{"name":"CACHE_PATH","value":"gitlab_runner"},{"name":"CACHE_SHARED","value":"true"},{"name":"CACHE_S3_SERVER_ADDRESS","value":"s3.amazonaws.com"},{"name":"CACHE_S3_BUCKET_NAME","value":"gitlab-fn-runner-cache"},{"name":"CACHE_S3_BUCKET_LOCATION","value":"eu-central-1"}],"image":"gitlab/gitlab-runner:alpine-v11.9.0","imagePullPolicy":"IfNotPresent","livenessProbe":{"exec":{"command":["/bin/bash","/scripts/check-live"]},"failureThreshold":3,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1},"name":"gitlab-gitlab-runner","ports":[{"containerPort":9252,"name":"metrics"}],"readinessProbe":{"exec":{"command":["/usr/bin/pgrep","gitlab.*runner"]},"failureThreshold":3,"initialDelaySeconds":10,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1},"resources":{},"volumeMounts":[{"mountPath":"/secrets","name":"runner-secrets"},{"mountPath":"/home/gitlab-runner/.gitlab-runner","name":"etc-gitlab-runner"},{"mountPath":"/scripts","name":"scripts"}]}],"initContainers":[{"command":["sh","/config/configure"],"env":[{"name":"CI_SERVER_URL","value":"https://gitlab.fashionnetwork.com"},{"name":"CLONE_URL","value":""},{"name":"RUNNER_EXECUTOR","value":"kubernetes"},{"name":"REGISTER_LOCKED","value":"false"},{"name":"RUNNER_TAG_LIST","value":"docker"},{"name":"KUBERNETES_IMAGE","value":"ubuntu:16.04"},{"name":"KUBERNETES_PRIVILEGED","value":"true"},{"name":"KUBERNETES_NAMESPACE","value":"gitlab-jobs"},{"name":"KUBERNETES_CPU_LIMIT","value":"200m"},{"name":"KUBERNETES_MEMORY_LIMIT","value":"256Mi"},{"name":"KUBERNETES_CPU_REQUEST","value":"100m"},{"name":"KUBERNETES_MEMORY_REQUEST","value":"128Mi"},{"name":"KUBERNETES_SERVICE_ACCOUNT","value":""},{"name":"KUBERNETES_SERVICE_CPU_LIMIT","value":"200m"},{"name":"KUBERNETES_SERVICE_MEMORY_LIMIT","value":"256Mi"},{"name":"KUBERNETES_SERVICE_CPU_REQUEST","value":"100m"},{"name":"KUBERNETES_SERVICE_MEMORY_REQUEST","value":"128Mi"},{"name":"KUBERNETES_HELPER_CPU_LIMIT","value":"200m"},{"name":"KUBERNETES_HELPER_MEMORY_LIMIT","value":"256Mi"},{"name":"KUBERNETES_HELPER_CPU_REQUEST","value":"100m"},{"name":"KUBERNETES_HELPER_MEMORY_REQUEST","value":"128Mi"},{"name":"KUBERNETES_HELPER_IMAGE","value":""},{"name":"KUBERNETES_PULL_POLICY","value":"always"},{"name":"CACHE_TYPE","value":"s3"},{"name":"CACHE_PATH","value":"gitlab_runner"},{"name":"CACHE_SHARED","value":"true"},{"name":"CACHE_S3_SERVER_ADDRESS","value":"s3.amazonaws.com"},{"name":"CACHE_S3_BUCKET_NAME","value":"gitlab-fn-runner-cache"},{"name":"CACHE_S3_BUCKET_LOCATION","value":"eu-central-1"}],"image":"gitlab/gitlab-runner:alpine-v11.9.0","name":"configure","resources":{},"volumeMounts":[{"mountPath":"/secrets","name":"runner-secrets","readOnly":false},{"mountPath":"/config","name":"scripts","readOnly":true},{"mountPath":"/init-secrets","name":"init-runner-secrets","readOnly":true}]}],"securityContext":{"fsGroup":65533,"runAsUser":100},"serviceAccountName":"gitlab-gitlab-runner","volumes":[{"emptyDir":{"medium":"Memory"},"name":"runner-secrets"},{"emptyDir":{"medium":"Memory"},"name":"etc-gitlab-runner"},{"name":"init-runner-secrets","projected":{"sources":[{"secret":{"name":"gitlab-aws-s3"}},{"secret":{"items":[{"key":"runner-registration-token","path":"runner-registration-token"},{"key":"runner-token","path":"runner-token"}],"name":"gitlab-gitlab-runner-secret"}}]}},{"configMap":{"name":"gitlab-gitlab-runner"},"name":"scripts"}]}}}}
creationTimestamp: "2019-02-20T10:03:29Z"
generation: 11
labels:
app: gitlab-gitlab-runner
chart: gitlab-runner-0.3.0
heritage: Tiller
release: gitlab
name: gitlab-gitlab-runner
namespace: devtools
resourceVersion: "8914046"
selfLink: /apis/extensions/v1beta1/namespaces/devtools/deployments/gitlab-gitlab-runner
uid: c5f662ea-34f6-11e9-95c5-061409733802
spec:
progressDeadlineSeconds: 2147483647
replicas: 1
revisionHistoryLimit: 2147483647
selector:
matchLabels:
app: gitlab-gitlab-runner
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
annotations:
checksum/configmap: dcf8b57898c96448dec3b044e2e528dc25fb8b75583f186b86fb8ad54f8f34d7
checksum/secrets: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
prometheus.io/port: "9252"
prometheus.io/scrape: "true"
creationTimestamp: null
labels:
app: gitlab-gitlab-runner
spec:
containers:
- command:
- /bin/bash
- /scripts/entrypoint
env:
- name: CI_SERVER_URL
value: https://gitlab.fashionnetwork.com
- name: CLONE_URL
- name: RUNNER_EXECUTOR
value: kubernetes
- name: REGISTER_LOCKED
value: "false"
- name: RUNNER_TAG_LIST
value: docker
- name: KUBERNETES_IMAGE
value: ubuntu:16.04
- name: KUBERNETES_PRIVILEGED
value: "true"
- name: KUBERNETES_NAMESPACE
value: gitlab-jobs
- name: KUBERNETES_CPU_LIMIT
value: 200m
- name: KUBERNETES_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_CPU_REQUEST
value: 100m
- name: KUBERNETES_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_SERVICE_ACCOUNT
- name: KUBERNETES_SERVICE_CPU_LIMIT
value: 200m
- name: KUBERNETES_SERVICE_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_SERVICE_CPU_REQUEST
value: 100m
- name: KUBERNETES_SERVICE_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_HELPER_CPU_LIMIT
value: 200m
- name: KUBERNETES_HELPER_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_HELPER_CPU_REQUEST
value: 100m
- name: KUBERNETES_HELPER_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_HELPER_IMAGE
- name: KUBERNETES_PULL_POLICY
value: always
- name: CACHE_TYPE
value: s3
- name: CACHE_PATH
value: gitlab_runner
- name: CACHE_SHARED
value: "true"
- name: CACHE_S3_SERVER_ADDRESS
value: s3.amazonaws.com
- name: CACHE_S3_BUCKET_NAME
value: gitlab-fn-runner-cache
- name: CACHE_S3_BUCKET_LOCATION
value: eu-central-1
image: gitlab/gitlab-runner:alpine-v11.9.0
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- /bin/bash
- /scripts/check-live
failureThreshold: 3
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: gitlab-gitlab-runner
ports:
- containerPort: 9252
name: metrics
protocol: TCP
readinessProbe:
exec:
command:
- /usr/bin/pgrep
- gitlab.*runner
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /secrets
name: runner-secrets
- mountPath: /home/gitlab-runner/.gitlab-runner
name: etc-gitlab-runner
- mountPath: /scripts
name: scripts
dnsPolicy: ClusterFirst
initContainers:
- command:
- sh
- /config/configure
env:
- name: CI_SERVER_URL
value: https://gitlab.fashionnetwork.com
- name: CLONE_URL
- name: RUNNER_EXECUTOR
value: kubernetes
- name: REGISTER_LOCKED
value: "false"
- name: RUNNER_TAG_LIST
value: docker
- name: KUBERNETES_IMAGE
value: ubuntu:16.04
- name: KUBERNETES_PRIVILEGED
value: "true"
- name: KUBERNETES_NAMESPACE
value: gitlab-jobs
- name: KUBERNETES_CPU_LIMIT
value: 200m
- name: KUBERNETES_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_CPU_REQUEST
value: 100m
- name: KUBERNETES_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_SERVICE_ACCOUNT
- name: KUBERNETES_SERVICE_CPU_LIMIT
value: 200m
- name: KUBERNETES_SERVICE_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_SERVICE_CPU_REQUEST
value: 100m
- name: KUBERNETES_SERVICE_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_HELPER_CPU_LIMIT
value: 200m
- name: KUBERNETES_HELPER_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_HELPER_CPU_REQUEST
value: 100m
- name: KUBERNETES_HELPER_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_HELPER_IMAGE
- name: KUBERNETES_PULL_POLICY
value: always
- name: CACHE_TYPE
value: s3
- name: CACHE_PATH
value: gitlab_runner
- name: CACHE_SHARED
value: "true"
- name: CACHE_S3_SERVER_ADDRESS
value: s3.amazonaws.com
- name: CACHE_S3_BUCKET_NAME
value: gitlab-fn-runner-cache
- name: CACHE_S3_BUCKET_LOCATION
value: eu-central-1
image: gitlab/gitlab-runner:alpine-v11.9.0
imagePullPolicy: IfNotPresent
name: configure
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /secrets
name: runner-secrets
- mountPath: /config
name: scripts
readOnly: true
- mountPath: /init-secrets
name: init-runner-secrets
readOnly: true
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 65533
runAsUser: 100
serviceAccount: gitlab-gitlab-runner
serviceAccountName: gitlab-gitlab-runner
terminationGracePeriodSeconds: 30
volumes:
- emptyDir:
medium: Memory
name: runner-secrets
- emptyDir:
medium: Memory
name: etc-gitlab-runner
- name: init-runner-secrets
projected:
defaultMode: 420
sources:
- secret:
name: gitlab-aws-s3
- secret:
items:
- key: runner-registration-token
path: runner-registration-token
- key: runner-token
path: runner-token
name: gitlab-gitlab-runner-secret
- configMap:
defaultMode: 420
name: gitlab-gitlab-runner
name: scripts
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2019-02-20T10:03:29Z"
lastUpdateTime: "2019-02-20T10:03:29Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
observedGeneration: 11
readyReplicas: 1
replicas: 1
updatedReplicas: 1
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "11"
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"extensions/v1beta1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"gitlab-gitlab-runner","chart":"gitlab-runner-0.3.0","heritage":"Tiller","release":"gitlab"},"name":"gitlab-gitlab-runner","namespace":"devtools"},"spec":{"replicas":1,"template":{"metadata":{"annotations":{"checksum/configmap":"dcf8b57898c96448dec3b044e2e528dc25fb8b75583f186b86fb8ad54f8f34d7","checksum/secrets":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","prometheus.io/port":"9252","prometheus.io/scrape":"true"},"labels":{"app":"gitlab-gitlab-runner"}},"spec":{"containers":[{"command":["/bin/bash","/scripts/entrypoint"],"env":[{"name":"CI_SERVER_URL","value":"https://gitlab.fashionnetwork.com"},{"name":"CLONE_URL","value":""},{"name":"RUNNER_EXECUTOR","value":"kubernetes"},{"name":"REGISTER_LOCKED","value":"false"},{"name":"RUNNER_TAG_LIST","value":"docker"},{"name":"KUBERNETES_IMAGE","value":"ubuntu:16.04"},{"name":"KUBERNETES_PRIVILEGED","value":"true"},{"name":"KUBERNETES_NAMESPACE","value":"gitlab-jobs"},{"name":"KUBERNETES_CPU_LIMIT","value":"200m"},{"name":"KUBERNETES_MEMORY_LIMIT","value":"256Mi"},{"name":"KUBERNETES_CPU_REQUEST","value":"100m"},{"name":"KUBERNETES_MEMORY_REQUEST","value":"128Mi"},{"name":"KUBERNETES_SERVICE_ACCOUNT","value":""},{"name":"KUBERNETES_SERVICE_CPU_LIMIT","value":"200m"},{"name":"KUBERNETES_SERVICE_MEMORY_LIMIT","value":"256Mi"},{"name":"KUBERNETES_SERVICE_CPU_REQUEST","value":"100m"},{"name":"KUBERNETES_SERVICE_MEMORY_REQUEST","value":"128Mi"},{"name":"KUBERNETES_HELPER_CPU_LIMIT","value":"200m"},{"name":"KUBERNETES_HELPER_MEMORY_LIMIT","value":"256Mi"},{"name":"KUBERNETES_HELPER_CPU_REQUEST","value":"100m"},{"name":"KUBERNETES_HELPER_MEMORY_REQUEST","value":"128Mi"},{"name":"KUBERNETES_HELPER_IMAGE","value":""},{"name":"KUBERNETES_PULL_POLICY","value":"always"},{"name":"CACHE_TYPE","value":"s3"},{"name":"CACHE_PATH","value":"gitlab_runner"},{"name":"CACHE_SHARED","value":"true"},{"name":"CACHE_S3_SERVER_ADDRESS","value":"s3.amazonaws.com"},{"name":"CACHE_S3_BUCKET_NAME","value":"gitlab-fn-runner-cache"},{"name":"CACHE_S3_BUCKET_LOCATION","value":"eu-central-1"}],"image":"gitlab/gitlab-runner:alpine-v11.9.0","imagePullPolicy":"IfNotPresent","livenessProbe":{"exec":{"command":["/bin/bash","/scripts/check-live"]},"failureThreshold":3,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1},"name":"gitlab-gitlab-runner","ports":[{"containerPort":9252,"name":"metrics"}],"readinessProbe":{"exec":{"command":["/usr/bin/pgrep","gitlab.*runner"]},"failureThreshold":3,"initialDelaySeconds":10,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1},"resources":{},"volumeMounts":[{"mountPath":"/secrets","name":"runner-secrets"},{"mountPath":"/home/gitlab-runner/.gitlab-runner","name":"etc-gitlab-runner"},{"mountPath":"/scripts","name":"scripts"}]}],"initContainers":[{"command":["sh","/config/configure"],"env":[{"name":"CI_SERVER_URL","value":"https://gitlab.fashionnetwork.com"},{"name":"CLONE_URL","value":""},{"name":"RUNNER_EXECUTOR","value":"kubernetes"},{"name":"REGISTER_LOCKED","value":"false"},{"name":"RUNNER_TAG_LIST","value":"docker"},{"name":"KUBERNETES_IMAGE","value":"ubuntu:16.04"},{"name":"KUBERNETES_PRIVILEGED","value":"true"},{"name":"KUBERNETES_NAMESPACE","value":"gitlab-jobs"},{"name":"KUBERNETES_CPU_LIMIT","value":"200m"},{"name":"KUBERNETES_MEMORY_LIMIT","value":"256Mi"},{"name":"KUBERNETES_CPU_REQUEST","value":"100m"},{"name":"KUBERNETES_MEMORY_REQUEST","value":"128Mi"},{"name":"KUBERNETES_SERVICE_ACCOUNT","value":""},{"name":"KUBERNETES_SERVICE_CPU_LIMIT","value":"200m"},{"name":"KUBERNETES_SERVICE_MEMORY_LIMIT","value":"256Mi"},{"name":"KUBERNETES_SERVICE_CPU_REQUEST","value":"100m"},{"name":"KUBERNETES_SERVICE_MEMORY_REQUEST","value":"128Mi"},{"name":"KUBERNETES_HELPER_CPU_LIMIT","value":"200m"},{"name":"KUBERNETES_HELPER_MEMORY_LIMIT","value":"256Mi"},{"name":"KUBERNETES_HELPER_CPU_REQUEST","value":"100m"},{"name":"KUBERNETES_HELPER_MEMORY_REQUEST","value":"128Mi"},{"name":"KUBERNETES_HELPER_IMAGE","value":""},{"name":"KUBERNETES_PULL_POLICY","value":"always"},{"name":"CACHE_TYPE","value":"s3"},{"name":"CACHE_PATH","value":"gitlab_runner"},{"name":"CACHE_SHARED","value":"true"},{"name":"CACHE_S3_SERVER_ADDRESS","value":"s3.amazonaws.com"},{"name":"CACHE_S3_BUCKET_NAME","value":"gitlab-fn-runner-cache"},{"name":"CACHE_S3_BUCKET_LOCATION","value":"eu-central-1"}],"image":"gitlab/gitlab-runner:alpine-v11.9.0","name":"configure","resources":{},"volumeMounts":[{"mountPath":"/secrets","name":"runner-secrets","readOnly":false},{"mountPath":"/config","name":"scripts","readOnly":true},{"mountPath":"/init-secrets","name":"init-runner-secrets","readOnly":true}]}],"securityContext":{"fsGroup":65533,"runAsUser":100},"serviceAccountName":"gitlab-gitlab-runner","volumes":[{"emptyDir":{"medium":"Memory"},"name":"runner-secrets"},{"emptyDir":{"medium":"Memory"},"name":"etc-gitlab-runner"},{"name":"init-runner-secrets","projected":{"sources":[{"secret":{"name":"gitlab-aws-s3"}},{"secret":{"items":[{"key":"runner-registration-token","path":"runner-registration-token"},{"key":"runner-token","path":"runner-token"}],"name":"gitlab-gitlab-runner-secret"}}]}},{"configMap":{"name":"gitlab-gitlab-runner"},"name":"scripts"}]}}}}
creationTimestamp: "2019-02-20T10:03:29Z"
generation: 11
labels:
app: gitlab-gitlab-runner
chart: gitlab-runner-0.3.0
heritage: Tiller
release: gitlab
name: gitlab-gitlab-runner
namespace: devtools
resourceVersion: "8914046"
selfLink: /apis/extensions/v1beta1/namespaces/devtools/deployments/gitlab-gitlab-runner
uid: c5f662ea-34f6-11e9-95c5-061409733802
spec:
progressDeadlineSeconds: 2147483647
replicas: 1
revisionHistoryLimit: 2147483647
selector:
matchLabels:
app: gitlab-gitlab-runner
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
annotations:
checksum/configmap: dcf8b57898c96448dec3b044e2e528dc25fb8b75583f186b86fb8ad54f8f34d7
checksum/secrets: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
prometheus.io/port: "9252"
prometheus.io/scrape: "true"
creationTimestamp: null
labels:
app: gitlab-gitlab-runner
spec:
containers:
- command:
- /bin/bash
- /scripts/entrypoint
env:
- name: CI_SERVER_URL
value: https://gitlab.fashionnetwork.com
- name: CLONE_URL
- name: RUNNER_EXECUTOR
value: kubernetes
- name: REGISTER_LOCKED
value: "false"
- name: RUNNER_TAG_LIST
value: docker
- name: KUBERNETES_IMAGE
value: ubuntu:16.04
- name: KUBERNETES_PRIVILEGED
value: "true"
- name: KUBERNETES_NAMESPACE
value: gitlab-jobs
- name: KUBERNETES_CPU_LIMIT
value: 200m
- name: KUBERNETES_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_CPU_REQUEST
value: 100m
- name: KUBERNETES_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_SERVICE_ACCOUNT
- name: KUBERNETES_SERVICE_CPU_LIMIT
value: 200m
- name: KUBERNETES_SERVICE_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_SERVICE_CPU_REQUEST
value: 100m
- name: KUBERNETES_SERVICE_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_HELPER_CPU_LIMIT
value: 200m
- name: KUBERNETES_HELPER_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_HELPER_CPU_REQUEST
value: 100m
- name: KUBERNETES_HELPER_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_HELPER_IMAGE
- name: KUBERNETES_PULL_POLICY
value: always
- name: CACHE_TYPE
value: s3
- name: CACHE_PATH
value: gitlab_runner
- name: CACHE_SHARED
value: "true"
- name: CACHE_S3_SERVER_ADDRESS
value: s3.amazonaws.com
- name: CACHE_S3_BUCKET_NAME
value: gitlab-fn-runner-cache
- name: CACHE_S3_BUCKET_LOCATION
value: eu-central-1
image: gitlab/gitlab-runner:alpine-v11.9.0
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- /bin/bash
- /scripts/check-live
failureThreshold: 3
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: gitlab-gitlab-runner
ports:
- containerPort: 9252
name: metrics
protocol: TCP
readinessProbe:
exec:
command:
- /usr/bin/pgrep
- gitlab.*runner
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /secrets
name: runner-secrets
- mountPath: /home/gitlab-runner/.gitlab-runner
name: etc-gitlab-runner
- mountPath: /scripts
name: scripts
dnsPolicy: ClusterFirst
initContainers:
- command:
- sh
- /config/configure
env:
- name: CI_SERVER_URL
value: https://gitlab.fashionnetwork.com
- name: CLONE_URL
- name: RUNNER_EXECUTOR
value: kubernetes
- name: REGISTER_LOCKED
value: "false"
- name: RUNNER_TAG_LIST
value: docker
- name: KUBERNETES_IMAGE
value: ubuntu:16.04
- name: KUBERNETES_PRIVILEGED
value: "true"
- name: KUBERNETES_NAMESPACE
value: gitlab-jobs
- name: KUBERNETES_CPU_LIMIT
value: 200m
- name: KUBERNETES_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_CPU_REQUEST
value: 100m
- name: KUBERNETES_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_SERVICE_ACCOUNT
- name: KUBERNETES_SERVICE_CPU_LIMIT
value: 200m
- name: KUBERNETES_SERVICE_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_SERVICE_CPU_REQUEST
value: 100m
- name: KUBERNETES_SERVICE_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_HELPER_CPU_LIMIT
value: 200m
- name: KUBERNETES_HELPER_MEMORY_LIMIT
value: 256Mi
- name: KUBERNETES_HELPER_CPU_REQUEST
value: 100m
- name: KUBERNETES_HELPER_MEMORY_REQUEST
value: 128Mi
- name: KUBERNETES_HELPER_IMAGE
- name: KUBERNETES_PULL_POLICY
value: always
- name: CACHE_TYPE
value: s3
- name: CACHE_PATH
value: gitlab_runner
- name: CACHE_SHARED
value: "true"
- name: CACHE_S3_SERVER_ADDRESS
value: s3.amazonaws.com
- name: CACHE_S3_BUCKET_NAME
value: gitlab-fn-runner-cache
- name: CACHE_S3_BUCKET_LOCATION
value: eu-central-1
image: gitlab/gitlab-runner:alpine-v11.9.0
imagePullPolicy: IfNotPresent
name: configure
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /secrets
name: runner-secrets
- mountPath: /config
name: scripts
readOnly: true
- mountPath: /init-secrets
name: init-runner-secrets
readOnly: true
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 65533
runAsUser: 100
serviceAccount: gitlab-gitlab-runner
serviceAccountName: gitlab-gitlab-runner
terminationGracePeriodSeconds: 30
volumes:
- emptyDir:
medium: Memory
name: runner-secrets
- emptyDir:
medium: Memory
name: etc-gitlab-runner
- name: init-runner-secrets
projected:
defaultMode: 420
sources:
- secret:
name: gitlab-aws-s3
- secret:
items:
- key: runner-registration-token
path: runner-registration-token
- key: runner-token
path: runner-token
name: gitlab-gitlab-runner-secret
- configMap:
defaultMode: 420
name: gitlab-gitlab-runner
name: scripts
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2019-02-20T10:03:29Z"
lastUpdateTime: "2019-02-20T10:03:29Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
observedGeneration: 11
readyReplicas: 1
replicas: 1
updatedReplicas: 1 |
The one thing I can see is that empty environment variables, e.g.
come back with a missing What made you think it was defaults? |
IIRC I think I observed similar behavior when |
If you have an example, please post. Within a dictionary such as |
Closing - if you get some concrete evidence please post and re-open. |
kubediff should ignore the differences on missing defaults in the .yaml files. Poking through the source code you're getting the object (
kubectl get
), whilst instead should do something similar tokubectl diff
The text was updated successfully, but these errors were encountered: