chore(docs): add support for .dockerconfigjson format in docstring#2457
Conversation
Signed-off-by: René Schünemann <rene.schuenemann@sap.com>
✅ Deploy Preview for ocm-website ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📝 WalkthroughWalkthroughThe ChangesConfiguration Documentation
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I tried to update the manifests to reflect the changes. But nothing I do seems to update them. Can someone help me? |
|
@Skarlso I think there might be something off with the generators due to the recent changes on the chart. could you please take a look? |
|
Will take a look. |
|
This is an internal struct in common types. It's not a forward facing component in our API. It was never part of our API docs. |
|
Meaning, you're good here if all you want is to comment on the config struct. If not, you'll have to update the place where it's included at. For example: // DeployerSpec defines the desired state of Deployer.
type DeployerSpec struct {
// ResourceRef is the k8s resource name of an OCM resource containing the ResourceGroupDefinition.
// +required
ResourceRef ObjectKey `json:"resourceRef"`
// OCMConfig defines references to secrets, config maps or ocm api
// objects providing configuration data including credentials.
// +optional
OCMConfig []OCMConfiguration `json:"ocmConfig,omitempty"` |
|
@Skarlso Makes sense. I didn't see that it was inlined. |
|
does it make sense to put an ocm config into a k8s secret of "type" |
No, it does not. But the ocm controllers support a .dockerconfig secret type as an alternative to an ocm config. I just learned this today. https://ocm.software/docs/how-to/configure-credentials-for-ocm-controllers/#create-a-kubernetes-secret-with-credentials |
…2457) <!-- markdownlint-disable MD041 --> #### What this PR does / why we need it Apparently the ocm controllers not only support pull credentials in ocm config format but also in .dockerconfigjson format. Update the docstring in the API to reflect this. #### Which issue(s) this PR fixes <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> #### Testing ##### How to test the changes <!-- Required files to test the changes: .ocmconfig ```yaml type: generic.config.ocm.software/v1 configurations: - type: credentials.config.ocm.software repositories: - repository: type: DockerConfig/v1 dockerConfigFile: "~/.docker/config.json" ``` Commands that test the change: ```bash ocm get cv xxx ocm transfer xxx ``` --> ##### Verification - [ ] I have added/updated tests for my changes (see [Test Requirements](../CONTRIBUTING.md#test-requirements)) - [ ] Tests pass locally (`task test` and `task test/integration` if applicable) - [ ] If touching multiple modules, `go work` is enabled (see `go.work`) - [ ] My changes do not decrease test coverage - [ ] I have tested the changes locally by running `ocm` Signed-off-by: René Schünemann <rene.schuenemann@sap.com> Co-authored-by: Jakob Möller <jakob.moeller@sap.com> d518b4d
What this PR does / why we need it
Apparently the ocm controllers not only support pull credentials in ocm config format but also in .dockerconfigjson format.
Update the docstring in the API to reflect this.
Which issue(s) this PR fixes
Testing
How to test the changes
Verification
task testandtask test/integrationif applicable)go workis enabled (seego.work)ocm