Created
February 13, 2023 14:26
-
-
Save karthikjeeyar/4b4247d37ddfae1de5495b2398084630 to your computer and use it in GitHub Desktop.
This file contains 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": "appstudio.redhat.com/v1alpha1", | |
"kind": "Component", | |
"metadata": { | |
"annotations": { | |
"appstudio.openshift.io/component-initial-build": "processed", | |
"skip-initial-checks": "true" | |
}, | |
"resourceVersion": "1766689922", | |
"name": "python-ex-cjby", | |
"uid": "ab8b24ec-c329-4c87-bd1a-6d2b91275d96", | |
"creationTimestamp": "2023-02-13T10:00:55Z", | |
"generation": 5, | |
"managedFields": [ | |
{ | |
"apiVersion": "appstudio.redhat.com/v1alpha1", | |
"fieldsType": "FieldsV1", | |
"fieldsV1": { | |
"f:metadata": { | |
"f:finalizers": { | |
".": {}, | |
"v:\"component.appstudio.redhat.com/finalizer\"": {} | |
}, | |
"f:ownerReferences": { | |
".": {}, | |
"k:{\"uid\":\"664a8cac-1113-4d03-8097-862b3a8b601f\"}": {} | |
} | |
} | |
}, | |
"manager": "Go-http-client", | |
"operation": "Update", | |
"time": "2023-02-13T10:00:55Z" | |
}, | |
{ | |
"apiVersion": "appstudio.redhat.com/v1alpha1", | |
"fieldsType": "FieldsV1", | |
"fieldsV1": { | |
"f:metadata": { | |
"f:annotations": { | |
".": {}, | |
"f:skip-initial-checks": {} | |
} | |
}, | |
"f:spec": { | |
".": {}, | |
"f:application": {}, | |
"f:componentName": {}, | |
"f:replicas": {}, | |
"f:resources": { | |
".": {}, | |
"f:requests": { | |
".": {}, | |
"f:cpu": {}, | |
"f:memory": {} | |
} | |
}, | |
"f:secret": {}, | |
"f:source": { | |
".": {}, | |
"f:git": { | |
".": {}, | |
"f:context": {}, | |
"f:devfileUrl": {}, | |
"f:dockerfileUrl": {}, | |
"f:url": {} | |
} | |
}, | |
"f:targetPort": {} | |
} | |
}, | |
"manager": "Mozilla", | |
"operation": "Update", | |
"time": "2023-02-13T10:00:55Z" | |
}, | |
{ | |
"apiVersion": "appstudio.redhat.com/v1alpha1", | |
"fieldsType": "FieldsV1", | |
"fieldsV1": { | |
"f:status": { | |
".": {}, | |
"f:conditions": {}, | |
"f:containerImage": {}, | |
"f:devfile": {}, | |
"f:gitops": { | |
".": {}, | |
"f:commitID": {}, | |
"f:context": {}, | |
"f:repositoryURL": {} | |
} | |
} | |
}, | |
"manager": "Go-http-client", | |
"operation": "Update", | |
"subresource": "status", | |
"time": "2023-02-13T10:00:57Z" | |
}, | |
{ | |
"apiVersion": "appstudio.redhat.com/v1alpha1", | |
"fieldsType": "FieldsV1", | |
"fieldsV1": { | |
"f:metadata": { | |
"f:annotations": { | |
"f:appstudio.openshift.io/component-initial-build": {} | |
} | |
}, | |
"f:spec": { | |
"f:containerImage": {} | |
} | |
}, | |
"manager": "manager", | |
"operation": "Update", | |
"time": "2023-02-13T10:05:59Z" | |
} | |
], | |
"namespace": "karthik-jk-tenant", | |
"ownerReferences": [ | |
{ | |
"apiVersion": "appstudio.redhat.com/v1alpha1", | |
"kind": "Application", | |
"name": "my-app", | |
"uid": "664a8cac-1113-4d03-8097-862b3a8b601f" | |
} | |
], | |
"finalizers": [ | |
"component.appstudio.redhat.com/finalizer" | |
] | |
}, | |
"spec": { | |
"componentName": "python-ex-cjby", | |
"application": "my-app", | |
"source": { | |
"git": { | |
"context": "./", | |
"devfileUrl": "https://raw.githubusercontent.com/devfile-samples/devfile-sample-python-basic/main/devfile.yaml", | |
"dockerfileUrl": "https://raw.githubusercontent.com/devfile-samples/devfile-sample-python-basic/main/docker/Dockerfile", | |
"url": "https://github.com/karthikjeeyar/python-ex" | |
} | |
}, | |
"secret": "", | |
"containerImage": "quay.io/redhat-appstudio/user-workload@sha256:282e876a1edcc83a7cf87758f6bbde7bf95be48e364a5e045975a44c49634bfd", | |
"replicas": 1, | |
"targetPort": 8080, | |
"resources": { | |
"requests": { | |
"cpu": "10m", | |
"memory": "50Mi" | |
} | |
} | |
}, | |
"status": { | |
"conditions": [ | |
{ | |
"lastTransitionTime": "2023-02-13T10:06:06Z", | |
"message": "GitOps resource generated successfully", | |
"reason": "OK", | |
"status": "True", | |
"type": "GitOpsResourcesGenerated" | |
}, | |
{ | |
"lastTransitionTime": "2023-02-13T10:00:57Z", | |
"message": "Component has been successfully created", | |
"reason": "OK", | |
"status": "True", | |
"type": "Created" | |
}, | |
{ | |
"lastTransitionTime": "2023-02-13T10:06:06Z", | |
"message": "Component has been successfully updated", | |
"reason": "OK", | |
"status": "True", | |
"type": "Updated" | |
} | |
], | |
"containerImage": "quay.io/redhat-appstudio/user-workload@sha256:282e876a1edcc83a7cf87758f6bbde7bf95be48e364a5e045975a44c49634bfd", | |
"devfile": "commands:\n- attributes:\n api.devfile.io/imported-from: 'id: python, registryURL: https://registry.devfile.io'\n exec:\n commandLine: pip install -r requirements.txt\n component: py\n group:\n isDefault: true\n kind: build\n hotReloadCapable: false\n workingDir: ${PROJECT_SOURCE}\n id: pip-install-requirements\n- attributes:\n api.devfile.io/imported-from: 'id: python, registryURL: https://registry.devfile.io'\n exec:\n commandLine: python app.py\n component: py\n group:\n isDefault: true\n kind: run\n hotReloadCapable: false\n workingDir: ${PROJECT_SOURCE}\n id: run-app\n- attributes:\n api.devfile.io/imported-from: 'id: python, registryURL: https://registry.devfile.io'\n exec:\n commandLine: pip install debugpy && python -m debugpy --listen 0.0.0.0:${DEBUG_PORT}\n app.py\n component: py\n group:\n isDefault: false\n kind: debug\n hotReloadCapable: false\n workingDir: ${PROJECT_SOURCE}\n id: debug-py\n- apply:\n component: image-build\n id: build-image\n- apply:\n component: kubernetes-deploy\n id: deployk8s\n- composite:\n commands:\n - build-image\n - deployk8s\n group:\n isDefault: true\n kind: deploy\n parallel: false\n id: deploy\ncomponents:\n- attributes:\n api.devfile.io/imported-from: 'id: python, registryURL: https://registry.devfile.io'\n container:\n args:\n - tail\n - -f\n - /dev/null\n dedicatedPod: false\n endpoints:\n - name: http-python\n secure: false\n targetPort: 8080\n - exposure: none\n name: debug\n secure: false\n targetPort: 5858\n env:\n - name: DEBUG_PORT\n value: \"5858\"\n image: registry.access.redhat.com/ubi9/python-39:latest\n mountSources: true\n name: py\n- image:\n autoBuild: false\n dockerfile:\n buildContext: .\n rootRequired: false\n uri: https://raw.githubusercontent.com/devfile-samples/devfile-sample-python-basic/main/docker/Dockerfile\n imageName: python-image:latest\n name: image-build\n- attributes:\n api.devfile.io/k8sLikeComponent-originalURI: deploy.yaml\n deployment/container-port: 8081\n deployment/cpuLimit: 100m\n deployment/cpuRequest: 10m\n deployment/memoryLimit: 100Mi\n deployment/memoryRequest: 50Mi\n deployment/replicas: 1\n deployment/storageRequest: \"0\"\n kubernetes:\n deployByDefault: false\n endpoints:\n - name: http-8081\n path: /\n secure: false\n targetPort: 8081\n inlined: |\n kind: Deployment\n apiVersion: apps/v1\n metadata:\n name: my-python\n spec:\n replicas: 1\n selector:\n matchLabels:\n app: python-app\n template:\n metadata:\n labels:\n app: python-app\n spec:\n containers:\n - name: my-python\n image: python-image:latest\n ports:\n - name: http\n containerPort: 8081\n protocol: TCP\n resources:\n limits:\n memory: \"128Mi\"\n cpu: \"500m\"\n ---\n kind: Service\n apiVersion: v1\n metadata:\n name: my-python\n spec:\n ports:\n - name: http-8081\n port: 8081\n protocol: TCP\n targetPort: 8081\n selector:\n app: python-app\n name: kubernetes-deploy\nmetadata:\n attributes:\n alpha.dockerimage-port: 8081\n description: Python is an interpreted, object-oriented, high-level programming language\n with dynamic semantics. Its high-level built in data structures, combined with\n dynamic typing and dynamic binding, make it very attractive for Rapid Application\n Development, as well as for use as a scripting or glue language to connect existing\n components together.\n displayName: Python\n icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/python.svg\n language: Python\n name: python\n projectType: Python\n provider: Red Hat\n supportUrl: https://github.com/devfile-samples/devfile-support#support-information\n tags:\n - Python\n - Pip\n - Flask\n version: 1.0.1\nschemaVersion: 2.2.0\nstarterProjects:\n- attributes:\n api.devfile.io/imported-from: 'id: python, registryURL: https://registry.devfile.io'\n description: 'Flask is a web framework, it’s a Python module that lets you develop\n web applications easily. It’s has a small and easy-to-extend core: it’s a microframework\n that doesn’t include an ORM (Object Relational Manager) or such features.'\n git:\n remotes:\n origin: https://github.com/devfile-samples/python-ex\n name: flask-example\n", | |
"gitops": { | |
"commitID": "c31b6d9c4ac0f57b93ba680129556bcd2da05e75", | |
"context": "./", | |
"repositoryURL": "https://github.com/redhat-appstudio-appdata/my-app-tPOTZ-phone-appreciate" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment