Secret sync controller is responsible for syncing worker-user-data
secret that is created by installer in openshift-machine-api
namespace. The secret is used to store ignition configuration data for worker nodes.
stateDiagram-v2
[*] --> GetSourceSecret
GetSourceSecret --> GetTargetSecret
state GetTargetSecret <<choice>>
GetTargetSecret --> SyncSecretData: NotFound
GetTargetSecret --> AreSourceTargetSecretsEqual: AlreadyExists
state AreSourceTargetSecretsEqual <<choice>>
AreSourceTargetSecretsEqual --> [*]: True
AreSourceTargetSecretsEqual --> SyncSecretData: False
SyncSecretData --> [*]