Skip to content
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 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

Boilerplate adjustments to avoid Pods creation issue #82

Merged
merged 5 commits into from
Apr 1, 2024

Conversation

jungleBadger
Copy link
Contributor

Problem 1: Outdated Python 3.7 runtime

The Python runtime set to 3.7 is no longer accepted. I updated it within the ci-cd-codepipeline.cfn.yml template.

Source: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

Problem 2: Invalid from botocore.vendored import requests import

Python 3.9 does not include requests as it did before with vendor imports. I replaced the PUT request with urllib3.

[ERROR] AttributeError: module 'botocore.vendored.requests' has no attribute 'put'
Traceback (most recent call last):
  File "/var/task/index.py", line 40, in handler
    put_response = requests.put(event['ResponseURL'], headers=headers, data=response_body)

Problem 3: Invalid image checksum

The https://dl.k8s.io source is valid, but the AWS pipeline is not accepting it for some reason.

image

Problem 4: Packages not available during test execution

The unit tests were failing due to missing packages like jwt. They were included before, but not anymore. I added a pip install—r requirements.txt instruction within the pre-build phase.

image

Problem 5: Outdated Dockerfile base image

The Python version in the Dockerfile base image was 3.7. I updated it to 3.9.

@jungleBadger jungleBadger requested a review from a team as a code owner March 31, 2024 20:02
@jungleBadger jungleBadger requested review from SudKul and removed request for a team March 31, 2024 20:02
@jungleBadger jungleBadger changed the title Boilerplate adjustments to avoid Pods creation Boilerplate adjustments to avoid Pods creation issue Mar 31, 2024
@SudKul SudKul merged commit b9f5782 into udacity:master Apr 1, 2024
1 check failed
@SudKul
Copy link
Contributor

SudKul commented Apr 1, 2024

Thanks @jungleBadger

Mirmentrud added a commit to Mirmentrud/cd0157-Server-Deployment-and-Containerization that referenced this pull request Apr 10, 2024
Boilerplate adjustments to avoid Pods creation issue
ChinhQuoc pushed a commit to ChinhQuoc/cd0157-Server-Deployment-and-Containerization that referenced this pull request Dec 23, 2024
Boilerplate adjustments to avoid Pods creation issue
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

Successfully merging this pull request may close these issues.

2 participants