-
Notifications
You must be signed in to change notification settings - Fork 153
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
Switch to use the new SSP operator #966
Conversation
pkg/controller/operands/ssp.go
Outdated
@@ -3,289 +3,125 @@ package operands | |||
import ( |
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.
Github's diff view of this file is terrible.
In essence, this file has been rewritten from scratch, so it better be viewed as a whole file, and compared to the old file as a whole.
@@ -32,6 +31,7 @@ import ( | |||
apiruntime "k8s.io/apimachinery/pkg/runtime" | |||
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp" | |||
cdiv1beta1 "kubevirt.io/containerized-data-importer/pkg/apis/core/v1beta1" | |||
sspv1alpha1 "kubevirt.io/ssp-operator/api/v1alpha1" |
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 fear we can accept it only if >= v1beta1
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.
What is the criteria to move from v1alpha1 to v1beta1? Or this is merely a syntactical requirement?
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.
The criteria is:
Since it is a "beta" suffixed, it should work with subsequent releases. Indeed, the meaning of api versions is as following:
alpha
API versions with ‘alpha’ in their name are early candidates for new functionality coming into Kubernetes. These may contain bugs and are not guaranteed to work in the future.
beta
‘beta’ in the API version name means that testing has progressed past alpha level, and that the feature will eventually be included in Kubernetes. Although the way it works might change, and the way objects are defined may change completely, the feature itself is highly likely to make it into Kubernetes in some form.
stable
These do not contain ‘alpha’ or ‘beta’ in their name. They are safe to use.
an operator is required to have it's CRD at least to v1beta1 to be considered GA as our previous version was.
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.
The API version of ssp-operator
is now v1beta1
.
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.
@akrejcir thanks, will update this PR to consume v1beta1
.
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.
Starting the review. Currently - two comments.
Rebased + several updates. |
9f12f63
to
b581156
Compare
/test pull-hyperconverged-cluster-operator-e2e-k8s-1.17 |
@zcahana: The specified target(s) for
Use In response to this:
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. |
/retest |
75cccb4
to
4a7d341
Compare
Signed-off-by: Zvi Cahana <[email protected]>
Signed-off-by: Zvi Cahana <[email protected]>
Signed-off-by: Zvi Cahana <[email protected]>
Signed-off-by: Zvi Cahana <[email protected]>
Signed-off-by: Zvi Cahana <[email protected]>
Signed-off-by: Zvi Cahana <[email protected]>
Signed-off-by: Zvi Cahana <[email protected]>
Signed-off-by: Zvi Cahana <[email protected]>
Signed-off-by: Zvi Cahana <[email protected]>
Signed-off-by: Zvi Cahana <[email protected]>
Signed-off-by: Zvi Cahana <[email protected]>
Signed-off-by: Zvi Cahana <[email protected]>
Signed-off-by: Zvi Cahana <[email protected]>
Signed-off-by: Zvi Cahana <[email protected]>
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
@zcahana: The following tests failed, say
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. |
/override ci/prow/hco-e2e-upgrade-aws Failure is expected /override ci/prow/hco-e2e-image-index-gcp |
@nunnatsa: Overrode contexts on behalf of nunnatsa: ci/prow/hco-e2e-image-index-gcp, ci/prow/hco-e2e-upgrade-aws, ci/prow/hco-e2e-upgrade-azure In response to this:
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. |
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
/unhold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nunnatsa 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 |
This PR updates HCO operator to use the new Golang-based SSP operator, instead of the old Ansible-based SSP operator.
Note 1: This isn't mergeable yet, since the new SSP operator doesn't have a released image yet.Note 2: I plan to add additional unit tests to cover the upgrade logic (removal of old CRDs, etc).