Skip to content

Commit c622ccf

Browse files
authored
Add cluster-api-operator (#647)
1 parent 8bd61ee commit c622ccf

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,46 @@
771771
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
772772
"if": "steps.filter.outputs.workflows == 'true'"
773773
"run": "make libs/cluster-api"
774+
"cluster-api-operator":
775+
"name": "Generate cluster-api-operator Jsonnet library and docs"
776+
"needs":
777+
- "build"
778+
- "repos"
779+
"runs-on": "ubuntu-latest"
780+
"steps":
781+
- "uses": "actions/checkout@v4"
782+
- "id": "filter"
783+
"uses": "dorny/paths-filter@v3"
784+
"with":
785+
"filters": |
786+
workflows:
787+
- '.github/**'
788+
- 'bin/**'
789+
- 'Dockerfile'
790+
- 'go.mod'
791+
- 'go.sum'
792+
- 'jsonnet/**'
793+
- 'main.go'
794+
- 'Makefile'
795+
- 'pkg/**'
796+
- 'scripts/**'
797+
- 'tf/**'
798+
- 'libs/cluster-api-operator/**'
799+
- "if": "steps.filter.outputs.workflows == 'true'"
800+
"uses": "actions/download-artifact@v4"
801+
"with":
802+
"name": "docker-artifact"
803+
"path": "artifacts"
804+
- "if": "steps.filter.outputs.workflows == 'true'"
805+
"run": "make load"
806+
- "env":
807+
"DIFF": "true"
808+
"GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
809+
"GIT_COMMITTER_EMAIL": "86770550+jsonnet-libs-bot@users.noreply.github.com"
810+
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
811+
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
812+
"if": "steps.filter.outputs.workflows == 'true'"
813+
"run": "make libs/cluster-api-operator"
774814
"cluster-api-provider-aws":
775815
"name": "Generate cluster-api-provider-aws Jsonnet library and docs"
776816
"needs":
@@ -3277,6 +3317,7 @@
32773317
- "cloudnative-pg"
32783318
- "cloudnative-pg-barman-cloud-plugin"
32793319
- "cluster-api"
3320+
- "cluster-api-operator"
32803321
- "cluster-api-provider-aws"
32813322
- "cluster-api-provider-tinkerbell"
32823323
- "cnrm"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
local config = import 'jsonnet/config.jsonnet';
2+
3+
local versions = [
4+
'v0.27.0',
5+
];
6+
7+
config.new(
8+
name='cluster-api-operator',
9+
specs=[
10+
{
11+
output: version,
12+
prefix: '^io\\.x-k8s\\.cluster\\.operator\\..*',
13+
crds: ['https://github.com/kubernetes-sigs/cluster-api-operator/releases/download/%(version)s/operator-components.yaml' % { version: version }],
14+
localName: 'cluster-api-operator',
15+
}
16+
for version in versions
17+
]
18+
)

0 commit comments

Comments
 (0)