This file contains hidden or 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
company = {"activa": "Bajaj", "access": "Suzuki", "zest": "TVS"} | |
def get_company(scooter): | |
return company.get(scooter) | |
scooter = input("Enter Scooter:") | |
print(f"{scooter} is manufactured by {get_company(scooter)}") | |
This file contains hidden or 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
# hello-kubernetes.yaml | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: hello-kubernetes | |
spec: | |
type: LoadBalancer | |
ports: | |
- port: 80 | |
targetPort: 8080 |
This file contains hidden or 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
def mock_db_post(*_args, **_kwargs): | |
class MockPostgres: | |
"""Mock response object.""" | |
def __init__(self, json_data): | |
"""Create a mock json response.""" | |
self.json_data = json_data | |
def execute(self): | |
"""Get the mock json response.""" |
This file contains hidden or 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: v1 | |
kind: Template | |
labels: | |
template: metrics-accumulator | |
metadata: | |
name: metrics-accumulator | |
annotations: | |
description: metrics-accumulator | |
objects: | |
- apiVersion: v1 |
This file contains hidden or 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
kind: Template | |
apiVersion: v1 | |
metadata: | |
name: osd-monitor | |
objects: | |
- kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: osd-monitor-pcplogs | |
spec: |
This file contains hidden or 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
kind: Template | |
apiVersion: v1 | |
metadata: | |
name: osd-monitor | |
objects: | |
- kind: DeploymentConfig | |
apiVersion: v1 | |
metadata: | |
labels: | |
service: osd-monitor |