- Configure gcloud tool
gcloud auth login
gcloud config set project kyma-project
gcloud config set compute/zone europe-west1-b
expListReq := map[string]io.ReadCloser{ | |
"/api/v1/nodes": encodeRespForCoreGV(&corev1.NodeList{}), | |
} | |
resources := map[string]io.ReadCloser{ | |
"events": encodeRespForCoreGV(&corev1.EventList{}), | |
"replicationcontrollers": encodeRespForCoreGV(&corev1.ReplicationControllerList{}), | |
"services": encodeRespForCoreGV(&corev1.ServiceList{}), | |
"pods": encodeRespForCoreGV(&corev1.PodList{}), | |
"daemonsets": encodeRespForAppsGV(&appsv1.DaemonSetList{}), |
gcloud auth login
gcloud config set project kyma-project
gcloud config set compute/zone europe-west1-b
apiVersion: servicecatalog.k8s.io/v1beta1 | |
kind: ClusterServiceBroker | |
metadata: | |
name: sample-csb | |
spec: | |
url: http://localhost:8081/ | |
--- | |
apiVersion: servicecatalog.k8s.io/v1beta1 | |
kind: ClusterServiceClass | |
metadata: |
apiVersion: servicecatalog.k8s.io/v1beta1 | |
kind: ClusterServiceBroker | |
metadata: | |
creationTimestamp: 2019-03-06T17:48:58Z | |
finalizers: | |
- kubernetes-incubator/service-catalog | |
generation: 1 | |
name: sample-csb | |
resourceVersion: "6468" | |
selfLink: /apis/servicecatalog.k8s.io/v1beta1/clusterservicebrokers/sample-csb |
apiVersion: servicecatalog.k8s.io/v1beta1 | |
kind: ClusterServiceBroker | |
metadata: | |
annotations: | |
kubectl.kubernetes.io/last-applied-configuration: | | |
{"apiVersion":"servicecatalog.k8s.io/v1beta1","kind":"ClusterServiceBroker","metadata":{"annotations":{},"name":"sample-csb","namespace":""},"spec":{"url":"http://localhost:8081/"}} | |
creationTimestamp: 2019-03-06T17:54:21Z | |
finalizers: | |
- kubernetes-incubator/service-catalog | |
generation: 1 |
apiVersion: addons.kyma-project.io/v1alpha1 | |
kind: ClusterAddonsConfiguration | |
metadata: | |
name: addons-cfg-sample | |
finalizers: | |
- addons.kyma-project.io | |
labels: | |
spec: | |
repositories: | |
- url: https://github.com/kyma-project/bundles/releases/download/0.6.0/index.yaml |
Describe("choose leader election APIs", func() { | |
cases := map[string]struct { | |
supportedGroups []v1.APIGroup | |
expectedLockType resourcelock.Interface | |
}{ | |
"Should use the Lease lock because coordination group is available": { | |
supportedGroups: []v1.APIGroup{ | |
{Name: coordinationv1.GroupName}, | |
}, | |
expectedLockType: &resourcelock.LeaseLock{}, |
func main() { | |
magefile.Register( | |
Use: "hello", | |
Description: ` | |
Does something pretty cool, I bet. This is some extra text. | |
And... | |
some more text that is even longer than that.`, | |
Func: func() { | |
println("hello world!") | |
}) |
apiVersion: testing.kyma-project.io/v1alpha1 | |
kind: TestDefinition | |
metadata: | |
name: test-always-pass | |
spec: | |
skip: false | |
disableConcurrency: false | |
timeout: 3m | |
template: | |
metadata: |
apiVersion: testing.kyma-project.io/v1alpha1 | |
kind: TestDefinition | |
metadata: | |
name: test-always-pass-v2 | |
spec: | |
skip: false | |
disableConcurrency: false | |
timeout: 3m | |
template: | |
metadata: |