Skip to content

Commit

Permalink
mv auth proxy resource to project package
Browse files Browse the repository at this point in the history
  • Loading branch information
runzexia committed Jan 9, 2019
1 parent 93a8b9b commit 4a9c63f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
6 changes: 3 additions & 3 deletions cmd/init_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ func (o *projectOptions) runInit() {
&project.KustomizeImagePatch{},
&project.KustomizePrometheusMetricsPatch{},
&project.KustomizeAuthProxyPatch{},
&resource.AuthProxyService{},
&resource.AuthProxyRole{},
&resource.AuthProxyRoleBinding{})
&project.AuthProxyService{},
&project.AuthProxyRole{},
&project.AuthProxyRoleBinding{})
if err != nil {
log.Fatal(err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package resource
package project

import (
"path/filepath"
Expand All @@ -27,9 +27,6 @@ var _ input.File = &AuthProxyRole{}
// AuthProxyRole scaffolds the config/rbac/auth_proxy_role.yaml file
type AuthProxyRole struct {
input.Input

// Resource is a resource in the API group
Resource *Resource
}

// GetInput implements input.File
Expand All @@ -41,7 +38,6 @@ func (r *AuthProxyRole) GetInput() (input.Input, error) {
return r.Input, nil
}


var proxyRoleTemplate = `apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package resource
package project

import (
"path/filepath"
Expand All @@ -27,9 +27,6 @@ var _ input.File = &AuthProxyRoleBinding{}
// AuthProxyRoleBinding scaffolds the config/rbac/auth_proxy_role_binding_rbac.yaml file
type AuthProxyRoleBinding struct {
input.Input

// Resource is a resource in the API group
Resource *Resource
}

// GetInput implements input.File
Expand All @@ -41,7 +38,6 @@ func (r *AuthProxyRoleBinding) GetInput() (input.Input, error) {
return r.Input, nil
}


var proxyRoleBindinggTemplate = `apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package resource
package project

import (
"path/filepath"
Expand All @@ -27,9 +27,6 @@ var _ input.File = &AuthProxyService{}
// AuthProxyService scaffolds the config/rbac/auth_proxy_role.yaml file
type AuthProxyService struct {
input.Input

// Resource is a resource in the API group
Resource *Resource
}

// GetInput implements input.File
Expand All @@ -41,7 +38,6 @@ func (r *AuthProxyService) GetInput() (input.Input, error) {
return r.Input, nil
}


var AuthProxyServiceTemplate = `apiVersion: v1
kind: Service
metadata:
Expand Down

0 comments on commit 4a9c63f

Please sign in to comment.