title | sidebar_position |
---|---|
Mock Deployer |
5 |
The mock deployer is a controller that reconciles DeployItems of type landscaper.gardener.cloud/mock
.
This deployer is only meant for testing and demo purposes to simulate specific behavior of deploy items. Therefore, the configuration part configures the state that should be reconciled by the mock.
Index:
This sections describes the provider specific configuration
apiVersion: landscaper.gardener.cloud/v1alpha1
kind: DeployItem
metadata:
name: my-nginx
spec:
type: landscaper.gardener.cloud/mock
config:
apiVersion: mock.deployer.landscaper.gardener.cloud/v1alpha1
kind: ProviderConfiguration
# Specifies the phase of this DeployItem
phase: Init
# Specifies the provider specific status
providerStatus:
apiVersion: mock.deployer.landscaper.gardener.cloud/v1alpha1
kind: ProviderStatus
key1: val1
# Specifies the exported data that will be reconciled into the exportRef.
export:
key2: val2
The status is reconciled as defined in the configuration.
When deploying the mock deployer controller it can be configured using the --config
flag and providing a configuration file.
The structure of the provided configuration file is defined as follows.
apiVersion: mock.deployer.landscaper.gardener.cloud/v1alpha1
kind: Configuration
# target selector to only react on specific deploy items.
# see the common config in "./README.md" for detailed documentation.
targetSelector:
annotations: []
labels: []