Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
b6c19f62
M
minikube
项目概览
Chu Peng 楚鹏
/
minikube
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
minikube
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b6c19f62
编写于
5月 13, 2020
作者:
N
Natale Vinto
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Addons: add OLM support
上级
677c2e47
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
11204 addition
and
1 deletion
+11204
-1
deploy/addons/olm/crds.yaml
deploy/addons/olm/crds.yaml
+10848
-0
deploy/addons/olm/olm.yaml
deploy/addons/olm/olm.yaml
+337
-0
pkg/addons/config.go
pkg/addons/config.go
+5
-1
pkg/minikube/assets/addons.go
pkg/minikube/assets/addons.go
+14
-0
未找到文件。
deploy/addons/olm/crds.yaml
0 → 100644
浏览文件 @
b6c19f62
此差异已折叠。
点击以展开。
deploy/addons/olm/olm.yaml
0 → 100644
浏览文件 @
b6c19f62
---
apiVersion
:
v1
kind
:
Namespace
metadata
:
name
:
olm
---
apiVersion
:
v1
kind
:
Namespace
metadata
:
name
:
operators
---
kind
:
ServiceAccount
apiVersion
:
v1
metadata
:
name
:
olm-operator-serviceaccount
namespace
:
olm
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
name
:
system:controller:operator-lifecycle-manager
rules
:
-
apiGroups
:
[
"
*"
]
resources
:
[
"
*"
]
verbs
:
[
"
*"
]
-
nonResourceURLs
:
[
"
*"
]
verbs
:
[
"
*"
]
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
metadata
:
name
:
olm-operator-binding-olm
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
ClusterRole
name
:
system:controller:operator-lifecycle-manager
subjects
:
-
kind
:
ServiceAccount
name
:
olm-operator-serviceaccount
namespace
:
olm
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
olm-operator
namespace
:
olm
labels
:
app
:
olm-operator
spec
:
strategy
:
type
:
RollingUpdate
replicas
:
1
selector
:
matchLabels
:
app
:
olm-operator
template
:
metadata
:
labels
:
app
:
olm-operator
spec
:
serviceAccountName
:
olm-operator-serviceaccount
containers
:
-
name
:
olm-operator
command
:
-
/bin/olm
args
:
-
-namespace
-
$(OPERATOR_NAMESPACE)
-
-writeStatusName
-
"
"
image
:
quay.io/operator-framework/olm@sha256:0d15ffb5d10a176ef6e831d7865f98d51255ea5b0d16403618c94a004d049373
imagePullPolicy
:
IfNotPresent
ports
:
-
containerPort
:
8080
-
containerPort
:
8081
name
:
metrics
protocol
:
TCP
livenessProbe
:
httpGet
:
path
:
/healthz
port
:
8080
readinessProbe
:
httpGet
:
path
:
/healthz
port
:
8080
terminationMessagePolicy
:
FallbackToLogsOnError
env
:
-
name
:
OPERATOR_NAMESPACE
valueFrom
:
fieldRef
:
fieldPath
:
metadata.namespace
-
name
:
OPERATOR_NAME
value
:
olm-operator
resources
:
requests
:
cpu
:
10m
memory
:
160Mi
nodeSelector
:
beta.kubernetes.io/os
:
linux
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
catalog-operator
namespace
:
olm
labels
:
app
:
catalog-operator
spec
:
strategy
:
type
:
RollingUpdate
replicas
:
1
selector
:
matchLabels
:
app
:
catalog-operator
template
:
metadata
:
labels
:
app
:
catalog-operator
spec
:
serviceAccountName
:
olm-operator-serviceaccount
containers
:
-
name
:
catalog-operator
command
:
-
/bin/catalog
args
:
-
'
-namespace'
-
olm
-
-configmapServerImage=quay.io/operator-framework/configmap-operator-registry:latest
image
:
quay.io/operator-framework/olm@sha256:0d15ffb5d10a176ef6e831d7865f98d51255ea5b0d16403618c94a004d049373
imagePullPolicy
:
IfNotPresent
ports
:
-
containerPort
:
8080
-
containerPort
:
8081
name
:
metrics
protocol
:
TCP
livenessProbe
:
httpGet
:
path
:
/healthz
port
:
8080
readinessProbe
:
httpGet
:
path
:
/healthz
port
:
8080
terminationMessagePolicy
:
FallbackToLogsOnError
env
:
resources
:
requests
:
cpu
:
10m
memory
:
80Mi
nodeSelector
:
beta.kubernetes.io/os
:
linux
---
kind
:
ClusterRole
apiVersion
:
rbac.authorization.k8s.io/v1
metadata
:
name
:
aggregate-olm-edit
labels
:
rbac.authorization.k8s.io/aggregate-to-admin
:
"
true"
rbac.authorization.k8s.io/aggregate-to-edit
:
"
true"
rules
:
-
apiGroups
:
[
"
operators.coreos.com"
]
resources
:
[
"
subscriptions"
]
verbs
:
[
"
create"
,
"
update"
,
"
patch"
,
"
delete"
]
-
apiGroups
:
[
"
operators.coreos.com"
]
resources
:
[
"
clusterserviceversions"
,
"
catalogsources"
,
"
installplans"
,
"
subscriptions"
]
verbs
:
[
"
delete"
]
---
kind
:
ClusterRole
apiVersion
:
rbac.authorization.k8s.io/v1
metadata
:
name
:
aggregate-olm-view
labels
:
rbac.authorization.k8s.io/aggregate-to-admin
:
"
true"
rbac.authorization.k8s.io/aggregate-to-edit
:
"
true"
rbac.authorization.k8s.io/aggregate-to-view
:
"
true"
rules
:
-
apiGroups
:
[
"
operators.coreos.com"
]
resources
:
[
"
clusterserviceversions"
,
"
catalogsources"
,
"
installplans"
,
"
subscriptions"
,
"
operatorgroups"
]
verbs
:
[
"
get"
,
"
list"
,
"
watch"
]
-
apiGroups
:
[
"
packages.operators.coreos.com"
]
resources
:
[
"
packagemanifests"
,
"
packagemanifests/icon"
]
verbs
:
[
"
get"
,
"
list"
,
"
watch"
]
---
apiVersion
:
operators.coreos.com/v1
kind
:
OperatorGroup
metadata
:
name
:
global-operators
namespace
:
operators
---
apiVersion
:
operators.coreos.com/v1
kind
:
OperatorGroup
metadata
:
name
:
olm-operators
namespace
:
olm
spec
:
targetNamespaces
:
-
olm
---
apiVersion
:
operators.coreos.com/v1alpha1
kind
:
ClusterServiceVersion
metadata
:
name
:
packageserver
namespace
:
olm
labels
:
olm.version
:
0.14.1
spec
:
displayName
:
Package Server
description
:
Represents an Operator package that is available from a given CatalogSource which will resolve to a ClusterServiceVersion.
minKubeVersion
:
1.11.0
keywords
:
[
'
packagemanifests'
,
'
olm'
,
'
packages'
]
maintainers
:
-
name
:
Red Hat
email
:
openshift-operators@redhat.com
provider
:
name
:
Red Hat
links
:
-
name
:
Package Server
url
:
https://github.com/operator-framework/operator-lifecycle-manager/tree/master/pkg/package-server
installModes
:
-
type
:
OwnNamespace
supported
:
true
-
type
:
SingleNamespace
supported
:
true
-
type
:
MultiNamespace
supported
:
true
-
type
:
AllNamespaces
supported
:
true
install
:
strategy
:
deployment
spec
:
clusterPermissions
:
-
serviceAccountName
:
olm-operator-serviceaccount
rules
:
-
apiGroups
:
-
authorization.k8s.io
resources
:
-
subjectaccessreviews
verbs
:
-
create
-
get
-
apiGroups
:
-
"
"
resources
:
-
configmaps
verbs
:
-
get
-
list
-
watch
-
apiGroups
:
-
"
operators.coreos.com"
resources
:
-
catalogsources
verbs
:
-
get
-
list
-
watch
-
apiGroups
:
-
"
packages.operators.coreos.com"
resources
:
-
packagemanifests
verbs
:
-
get
-
list
deployments
:
-
name
:
packageserver
spec
:
strategy
:
type
:
RollingUpdate
replicas
:
2
selector
:
matchLabels
:
app
:
packageserver
template
:
metadata
:
labels
:
app
:
packageserver
spec
:
serviceAccountName
:
olm-operator-serviceaccount
nodeSelector
:
beta.kubernetes.io/os
:
linux
containers
:
-
name
:
packageserver
command
:
-
/bin/package-server
-
-v=4
-
--secure-port
-
"
5443"
-
--global-namespace
-
olm
image
:
quay.io/operator-framework/olm@sha256:0d15ffb5d10a176ef6e831d7865f98d51255ea5b0d16403618c94a004d049373
imagePullPolicy
:
Always
ports
:
-
containerPort
:
5443
livenessProbe
:
httpGet
:
scheme
:
HTTPS
path
:
/healthz
port
:
5443
readinessProbe
:
httpGet
:
scheme
:
HTTPS
path
:
/healthz
port
:
5443
terminationMessagePolicy
:
FallbackToLogsOnError
resources
:
requests
:
cpu
:
10m
memory
:
50Mi
maturity
:
alpha
version
:
0.14.1
apiservicedefinitions
:
owned
:
-
group
:
packages.operators.coreos.com
version
:
v1
kind
:
PackageManifest
name
:
packagemanifests
displayName
:
PackageManifest
description
:
A PackageManifest is a resource generated from existing CatalogSources and their ConfigMaps
deploymentName
:
packageserver
containerPort
:
5443
---
apiVersion
:
operators.coreos.com/v1alpha1
kind
:
CatalogSource
metadata
:
name
:
operatorhubio-catalog
namespace
:
olm
spec
:
sourceType
:
grpc
image
:
quay.io/operator-framework/upstream-community-operators:latest
displayName
:
Community Operators
publisher
:
OperatorHub.io
pkg/addons/config.go
浏览文件 @
b6c19f62
...
...
@@ -101,7 +101,11 @@ var Addons = []*Addon{
set
:
SetBool
,
callbacks
:
[]
setFn
{
enableOrDisableAddon
},
},
{
name
:
"olm"
,
set
:
SetBool
,
callbacks
:
[]
setFn
{
enableOrDisableAddon
},
},
{
name
:
"registry"
,
set
:
SetBool
,
...
...
pkg/minikube/assets/addons.go
浏览文件 @
b6c19f62
...
...
@@ -209,6 +209,20 @@ var Addons = map[string]*Addon{
"0640"
,
false
),
},
false
,
"metrics-server"
),
"olm"
:
NewAddon
([]
*
BinAsset
{
MustBinAsset
(
"deploy/addons/olm/crds.yaml"
,
vmpath
.
GuestAddonsDir
,
"crds.yaml"
,
"0640"
,
false
),
MustBinAsset
(
"deploy/addons/olm/olm.yaml"
,
vmpath
.
GuestAddonsDir
,
"olm.yaml"
,
"0640"
,
false
),
},
false
,
"olm"
),
"registry"
:
NewAddon
([]
*
BinAsset
{
MustBinAsset
(
"deploy/addons/registry/registry-rc.yaml.tmpl"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录