Bump the version number of the kube cert agent label
Not required, but within the spirit of using the version number. Since the existing kube cert agent deployment will get deleted anyway during an upgrade, it shouldn't hurt to change the version number. New installations will get the new version number on the new kube cert agent deployment.
This commit is contained in:
parent
cec9f3c4d7
commit
55de160551
@ -48,7 +48,7 @@ const (
|
|||||||
// agentPodLabelKey is used to identify which pods are created by the kube-cert-agent
|
// agentPodLabelKey is used to identify which pods are created by the kube-cert-agent
|
||||||
// controllers.
|
// controllers.
|
||||||
agentPodLabelKey = "kube-cert-agent.pinniped.dev"
|
agentPodLabelKey = "kube-cert-agent.pinniped.dev"
|
||||||
agentPodLabelValue = "v2"
|
agentPodLabelValue = "v3"
|
||||||
|
|
||||||
// conciergeDefaultLabelKeyName is the name of the key of the label applied to all Concierge resources.
|
// conciergeDefaultLabelKeyName is the name of the key of the label applied to all Concierge resources.
|
||||||
// This name is determined in the YAML manifests, but this controller needs to treat it as a special case below.
|
// This name is determined in the YAML manifests, but this controller needs to treat it as a special case below.
|
||||||
|
@ -91,13 +91,13 @@ func TestAgentController(t *testing.T) {
|
|||||||
Spec: appsv1.DeploymentSpec{
|
Spec: appsv1.DeploymentSpec{
|
||||||
Replicas: pointer.Int32Ptr(1),
|
Replicas: pointer.Int32Ptr(1),
|
||||||
Selector: metav1.SetAsLabelSelector(map[string]string{
|
Selector: metav1.SetAsLabelSelector(map[string]string{
|
||||||
"kube-cert-agent.pinniped.dev": "v2",
|
"kube-cert-agent.pinniped.dev": "v3",
|
||||||
}),
|
}),
|
||||||
Template: corev1.PodTemplateSpec{
|
Template: corev1.PodTemplateSpec{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Labels: map[string]string{
|
Labels: map[string]string{
|
||||||
"extralabel": "labelvalue",
|
"extralabel": "labelvalue",
|
||||||
"kube-cert-agent.pinniped.dev": "v2",
|
"kube-cert-agent.pinniped.dev": "v3",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Spec: corev1.PodSpec{
|
Spec: corev1.PodSpec{
|
||||||
@ -199,7 +199,7 @@ func TestAgentController(t *testing.T) {
|
|||||||
Namespace: "concierge",
|
Namespace: "concierge",
|
||||||
Name: "pinniped-concierge-kube-cert-agent-xyz-1234",
|
Name: "pinniped-concierge-kube-cert-agent-xyz-1234",
|
||||||
UID: types.UID("pinniped-concierge-kube-cert-agent-xyz-1234-test-uid"),
|
UID: types.UID("pinniped-concierge-kube-cert-agent-xyz-1234-test-uid"),
|
||||||
Labels: map[string]string{"kube-cert-agent.pinniped.dev": "v2"},
|
Labels: map[string]string{"kube-cert-agent.pinniped.dev": "v3"},
|
||||||
CreationTimestamp: metav1.NewTime(now.Add(-2 * time.Hour)),
|
CreationTimestamp: metav1.NewTime(now.Add(-2 * time.Hour)),
|
||||||
},
|
},
|
||||||
Spec: corev1.PodSpec{},
|
Spec: corev1.PodSpec{},
|
||||||
|
Loading…
Reference in New Issue
Block a user