Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Moved openshift scripts under parts/opesnhift (#2746)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny Woodson authored and Cecile Robert-Michon committed Apr 23, 2018
1 parent 8677e78 commit 0c62206
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 33 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions pkg/acsengine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const (
kubeConfigJSON = "k8s/kubeconfig.json"
kubernetesWindowsAgentCustomDataPS1 = "k8s/kuberneteswindowssetup.ps1"
// OpenShift custom scripts
openshiftNodeScript = "k8s/openshiftnodescript.sh"
openshiftMasterScript = "k8s/openshiftmasterscript.sh"
openshiftNodeScript = "openshift/openshiftnodescript.sh"
openshiftMasterScript = "openshift/openshiftmasterscript.sh"
)

const (
Expand Down Expand Up @@ -1746,7 +1746,7 @@ func (t *TemplateGenerator) getTemplateFuncMap(cs *api.ContainerService) templat
return helpers.IsTrueBoolPointer(cs.Properties.OrchestratorProfile.KubernetesConfig.EnablePodSecurityPolicy)
},
"OpenShiftGetMasterSh": func() string {
tb := MustAsset("k8s/openshiftmasterscript.sh")
tb := MustAsset("openshift/openshiftmasterscript.sh")
t := template.Must(template.New("master").Parse(string(tb)))
b := &bytes.Buffer{}
t.Execute(b, struct {
Expand All @@ -1763,7 +1763,7 @@ func (t *TemplateGenerator) getTemplateFuncMap(cs *api.ContainerService) templat
return b.String()
},
"OpenShiftGetNodeSh": func(profile *api.AgentPoolProfile) string {
tb := MustAsset("k8s/openshiftnodescript.sh")
tb := MustAsset("openshift/openshiftnodescript.sh")
t := template.Must(template.New("node").Parse(string(tb)))
b := &bytes.Buffer{}
t.Execute(b, struct {
Expand Down
Loading

0 comments on commit 0c62206

Please sign in to comment.