Skip to content

Commit

Permalink
Add milvus-operator CRDs (#426)
Browse files Browse the repository at this point in the history
* Add milvus-operator CRDs

* undo pipeline changes

* updated ci
  • Loading branch information
bcbrockway authored Aug 9, 2024
1 parent 91eace2 commit ead352a
Show file tree
Hide file tree
Showing 2 changed files with 64 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 @@ -1899,6 +1899,46 @@
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"if": "steps.filter.outputs.workflows == 'true'"
"run": "make libs/litmus-chaos"
"milvus-operator":
"name": "Generate milvus-operator Jsonnet library and docs"
"needs":
- "build"
- "repos"
"runs-on": "ubuntu-latest"
"steps":
- "uses": "actions/checkout@v3"
- "id": "filter"
"uses": "dorny/paths-filter@v2"
"with":
"filters": |
workflows:
- '.github/**'
- 'bin/**'
- 'Dockerfile'
- 'go.mod'
- 'go.sum'
- 'jsonnet/**'
- 'main.go'
- 'Makefile'
- 'pkg/**'
- 'scripts/**'
- 'tf/**'
- 'libs/milvus-operator/**'
- "if": "steps.filter.outputs.workflows == 'true'"
"uses": "actions/download-artifact@v2"
"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/milvus-operator"
"minio-operator":
"name": "Generate minio-operator Jsonnet library and docs"
"needs":
Expand Down Expand Up @@ -2225,6 +2265,7 @@
- "kubevela"
- "kyverno"
- "litmus-chaos"
- "milvus-operator"
- "minio-operator"
- "mysql-operator"
- "openshift"
Expand Down
23 changes: 23 additions & 0 deletions libs/milvus-operator/config.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// libs/milvus-operator/config.jsonnet
local config = import 'jsonnet/config.jsonnet';

local versions = [
{ output: '0.9', version: '0.9.15' },
];

config.new(
name='milvus-operator',
specs=[
{
crds: [
'https://raw.githubusercontent.com/zilliztech/milvus-operator/v%s/config/crd/bases/milvus.io_milvusclusters.yaml' % v.version,
'https://raw.githubusercontent.com/zilliztech/milvus-operator/v%s/config/crd/bases/milvus.io_milvuses.yaml' % v.version,
'https://raw.githubusercontent.com/zilliztech/milvus-operator/v%s/config/crd/bases/milvus.io_milvusupgrades.yaml' % v.version,
],
localName: 'milvus-operator',
output: v.output,
prefix: '^io\\.milvus\\..*',
}
for v in versions
]
)

0 comments on commit ead352a

Please sign in to comment.