Documentation ¶
Overview ¶
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
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.
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
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.
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
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.
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
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.
Index ¶
- Variables
- func GetDaemonSets(currentContextPath string, namespace string, resourceName string, ...) bool
- func GetDeployments(currentContextPath string, namespace string, resourceName string, ...) bool
- func GetReplicaSets(currentContextPath string, namespace string, resourceName string, ...) bool
- func GetStatefulSets(currentContextPath string, namespace string, resourceName string, ...) bool
- type DaemonsetsItems
- type DeploymentsItems
- type ReplicaSetsItems
- type StatefulSetsItems
Constants ¶
This section is empty.
Variables ¶
var DaemonSet = &cobra.Command{ Use: "daemonset", Aliases: []string{"daemonsets", "daemonset.apps", "ds"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) GetDaemonSets(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate, false) }, }
var Deployment = &cobra.Command{ Use: "deployment", Aliases: []string{"deployments", "deployment.apps", "deploy"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) GetDeployments(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate, false) }, }
var ReplicaSet = &cobra.Command{ Use: "replicaset", Aliases: []string{"replicasets", "rs", "replicaset.apps"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) GetReplicaSets(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate, false) }, }
var StatefulSet = &cobra.Command{ Use: "statefulset", Aliases: []string{"statefulsets", "statefulset.apps", "sts"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) GetStatefulSets(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate, false) }, }
Functions ¶
func GetDaemonSets ¶
func GetDeployments ¶
func GetReplicaSets ¶
Types ¶
type DaemonsetsItems ¶
type DeploymentsItems ¶
type DeploymentsItems struct { ApiVersion string `json:"apiVersion"` Items []*appsv1.Deployment `json:"items"` }
type ReplicaSetsItems ¶
type ReplicaSetsItems struct { ApiVersion string `json:"apiVersion"` Items []*appsv1.ReplicaSet `json:"items"` }
type StatefulSetsItems ¶ added in v1.4.0
type StatefulSetsItems struct { ApiVersion string `json:"apiVersion"` Items []*appsv1.StatefulSet `json:"items"` }