Skip to content

Commit 96701d5

Browse files
committed
feature: externalIngress needs to be notified that we do a cluster migration, too
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
1 parent da1279f commit 96701d5

File tree

4 files changed

+37
-9
lines changed

4 files changed

+37
-9
lines changed

docs/stack_crd.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,22 @@ spec:
475475
- type: integer
476476
- type: string
477477
x-kubernetes-int-or-string: true
478+
metadata:
479+
description: |-
480+
EmbeddedObjectMetaWithAnnotations defines the metadata which can be attached
481+
to a resource. It's a slimmed down version of metav1.ObjectMeta only
482+
containing annotations.
483+
properties:
484+
annotations:
485+
additionalProperties:
486+
type: string
487+
description: |-
488+
Annotations is an unstructured key value map stored with a resource that may be
489+
set by external tools to store and retrieve arbitrary metadata. They are not
490+
queryable and should be preserved when modifying objects.
491+
More info: http://kubernetes.io/docs/user-guide/annotations
492+
type: object
493+
type: object
478494
required:
479495
- backendPort
480496
type: object

docs/stackset_crd.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,22 @@ spec:
6767
- type: integer
6868
- type: string
6969
x-kubernetes-int-or-string: true
70+
metadata:
71+
description: |-
72+
EmbeddedObjectMetaWithAnnotations defines the metadata which can be attached
73+
to a resource. It's a slimmed down version of metav1.ObjectMeta only
74+
containing annotations.
75+
properties:
76+
annotations:
77+
additionalProperties:
78+
type: string
79+
description: |-
80+
Annotations is an unstructured key value map stored with a resource that may be
81+
set by external tools to store and retrieve arbitrary metadata. They are not
82+
queryable and should be preserved when modifying objects.
83+
More info: http://kubernetes.io/docs/user-guide/annotations
84+
type: object
85+
type: object
7086
required:
7187
- backendPort
7288
type: object
@@ -3589,12 +3605,6 @@ spec:
35893605
Must be set if and only if type is "Localhost".
35903606
type: string
35913607
type:
3592-
description: |-
3593-
type indicates which kind of AppArmor profile will be applied.
3594-
Valid options are:
3595-
Localhost - a profile pre-loaded on the node.
3596-
RuntimeDefault - the container runtime's default profile.
3597-
Unconfined - no AppArmor enforcement.
35983608
type: string
35993609
required:
36003610
- type

pkg/apis/zalando.org/v1/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ func (s *StackSetIngressSpec) GetAnnotations() map[string]string {
124124
// backendport for ingress managed outside of stackset.
125125
// +k8s:deepcopy-gen=true
126126
type StackSetExternalIngressSpec struct {
127-
BackendPort intstr.IntOrString `json:"backendPort"`
127+
EmbeddedObjectMetaWithAnnotations `json:"metadata,omitempty"`
128+
BackendPort intstr.IntOrString `json:"backendPort"`
128129
}
129130

130131
// RouteGroupSpec defines the specification for defining a RouteGroup attached

pkg/apis/zalando.org/v1/zz_generated.deepcopy.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)