kops/cloudmock
Nicolas Sterchele 73b6ed4150
aws: introduce maximum instance lifetime in cluster
The maximum instance lifetime is an AWS only feature and specifies the
maximum amount of time (in seconds) that an instance can be in service
before it is terminated and replaced.
A common use case might be a requirement to replace your instances on a
schedule because of internal security policies or external compliance
controls.
2022-07-04 20:38:33 +02:00
..
aws aws: introduce maximum instance lifetime in cluster 2022-07-04 20:38:33 +02:00
gce Enable internal load balancers when running on GCP 2022-04-25 13:31:47 -07:00
openstack Remove bazel files from vendor 2022-04-12 13:29:03 +02:00
README.md Add an initial structure for openstack cloudmock 2020-08-05 23:13:34 -05:00

README.md

cloudmock is a mock implementation of the CloudProvider APIs.

The goal is to let us test code that interacts with the CloudProvider APIs, without creating actual resources.

While no resources are created, we maintain state so that (for example) after you call CreateVpc, a subsequent call to DescribeVpcs will return that VPC. The end-goal is that we simulate the CloudProvider APIs accurately, so that we can quickly run test-cases that might otherwise require a lot of time or money to run with real resources.

In future, we can also do fault injection etc.

Note: The APIs are very large, and most of them are not implemented. Functions that are implemented may not be implemented correctly, particularly around edge-cases (such as error handling).

Typical AWS use: c := &mockec2.MockEC2{}. MockEC2 implements the EC2 API interface ec2iface.EC2API, so can be used where otherwise you would use a real EC2 client.