Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d607abc
Proxy e2e test
jhadvig Sep 17, 2019
d11879d
Update operator for project link API changes
jhadvig Sep 20, 2019
6d5c2e0
Merge pull request #298 from jhadvig/namespaceDashboard
openshift-merge-robot Sep 26, 2019
e4b38f1
Merge pull request #296 from jhadvig/proxy-e2e
openshift-merge-robot Sep 27, 2019
d7722ba
Remove extensions CRDs to migrate to openshift-config-operator
benjaminapetersen Sep 30, 2019
c79370f
Bump *
jhadvig Oct 1, 2019
2f99ec9
reflect upstream changes after bump
jhadvig Oct 1, 2019
eac30a7
Merge pull request #303 from jhadvig/bump
openshift-merge-robot Oct 2, 2019
8fa9f64
Fix NO_PROXY flake
jhadvig Oct 1, 2019
0a66dbe
Merge pull request #304 from jhadvig/proxy-e2e-flake
openshift-merge-robot Oct 2, 2019
7e8e4ef
manifests/07-downloads-deployment: Catch and exit on TERM
wking Oct 3, 2019
ce6a896
Merge pull request #302 from benjaminapetersen/crd/extensions/migrate
openshift-merge-robot Oct 3, 2019
6f5aca3
Merge pull request #308 from wking/downloads-term-handler
openshift-merge-robot Oct 4, 2019
178899f
Make status handlers standalone helper funcs that can be used across …
benjaminapetersen Oct 7, 2019
28816d4
Merge pull request #309 from benjaminapetersen/status/handler-detach
openshift-merge-robot Oct 9, 2019
e3b1d62
Reorganize args to NewConsoleOperator to fit client/informer sets tog…
benjaminapetersen Oct 8, 2019
44181c8
Merge pull request #310 from benjaminapetersen/controllers/new-consol…
openshift-merge-robot Oct 9, 2019
661da8f
Remove unused argument
jhadvig Oct 11, 2019
423b9e2
Merge pull request #311 from jhadvig/arg
openshift-merge-robot Oct 11, 2019
d5abbad
Existing console extension CRDs return from cluster-config-operator
benjaminapetersen Oct 16, 2019
03b34b8
Merge pull request #314 from benjaminapetersen/crd/console-extensions…
openshift-merge-robot Oct 17, 2019
91024de
Add ConsoleCliDownloads controller
jhadvig Oct 1, 2019
8ffe751
Merge pull request #306 from jhadvig/cli_url_crd
openshift-merge-robot Oct 18, 2019
a4b14e0
Add e2e test for /metrics endpoint
benjaminapetersen Sep 21, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
263 changes: 139 additions & 124 deletions glide.lock

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ import:

# kube
- package: k8s.io/apimachinery
version: kubernetes-1.14.0
version: kubernetes-1.16.0
- package: k8s.io/api
version: kubernetes-1.14.0
version: kubernetes-1.16.0
- package: k8s.io/apiserver
version: kubernetes-1.14.0
version: kubernetes-1.16.0
- package: k8s.io/client-go
version: kubernetes-1.14.0
version: kubernetes-1.16.0
- package: k8s.io/kube-aggregator
version: kubernetes-1.14.0
version: kubernetes-1.16.0
- package: k8s.io/code-generator
version: kubernetes-1.14.0
version: kubernetes-1.16.0
- package: k8s.io/component-base
version: kubernetes-1.14.0
version: kubernetes-1.16.0

# openshift
- package: github.com/openshift/api
Expand All @@ -29,10 +29,12 @@ import:

# codegen
- package: k8s.io/gengo/args
version: 01a732e01d00cb9a81bb0ca050d3e6d2b947927b
version: 26a664648505d962332bda642b27306bc10d1082
- package: golang.org/x/tools/imports

# third party
- package: sigs.k8s.io/structured-merge-diff
version: 0c1d754dd6485aa156ff3c8c599079adac6ec82f
- package: github.com/go-test/deep
version: master

Expand Down
1 change: 1 addition & 0 deletions hack/test-unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ PACKAGES_TO_TEST=(
"github.com/openshift/console-operator/pkg/console/subresource/secret"
"github.com/openshift/console-operator/pkg/console/subresource/service"
"github.com/openshift/console-operator/pkg/console/subresource/util"
"github.com/openshift/console-operator/pkg/console/controllers/clidownloads"
"github.com/openshift/console-operator/pkg/console/version"
"github.com/openshift/console-operator/pkg/crypto"
# "github.com/openshift/console-operator/pkg/generated"
Expand Down
85 changes: 85 additions & 0 deletions manifests/00-crd-consoleclidownloads.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: consoleclidownloads.console.openshift.io
annotations:
displayName: ConsoleCLIDownload
description: Extension for configuring openshift web console command line interface
(CLI) downloads.
spec:
scope: Cluster
group: console.openshift.io
versions:
- name: v1
served: true
storage: true
names:
plural: consoleclidownloads
singular: consoleclidownload
kind: ConsoleCLIDownload
listKind: ConsoleCLIDownloadList
additionalPrinterColumns:
- name: Display name
type: string
JSONPath: .spec.displayName
- name: Age
type: string
JSONPath: .metadata.creationTimestamp
- name: Description
type: string
JSONPath: .spec.description
subresources:
status: {}
validation:
openAPIV3Schema:
description: ConsoleCLIDownload is an extension for configuring openshift web
console command line interface (CLI) downloads.
type: object
required:
- spec
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: Standard object's metadata.
type: object
spec:
description: ConsoleCLIDownloadSpec is the desired cli download configuration.
type: object
required:
- description
- displayName
- links
properties:
description:
description: description is the description of the CLI download (can
include markdown).
type: string
displayName:
description: displayName is the display name of the CLI download.
type: string
links:
description: links is a list of objects that provide CLI download link
details.
type: array
items:
type: object
required:
- href
properties:
href:
description: href is the absolute secure URL for the link (must
use https)
type: string
pattern: ^https://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$
text:
description: text is the display text for the link
type: string
89 changes: 89 additions & 0 deletions manifests/00-crd-consoleexternalloglinks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: consoleexternalloglinks.console.openshift.io
annotations:
displayName: ConsoleExternalLogLinks
description: ConsoleExternalLogLink is an extension for customizing OpenShift
web console log links.
spec:
scope: Cluster
group: console.openshift.io
versions:
- name: v1
served: true
storage: true
names:
plural: consoleexternalloglinks
singular: consoleexternalloglink
kind: ConsoleExternalLogLink
listKind: ConsoleExternalLogLinkList
additionalPrinterColumns:
- name: Text
type: string
JSONPath: .spec.text
- name: HrefTemplate
type: string
JSONPath: .spec.hrefTemplate
- name: Age
type: date
JSONPath: .metadata.creationTimestamp
subresources:
status: {}
validation:
openAPIV3Schema:
description: ConsoleExternalLogLink is an extension for customizing OpenShift
web console log links.
type: object
required:
- spec
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: Standard object's metadata.
type: object
spec:
description: ConsoleExternalLogLinkSpec is the desired log link configuration.
The log link will appear on the logs tab of the pod details page.
type: object
required:
- hrefTemplate
- text
properties:
hrefTemplate:
description: "hrefTemplate is an absolute secure URL (must use https)
for the log link including variables to be replaced. Variables are
specified in the URL with the format ${variableName}, for instance,
${containerName} and will be replaced with the corresponding values
from the resource. Resource is a pod. Supported variables are:
- ${resourceName} - name of the resource which containes the logs
- ${resourceUID} - UID of the resource which contains the logs
- e.g. `11111111-2222-3333-4444-555555555555`
- ${containerName} - name of the resource's container that contains the logs
- ${resourceNamespace} - namespace of the resource that contains the logs
- ${resourceNamespaceUID} - namespace UID of the resource that contains the logs
- ${podLabels} - JSON representation of labels matching the pod with the logs
- e.g. `{\"key1\":\"value1\",\"key2\":\"value2\"}`
e.g., https://example.com/logs?resourceName=${resourceName}&containerName=${containerName}&resourceNamespace=${resourceNamespace}&podLabels=${podLabels}"
type: string
pattern: ^https://
namespaceFilter:
description: namespaceFilter is a regular expression used to restrict
a log link to a matching set of namespaces (e.g., `^openshift-`).
The string is converted into a regular expression using the JavaScript
RegExp constructor. If not specified, links will be displayed for
all the namespaces.
type: string
text:
description: text is the display text for the link
type: string

112 changes: 112 additions & 0 deletions manifests/00-crd-consolelinks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: consolelinks.console.openshift.io
annotations:
displayName: ConsoleLinks
description: Extension for customizing OpenShift web console links
spec:
scope: Cluster
group: console.openshift.io
versions:
- name: v1
served: true
storage: true
names:
plural: consolelinks
singular: consolelink
kind: ConsoleLink
listKind: ConsoleLinkList
additionalPrinterColumns:
- name: Text
type: string
JSONPath: .spec.text
- name: URL
type: string
JSONPath: .spec.href
- name: Menu
type: string
JSONPath: .spec.menu
- name: Age
type: date
JSONPath: .metadata.creationTimestamp
subresources:
status: {}
validation:
openAPIV3Schema:
description: ConsoleLink is an extension for customizing OpenShift web console
links.
type: object
required:
- spec
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: Standard object's metadata.
type: object
spec:
description: ConsoleLinkSpec is the desired console link configuration.
type: object
required:
- href
- location
- text
properties:
applicationMenu:
description: applicationMenu holds information about section and icon
used for the link in the application menu, and it is applicable only
when location is set to ApplicationMenu.
type: object
required:
- section
properties:
imageURL:
description: imageUrl is the URL for the icon used in front of the
link in the application menu. The URL must be an HTTPS URL or
a Data URI. The image should be square and will be shown at 24x24
pixels.
type: string
section:
description: section is the section of the application menu in which
the link should appear. This can be any text that will appear
as a subheading in the application menu dropdown. A new section
will be created if the text does not match text of an existing
section.
type: string
href:
description: href is the absolute secure URL for the link (must use
https)
type: string
pattern: ^https://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$
location:
description: location determines which location in the console the link
will be appended to (ApplicationMenu, HelpMenu, UserMenu, NamespaceDashboard).
type: string
pattern: ^(ApplicationMenu|HelpMenu|UserMenu|NamespaceDashboard)$
namespaceDashboard:
description: namespaceDashboard holds information about namespaces in
which the dashboard link should appear, and it is applicable only
when location is set to NamespaceDashboard. If not specified, the
link will appear in all namespaces.
type: object
required:
- namespaces
properties:
namespaces:
description: namespaces is an array of namespace names in which
the dashboard link should appear.
type: array
items:
type: string
text:
description: text is the display text for the link
type: string
Loading