Saturday 5th August 2017
- Studied alot about the swagger specification and swagger specification extensions
- Studied source code for files related to Add GroupVersionKind extension to OpenAPI operations by mbohlool
| #include <iostream> | |
| using namespace std; | |
| int main(void) | |
| { | |
| for(int i = 1; i <= 100; i++){ | |
| if ((i % 3 == 0) && (i % 5 == 0)) { | |
| cout << "CracklePop" << endl; | |
| } else if (i % 3 == 0) { |
| from kubernetes import client, config | |
| config.load_kube_config() | |
| extensions = client.ExtensionsV1beta1Api() | |
| deployment = client.models.extensions_v1beta1_deployment.ExtensionsV1beta1Deployment() | |
| namespace = 'default' | |
| deployment.api_version = 'extensions/v1beta1' |
| from kubernetes import client, config | |
| config.load_kube_config() | |
| # create an instance of the API class | |
| api_instance = client.CoreV1Api() | |
| service = client.V1Service() | |
| ''' | |
| intro.py | |
| Managing kubernetes objects using common resource operations with the python client | |
| ----------------------------------------------------------------------------------------------- | |
| Some of this operations include; | |
| - **`create_xxxx`** : create a resource object. Ex **`create_namespaced_pod`** and **`create_namespaced_deployment`**, for creation of pods and deployments respectively. This performs operations similar to `kubectl create`. | |
Saturday 5th August 2017
| { | |
| "swagger": "2.0", | |
| "info": { | |
| "title": "Kubernetes", | |
| "version": "v1.8.0" | |
| }, | |
| "paths": { | |
| "/api/": { | |
| "get": { | |
| "description": "get available API versions", |
| f = open("/home/konrad/Desktop/grep_output_file.txt","r") | |
| data = f.read() | |
| key = '[Feature:' | |
| start = 0 | |
| end = len(key) | |
| val = '' | |
| l = [] | |
| Running Suite: Kubernetes e2e suite | |
| =================================== | |
| Random Seed: 1511167602 - Will randomize all specs | |
| Will run 446 of 715 specs | |
| [sig-apps] DisruptionController | |
| evictions: enough pods, replicaSet, percentage => should allow an eviction | |
| /home/konrad/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/apps/disruption.go:146 | |
| • | |
| ------------------------------ |
| sudo docker run -v /home/konrad/.kube/config:/home/konrad/.kube/config -v /home/konrad/.minikube:/home/konrad/.minikube -i -t --net=host testcont /bin/sh | |
| export KUBECONFIG=/home/konrad/.kube/config | |
| export KUBE_MASTER_IP="<Master_IP>" #Ex 192.168.42.214:8443 | |
| export KUBE_MASTER=local | |
| /home/go/src/k8s.io/kubernetes/_output/bin/e2e.test --provider=local --ginkgo.focus="deployment should delete old replica sets" |
| --- | |
| tiers: | |
| - | |
| name: k8s_e2e | |
| order: 2 | |
| ci_loop: '(daily)|(weekly)' | |
| description: >- | |
| Test suites from feature projects | |
| integrated in functest | |
| testcases: |