Skip to content

Commit 147e4ba

Browse 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

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

composer/workflows/kubernetes_pod_operator.py

Lines 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

Lines 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)