forked from sealerio/sealer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sealer Application definition (sealerio#1658)
* add kubefile translator & application definition Signed-off-by: david.bao <[email protected]> * taking user input as image type Signed-off-by: David Bao <[email protected]> * fix conflicts Signed-off-by: david.bao <[email protected]> Signed-off-by: David Bao <[email protected]>
- Loading branch information
1 parent
b15a5fd
commit a20019a
Showing
53 changed files
with
3,233 additions
and
169 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,15 @@ | ||
// Copyright © 2022 Alibaba Group Holding Ltd. | ||
// | ||
// 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 | ||
// | ||
// http://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. | ||
|
||
package buildimage |
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,49 @@ | ||
// Copyright © 2022 Alibaba Group Holding Ltd. | ||
// | ||
// 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 | ||
// | ||
// http://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. | ||
|
||
package command | ||
|
||
const ( | ||
|
||
// the following commands are kubefile-spec commands | ||
// we recommender users to use these commands to pack their | ||
// demands for applications. | ||
App = "app" | ||
Launch = "launch" | ||
Cmds = "cmds" | ||
|
||
Label = "label" | ||
Maintainer = "maintainer" | ||
|
||
// the following commands are the intenal implementations for kube commands | ||
Add = "add" | ||
Arg = "arg" | ||
Copy = "copy" | ||
From = "from" | ||
Run = "run" | ||
) | ||
|
||
// SupportedCommands is list of all Kubefile commands | ||
var SupportedCommands = map[string]struct{}{ | ||
Add: {}, | ||
Arg: {}, | ||
Copy: {}, | ||
From: {}, | ||
Label: {}, | ||
Maintainer: {}, | ||
Run: {}, | ||
App: {}, | ||
Launch: {}, | ||
Cmds: {}, | ||
} |
Oops, something went wrong.