-
Notifications
You must be signed in to change notification settings - Fork 1.4k
*: Drop tectonic-system namespace #682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: Drop tectonic-system namespace #682
Conversation
8d040fb
to
2ff4e5e
Compare
/lgtm |
/lgtm cancel |
@wking can you also drop |
fyi |
2ff4e5e
to
af1d523
Compare
Dropped with 2ff4e5e -> af1d523. I'm going to reap CI to get some EIP headroom too. |
af1d523
to
212450c
Compare
212450c
to
a73e15c
Compare
a73e15c
to
ad6abd3
Compare
Diff from my current ad6abd3 vs. #681:
I like the vendor, SVG, and doc differences. I'm not sure about: diff --git a/pkg/asset/manifests/tectonic.go b/pkg/asset/manifests/tectonic.go
index b3c067a..b90ac5a 100644
--- a/pkg/asset/manifests/tectonic.go
+++ b/pkg/asset/manifests/tectonic.go
@@ -6,6 +6,7 @@ import (
"github.com/aws/aws-sdk-go/aws/session"
"github.com/ghodss/yaml"
+ "github.com/pkg/errors"
"github.com/gophercloud/utils/openstack/clientconfig"
"github.com/openshift/installer/pkg/asset"
@@ -20,12 +21,15 @@ const (
)
var (
+ tectonicConfigPath = filepath.Join(tectonicManifestDir, "00_cluster-config.yaml")
+
_ asset.WritableAsset = (*Tectonic)(nil)
)
// Tectonic generates the dependent resource manifests for tectonic (as against bootkube)
type Tectonic struct {
- FileList []*asset.File
+ TectonicConfig *configurationObject
+ FileList []*asset.File
}
// Name returns a human friendly name for the operator
@@ -145,6 +149,21 @@ func (t *Tectonic) Load(f asset.FileFetcher) (bool, error) {
return false, nil
}
- t.FileList = fileList
+ tectonicConfig := &configurationObject{}
+ var found bool
+ for _, file := range fileList {
+ if file.Filename == tectonicConfigPath {
+ if err := yaml.Unmarshal(file.Data, tectonicConfig); err != nil {
+ return false, errors.Wrapf(err, "failed to unmarshal 00_cluster-config.yaml")
+ }
+ found = true
+ }
+ }
+
+ if !found {
+ return false, nil
+ }
+
+ t.FileList, t.TectonicConfig = fileList, tectonicConfig
return true, nil
} Should I drop some/all of that, and if so, why? |
@wking we are not setting that field anymore, so can drop it. |
The kube-addon operator was the last remaining component in that namespace, and it was just controlling a metrics server. Metrics aren't critical to cluster functions, and dropping kube-addon means we don't need the old pull secret anymore (although we will shortly need new pull secrets for pulling private release images [1]). Also drop the admin and user roles [2], although I'm less clear on their connection. [1]: openshift#663 [2]: openshift#682 (comment)
Generated with: $ openshift-install graph | dot -Tsvg >docs/design/resource_dep.svg using: $ dot -V dot - graphviz version 2.30.1 (20170916.1124)
No longer needed since we dropped the tectonic-system namespace. I edited Gopkg.toml by hand and then ran: $ dep ensure using: $ dep version dep: version : v0.5.0 build date : git hash : 22125cf go version : go1.10.3 go compiler : gc platform : linux/amd64 features : ImportDuringSolve=false
ad6abd3
to
a14da04
Compare
Ok, dropped with ad6abd3 -> a14da04. We'll see if I've released enough EIPs... |
i think we got all/most of what we could drop. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, wking The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The kube-addon operator was the last remaining component in that namespace, and it was just controlling a metrics server. Metrics aren't critical to cluster functions, and dropping kube-addon means we don't need the old pull secret anymore (although we will shortly need new pull secrets for pulling private release images).