// NewPhaseCoreDNS creates an upgrade phase to add coredns rbac permissions
// The normal upgrade sequence is to Rolling update planet, then to update our RBAC settings in the RBAC app
// However, CoreDNS within planet needs these settings to function, so these settings specifically need to be created
// before the rolling restart of planet
NewPhaseCoreDNS creates an upgrade phase to add coredns rbac permissions
The normal upgrade sequence is to Rolling update planet, then to update our RBAC settings in the RBAC app
However, CoreDNS within planet needs these settings to function, so these settings specifically need to be created
before the rolling restart of planet
// NewPhaseCoreDNS creates an upgrade phase to add coredns rbac permissions // The normal upgrade sequence is to Rolling update planet then to update our RBAC settings in the RBAC app // However CoreDNS within planet needs these settings to function so these settings specifically need to be created // before the rolling restart of planet
func NewPhaseCoreDNS(p fsm.ExecutorParams, operator ops.Operator, client *kubernetes.Clientset, logger log.FieldLogger) (*updatePhaseCoreDNS, error) {
	op, err := newKubernetesOperation(p, client, logger)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	cluster, err := operator.GetSite(ops.SiteKey{
		AccountID:  defaults.SystemAccountID,
		SiteDomain: p.Plan.ClusterName,
	})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	return &updatePhaseCoreDNS{
		kubernetesOperation: *op,
		DNSOverrides:        cluster.DNSOverrides,
	}, nil
}
func NewPhaseCoreDNS ( p fsm . ExecutorParams , operator ops . Operator , client * kubernetes . Clientset , logger log . FieldLogger ) ( * updatePhaseCoreDNS , error ) { op , err := newKubernetesOperation ( p , client , logger ) if err != nil { return nil , trace . Wrap ( err ) } cluster , err := operator . GetSite ( ops . SiteKey { AccountID : defaults . SystemAccountID , SiteDomain : p . Plan . ClusterName , } ) if err != nil { return nil , trace . Wrap ( err ) } return & updatePhaseCoreDNS { kubernetesOperation : * op , DNSOverrides : cluster . DNSOverrides , } , nil }
NewPhaseCoreDNS creates an upgrade phase to add coredns rbac permissions
The normal upgrade sequence is to Rolling update planet, then to update our RBAC settings in the RBAC app
However, CoreDNS within planet needs these settings to function, so these settings specifically need to be created
before the rolling restart of planet
NewPhaseCoreDNS creates an upgrade phase to add coredns rbac permissions The normal upgrade sequence is to Rolling update planet then to update our RBAC settings in the RBAC app However CoreDNS within planet needs these settings to function so these settings specifically need to be created before the rolling restart of planet