s3Instance CRD is not included in the kustomization.yaml

未关闭
#113 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
go, kubernetes, yaml

调研方向

从 config/default/kustomization.yaml 和 config/crd/kustomization.yaml 开始,然后将其中的资源与 config/crd/bases/ 进行比较。在编辑之前,检查 kustomization 是否由 Operator Framework 生成。完成的标准是:渲染默认 kustomization 时包含 S3Instance CRD,且不需要下游 workaround。

由索引模型根据 Issue 内容生成。

描述

Bonjour!

It looks like the config/default/kustomization.yaml references config/crd/kustomization.yaml, but the latter does not include all of the CRDs defined in the config/crd/bases/ directory (it only omits the S3Instance CRD). I can make a PR editing the kustomization, but I can't tell if this is generated by the operator framework or not.

Merci beaucoup :)


So far my workaround is to explicitly reference the CRD from my downstream kustomization.yaml:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- github.com/InseeFrLab/s3-operator/config/default?ref=v0.12.0
- github.com/InseeFrLab/s3-operator/config/prometheus?ref=v0.12.0

  # As of v0.12.0 the s3instance CRD is excluded from the
  # config/crd/kustomization.yaml template--we have to include it explicitly
- https://raw.githubusercontent.com/InseeFrLab/s3-operator/v0.12.0/config/crd/bases/s3.onyxia.sh_s3instances.yaml


namespace: s3-operator
主要语言
Go
星标
66
派生
16
PR 合并指标
30 天内没有已合并 PR

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

InseeFrLab/s3-operator 的其他 Issue

查看 InseeFrLab/s3-operator 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。