Created
October 31, 2019 04:06
-
-
Save ifsc01/477194c94b72a31fad152f491c45575b 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
error: error validating "staging-job-migrate.yaml": error validating data: ValidationError(Job.spec.template.spec.containers[0].envFrom[0]): unknown field "name" in io.k8s.api.core.v1.EnvFromSource; if you choose to ignore these errors, turn validation off with --validate=false |
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: batch/v1 | |
kind: Job | |
metadata: | |
name: db-migrate | |
spec: | |
template: | |
metadata: | |
name: db-migrate | |
spec: | |
containers: | |
- name: db-migrate | |
image: registry.cn-hangzhou.aliyuncs.com/mmcb-web/rails_server:devel-3763 | |
imagePullPolicy: IfNotPresent | |
command: ["/bin/sh", "-c"] | |
args: | |
- bundle exec rake db:migrate | |
envFrom: | |
- configMapRef: | |
name: staging-secrets-env | |
restartPolicy: Never | |
backoffLimit: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment