package
0.0.0-20241106155120-31ca61c30ccd
Repository: https://github.com/rancher/shepherd.git
Documentation: pkg.go.dev
# Functions
CreateChartRepoFromGithub creates a ClusterRepo in a given client via github instead of helm.
GenerateGatekeeperConfigYaml generates the yaml for a config for OPA gatekeeper https://open-policy-agent.github.io/gatekeeper/website/docs/exempt-namespaces#exempting-namespaces-from-gatekeeper-using-config-resource.
GenerateGatekeeperConstraintYaml takes inputs to generate the yaml for an OPA Gatekeeper Constraint from an OPA Constraint Template.
GetChartStatus is a helper function that takes client, clusterID, chartNamespace and chartName as args, uses admin catalog client to check if chart is already installed, if the chart is already installed returns chart information.
WaitChartInstall verifies that the app from a chart was successfully deployed.
WaitChartUpgrade verifies that the app from a chart was successfully upgraded.
WatchAndWaitDaemonSets is a helper function that watches the DaemonSets sequentially in a specific namespace and waits until number of available DeamonSets is equal to number of desired scheduled Daemonsets.
WatchAndWaitDeploymentForAnnotation is a helper function that watches the deployment in a specific namespace and waits until expected annotation key and its value.
WatchAndWaitDeployments is a helper function that watches the deployments sequentially in a specific namespace and waits until number of expected replicas is equal to number of available replicas.
WatchAndWaitStatefulSets is a helper function that watches the StatefulSets sequentially in a specific namespace and waits until number of expected replicas is equal to number of ready replicas.
# Structs
ChartStatus is a struct that GetChartStatus helper function returns.
ConfigSpec spec field for ConfigYaml, it contains different fields than ConstraintSpec.
ConfigYaml all the structs that make up a gatekeeper Config are nested in this struct, Configs and Constraints are similar K8s objects, but require different Specs.
ConstraintMatch match field for ConstraintYaml, it contains different fields than ConfigMatch.
ConstraintParameters field.
ConstraintSpec spec field for ConstraintYaml, it contains different fields than ConfigSpec.
ConstraintYaml All the structs that make up a gatekeeper Constraint are nested in this struct, Configs and Constraints are similar K8s objects, but require different Specs.
Metadata struct can be shared by Configs and Constraints.
# Type aliases
ConfigMatch match field for ConfigYaml, it contains different fields than ConstraintMatch.
ConstraintKinds field.