8000 Syntax error · Issue #4 · alexvanboxel/airflow-gcp-k8s · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Syntax error #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the 8000 community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
max-sixty opened this issue May 2, 2017 · 1 comment
Open

Syntax error #4

max-sixty opened this issue May 2, 2017 · 1 comment

Comments

@max-sixty
Copy link

In the first command, unfortunately

python2 gcp-airflow.py
  File "gcp-airflow.py", line 116
    ,)
    ^
SyntaxError: invalid syntax
@MarkEdmondson1234
Copy link
MarkEdmondson1234 commented Jul 12, 2017

Deleting the two commas does at least let the script execute, no idea if its ok though
https://github.com/iihnordic/airflow-gcp-k8s/blob/master/gcp-airflow.py

I guess if like other functions it needs apply_changes

def deploy_airflow(name, image_suffix):
    def apply_changes(service):
        service['metadata']['labels']['version'] = version
        service['spec']['template']['metadata']['labels']['version'] = version
        service['spec']['template']['spec']['containers'][0][
            'image'] = repo + '/airflow-' + image_suffix + ':' + version

    execute_with_yaml('k8s/airflow-' + name + '-deploy.yaml',
                      ['kubectl', 'create', '--namespace', namespace, '-f', '-'],
                      apply_changes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0