-
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.
- Loading branch information
Showing
9 changed files
with
66 additions
and
13 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
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,5 @@ | ||
|
||
gardener: | ||
|
||
featureGates: | ||
UseDNSRecords: true |
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 @@ | ||
../v1.48/extensions.yaml |
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 @@ | ||
../v1.48/extensions.yaml |
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 @@ | ||
import {has} from '@0cfg/utils-common/lib/has'; | ||
import {Flow, VersionedValues} from '../../flow/Flow'; | ||
import {VersionedState} from '../../Landscape'; | ||
import {createLogger} from '../../log/Logger'; | ||
import {Installation as Installation_1_47} from '../v1.46/installation'; | ||
import {emptyState, GeneralValues, isStateValues} from '../v1.46/Values'; | ||
|
||
export const VERSION = '1.50'; | ||
|
||
const log = createLogger(''); | ||
|
||
export class Installation extends Installation_1_47 { | ||
|
||
public async install(flow: Flow, stateValues: null | VersionedState, inputValues: VersionedValues): Promise<void> { | ||
if (stateValues === null) { | ||
stateValues = emptyState(inputValues.version); | ||
} else { | ||
// with gardener version 1.50 the UseDNSRecords feature gate got dropped, | ||
// so we need to remove it from the state. | ||
if (!isStateValues(stateValues)) { | ||
throw new Error('State values invalid'); | ||
} | ||
const v = stateValues as GeneralValues; | ||
if (has(v.gardener?.featureGates?.['UseDNSRecords'])) { | ||
delete v.gardener?.featureGates?.['UseDNSRecords']; | ||
} | ||
} | ||
|
||
await super.install(flow, stateValues, inputValues); | ||
} | ||
} |