diff --git a/deploy/crds/keycloak.org_keycloaks_crd.yaml b/deploy/crds/keycloak.org_keycloaks_crd.yaml index 7717f1ea0..2000dd0e7 100644 --- a/deploy/crds/keycloak.org_keycloaks_crd.yaml +++ b/deploy/crds/keycloak.org_keycloaks_crd.yaml @@ -1064,7 +1064,6 @@ spec: type: string required: - credentialSecret - - externalURL - internalURL - message - phase diff --git a/pkg/apis/keycloak/v1alpha1/keycloak_types.go b/pkg/apis/keycloak/v1alpha1/keycloak_types.go index b1fbb2ea6..63568d5f5 100644 --- a/pkg/apis/keycloak/v1alpha1/keycloak_types.go +++ b/pkg/apis/keycloak/v1alpha1/keycloak_types.go @@ -229,7 +229,7 @@ type KeycloakStatus struct { // An internal URL (service name) to be used by the admin client. InternalURL string `json:"internalURL"` // External URL for accessing Keycloak instance from outside the cluster. Is identical to external.URL if it's specified, otherwise is computed (e.g. from Ingress). - ExternalURL string `json:"externalURL"` + ExternalURL string `json:"externalURL,omitempty"` // The secret where the admin credentials are to be found. CredentialSecret string `json:"credentialSecret"` } diff --git a/pkg/apis/keycloak/v1alpha1/zz_generated.openapi.go b/pkg/apis/keycloak/v1alpha1/zz_generated.openapi.go index 2421df26e..19cc99017 100644 --- a/pkg/apis/keycloak/v1alpha1/zz_generated.openapi.go +++ b/pkg/apis/keycloak/v1alpha1/zz_generated.openapi.go @@ -757,7 +757,7 @@ func schema_pkg_apis_keycloak_v1alpha1_KeycloakStatus(ref common.ReferenceCallba }, }, }, - Required: []string{"phase", "message", "ready", "version", "internalURL", "externalURL", "credentialSecret"}, + Required: []string{"phase", "message", "ready", "version", "internalURL", "credentialSecret"}, }, }, }