Skip to content
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

Add functionality for stopping/starting deployment #25

Merged
merged 8 commits into from
Oct 2, 2024

Conversation

hariso
Copy link
Contributor

@hariso hariso commented Sep 20, 2024

Description

Closes #23.

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests.
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

Makefile Outdated
@@ -85,6 +85,10 @@ manifests: bin/kustomize generate
kustomize build config/certmanager > charts/conduit-operator/templates/certificate.yaml
kustomize build config/webhook > charts/conduit-operator/templates/webhook.yaml

.PHONY: install
install: manifests bin/kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

best to have these installed when the operator boots up, as it will register them automatically.
otherwise there may be discrepancy between crd and code handling the new stuff there.

@@ -456,3 +456,10 @@ func (r *ConduitReconciler) SetupWithManager(mgr ctrl.Manager) error {
// Owns(&corev1.PersistentVolume{}).
Complete(r)
}

func (r *ConduitReconciler) getReplicas(c *v1.Conduit) int32 {
if c.Spec.Running {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a ptr now.

@lyuboxa
Copy link
Collaborator

lyuboxa commented Sep 20, 2024

@hariso I used your changes to test, see #26 needed to adjust some issues with the deployment status

@hariso hariso marked this pull request as ready for review September 30, 2024 16:44
@hariso hariso requested a review from a team as a code owner September 30, 2024 16:44
@lyuboxa lyuboxa merged commit 3c12f12 into main Oct 2, 2024
4 checks passed
@lyuboxa lyuboxa deleted the haris/start-stop-deployment branch October 2, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add functionality for stopping/starting deployment
3 participants