4
0
mirror of https://github.com/rocky-linux/peridot.git synced 2024-12-21 10:18:32 +00:00
peridot/ci/google.jsonnet
2022-07-07 22:13:21 +02:00

16 lines
329 B
Plaintext

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)
}