-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(k8sd): introduce feature packages and update feature apply funct…
…ions - Added the FeatureManifest struct that contains the required charts and images for the feature. - Features are updated to use feature manifests when reconciling through the feature controller. - Implementation modules under `features` are updated to contain sub modules per feature. - Values handling is separated from the `Apply` functions and is performed via helper functions instead. - Introduced helper `Values` types and related functions for merging values together using mergo.
- Loading branch information
Showing
81 changed files
with
2,762 additions
and
1,536 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 was deleted.
Oops, something went wrong.
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,47 @@ | ||
package network | ||
|
||
import ( | ||
"github.com/canonical/k8s/pkg/client/helm" | ||
"github.com/canonical/k8s/pkg/k8sd/types" | ||
) | ||
|
||
var ( | ||
CalicoChartName = "tigera-operator" | ||
|
||
CalicoImageName = "calico" | ||
TigeraOperatorImageName = "tigera-operator" | ||
CalicoCtlImageName = "calicoctl" | ||
) | ||
|
||
var manifest = types.FeatureManifest{ | ||
Name: "network", | ||
Version: "1.0.0", | ||
Charts: map[string]helm.InstallableChart{ | ||
CalicoChartName: { | ||
Name: "tigera-operator", | ||
Version: "v3.28.0", | ||
InstallName: "ck-network", | ||
InstallNamespace: "tigera-operator", | ||
}, | ||
}, | ||
|
||
Images: map[string]types.Image{ | ||
"calico": { | ||
Registry: "ghcr.io/canonical/k8s-snap", | ||
Repository: "calico", | ||
Tag: "v3.28.0", | ||
}, | ||
"tigera-operator": { | ||
Registry: "ghcr.io/canonical/k8s-snap", | ||
Repository: "tigera/operator", | ||
Tag: "v1.34.0", | ||
}, | ||
"calicoctl": { | ||
Registry: "ghcr.io/canonical/k8s-snap", | ||
Repository: "calico/ctl", | ||
Tag: "v3.28.0", | ||
}, | ||
}, | ||
} | ||
|
||
var FeatureNetwork types.Feature = manifest |
Oops, something went wrong.