Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion config/v1/types_console.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package v1

import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// +genclient
// +genclient:nonNamespaced
Expand Down
33 changes: 33 additions & 0 deletions operator/v1/0000_70_console-operator.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,39 @@ spec:
description: pageID is the unique ID assigned by Statuspage
for your page. This must be a public page.
type: string
route:
description: route contains hostname and secret reference that contains
the serving certificate. If a custom route is specified, a new route
will be created with the provided hostname, under which console will
be available. In case of custom hostname uses the default routing
suffix of the cluster, the Secret specification for a serving certificate
will not be needed. In case of custom hostname points to an arbitrary
domain, manual DNS configurations steps are necessary. The default
console route will be maintained to reserve the default hostname for
console if the custom route is removed. If not specified, default
route will be used.
type: object
properties:
hostname:
description: hostname is the desired custom domain under which console
will be available.
type: string
secret:
description: 'secret points to secret in the openshift-config namespace
that contains custom certificate and key and needs to be created
manually by the cluster admin. Referenced Secret is required to
contain following key value pairs: - "tls.crt" - to specifies
custom certificate - "tls.key" - to specifies private key of the
custom certificate If the custom hostname uses the default routing
suffix of the cluster, the Secret specification for a serving
certificate will not be needed.'
type: object
required:
- name
properties:
name:
description: name is the metadata.name of the referenced secret
type: string
unsupportedConfigOverrides:
description: 'unsupportedConfigOverrides holds a sparse config that
will override any previously set options. It only needs to be the
Expand Down
26 changes: 26 additions & 0 deletions operator/v1/types_console.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,32 @@ type ConsoleSpec struct {
Customization ConsoleCustomization `json:"customization"`
// providers contains configuration for using specific service providers.
Providers ConsoleProviders `json:"providers"`
// route contains hostname and secret reference that contains the serving certificate.
// If a custom route is specified, a new route will be created with the
// provided hostname, under which console will be available.
// In case of custom hostname uses the default routing suffix of the cluster,
// the Secret specification for a serving certificate will not be needed.
// In case of custom hostname points to an arbitrary domain, manual DNS configurations steps are necessary.
// The default console route will be maintained to reserve the default hostname
// for console if the custom route is removed.
// If not specified, default route will be used.
// +optional
Route ConsoleConfigRoute `json:"route"`
}

// ConsoleConfigRoute holds information on external route access to console.
type ConsoleConfigRoute struct {
// hostname is the desired custom domain under which console will be available.
Hostname string `json:"hostname"`
// secret points to secret in the openshift-config namespace that contains custom
// certificate and key and needs to be created manually by the cluster admin.
// Referenced Secret is required to contain following key value pairs:
// - "tls.crt" - to specifies custom certificate
// - "tls.key" - to specifies private key of the custom certificate
// If the custom hostname uses the default routing suffix of the cluster,
// the Secret specification for a serving certificate will not be needed.
// +optional
Secret configv1.SecretNameReference `json:"secret"`
}

// ConsoleStatus defines the observed status of the Console.
Expand Down
18 changes: 18 additions & 0 deletions operator/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions operator/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.