New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
helm: add a new namespaced CRD for helm #1084
helm: add a new namespaced CRD for helm #1084
Conversation
/hold |
2c3a771
to
6238021
Compare
Not sure if this is related, but
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@pedjak Could you also take a look at this change? Tagging you because you were the author of last Helm CRD change. |
Since the enhancement is merged openshift/enhancements#949, /unhold |
// | ||
// Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer). | ||
// +openshift:compatibility-gen:level=2 | ||
type ProjectHelmChartRepository struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that ProjectHelmChartRepository
is just a namespaced version of HelmChartRepository
? If yes, we should keep them in sync, and to avoid large copy/paste blocks, we could do the following:
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:plural=projecthelmchartrepositories
// ProjectHelmChartRepository holds namespace-wide configuration for proxied Helm chart repository
//
// Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
// +openshift:compatibility-gen:level=2
type ProjectHelmChartRepository struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// spec holds user settable values for configuration
// +kubebuilder:validation:Required
// +required
Spec HelmChartRepositorySpec `json:"spec"`
// Observed status of the repository within the namespace..
// +optional
Status HelmChartRepositoryStatus `json:"status"`
}
// Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +openshift:compatibility-gen:level=2
type ProjectHelmChartRepositoryList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []ProjectHelmChartRepository `json:"items"`
}
With the above, we can even keep these two structs in `types_helm.go` file, along with the other types.
/lgtm |
6fd660c
to
aeb5f99
Compare
As part of the process to support namespace-scoped Helm repositories for non-admin users, this PR adds a new namespace-scoped CRD definition named `projecthelmchartrepositories.helm.openshift.io`. Closes: https://issues.redhat.com/browse/HELM-258 Signed-off-by: Allen Bai <abai@redhat.com>
60d8e81
to
35080c4
Compare
80b6b77
to
5c9e162
Compare
Remove duplicated status and spec struct for namespace scoped helm chart repos, instead using the previous structs. Signed-off-by: Allen Bai <abai@redhat.com>
5c9e162
to
96b33b9
Compare
/lgtm |
/assign @knobunc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pedjak, spadgett, zonggen The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/label docs-approved |
this PR is attempting to land post feature freeze, which means it needs to be going through the no-FF process, which in this case means it is awaiting the qe-approved label based on QE testing this feature prior to allowing it to merge. (of course this PR is only one piece of the feature, so links to the related PRs would help QE w/ that process). and all that assumes that the team delivering this work is a no-FF process team. |
Tested this changes with OCP 4.10 dev cluster, Below steps are working fine.
|
Adding the qe approval on @tisutisu 's behalf |
@zonggen: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
NOTE: used |
Refer: openshift/api#1084 Signed-off-by: Allen Bai <carpe.diem.allen@gmail.com>
Refer: openshift/api#1084 Signed-off-by: Allen Bai <carpe.diem.allen@gmail.com>
As part of the process to support namespace-scoped Helm repositories for
non-admin users, this PR adds a new namespace-scoped CRD definition
named
projecthelmchartrepositories.helm.openshift.io
.Enhancement (under review): openshift/enhancements#949
Closes: https://issues.redhat.com/browse/HELM-258
Signed-off-by: Allen Bai abai@redhat.com