Skip to content

Instantly share code, notes, and snippets.

View jhadvig's full-sized avatar
:octocat:
OpenShift

Jakub Hadvig jhadvig

:octocat:
OpenShift
View GitHub Profile
---
apiVersion: operator.openshift.io/v1
kind: Console
metadata:
annotations:
capability.openshift.io/name: Console
include.release.openshift.io/ibm-cloud-managed: "false"
include.release.openshift.io/self-managed-high-availability: "false"
include.release.openshift.io/single-node-developer: "false"
release.openshift.io/create-only: "true"
---
apiVersion: operator.openshift.io/v1
kind: Console
metadata:
annotations:
capability.openshift.io/name: Console
include.release.openshift.io/ibm-cloud-managed: "false"
include.release.openshift.io/self-managed-high-availability: "false"
include.release.openshift.io/single-node-developer: "false"
release.openshift.io/create-only: "true"
@jhadvig
jhadvig / .sh
Created July 11, 2023 14:48
build-backend
# Use deps from vendor dir.
export GOFLAGS="-mod=vendor"
export GOARCH="amd64"
export GOOS="linux"
GIT_TAG=${SOURCE_GIT_TAG:-$(git describe --always --tags HEAD)}
LD_FLAGS="-w -X github.com/openshift/console/pkg/version.Version=${GIT_TAG}"
{
"name": "console-plugin-template",
"version": "0.0.1",
"private": true,
"repository": "git@github.com:spadgett/console-plugin-template.git",
"license": "Apache-2.0",
"scripts": {
"clean": "rm -rf dist",
"build": "yarn clean && NODE_ENV=production yarn ts-node node_modules/.bin/webpack",
"build-dev": "yarn clean && yarn ts-node node_modules/.bin/webpack",
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: console-operator
namespace: openshift-console-operator
annotations:
include.release.openshift.io/ibm-cloud-managed: "true"
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
capability.openshift.io/name: Console
---
apiVersion: config.openshift.io/v1
kind: ClusterOperator
metadata:
annotations:
exclude.release.openshift.io/internal-openshift-hosted: "true"
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
creationTimestamp: "2022-10-26T14:08:23Z"
generation: 1
@jhadvig
jhadvig / log.yaml
Last active October 27, 2022 08:50
---
apiVersion: config.openshift.io/v1
items:
- apiVersion: config.openshift.io/v1
kind: ClusterVersion
metadata:
creationTimestamp: "2022-10-26T14:08:13Z"
generation: 2
managedFields:
- apiVersion: config.openshift.io/v1
module github.com/openshift/console-operator
go 1.18
require (
github.com/blang/semver v3.5.1+incompatible
github.com/davecgh/go-spew v1.1.1
github.com/ghodss/yaml v1.0.0
github.com/go-bindata/go-bindata v3.1.2+incompatible
github.com/go-test/deep v1.0.5
@jhadvig
jhadvig / go
Created October 26, 2022 13:31
go.mod output
$ go clean -modcache; go mod tidy && go mod vendor
go: downloading github.com/spf13/cobra v1.4.0
go: downloading k8s.io/component-base v0.25.0
go: downloading k8s.io/apimachinery v0.25.0
go: downloading github.com/openshift/client-go v0.0.0-20220915152853-9dfefb19db2e
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading k8s.io/client-go v0.25.0
go: downloading github.com/openshift/api v0.0.0-20220930100508-08a31a5d2264
go: downloading github.com/open-cluster-management/api v0.0.0-20210527013639-a6845f2ebcb1
go: downloading github.com/openshift/library-go v0.0.0-20220823205642-e2ef049de560
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: console-pdb
namespace: openshift-console
spec:
maxUnavailable: 1
selector:
matchLabels:
app: console