-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #304 from rajatchopra/operators_wip
tectonic manifests
- Loading branch information
Showing
58 changed files
with
932 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...anifests/content/01-tectonic-namespace.go → ...content/bootkube/01-tectonic-namespace.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...manifests/content/02-ingress-namespace.go → .../content/bootkube/02-ingress-namespace.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ent/03-openshift-web-console-namespace.go → ...ube/03-openshift-web-console-namespace.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...t/04-openshift-machine-config-operator.go → ...e/04-openshift-machine-config-operator.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ent/05-openshift-cluster-api-namespace.go → ...ube/05-openshift-cluster-api-namespace.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...set/manifests/content/app-version-kind.go → ...ests/content/bootkube/app-version-kind.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...sset/manifests/content/app-version-mao.go → ...fests/content/bootkube/app-version-mao.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/content/app-version-tectonic-network.go → .../bootkube/app-version-tectonic-network.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ifests/content/cluster-apiserver-certs.go → ...ntent/bootkube/cluster-apiserver-certs.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package content | ||
package bootkube | ||
|
||
import ( | ||
"text/template" | ||
|
2 changes: 1 addition & 1 deletion
2
pkg/asset/manifests/content/ign-config.go → .../manifests/content/bootkube/ign-config.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package content | ||
package bootkube | ||
|
||
import ( | ||
"text/template" | ||
|
2 changes: 1 addition & 1 deletion
2
...anifests/content/kube-apiserver-secret.go → ...content/bootkube/kube-apiserver-secret.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package content | ||
package bootkube | ||
|
||
import ( | ||
"text/template" | ||
|
2 changes: 1 addition & 1 deletion
2
...et/manifests/content/kube-cloud-config.go → ...sts/content/bootkube/kube-cloud-config.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package content | ||
package bootkube | ||
|
||
import ( | ||
"text/template" | ||
|
2 changes: 1 addition & 1 deletion
2
...content/kube-controller-manager-secret.go → ...ootkube/kube-controller-manager-secret.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package content | ||
package bootkube | ||
|
||
import ( | ||
"text/template" | ||
|
2 changes: 1 addition & 1 deletion
2
...manifests/content/machine-api-operator.go → .../content/bootkube/machine-api-operator.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../machine-config-operator-00-config-crd.go → .../machine-config-operator-00-config-crd.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ne-config-operator-01-images-configmap.go → ...ne-config-operator-01-images-configmap.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ontent/machine-config-operator-02-rbac.go → ...otkube/machine-config-operator-02-rbac.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../machine-config-operator-03-deployment.go → .../machine-config-operator-03-deployment.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package content | ||
package bootkube | ||
|
||
import ( | ||
"text/template" | ||
|
2 changes: 1 addition & 1 deletion
2
...ntent/machine-config-server-tls-secret.go → ...tkube/machine-config-server-tls-secret.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package content | ||
package bootkube | ||
|
||
import ( | ||
"text/template" | ||
|
2 changes: 1 addition & 1 deletion
2
...sts/content/openshift-apiserver-secret.go → ...nt/bootkube/openshift-apiserver-secret.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package content | ||
package bootkube | ||
|
||
import ( | ||
"text/template" | ||
|
2 changes: 1 addition & 1 deletion
2
...t/manifests/content/operatorstatus-crd.go → ...ts/content/bootkube/operatorstatus-crd.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
pkg/asset/manifests/content/pull.go → pkg/asset/manifests/content/bootkube/pull.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package content | ||
package bootkube | ||
|
||
import ( | ||
"text/template" | ||
|
2 changes: 1 addition & 1 deletion
2
...ests/content/tectonic-network-operator.go → ...ent/bootkube/tectonic-network-operator.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package content | ||
package bootkube | ||
|
||
import ( | ||
"text/template" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = [ | ||
"cluster-config.go", | ||
"pull.go", | ||
"svc-account.go", | ||
], | ||
importpath = "github.com/openshift/installer/pkg/asset/manifests/content/tectonic/ingress", | ||
visibility = ["//visibility:public"], | ||
) |
23 changes: 23 additions & 0 deletions
23
pkg/asset/manifests/content/tectonic/ingress/cluster-config.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package ingress | ||
|
||
import ( | ||
"text/template" | ||
) | ||
|
||
var ( | ||
// ClusterConfig is the variable/constant representing the contents of the respective file | ||
ClusterConfig = template.Must(template.New("cluster-config.yaml").Parse(` | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: cluster-config-v1 | ||
namespace: openshift-ingress | ||
data: | ||
ingress-config: | | ||
apiVersion: v1 | ||
kind: TectonicIngressOperatorConfig | ||
type: {{.IngressKind}} | ||
statsPassword: {{.IngressStatusPassword}} | ||
statsUsername: admin | ||
`)) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package ingress | ||
|
||
import ( | ||
"text/template" | ||
) | ||
|
||
var ( | ||
// Pull is the variable/constant representing the contents of the respective file | ||
Pull = template.Must(template.New("pull.json").Parse(` | ||
{ | ||
"apiVersion": "v1", | ||
"kind": "Secret", | ||
"type": "kubernetes.io/dockerconfigjson", | ||
"metadata": { | ||
"namespace": "openshift-ingress", | ||
"name": "coreos-pull-secret" | ||
}, | ||
"data": { | ||
".dockerconfigjson": "{{.PullSecret}}" | ||
} | ||
} | ||
`)) | ||
) |
12 changes: 12 additions & 0 deletions
12
pkg/asset/manifests/content/tectonic/ingress/svc-account.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package ingress | ||
|
||
const ( | ||
// SvcAccount is the variable/constant representing the contents of the respective file | ||
SvcAccount = ` | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: tectonic-ingress-controller-operator | ||
namespace: openshift-ingress | ||
` | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = [ | ||
"binding-admin.go", | ||
"binding-discovery.go", | ||
"role-admin.go", | ||
"role-user.go", | ||
], | ||
importpath = "github.com/openshift/installer/pkg/asset/manifests/content/tectonic/rbac", | ||
visibility = ["//visibility:public"], | ||
) |
22 changes: 22 additions & 0 deletions
22
pkg/asset/manifests/content/tectonic/rbac/binding-admin.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package rbac | ||
|
||
const ( | ||
// BindingAdmin is the variable/constant representing the contents of the respective file | ||
BindingAdmin = ` | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: admin-user | ||
subjects: | ||
- kind: ServiceAccount | ||
namespace: tectonic-system | ||
name: default | ||
- kind: ServiceAccount | ||
namespace: openshift-ingress | ||
name: tectonic-ingress-controller-operator | ||
roleRef: | ||
kind: ClusterRole | ||
name: cluster-admin | ||
apiGroup: rbac.authorization.k8s.io | ||
` | ||
) |
20 changes: 20 additions & 0 deletions
20
pkg/asset/manifests/content/tectonic/rbac/binding-discovery.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package rbac | ||
|
||
const ( | ||
// BindingDiscovery is the variable/constant representing the contents of the respective file | ||
BindingDiscovery = ` | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: discovery | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: system:discovery | ||
subjects: | ||
- kind: Group | ||
name: 'system:unauthenticated' | ||
- kind: Group | ||
name: 'system:authenticated' | ||
` | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package rbac | ||
|
||
const ( | ||
// RoleAdmin is the variable/constant representing the contents of the respective file | ||
RoleAdmin = ` | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: admin | ||
rules: | ||
- apiGroups: ["*"] | ||
resources: ["*"] | ||
verbs: ["*"] | ||
- nonResourceURLs: ["*"] | ||
verbs: ["*"] | ||
` | ||
) |
Oops, something went wrong.