Skip to content

Commit

Permalink
Arrivendell/datadog operator (#440)
Browse files Browse the repository at this point in the history
* feat: Initial version of datadog-operator lib (v1.7.0, v1.6.0)

Kubernetes Operator for Datadog Resources

https://github.com/DataDog/datadog-operator

Co-authored-by: arrivendell <[email protected]>

* chore: ran make configure for clickhouse-operator

The newly contributed clickhouse-operator wasn't part of the workflow

---------

Co-authored-by: arrivendell <[email protected]>
  • Loading branch information
frimik and arrivendell authored Aug 4, 2024
1 parent a5d1397 commit 9ec2888
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
82 changes: 82 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,46 @@
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"if": "steps.filter.outputs.workflows == 'true'"
"run": "make libs/cilium"
"clickhouse-operator":
"name": "Generate clickhouse-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/clickhouse-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/clickhouse-operator"
"cloudnative-pg":
"name": "Generate cloudnative-pg Jsonnet library and docs"
"needs":
Expand Down Expand Up @@ -771,6 +811,46 @@
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"if": "steps.filter.outputs.workflows == 'true'"
"run": "make libs/crossplane"
"datadog-operator":
"name": "Generate datadog-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/datadog-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/datadog-operator"
"debugging":
"name": "Debugging Github Action values"
"runs-on": "ubuntu-latest"
Expand Down Expand Up @@ -2109,6 +2189,7 @@
- "calico"
- "cert-manager"
- "cilium"
- "clickhouse-operator"
- "cloudnative-pg"
- "cluster-api"
- "cluster-api-provider-aws"
Expand All @@ -2117,6 +2198,7 @@
- "consul"
- "contour"
- "crossplane"
- "datadog-operator"
- "eck-operator"
- "edp-keycloak-operator"
- "emissary"
Expand Down
25 changes: 25 additions & 0 deletions libs/datadog-operator/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.6.0', tag: 'v1.6.0' },
{ version: '1.7.0', tag: 'v1.7.0' },
];

config.new(
name='datadog-operator',
specs=[
{
output: v.version,
prefix: '^com\\.datadoghq\\..*',
crds: [
'https://raw.githubusercontent.com/DataDog/datadog-operator/%s/config/crd/bases/v1/datadoghq.com_datadogagentprofiles.yaml' % [v.tag],
'https://raw.githubusercontent.com/DataDog/datadog-operator/%s/config/crd/bases/v1/datadoghq.com_datadogagents.yaml' % [v.tag],
'https://raw.githubusercontent.com/DataDog/datadog-operator/%s/config/crd/bases/v1/datadoghq.com_datadogmetrics.yaml' % [v.tag],
'https://raw.githubusercontent.com/DataDog/datadog-operator/%s/config/crd/bases/v1/datadoghq.com_datadogmonitors.yaml' % [v.tag],
'https://raw.githubusercontent.com/DataDog/datadog-operator/%s/config/crd/bases/v1/datadoghq.com_datadogslos.yaml' % [v.tag],
],
localName: 'datadog-operator',
}
for v in versions
]
)

0 comments on commit 9ec2888

Please sign in to comment.