zoetrope / kubebuilder-training Goto Github PK
View Code? Open in Web Editor NEWつくって学ぶKubebuilder
Home Page: https://zoetrope.github.io/kubebuilder-training/
License: MIT License
つくって学ぶKubebuilder
Home Page: https://zoetrope.github.io/kubebuilder-training/
License: MIT License
本書を読んでいるときにいくつか躓いたところがあるので書いておきます。必要ならばPR書くので言ってください。また、意図がくみ取れない場合は説明しますのでお問い合わせください。
make manifests
を実行していないmetrics
パッケージが存在していない段階でこのパッケージを参照するコード(r.setMetrics(mdView
および r.removeMetrics(mdView)
)があるのでビルドが失敗するEventRecorder
を使っていない段階でこれを使っているコード(r.Recorder.Event(&mdView, corev1.EventTypeNormal, "Updated", fmt.Sprintf("MarkdownView(%s:%s) updated: %s", mdView.Namespace, mdView.Name, mdView.Status))
)があるのでビルドが失敗するcorev1
やapps v1
をimportせよという指示が無いreconcileDeployment
のソースが貼り付けられていないownerRef()
とlabelSet()
について言及されていないDockerfile
にCOPY pkg/ pkg/
を追加せよという指示が無いFainalizerの節で例として書いてあるfainalizer(以下)は設定できないようです。
metadata:
finalizers:
- markdownview.finalizers.view.zoetrope.github.io
次のようなエラーではじかれました。
# configmaps "test" was not valid:
# * metadata.finalizers[0]: Invalid value: "markdownview.finalizers.view.zoetrope.github.io": name is neither a standard finalizer name nor is it fully qualified
/
区切りじゃないとダメみたいですね。
https://github.com/kubernetes/kubernetes/blob/v1.24.3/pkg/apis/core/validation/validation.go#L5966-L5976
https://github.com/kubernetes/kubernetes/blob/v1.24.3/pkg/apis/core/helper/helpers.go#L293-L302
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.