Skip to content

Commit

Permalink
chore(grafana-operator): refactor and add versions (#320)
Browse files Browse the repository at this point in the history
Refactor and add missing versions from v4.4 to the latest v5.0

Signed-off-by: Ricardo Ribeiro <[email protected]>
  • Loading branch information
jrRibeiro authored Jun 13, 2023
1 parent 0da7eee commit 7f2bb1b
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions libs/grafana-operator/config.jsonnet
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
local config = import 'jsonnet/config.jsonnet';

local versions = [
{ output: '4.1', version: '4.1.1' },
{ output: '4.2', version: '4.2.0' },
{ output: '4.3', version: '4.3.0' },
{ output: '4.4', version: '4.4.1' },
{ output: '4.5', version: '4.5.1' },
{ output: '4.6', version: '4.6.0' },
{ output: '4.7', version: '4.7.1' },
{ output: '4.8', version: '4.8.0' },
{ output: '4.9', version: '4.9.0' },
{ output: '4.10', version: '4.10.1' },
{ output: '5.0', version: '5.0.0' },
];

config.new(
name='grafana-operator',
specs=[
{
output: '4.1',
prefix: '^org\\.integreatly\\..*',
crds: ['https://raw.githubusercontent.com/grafana-operator/grafana-operator/v4.1.1/deploy/manifests/v4.1.1/crds.yaml'],
localName: 'grafana_operator',
},
{
output: '4.2',
prefix: '^org\\.integreatly\\..*',
crds: ['https://raw.githubusercontent.com/grafana-operator/grafana-operator/v4.2.0/deploy/manifests/v4.2.0/crds.yaml'],
localName: 'grafana_operator',
},
{
output: '4.3',
local url = if std.startsWith(v.output, '4.') then
'https://raw.githubusercontent.com/grafana-operator/grafana-operator/v%s/deploy/manifests/v%s/crds.yaml' % [v.version, v.version]
else
'https://raw.githubusercontent.com/grafana-operator/grafana-operator/v%s/deploy/kustomize/base/crds.yaml' % v.version,
output: v.output,
prefix: '^org\\.integreatly\\..*',
crds: ['https://raw.githubusercontent.com/grafana-operator/grafana-operator/v4.3.0/deploy/manifests/v4.3.0/crds.yaml'],
crds: [url],
localName: 'grafana_operator',
},
}
for v in versions
]
)

0 comments on commit 7f2bb1b

Please sign in to comment.