Skip to content

Commit

Permalink
feat: Add amazon-vpc-resource-controller (#461)
Browse files Browse the repository at this point in the history
* feat: Add amazon-vpc-resource-controller

* fix(gha): use latest actions

---------

Co-authored-by: Diego Monti <[email protected]>
  • Loading branch information
Duologic and diegmonti authored Oct 11, 2024
1 parent bb7737f commit 8e0a1ec
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,46 @@
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"if": "steps.filter.outputs.workflows == 'true'"
"run": "make libs/aiven"
"amazon-vpc-resource-controller":
"name": "Generate amazon-vpc-resource-controller Jsonnet library and docs"
"needs":
- "build"
- "repos"
"runs-on": "ubuntu-latest"
"steps":
- "uses": "actions/checkout@v4"
- "id": "filter"
"uses": "dorny/paths-filter@v3"
"with":
"filters": |
workflows:
- '.github/**'
- 'bin/**'
- 'Dockerfile'
- 'go.mod'
- 'go.sum'
- 'jsonnet/**'
- 'main.go'
- 'Makefile'
- 'pkg/**'
- 'scripts/**'
- 'tf/**'
- 'libs/amazon-vpc-resource-controller/**'
- "if": "steps.filter.outputs.workflows == 'true'"
"uses": "actions/download-artifact@v4"
"with":
"name": "docker-artifact"
"path": "artifacts"
- "if": "steps.filter.outputs.workflows == 'true'"
"run": "make load"
- "env":
"DIFF": "true"
"GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
"GIT_COMMITTER_EMAIL": "[email protected]"
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"if": "steps.filter.outputs.workflows == 'true'"
"run": "make libs/amazon-vpc-resource-controller"
"argo-cd":
"name": "Generate argo-cd Jsonnet library and docs"
"needs":
Expand Down Expand Up @@ -2260,6 +2300,7 @@
"needs":
- "actions-runner-controller"
- "aiven"
- "amazon-vpc-resource-controller"
- "argo-cd"
- "argo-rollouts"
- "argo-workflows"
Expand Down
25 changes: 25 additions & 0 deletions libs/amazon-vpc-resource-controller/config.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
local config = import 'jsonnet/config.jsonnet';

local versions = [
{ version: '1.2', tag: 'v1.2.2' },
{ version: '1.3', tag: 'v1.3.4' },
{ version: '1.4', tag: 'v1.4.7' },
{ version: '1.5', tag: 'v1.5.0' },
{ version: '1.6', tag: 'v1.6.0' },
];

config.new(
name='amazon-vpc-resource-controller',
specs=[
{
output: v.version,
prefix: '^aws\\.k8s\\.vpcresources\\..*',
crds: [
'https://raw.githubusercontent.com/aws/amazon-vpc-resource-controller-k8s/%s/config/crd/bases/vpcresources.k8s.aws_cninodes.yaml' % v.tag,
'https://raw.githubusercontent.com/aws/amazon-vpc-resource-controller-k8s/%s/config/crd/bases/vpcresources.k8s.aws_securitygrouppolicies.yaml' % v.tag,
],
localName: 'amazon_vpc_resource_controller',
}
for v in versions
]
)

0 comments on commit 8e0a1ec

Please sign in to comment.