@@ -68,7 +68,7 @@ type KeycloakRealmSpec struct {
6868
6969 // Reconciler defines the pod spec for the reconciler
7070 // +optional
71- ReconcilerTemplate * corev1. Pod `json:"reconcilerTemplate,omitempty"`
71+ ReconcilerTemplate * ReconcilerTemplate `json:"reconcilerTemplate,omitempty"`
7272
7373 // Version is the keycloak version
7474 // +optional
@@ -82,6 +82,34 @@ type KeycloakRealmSpec struct {
8282 ResourceSelector * metav1.LabelSelector `json:"resourceSelector,omitempty"`
8383}
8484
85+ type ReconcilerTemplate struct {
86+ // Standard object's metadata.
87+ // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
88+ // +optional
89+ ObjectMetadata `json:"metadata,omitempty"`
90+
91+ // Specification of the desired behavior of the pod.
92+ // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
93+ // +optional
94+ Spec corev1.PodSpec `json:"spec,omitempty"`
95+ }
96+
97+ type ObjectMetadata struct {
98+ // Map of string keys and values that can be used to organize and categorize
99+ // (scope and select) objects. May match selectors of replication controllers
100+ // and services.
101+ // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
102+ // +optional
103+ Labels map [string ]string `json:"labels,omitempty"`
104+
105+ // Annotations is an unstructured key value map stored with a resource that may be
106+ // set by external tools to store and retrieve arbitrary metadata. They are not
107+ // queryable and should be preserved when modifying objects.
108+ // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
109+ // +optional
110+ Annotations map [string ]string `json:"annotations,omitempty"`
111+ }
112+
85113// SecretReference is a named reference to a secret which contains user credentials
86114type SecretReference struct {
87115 // Name referrs to the name of the secret, must be located whithin the same namespace
0 commit comments