-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to sync the Kustomize manifests from manifests templated b…
…y the trainer Helm chart Signed-off-by: Yi Chen <[email protected]>
- Loading branch information
Showing
35 changed files
with
724 additions
and
358 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{{/* | ||
Copyright 2024 The Kubeflow authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/}} | ||
|
||
{{/* | ||
Create the name of the controller service account. | ||
*/}} | ||
{{- define "trainer.controller.serviceAccountName" -}} | ||
{{ include "trainer.controller.name" . }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the controller cluster role. | ||
*/}} | ||
{{- define "trainer.controller.clusterRoleName" -}} | ||
{{ include "trainer.controller.name" . }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the controller cluster role binding. | ||
*/}} | ||
{{- define "trainer.controller.clusterRoleBindingName" -}} | ||
{{ include "trainer.controller.name" . }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the controller role. | ||
*/}} | ||
{{- define "trainer.controller.roleName" -}} | ||
{{ include "trainer.controller.name" . }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the controller role binding. | ||
*/}} | ||
{{- define "trainer.controller.roleBindingName" -}} | ||
{{ include "trainer.controller.name" . }} | ||
{{- end -}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{/* | ||
Copyright 2024 The Kubeflow authors. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
https://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/}} | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "trainer.controller.clusterRoleBindingName" . }} | ||
labels: | ||
{{- include "trainer.controller.labels" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ include "trainer.controller.clusterRoleName" . }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "trainer.controller.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace }} |
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,33 @@ | ||
{{/* | ||
Copyright 2024 The Kubeflow authors. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
https://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/}} | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: {{ include "trainer.controller.roleName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "trainer.controller.labels" . | nindent 4 }} | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- secrets | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- update |
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,31 @@ | ||
{{/* | ||
Copyright 2024 The Kubeflow authors. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
https://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/}} | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: {{ include "trainer.controller.roleBindingName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "trainer.controller.labels" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: {{ include "trainer.controller.roleName" . }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "trainer.controller.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace }} |
File renamed without changes.
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,45 @@ | ||
{{/* | ||
Copyright 2024 The Kubeflow authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/}} | ||
|
||
{{/* | ||
Create the name of the webhook. | ||
*/}} | ||
{{- define "trainer.webhook.name" -}} | ||
{{ include "trainer.name" . }}-webhook | ||
{{- end -}} | ||
|
||
{{/* | ||
Common labels for the webhook. | ||
*/}} | ||
{{- define "trainer.webhook.labels" -}} | ||
{{ include "trainer.labels" . }} | ||
app.kubernetes.io/part-of: kubeflow | ||
app.kubernetes.io/component: webhook | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the webhook secret. | ||
*/}} | ||
{{- define "trainer.webhook.secretName" -}} | ||
{{ include "trainer.webhook.name" . }}-cert | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the validating webhook configuration. | ||
*/}} | ||
{{- define "trainer.validatingWebhookConfigurationName" -}} | ||
{{ include "trainer.name" . }}-validating-webhook | ||
{{- end -}} |
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
Oops, something went wrong.