Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 147e4ba

Browse filesBrowse files
authored
Update KubernetesPodOperator kubernetes_min_pod example (GoogleCloudPlatform#2065)
* Fix typo in comments * Fix typos in comments (conversaion -> conversation) * Add 'cmd' in kubernetes_min_pod example so that the sample task passes * Comment out unused imports to pass linter * Remove commented out imports
1 parent 997c1b2 commit 147e4ba
Copy full SHA for 147e4ba

File tree

Expand file treeCollapse file tree

2 files changed

+3
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-4
lines changed

‎composer/workflows/kubernetes_pod_operator.py

Copy file name to clipboardExpand all lines: composer/workflows/kubernetes_pod_operator.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474
task_id='pod-ex-minimum',
7575
# Name of task you want to run, used to generate Pod ID.
7676
name='pod-ex-minimum',
77+
# Entrypoint of the container, if not specified the Docker container's
78+
# entrypoint is used. The cmds parameter is templated.
79+
cmds=['echo'],
7780
# The namespace to run within Kubernetes, default namespace is
7881
# `default`. There is the potential for the resource starvation of
7982
# Airflow workers and scheduler within the Cloud Composer environment,

‎composer/workflows/pythonvirtualenvoperator_python2_test.py

Copy file name to clipboardExpand all lines: composer/workflows/pythonvirtualenvoperator_python2_test.py
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import sys
16-
17-
import pytest
18-
1915
from . import unit_testing
2016

2117

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.