mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-30 14:00:57 +00:00
15 lines
329 B
Text
15 lines
329 B
Text
local base(info) = {
|
|
apiVersion: 'pubsub.cnrm.cloud.google.com/v1beta1',
|
|
kind: info.kind,
|
|
metadata: info.metadata
|
|
} + if std.objectHas(info, 'spec') then info.spec else {};
|
|
|
|
{
|
|
pubsub_topic(info)::
|
|
local pubSubTopicInfo = {
|
|
kind: 'PubSubTopic',
|
|
metadata: info.metadata,
|
|
};
|
|
|
|
base(pubSubTopicInfo)
|
|
}
|