-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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. |
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.
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.
controllers/conduit_controller.go
Outdated
@@ -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 { |
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.
This is a ptr now.
* Fix deployment status
Description
Closes #23.
Quick checks: